1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
7 % DO NOT ALTER THIS PREAMBLE!!!
9 % This preamble is designed to ensure that the manual prints
10 % out as advertised. If you mess with this preamble,
11 % parts of the manual may not print out as expected. If you
12 % have problems LaTeXing this file, please contact
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
16 \ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
17 \AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
23 % set fonts for nicer pdf view
24 \IfFileExists{lmodern.sty}
25 {\usepackage{lmodern}}{}
27 \fi % end if pdflatex is used
29 % the pages of the TOC are numbered roman
30 % and a PDF-bookmark for the TOC is added
32 \let\myTOC\tableofcontents
33 \renewcommand{\tableofcontents}{%
34 \pdfbookmark[1]{\contentsname}{}
37 \pagenumbering{arabic}}
39 % used for multi-column text
42 % extra space for tables
43 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
47 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
48 \use_default_options false
55 \maintain_unincluded_children false
58 InsetLayout CharStyle:MenuItem
67 \newcommand*{\menuitem}[1]{{\sffamily #1}}
72 \language_package default
73 \inputencoding JIS-pLaTeX
77 \font_typewriter default
78 \font_default_family default
79 \use_non_tex_fonts false
86 \default_output_format default
88 \bibtex_command default
89 \index_command default
94 \pdf_author "LyXプロジェクトチーム"
95 \pdf_subject "LyX拡張機能取扱説明書"
96 \pdf_keywords "LyX、取扱説明書、文書化、拡張"
98 \pdf_bookmarksnumbered true
99 \pdf_bookmarksopen false
100 \pdf_bookmarksopenlevel 1
101 \pdf_breaklinks false
105 \pdf_pdfusetitle false
106 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
116 \paperorientation portrait
125 \paragraph_separation indent
126 \paragraph_indentation default
127 \quotes_language english
130 \paperpagestyle headings
131 \tracking_changes false
132 \output_changes false
142 \begin_inset Newline newline
146 \begin_inset Newline newline
159 \begin_layout Plain Layout
160 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
161 \begin_inset Flex Code
164 \begin_layout Plain Layout
168 <lyx-docs@lists.lyx.org>
173 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
181 \begin_layout Standard
182 \begin_inset CommandInset toc
183 LatexCommand tableofcontents
190 \begin_layout Chapter
194 \begin_layout Standard
203 』の第二部です。この文書を別部とした理由は、単純に『
211 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
212 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
213 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
214 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
217 \begin_layout Standard
218 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
219 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
220 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
223 \begin_layout Standard
228 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
232 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
236 』をよくお読みになって、LyXの全基本機能を習得してください。
239 \begin_layout Standard
240 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
241 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
244 \begin_layout Chapter
248 \begin_layout Section
252 \begin_layout Standard
262 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
263 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
266 \begin_layout Standard
294 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
298 \begin_layout Plain Layout
308 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
313 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
314 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
332 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
333 でも、いちど以下の手順を試してみてください。まず
343 \begin_inset Flex MenuItem
346 \begin_layout Plain Layout
373 \begin_inset Flex MenuItem
376 \begin_layout Plain Layout
379 エクスポート\SpecialChar \menuseparator
404 \begin_inset Flex MenuItem
407 \begin_layout Plain Layout
410 表示\SpecialChar \menuseparator
426 \begin_inset Flex Code
429 \begin_layout Plain Layout
437 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
446 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
449 \begin_layout Standard
459 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
462 \begin_layout Itemize
463 \begin_inset Flex MenuItem
466 \begin_layout Plain Layout
469 表示\SpecialChar \menuseparator
480 \begin_layout Itemize
483 \begin_inset Flex MenuItem
486 \begin_layout Plain Layout
489 表示\SpecialChar \menuseparator
490 更新\SpecialChar \menuseparator
501 \begin_layout Itemize
504 \begin_inset Flex MenuItem
507 \begin_layout Plain Layout
512 \SpecialChar \menuseparator
523 \begin_layout Itemize
526 \begin_inset Flex MenuItem
529 \begin_layout Plain Layout
534 \SpecialChar \menuseparator
545 \begin_layout Standard
555 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
558 \begin_layout Standard
568 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
571 \begin_layout Enumerate
581 文書をLaTeXに変換し、ファイルの拡張子を
582 \begin_inset Flex Code
585 \begin_layout Plain Layout
601 \begin_inset Flex Code
604 \begin_layout Plain Layout
622 \begin_layout Enumerate
633 \begin_inset Flex Code
636 \begin_layout Plain Layout
651 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
652 \begin_inset Flex Code
655 \begin_layout Plain Layout
671 \begin_inset Flex Code
674 \begin_layout Plain Layout
692 \begin_layout Enumerate
705 \begin_layout Standard
725 \begin_inset Flex MenuItem
728 \begin_layout Plain Layout
731 表示\SpecialChar \menuseparator
746 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
747 \begin_inset Flex MenuItem
750 \begin_layout Plain Layout
760 表示\SpecialChar \menuseparator
766 を使用した場合には、LyXはさらに以下の段階をふみます。
769 \begin_layout Itemize
779 \begin_inset Flex Code
782 \begin_layout Plain Layout
820 \begin_layout Itemize
830 \begin_inset Flex Code
833 \begin_layout Plain Layout
841 などのPostScript®ビューアを実行して、PostScript®
853 \begin_layout Standard
854 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
857 \begin_layout Section
861 \begin_layout Standard
865 \begin_inset Flex MenuItem
868 \begin_layout Plain Layout
871 ファイル\SpecialChar \menuseparator
872 インポート\SpecialChar \menuseparator
887 コマンドを使用すると、LaTeXファイルを
903 LyXにインポートすることができます。このコマンドは、
913 \begin_inset Flex Code
916 \begin_layout Plain Layout
943 \begin_inset Flex Code
946 \begin_layout Plain Layout
957 \begin_inset Flex Code
960 \begin_layout Plain Layout
968 を生成します。LyXは、この変換したファイルを開きます
972 \begin_layout Plain Layout
973 \begin_inset Flex Code
976 \begin_layout Plain Layout
982 は、もちろんコマンドラインから実行することもできます。
990 \begin_layout Standard
993 \begin_inset Flex Code
996 \begin_layout Plain Layout
1013 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1023 \begin_inset Flex Code
1026 \begin_layout Plain Layout
1043 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1053 \begin_inset Flex Code
1056 \begin_layout Plain Layout
1073 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1076 \begin_layout Standard
1086 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1089 \begin_layout Section
1091 \begin_inset CommandInset label
1093 name "sec:LaTeXコードを挿入する"
1100 \begin_layout Standard
1110 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1111 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1113 \begin_inset Flex Code
1116 \begin_layout Plain Layout
1141 \begin_inset Flex MenuItem
1144 \begin_layout Plain Layout
1147 挿入\SpecialChar \menuseparator
1165 \begin_layout Standard
1166 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1169 \begin_layout LyX-Code
1173 \begin_inset Newline newline
1178 begin{minipage}{5cm}
1179 \begin_inset Newline newline
1183 \begin_inset Newline newline
1187 \begin_inset Newline newline
1191 \begin_inset Newline newline
1195 \begin_inset Newline newline
1199 \begin_inset Newline newline
1205 \begin_inset Newline newline
1209 \begin_inset Newline newline
1214 begin{minipage}{5cm}
1215 \begin_inset Newline newline
1221 \begin_inset Newline newline
1226 begin{minipage}{5cm}
1227 \begin_inset Newline newline
1232 \begin_inset Newline newline
1238 \begin_inset Newline newline
1244 \begin_inset Newline newline
1250 \begin_inset Newline newline
1258 \begin_layout LyX-Code
1262 \begin_layout Standard
1264 \begin_inset Flex Code
1267 \begin_layout Plain Layout
1273 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1277 \begin_layout Standard
1281 \begin_layout Plain Layout
1288 \begin_layout Plain Layout
1292 begin{minipage}{5cm}
1295 \begin_layout Plain Layout
1297 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。
1302 \begin_layout Plain Layout
1307 \begin_layout Plain Layout
1311 begin{minipage}{5cm}
1314 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1325 begin{minipage}{5cm}
1328 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1343 \begin_layout Plain Layout
1350 \begin_layout Plain Layout
1362 \begin_layout Standard
1372 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1373 \begin_inset Flex MenuItem
1376 \begin_layout Plain Layout
1386 挿入\SpecialChar \menuseparator
1387 ファイル\SpecialChar \menuseparator
1393 を使用する方法もあります(取り込みの型として
1394 \begin_inset Flex Code
1397 \begin_layout Plain Layout
1412 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1430 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1433 \begin_layout Standard
1443 最後に、いくつか強調しておくべきことがあります。
1446 \begin_layout Itemize
1456 LyXは、あなたのLaTeXコードが正しいかどうかを
1477 \begin_layout Itemize
1487 車輪の再発明をしないようにご注意ください。
1490 \begin_layout Standard
1500 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1501 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1502 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1512 \begin_inset CommandInset href
1515 target "http://www.ctan.org/"
1529 \begin_inset CommandInset ref
1531 reference "chap:Special-features"
1538 \begin_layout Standard
1548 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1566 』の参考文献に多くのLaTeX関連書籍が引用されています。
1569 \begin_layout Section
1573 \begin_layout Subsection
1577 \begin_layout Standard
1587 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1588 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1589 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1592 \begin_layout Standard
1602 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1620 の部分に来ます。ここでは以下のことを行います。
1623 \begin_layout Itemize
1633 文書クラス(ドキュメントクラス)の宣言。
1634 \begin_inset Newline newline
1637 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1655 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1658 \begin_layout Itemize
1669 \begin_inset Newline newline
1672 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1691 \begin_inset Flex Code
1694 \begin_layout Plain Layout
1702 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1705 \begin_layout Itemize
1716 \begin_inset Newline newline
1719 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1739 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1740 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1743 \begin_layout Itemize
1754 \begin_inset Flex Code
1757 \begin_layout Plain Layout
1775 \begin_inset Flex Code
1778 \begin_layout Plain Layout
1796 \begin_inset Newline newline
1799 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1817 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1821 \begin_layout Standard
1832 \begin_inset Flex Code
1835 \begin_layout Plain Layout
1850 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1853 \begin_layout Subsection
1857 \begin_layout Standard
1867 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1869 \begin_inset Flex MenuItem
1872 \begin_layout Plain Layout
1882 文書\SpecialChar \menuseparator
1889 \begin_inset Flex MenuItem
1892 \begin_layout Plain Layout
1907 の項から、プリアンブルに追加をすることはできます。LyXは、
1917 \begin_inset Flex MenuItem
1920 \begin_layout Plain Layout
1937 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1938 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1949 プリアンブルコードが正しいことを確認してください。
1951 LyXは、プリアンブルをチェックしません。
1961 \begin_inset Flex Code
1964 \begin_layout Plain Layout
1981 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1984 \begin_layout Subsection
1988 \begin_layout Standard
1998 以下は、プリアンブルに追加できるものとその効果を示す例です。
2001 \begin_layout Subsubsection
2005 \begin_layout Standard
2034 \begin_inset Flex Code
2037 \begin_layout Plain Layout
2057 \begin_inset Flex Code
2060 \begin_layout Plain Layout
2079 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2080 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2081 \begin_inset Flex Code
2084 \begin_layout Plain Layout
2104 \begin_inset Flex Code
2107 \begin_layout Plain Layout
2122 \begin_layout Standard
2132 \begin_inset Flex Code
2135 \begin_layout Plain Layout
2155 \begin_inset Flex Code
2158 \begin_layout Plain Layout
2177 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2178 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2180 \begin_inset Flex Code
2183 \begin_layout Plain Layout
2203 \begin_inset Flex Code
2206 \begin_layout Plain Layout
2225 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2228 \begin_layout LyX-Code
2236 \begin_layout LyX-Code
2244 \begin_layout Standard
2257 \begin_layout Subsubsection
2261 \begin_layout Standard
2271 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2272 \begin_inset Flex Code
2275 \begin_layout Plain Layout
2283 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2284 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2288 \begin_layout Standard
2299 \begin_inset Flex Code
2302 \begin_layout Plain Layout
2310 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2313 \begin_layout LyX-Code
2319 \begin_layout LyX-Code
2325 \begin_layout LyX-Code
2331 \begin_layout LyX-Code
2337 \begin_layout LyX-Code
2343 \begin_layout LyX-Code
2349 \begin_layout LyX-Code
2355 \begin_layout Standard
2374 Avery®ラベルシートのストック5360
2383 番を使用する場合の設定です。これで、各宛名を
2384 \begin_inset Flex Code
2387 \begin_layout Plain Layout
2407 \begin_inset Flex Code
2410 \begin_layout Plain Layout
2429 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2430 \begin_inset Flex Code
2433 \begin_layout Plain Layout
2444 \begin_layout Standard
2454 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2457 \begin_layout Subsubsection
2461 \begin_layout Standard
2491 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2508 \begin_layout Standard
2518 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2536 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2540 \begin_layout Standard
2550 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2554 \begin_layout LyX-Code
2557 usepackage{indentfirst}
2560 \begin_layout Standard
2570 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2573 \begin_layout Subsubsection
2577 \begin_layout Standard
2587 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2597 \begin_inset CommandInset ref
2599 reference "chap:Special-features"
2612 章には、他の例や、LaTeXの各種の「汚い技」があります。
2615 \begin_layout Section
2619 \begin_layout Standard
2629 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2630 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2631 ル中、そのエラーの発生した場所に表示を移動します
2635 \begin_layout Plain Layout
2645 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2646 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2647 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2664 \begin_layout Standard
2674 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2675 \begin_inset Flex MenuItem
2678 \begin_layout Plain Layout
2688 文書\SpecialChar \menuseparator
2694 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2698 \begin_layout Itemize
2701 \begin_inset Flex Code
2704 \begin_layout Plain Layout
2722 \begin_inset Newline newline
2725 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2726 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2729 \begin_layout Itemize
2732 \begin_inset Flex Code
2735 \begin_layout Plain Layout
2753 \begin_inset Newline newline
2756 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2760 \begin_layout Itemize
2770 \begin_inset Flex Code
2773 \begin_layout Plain Layout
2784 \begin_inset Newline newline
2805 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2806 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2807 \begin_inset Newline newline
2810 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2814 \begin_layout Plain Layout
2816 \begin_inset Flex MenuItem
2819 \begin_layout Plain Layout
2820 文書\SpecialChar \menuseparator
2826 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2834 \begin_layout Itemize
2837 \begin_inset Flex Code
2840 \begin_layout Plain Layout
2851 \begin_inset Newline newline
2863 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2866 \begin_layout Itemize
2867 \begin_inset Flex Code
2870 \begin_layout Plain Layout
2883 \begin_inset Flex Code
2886 \begin_layout Plain Layout
2899 \begin_inset Newline newline
2911 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2914 \begin_layout Itemize
2917 \begin_inset Flex Code
2920 \begin_layout Plain Layout
2924 \begin_inset Quotes els
2928 \begin_inset Quotes ers
2946 \begin_inset Newline newline
2949 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2951 \begin_inset Flex Code
2954 \begin_layout Plain Layout
2964 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2974 \begin_inset Flex MenuItem
2977 \begin_layout Plain Layout
2978 ヘルプ\SpecialChar \menuseparator
2993 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
2994 \begin_inset Flex MenuItem
2997 \begin_layout Plain Layout
3007 ツール\SpecialChar \menuseparator
3013 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3014 \begin_inset Newline newline
3027 \begin_inset Flex Code
3030 \begin_layout Plain Layout
3049 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3052 \begin_layout Itemize
3055 \begin_inset Flex Code
3058 \begin_layout Plain Layout
3061 LaTeX Error: Unknown option
3076 \begin_inset Newline newline
3079 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3083 \begin_layout Itemize
3086 \begin_inset Flex Code
3089 \begin_layout Plain Layout
3092 Undefined control sequence
3107 \begin_inset Newline newline
3110 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3111 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3114 \begin_layout Standard
3124 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3125 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3143 手がかりがありません。誰もわからないのです。
3146 \begin_layout Standard
3156 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3159 \begin_layout Enumerate
3169 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3172 \begin_layout Enumerate
3182 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3185 \begin_layout Enumerate
3195 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3196 \begin_inset Flex Code
3199 \begin_layout Plain Layout
3216 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3219 \begin_layout Enumerate
3229 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3233 \begin_layout Enumerate
3243 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3244 \begin_inset Flex Code
3247 \begin_layout Plain Layout
3251 \begin_inset space ~
3260 \begin_inset Flex Code
3263 \begin_layout Plain Layout
3281 \begin_inset Flex Code
3284 \begin_layout Plain Layout
3301 などをたくさん挿入するなど、微調整オプションを
3319 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3322 \begin_layout Enumerate
3332 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3333 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3336 \begin_layout Enumerate
3337 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3338 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3341 \begin_inset Flex Code
3344 \begin_layout Plain Layout
3359 \begin_layout Enumerate
3369 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3370 、それが原因です(LaTeXの上限は5段です)。
3373 \begin_layout Enumerate
3383 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3387 \begin_layout Enumerate
3400 \begin_layout Enumerate
3413 \begin_layout Standard
3427 \begin_layout Enumerate
3428 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3431 \begin_layout Standard
3459 LyXのバグを発見したのかもしれません‥‥。
3462 \begin_layout Chapter
3466 \begin_layout Section
3467 BibTeXによる参照文献のカスタマイズ
3470 \begin_layout Standard
3479 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3482 \begin_layout Subsection
3486 \begin_layout Standard
3487 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3488 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3489 \begin_inset Flex Code
3492 \begin_layout Plain Layout
3499 \begin_inset Flex Code
3502 \begin_layout Plain Layout
3508 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3510 \begin_inset Flex Code
3513 \begin_layout Plain Layout
3519 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3520 \begin_inset Flex Code
3523 \begin_layout Plain Layout
3529 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3534 \begin_inset Flex Code
3537 \begin_layout Plain Layout
3543 パッケージの利用を考えるとよいかもしれません。
3546 \begin_layout Standard
3547 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3548 \begin_inset Flex MenuItem
3551 \begin_layout Plain Layout
3552 文書\SpecialChar \menuseparator
3559 \begin_inset Flex MenuItem
3562 \begin_layout Plain Layout
3569 \begin_inset Flex MenuItem
3572 \begin_layout Plain Layout
3579 \begin_inset Flex MenuItem
3582 \begin_layout Plain Layout
3588 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3589 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3590 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3591 \begin_inset Flex Code
3594 \begin_layout Plain Layout
3600 に至っては、対話的なスタイルファイルビルダーさえ存在します
3604 \begin_layout Plain Layout
3605 \begin_inset Flex URL
3608 \begin_layout Plain Layout
3610 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3623 \begin_layout Subsection
3627 \begin_layout Standard
3628 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3629 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3633 \begin_layout Standard
3634 LyXは、このようなパッケージの一つである
3635 \begin_inset Flex Code
3638 \begin_layout Plain Layout
3648 \begin_layout Plain Layout
3649 \begin_inset Flex URL
3652 \begin_layout Plain Layout
3654 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3664 をそのままでサポートします。このパッケージの長所は、(
3665 \begin_inset Flex Code
3668 \begin_layout Plain Layout
3674 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3675 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3676 \begin_inset Flex Code
3679 \begin_layout Plain Layout
3686 \begin_inset Flex Code
3689 \begin_layout Plain Layout
3698 \begin_layout Standard
3699 \begin_inset Flex MenuItem
3702 \begin_layout Plain Layout
3703 文書\SpecialChar \menuseparator
3710 \begin_inset Flex MenuItem
3713 \begin_layout Plain Layout
3720 \begin_inset Flex MenuItem
3723 \begin_layout Plain Layout
3729 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3730 \begin_inset Flex Code
3733 \begin_layout Plain Layout
3740 \begin_inset Flex Code
3743 \begin_layout Plain Layout
3749 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3750 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3751 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3753 \begin_inset Flex Code
3756 \begin_layout Plain Layout
3762 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3765 \begin_layout Subsection
3769 \begin_layout Standard
3770 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3771 \begin_inset Flex Code
3774 \begin_layout Plain Layout
3781 \begin_inset CommandInset ref
3783 reference "sec:LaTeXコードを挿入する"
3787 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3788 \begin_inset Flex Code
3791 \begin_layout Plain Layout
3797 パッケージが、この課題を解決する簡単な方法を提供します
3801 \begin_layout Plain Layout
3803 \begin_inset Flex Code
3806 \begin_layout Plain Layout
3813 \begin_inset Flex Code
3816 \begin_layout Plain Layout
3830 \begin_layout Standard
3832 \begin_inset Flex MenuItem
3835 \begin_layout Plain Layout
3836 文書\SpecialChar \menuseparator
3843 \begin_inset Flex MenuItem
3846 \begin_layout Plain Layout
3853 \begin_inset Flex MenuItem
3856 \begin_layout Plain Layout
3862 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3863 \begin_inset Flex Code
3866 \begin_layout Plain Layout
3875 \begin_inset Flex Code
3878 \begin_layout Plain Layout
3886 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3887 \begin_inset Flex Code
3890 \begin_layout Plain Layout
3896 において引用されたすべての参照が含まれることになります。
3900 この方法を用いる場合には、すべての参照はいずれかの
3901 \begin_inset Flex Code
3904 \begin_layout Plain Layout
3911 \begin_inset Flex Code
3914 \begin_layout Plain Layout
3923 \begin_layout Section
3927 \begin_layout Subsection
3931 \begin_layout Standard
3932 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3933 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3934 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3938 \begin_layout Plain Layout
3943 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3949 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3950 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3951 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3964 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3967 \begin_layout Standard
3970 挿入\SpecialChar \menuseparator
3971 ファイル\SpecialChar \menuseparator
3974 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3975 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3978 \begin_layout Standard
3979 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3980 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3981 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3984 \begin_layout Standard
3985 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3989 \begin_layout Standard
3990 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3991 \begin_inset Flex Code
3994 \begin_layout Plain Layout
4000 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4001 ものの、単なる見えない空白です。ただし、
4004 \begin_inset Flex MenuItem
4007 \begin_layout Plain Layout
4017 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4020 \begin_layout Subsection
4024 \begin_layout Standard
4025 \begin_inset Box Shadowbox
4035 height_special "totalheight"
4038 \begin_layout Plain Layout
4039 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4047 \begin_layout Standard
4048 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4049 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4053 \begin_layout Subsection
4057 \begin_layout Standard
4058 \begin_inset Box Shadowbox
4068 height_special "totalheight"
4071 \begin_layout Plain Layout
4072 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4080 \begin_layout Standard
4081 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4082 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4085 \begin_layout Standard
4086 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4087 ントをインクルードするLaTeXパッケージの
4088 \begin_inset Flex Code
4091 \begin_layout Plain Layout
4097 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4100 \begin_layout LyX-Code
4106 \begin_layout LyX-Code
4109 includecomment{comment}
4112 \begin_layout Standard
4113 \begin_inset Flex URL
4116 \begin_layout Plain Layout
4118 http://wiki.lyx.org/FAQ/Unsorted#toc31
4126 \begin_layout Section
4130 \begin_layout Standard
4131 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4132 \begin_inset Flex Code
4135 \begin_layout Plain Layout
4141 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4146 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4147 ルに挿入する必要のあるLaTeXコードについて解説します。
4150 \begin_layout Standard
4151 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4152 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4155 \begin_inset Flex Code
4158 \begin_layout Plain Layout
4173 \begin_inset Flex Code
4176 \begin_layout Plain Layout
4191 \begin_inset Flex Code
4194 \begin_layout Plain Layout
4207 \begin_inset Flex Code
4210 \begin_layout Plain Layout
4218 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4221 \begin_layout Standard
4229 \begin_layout Standard
4230 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4234 \begin_layout Standard
4240 \begin_inset Newline newline
4248 \begin_layout Standard
4249 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4250 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4253 \begin_layout Standard
4263 \begin_layout Standard
4271 \begin_layout Standard
4281 \begin_layout Standard
4289 \begin_layout Standard
4297 \begin_layout Standard
4307 \begin_layout Standard
4311 \begin_inset Flex Code
4314 \begin_layout Plain Layout
4331 \begin_inset Flex Code
4334 \begin_layout Plain Layout
4346 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4347 \begin_inset Flex Code
4350 \begin_layout Plain Layout
4365 \begin_layout Standard
4366 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4367 フッタ罫線は0ptです。太さを変更するには、
4370 \begin_inset Flex Code
4373 \begin_layout Plain Layout
4380 headrulewidth}{0.4pt}
4390 \begin_inset Flex Code
4393 \begin_layout Plain Layout
4400 footrulewidth}{0.4pt}
4410 \begin_layout Standard
4411 \begin_inset Flex Code
4414 \begin_layout Plain Layout
4419 thispagestyle{empty}
4425 \begin_inset Flex Code
4428 \begin_layout Plain Layout
4433 thispagestyle{plain}
4439 \begin_inset Flex Code
4442 \begin_layout Plain Layout
4447 thispagestyle{fancy}
4452 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4453 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4454 レーン(plain)になるように設定されているのです。
4457 \begin_layout Standard
4458 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4459 \begin_inset Flex Code
4462 \begin_layout Plain Layout
4470 パッケージの取扱説明書をご参照ください(
4471 \begin_inset Flex Code
4474 \begin_layout Plain Layout
4483 \begin_layout Standard
4484 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4487 \begin_layout Standard
4496 includegraphics{logo.eps}}}
4499 \begin_layout Standard
4501 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4502 \begin_inset Newline newline
4506 \begin_inset Flex Code
4509 \begin_layout Plain Layout
4515 usepackage{graphics}
4520 をプリアンブルに宣言する必要があります)。
4523 \begin_layout Section
4525 \begin_inset CommandInset label
4534 \begin_layout Standard
4540 \begin_layout Subsection
4544 \begin_layout Standard
4545 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4546 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4550 \begin_layout Plain Layout
4551 正確には可能ですが、手動で行う必要があります。
4559 \begin_layout Subsection
4563 \begin_layout Standard
4565 \begin_inset Flex MenuItem
4568 \begin_layout Plain Layout
4569 文書\SpecialChar \menuseparator
4576 \begin_inset Flex MenuItem
4579 \begin_layout Plain Layout
4588 \begin_layout Standard
4589 そのダイアログに、ブリットの形の一覧表があります。
4590 \begin_inset Flex MenuItem
4593 \begin_layout Plain Layout
4599 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4600 \begin_inset Flex MenuItem
4603 \begin_layout Plain Layout
4609 パネルは、変更したい階層を選択するものです。
4610 \begin_inset Flex MenuItem
4613 \begin_layout Plain Layout
4619 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4623 \begin_layout Standard
4624 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4627 \begin_layout Standard
4629 \begin_inset Tabular
4630 <lyxtabular version="3" rows="7" columns="2">
4631 <features tabularvalignment="middle">
4632 <column alignment="center" valignment="top" width="0pt">
4633 <column alignment="center" valignment="top" width="0pt">
4635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4638 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4647 \begin_layout Plain Layout
4664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4678 \begin_layout Plain Layout
4696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4699 \begin_layout Plain Layout
4714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4717 \begin_layout Plain Layout
4734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4737 \begin_layout Plain Layout
4752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4755 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4775 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4793 \begin_layout Plain Layout
4810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4813 \begin_layout Plain Layout
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4831 \begin_layout Plain Layout
4848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4851 \begin_layout Plain Layout
4866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4869 \begin_layout Plain Layout
4892 \begin_layout Standard
4893 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4894 出るようならば、パッケージが導入されていない可能性が大です
4898 \begin_layout Plain Layout
4899 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4907 \begin_layout Subsection
4911 \begin_layout Standard
4912 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4916 \begin_layout Plain Layout
4921 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4922 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4925 \begin_layout Plain Layout
4929 \begin_layout Plain Layout
4945 \begin_layout Plain Layout
4949 \begin_layout Plain Layout
4971 \begin_layout Itemize
4972 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4973 \begin_inset Flex Code
4976 \begin_layout Plain Layout
4986 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4987 更するために、以下のLaTeXコードが使用されています。
4991 \begin_layout LyX-Code
5003 \begin_layout LyX-Code
5022 \begin_layout Itemize
5024 \begin_inset Flex Code
5027 \begin_layout Plain Layout
5035 コマンドの一部にローマ数字で指定されていることに注意してください。
5038 \begin_layout Itemize
5042 \begin_layout Plain Layout
5055 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5056 \begin_inset Flex Code
5059 \begin_layout Plain Layout
5065 として挿入してください。たとえば、この項目の行頭には
5068 \begin_inset Flex Code
5071 \begin_layout Plain Layout
5090 \begin_layout Plain Layout
5094 \begin_layout Plain Layout
5110 \begin_layout Plain Layout
5111 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5114 \begin_layout LyX-Code
5131 \begin_layout Chapter
5135 \begin_layout Standard
5136 LyX has long supported the export of documents to various web-friendly formats,
5138 Before verson 2.0, however, HTML export was always accomplished by the use
5139 of external converters.
5143 \begin_layout Plain Layout
5144 For details on the use of external converters with LyX, see the
5148 section of the Customization manual.
5153 These fall into two large groups: there are converters that use LaTeX as
5154 an intermediate format, such as
5155 \begin_inset Flex Code
5158 \begin_layout Plain Layout
5167 \begin_inset Flex Code
5170 \begin_layout Plain Layout
5179 \begin_inset Flex Code
5182 \begin_layout Plain Layout
5190 , relying upon LyX to produce the LaTeX; and there is a converter that works
5191 directly on LyX files,
5192 \begin_inset Flex Code
5195 \begin_layout Plain Layout
5204 All of these have different advantages and disadvantages.
5208 \begin_layout Standard
5209 The LaTeX-based converters have the advantage that, in principle, they know
5210 everything about the exported document that LaTeX does.
5211 Such converters do not care, for example, if a certain block of code was
5212 produced by LyX or was Evil Red Text.
5213 These converters know about
5214 \begin_inset Flex Code
5217 \begin_layout Plain Layout
5225 files, counters, and references, and can often make use of the
5226 \begin_inset Flex Code
5229 \begin_layout Plain Layout
5237 files generated by BibTeX.
5238 On the other hand, LaTeX is a very hard language to parse---it is sometimes
5239 said that only TeX itself understands TeX---and LaTeX-based converters
5240 will often choke on what seem to be quite simple constructs; complex ones
5241 can throw them completely, and as of this writing, for example, the
5245 manual will not export with
5246 \begin_inset Flex Code
5249 \begin_layout Plain Layout
5257 , though the others will.
5258 The other issue concerns how math is handled.
5259 These converters typically convert the formulae into little pictures that
5260 are then linked from the HTML document.
5261 Since these are actually generated by LaTeX, they are accurate.
5262 But they do not scale well, and just getting them to look as if they are
5263 actually meant to be in your document---so that the font sizes seem to
5264 be roughly the same---can be a challenge.
5267 \begin_layout Standard
5269 \begin_inset Flex Code
5272 \begin_layout Plain Layout
5281 \begin_inset CommandInset href
5283 name "http://elyxer.nongnu.org/"
5284 target "http://elyxer.nongnu.org/"
5288 ) solves some of these problems.
5289 In particular, the formulae it produces scale perfectly, since it renders
5290 math using a combination of HTML and CSS rather than converting the formulae
5292 But even moderately complex formula are rendered less well than with
5293 \begin_inset Flex Code
5296 \begin_layout Plain Layout
5304 ; this reflects the limitations of HTML.
5308 \begin_layout Plain Layout
5310 \begin_inset Flex Code
5313 \begin_layout Plain Layout
5321 can also use jsMath and MathJax for equations, but this setting is only
5322 available globally and requires one to have access to a server that runs
5328 More importantly (as of version 1.1.1, at least),
5329 \begin_inset Flex Code
5332 \begin_layout Plain Layout
5340 has limited support for math macros and no support for user-defined paragraph
5341 or character styles.
5342 These limitations make
5343 \begin_inset Flex Code
5346 \begin_layout Plain Layout
5354 unsuitable for many of the documents LyX users produce.
5355 In principle, of course, these problems could be solved, but the LyX developers
5356 have decided to follow a different path and have made LyX itself capable
5357 of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5361 \begin_layout Standard
5362 As of this writing, XHTML output remains under development and should probably
5364 \begin_inset Quotes eld
5368 \begin_inset Quotes erd
5375 \begin_layout Plain Layout
5377 \begin_inset Flex Code
5380 \begin_layout Plain Layout
5383 development/HTML.notes
5388 , which can be found in the LyX source tree or
5389 \begin_inset CommandInset href
5391 name "accessed online"
5392 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5396 , usually contains up-to-date information about the state of XHTML output.
5397 See also the list of XHTML bugs on
5398 \begin_inset CommandInset href
5400 name "the bug tracker"
5401 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
5410 Still, the developers have chosen this approach because it has several
5411 potential advantages over the other two.
5414 \begin_layout Standard
5415 These advantages are primarily due to the fact that the XHTML output routines,
5416 since they are part of LyX, know everything LyX knows about the document
5421 \begin_layout Plain Layout
5422 Another advantage is that, since these routines are internal to LyX, they
5423 are immune to changes in LyX's file format, or to changes in the semantics
5429 So they know about the table of contents (as displayed in the outline),
5430 about the counters associated with different paragraph styles, and about
5431 user-defined styles.
5432 The XHTML output routines know what LyX knows about internationalization,
5433 too, so they will output
5434 \begin_inset Quotes eld
5438 \begin_inset Quotes erd
5442 \begin_inset Quotes eld
5446 \begin_inset Quotes erd
5449 , depending upon the language in effect at the time.
5453 \begin_layout Standard
5454 Quite generally, the output routines know what LyX knows about document
5455 layout, that is, about how the document is to be rendered on screen.
5456 We use this information when we output the document as XHTML.
5461 generates CSS style information corresponding to the layout information
5462 it uses to render the document on screen: if section headings are supposed
5463 to be sans-serif and bold as seen in LyX, then (by default) they will be
5464 sans-serif and bold when viewed in a web browser, too.
5465 And this is true not just for pre-defined styles, like Section, but for
5466 any style, including user-defined styles.
5467 Indeed, the XHTML output routines make no distinction between user-defined
5468 paragraph and character styles and LyX's own pre-defined styles: in each
5469 case, everything LyX knows about the styles is contained in the layout
5471 And much the same is true as regards pre-defined textual insets, such as
5472 footnotes, and various custom insets.
5476 \begin_layout Standard
5477 The result is that XHTML output can be customized and extended in exactly
5478 the same way LaTeX output can be customized and extended: through layout
5480 See chapter five of the
5484 manual for the details.
5487 \begin_layout Standard
5488 The remainder of this chapter contains more detailed information on XHTML
5489 output, its limitations, and ways to work around those limitations.
5492 \begin_layout Section
5493 Math Output in XHTML
5496 \begin_layout Standard
5497 LyX offers four choices for how math is rendered.
5498 These have various advantages and disadvantages:
5501 \begin_layout Itemize
5503 \begin_inset Newline newline
5506 MathML is a dialect of XML designed specifically for mathematics on the
5507 web, and it typically renders very well in browsers that support it.
5508 The disadvantage is that not all browsers support MathML, and support is
5509 not complete even in the Gecko-based browsers, such as Firefox.
5510 \begin_inset Newline newline
5513 If LyX is unable to render a formula as MathML---for example, if the formula
5515 \begin_inset Flex Code
5518 \begin_layout Plain Layout
5526 package or ERT---then it will instead output the formula as an image.
5530 \begin_layout Itemize
5532 \begin_inset Newline newline
5536 \begin_inset Flex Code
5539 \begin_layout Plain Layout
5547 outputs math as HTML, styled by CSS.
5551 \begin_layout Plain Layout
5552 LyX has borrowed some of the CSS for its HTML output from
5553 \begin_inset Flex Code
5556 \begin_layout Plain Layout
5569 For simple formulae, this can work quite well, though with more complicated
5570 formulae it tends to break down.
5571 Still, this method has the advantage that it is very widely supported and
5572 so it may be appropriate for documents that contain only a little, fairly
5574 \begin_inset Newline newline
5577 If Lyx is unable to render a formula as HTML---for example, if the formula
5579 \begin_inset Flex Code
5582 \begin_layout Plain Layout
5590 package or ERT---then it will instead output the formula as an image.
5594 \begin_layout Itemize
5596 \begin_inset Newline newline
5600 \begin_inset Flex Code
5603 \begin_layout Plain Layout
5611 , LyX will output formulae as images, the very same images, in fact, that
5612 are used for instant preview.
5616 \begin_layout Plain Layout
5617 Instant preview does
5621 have to be on for images to be output, however.
5626 The advantage to this method is that the images are simply generated by
5627 LaTeX, so they are very accurate.
5628 The disadvantage, as mentioned earlier, is that these are bitmapped images,
5629 so they do not scale terribly well, and one cannot copy them, etc.
5630 (As of this writing, there are also problems about equation numbering.
5632 \begin_inset CommandInset href
5635 target "http://www.lyx.org/trac/ticket/6894"
5640 \begin_inset Newline newline
5643 The size of the images can be controlled by setting the
5644 \begin_inset Quotes eld
5648 \begin_inset Quotes erd
5652 \begin_inset Flex MenuItem
5655 \begin_layout Plain Layout
5658 Document\SpecialChar \menuseparator
5659 Settings\SpecialChar \menuseparator
5669 \begin_layout Plain Layout
5670 For those who want to know, this controls the resolution of the image in
5671 dots per inch and is based upon a default of 75 dpi.
5677 \begin_inset Newline newline
5680 If LyX for some reason fails to create an image for a formula (e.g., if a
5681 required LaTeX package is not installed), then it will fall back to outputing
5685 \begin_layout Itemize
5687 \begin_inset Newline newline
5690 Finally, LyX will happily output math as LaTeX.
5691 As well as being the output of last resort, this method can be used with
5693 \begin_inset CommandInset href
5696 target "http://www.math.union.edu/~dpvc/jsMath/"
5700 , which uses JavaScript to render LaTeX embedded in HTML documents.
5701 LyX wraps the LaTeX in either a
5702 \begin_inset Flex Code
5705 \begin_layout Plain Layout
5713 (for inline formulas) or
5714 \begin_inset Flex Code
5717 \begin_layout Plain Layout
5725 (for displayed formulas) with
5726 \begin_inset Flex Code
5729 \begin_layout Plain Layout
5737 , as is required for jsMath.
5740 \begin_layout Standard
5741 One of these output methods must be selected under
5742 \begin_inset Flex MenuItem
5745 \begin_layout Plain Layout
5748 Document\SpecialChar \menuseparator
5749 Settings\SpecialChar \menuseparator
5756 By default, LyX outputs MathML.
5757 This is a document-wide setting, therefore.
5760 \begin_layout Standard
5761 Eventually, LyX will offer the user the option to select an alternate output
5762 method for a particular inset, say, one that isn't being rendered very
5767 \begin_layout Plain Layout
5768 That said, since LyX falls back to images if the inset contains ERT, then
5769 one can force output as an image by putting some harmless ERT into the
5771 \begin_inset Formula $a=b\relax$
5782 \begin_layout Section
5783 Bibliography and Citations
5786 \begin_layout Standard
5787 XHTML output fully supports bibliographies and citations.
5791 \begin_layout Standard
5792 Citation labels are generated by the same machinery that generates LyX's
5793 on-screen labels, so the labels will look in the output much as they do
5794 in LyX, though better.
5795 If you are using numerical citations, then LyX will output numerical labels,
5796 such as [1] or [17], rather than simply showing the citation key in square
5797 brackets, as it does on-screen.
5798 If you are using author-year citations, then LyX will add lowercase letters
5799 to the years, just as BibTeX does, if it finds more than one citation for
5800 a given author-year combination.
5801 The labels will be printed with the bibliography entries.
5802 Note that there is, at present, no way to customize the appearance of the
5803 labels, for example, to choose between square brackets and parentheses.
5806 \begin_layout Standard
5807 Bibliography output is handled by the same machinery that handles the presentati
5808 on of reference information in the citation dialog, so you will see in the
5809 XHTML output pretty much what you would see if you were to look at a given
5810 entry in the citation dialog.
5811 The formatting can be customized in your layout file or, preferably, in
5817 manual for the details.
5820 \begin_layout Standard
5821 The main defect at present is that cross-referenced information is printed
5822 with every entry with which it is associated.
5823 So you can see things like this:
5828 \begin_inset Quotes eld
5831 Context and Logical Form
5832 \begin_inset Quotes erd
5837 Language in Context: Selected Essays
5839 (Oxford: Oxford University Press, 2007), pp.
5845 \begin_inset Quotes eld
5848 Semantics in Context
5849 \begin_inset Quotes erd
5854 Language in Context: Selected Essays
5856 (Oxford: Oxford University Press, 2007), pp.
5860 \begin_layout Standard
5861 This should be fixed before long.
5864 \begin_layout Standard
5865 There is no support at present for sectioned bibliographies.
5866 If you have multiple bibliographies, then LyX will print the same bibliography
5870 \begin_layout Section
5874 \begin_layout Standard
5875 LyX will happily export indexes as XHTML, but with certain limitations at
5879 \begin_layout Standard
5880 Index export will be most reliable when you do not attempt to use the fancy
5881 constructs that are described in the section on indexes in the
5889 \begin_layout Plain Layout
5890 The main issue here is that LyX itself does not really handle these.
5891 It just lets you enter what you would have to enter in raw LaTeX.
5896 We'll describe how they are handled using the subsection headings from
5900 \begin_layout Itemize
5901 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5902 these, but the entries must be separated by
5903 \begin_inset Quotes eld
5907 \begin_inset Quotes erd
5910 , that is, there must be spaces around the exclamation point.
5911 This is because it is otherwise too difficult to check for escaped exclamation
5912 points, ones in math, and so forth.
5915 \begin_layout Itemize
5916 Page Ranges: There is no support at all for page ranges, since these make
5917 no sense with XHMTL.
5918 Instead, you will just get two index entries, one at either end.
5921 \begin_layout Itemize
5922 Cross-referencing: There is no support for cross-referencing.
5923 If LyX finds an entry containing the
5924 \begin_inset Quotes eld
5927 |see\SpecialChar \ldots{}
5929 \begin_inset Quotes erd
5932 construct, it is just dropped, and the rest is treated as an ordinary index
5936 \begin_layout Itemize
5937 Index Entry Order: LyX does support attempts to fix the sorting order.
5938 It will take what is before the first `@' it finds and use that for sorting,
5939 taking what follows the first `@' to be the actual entry.
5940 At present, LyX does not check for escaped `@', so do not try to index
5944 \begin_layout Itemize
5945 Index Entry Layout: You can format entries by using the text style dialog,
5946 or by using any other method available within LyX itself.
5947 There is no support for constructs like:
5948 \begin_inset Quotes eld
5952 \begin_inset Quotes erd
5956 Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5957 and everything that follows it.
5960 \begin_layout Itemize
5961 Multiple Indexes: There is no support for multiple indexes.
5962 Rather, all index entries will be printed as one large index.
5963 To avoid our printing several versions of the index, we print only the
5964 main index, so make sure you have one.
5967 \begin_layout Section
5968 Nomenclature and Glossary
5971 \begin_layout Standard
5972 There is at present no support for glossaries.
5973 Adding it would be fairly trivial, and welcome.
5976 \begin_layout Chapter
5980 \begin_layout Section
5984 \begin_layout Standard
5985 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5986 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5987 yXに文献引用を「押し込む」ことが可能となります。
5990 \begin_layout Standard
5993 LyXサーバーはWindowsでは機能しない
5999 \begin_layout Plain Layout
6000 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6008 \begin_layout Section
6012 \begin_layout Standard
6013 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6014 \begin_inset Flex Code
6017 \begin_layout Plain Layout
6023 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6028 \begin_inset Flex Code
6031 \begin_layout Plain Layout
6043 に特別なオブジェクトとして置かれます)、「
6044 \begin_inset Flex Code
6047 \begin_layout Plain Layout
6054 \begin_inset Flex Code
6057 \begin_layout Plain Layout
6063 」という名前がついています。外部プログラムは、
6064 \begin_inset Flex Code
6067 \begin_layout Plain Layout
6074 \begin_inset Flex Code
6077 \begin_layout Plain Layout
6084 \begin_inset Flex MenuItem
6087 \begin_layout Plain Layout
6088 ツール\SpecialChar \menuseparator
6095 \begin_inset Flex Code
6098 \begin_layout Plain Layout
6099 /home/myhome/lyxpipe
6105 \begin_inset Flex Code
6108 \begin_layout Plain Layout
6122 」などに設定することができます。サーバーを開始するためには、これを
6129 \begin_layout Standard
6131 \begin_inset Flex Code
6134 \begin_layout Plain Layout
6141 \begin_inset Flex Code
6144 \begin_layout Plain Layout
6150 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6151 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6152 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6153 除するので、「古い」パイプが残ることはありません。
6156 \begin_layout Standard
6157 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6158 \begin_inset Flex Code
6161 \begin_layout Plain Layout
6167 ファイルを使用させるなど、別々の設定を使用する必要があります。
6170 \begin_layout Standard
6171 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6172 \begin_inset Flex Code
6175 \begin_layout Plain Layout
6184 \begin_layout Standard
6185 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6186 \begin_inset Flex Code
6189 \begin_layout Plain Layout
6190 development/lyxserver/server_monitor.c
6198 \begin_layout Standard
6200 \begin_inset Flex Code
6203 \begin_layout Plain Layout
6204 src/client/lyxclient
6209 にあるコマンドラインベースのクライアントがあります。
6212 \begin_layout Section
6216 \begin_layout Standard
6217 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6234 \begin_layout Description
6235 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6236 答をする際、クライアント名をエコーするときだけです。
6239 \begin_layout Description
6240 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6243 \begin_layout Description
6244 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6247 \begin_layout Standard
6248 LyXからの返答は、出力パイプに送り出され、
6265 \begin_layout Standard
6274 は、コマンド要求からそのままエコーされますが、
6278 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6279 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6282 \begin_layout Standard
6300 \begin_layout Standard
6305 には、なぜコマンドが失敗したかの説明が入っているはずです。
6308 \begin_layout Standard
6312 \begin_layout LyX-Code
6313 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6314 \begin_inset Newline newline
6317 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6318 \begin_inset Newline newline
6321 read a <~/.lyxpipe.out
6322 \begin_inset Newline newline
6328 \begin_layout Section
6332 \begin_layout Standard
6333 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6334 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6338 \begin_inset Flex Code
6341 \begin_layout Plain Layout
6352 \begin_layout Standard
6357 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6360 \begin_layout Standard
6361 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6362 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6365 \begin_layout Section
6369 \begin_layout Standard
6370 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6383 \begin_layout Standard
6388 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6389 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6392 \begin_layout Section
6396 \begin_layout Standard
6401 \begin_layout Plain Layout
6402 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6408 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6409 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6414 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6419 \begin_inset Flex Code
6422 \begin_layout Plain Layout
6428 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6429 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6430 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6431 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6434 \begin_layout Subsection
6435 \begin_inset CommandInset label
6444 \begin_layout Standard
6446 \begin_inset Flex MenuItem
6449 \begin_layout Plain Layout
6450 文書\SpecialChar \menuseparator
6451 出力\SpecialChar \menuseparator
6457 を有効にすれば、LyXがすべて自動的に処理を行ってくれます。その場合、LyXは自動的に、PDFの場合はSyncTeXマクロを、DVIの場合はsrcltxパッケー
6459 \begin_inset Flex Code
6462 \begin_layout Plain Layout
6468 ツールバーでも簡単にアクセスすることができます。
6471 \begin_layout Standard
6472 \begin_inset Flex Code
6475 \begin_layout Plain Layout
6482 \begin_inset Flex Code
6485 \begin_layout Plain Layout
6491 を読み込むと、時折、組版に影響を与えることがありますので、仕上がりの組版においてはこれらを無効にしてください。
6494 \begin_layout Standard
6495 また、設定で自製マクロを指定することもできるので、何か特別な調整が必要な場合には、次節の手動有効化をお読みください。
6498 \begin_layout Subsection
6502 \begin_layout Standard
6503 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6504 \begin_inset Flex Code
6507 \begin_layout Plain Layout
6513 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6514 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6517 \begin_layout Subsubsection*
6518 src-special経由のDVI組み込み検索(DVIのみ)
6521 \begin_layout Standard
6522 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6523 応しています)、安定して動作します。これを有効にするには、
6524 \begin_inset Flex MenuItem
6527 \begin_layout Plain Layout
6528 設定\SpecialChar \menuseparator
6529 ファイル処理\SpecialChar \menuseparator
6536 \begin_inset Flex MenuItem
6539 \begin_layout Plain Layout
6544 \begin_layout Plain Layout
6557 \begin_inset Flex MenuItem
6560 \begin_layout Plain Layout
6565 \begin_layout Plain Layout
6572 eX (plain)->DraftDVI
6578 \begin_inset Flex Code
6581 \begin_layout Plain Layout
6582 latex -src-specials $$i
6587 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6591 \begin_layout Subsubsection*
6592 外部パッケージ(PDFSyncおよびsrcltx)
6595 \begin_layout Standard
6604 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6608 \begin_layout Itemize
6610 \begin_inset Flex Code
6613 \begin_layout Plain Layout
6624 \begin_layout Itemize
6626 \begin_inset Flex Code
6629 \begin_layout Plain Layout
6632 usepackage[active]{srcltx}
6640 \begin_layout Standard
6641 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6644 \begin_layout LyX-Code
6648 \begin_inset Newline newline
6654 \begin_inset Newline newline
6660 \begin_inset Newline newline
6666 \begin_inset Newline newline
6671 usepackage[active]{srcltx}
6672 \begin_inset Newline newline
6680 \begin_layout Standard
6681 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6684 \begin_layout Standard
6685 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6689 \begin_layout Subsubsection*
6690 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6693 \begin_layout Standard
6694 \begin_inset Flex Code
6697 \begin_layout Plain Layout
6703 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6707 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6708 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6709 せん(Mac上のSkimとWindows上のSumatraPDF)。
6712 \begin_layout Standard
6713 DVI出力でSyncTeXを有効にするには、
6714 \begin_inset Flex MenuItem
6717 \begin_layout Plain Layout
6718 設定\SpecialChar \menuseparator
6719 ファイル処理\SpecialChar \menuseparator
6726 \begin_inset Flex MenuItem
6729 \begin_layout Plain Layout
6734 \begin_layout Plain Layout
6747 \begin_inset Flex MenuItem
6750 \begin_layout Plain Layout
6755 \begin_layout Plain Layout
6762 eX (plain)->DraftDVI
6768 \begin_inset Flex Code
6771 \begin_layout Plain Layout
6772 latex -synctex=1 $$i
6778 \begin_inset Flex MenuItem
6781 \begin_layout Plain Layout
6786 \begin_layout Plain Layout
6793 eX (pdflatex)->PDF (pdflatex)
6799 \begin_inset Flex Code
6802 \begin_layout Plain Layout
6803 pdflatex -synctex=1 $$i
6808 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください
6812 \begin_layout Plain Layout
6813 \begin_inset Flex Code
6816 \begin_layout Plain Layout
6822 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6823 \begin_inset Flex Code
6826 \begin_layout Plain Layout
6840 \begin_layout Subsection
6844 \begin_layout Subsubsection*
6848 \begin_layout Standard
6850 \begin_inset Flex Code
6853 \begin_layout Plain Layout
6859 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
6860 \begin_inset Flex Code
6863 \begin_layout Plain Layout
6869 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
6870 、Mac OS X上ではAlt-クリックで始動します)。
6873 \begin_layout Standard
6874 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
6875 \begin_inset Flex MenuItem
6878 \begin_layout Plain Layout
6879 設定\SpecialChar \menuseparator
6880 ファイル処理\SpecialChar \menuseparator
6887 \begin_inset Flex Code
6890 \begin_layout Plain Layout
6891 xdvi -editor 'lyxeditor.sh %f %l'
6897 \begin_inset Flex Code
6900 \begin_layout Plain Layout
6906 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
6909 \begin_layout LyX-Code
6911 \begin_inset Newline newline
6914 LYXPIPE="/path/to/lyxpipe"
6915 \begin_inset Newline newline
6918 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6919 \begin_inset Newline newline
6922 echo "$COMMAND" > "${LYXPIPE}".in || exit
6923 \begin_inset Newline newline
6926 read < "${LYXPIPE}".out || exit
6929 \begin_layout Standard
6931 \begin_inset Flex Code
6934 \begin_layout Plain Layout
6941 \begin_inset Flex MenuItem
6944 \begin_layout Plain Layout
6945 設定\SpecialChar \menuseparator
6955 \begin_layout Plain Layout
6962 XServerパイプのパスを指定してください
6966 \begin_layout Plain Layout
6968 \begin_inset Flex Code
6971 \begin_layout Plain Layout
6982 \begin_inset Flex Code
6985 \begin_layout Plain Layout
6999 \begin_layout Subsubsection*
7003 \begin_layout Standard
7004 \begin_inset Flex Code
7007 \begin_layout Plain Layout
7008 /Applications/MacDviX_Folder/calleditor.script
7016 \begin_layout LyX-Code
7021 \begin_layout Plain Layout
7028 X.app/Contents/MacOS/lyxeditor "$2" $1
7029 \begin_inset Newline newline
7035 \begin_layout Standard
7036 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7039 \begin_layout Standard
7040 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7043 \begin_layout Subsubsection*
7047 \begin_layout Standard
7048 \begin_inset Flex MenuItem
7051 \begin_layout Plain Layout
7052 設定\SpecialChar \menuseparator
7053 ファイル処理\SpecialChar \menuseparator
7054 ファイル書式\SpecialChar \menuseparator
7061 \begin_inset Flex Code
7064 \begin_layout Plain Layout
7065 open -a Skim.app $$i
7071 \begin_inset Flex MenuItem
7074 \begin_layout Plain Layout
7075 Skim\SpecialChar \menuseparator
7076 設定\SpecialChar \menuseparator
7086 \begin_layout Plain Layout
7096 \begin_layout Standard
7097 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7100 \begin_layout Subsubsection*
7104 \begin_layout Standard
7105 \begin_inset Flex MenuItem
7108 \begin_layout Plain Layout
7109 設定\SpecialChar \menuseparator
7110 Okularを設定\SpecialChar \ldots{}
7111 \SpecialChar \menuseparator
7117 で「カスタムテキストエディタ」を選択し、コマンドに
7118 \begin_inset Flex Code
7121 \begin_layout Plain Layout
7130 \begin_layout Standard
7131 遡及検索は、SHIFT-クリックで始動します。
7134 \begin_layout Subsubsection*
7138 \begin_layout Standard
7140 \begin_inset Flex MenuItem
7143 \begin_layout Plain Layout
7144 View\SpecialChar \menuseparator
7150 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7151 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7152 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7153 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7154 \begin_inset Flex Code
7157 \begin_layout Plain Layout
7163 (以下参照)のあるディレクトリを見つけます。
7164 \begin_inset Flex Code
7167 \begin_layout Plain Layout
7174 \begin_inset Flex Code
7177 \begin_layout Plain Layout
7184 \begin_inset Flex Code
7187 \begin_layout Plain Layout
7197 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7200 \begin_layout LyX-Code
7202 \begin_inset Newline newline
7205 echo LYXCMD:revdvi:server-goto-file-row:%1 %2>
7214 \begin_inset Newline newline
7228 \begin_layout Standard
7229 LyXで指定したLyXServerパイプパスが、
7230 \begin_inset Flex Code
7233 \begin_layout Plain Layout
7248 \begin_inset Flex Code
7251 \begin_layout Plain Layout
7260 \begin_layout Standard
7261 yapでは、遡及検索はダブルクリックで始動します。
7264 \begin_layout Subsubsection*
7268 \begin_layout Standard
7269 SumatraPDFを遡及検索で使用するためには、
7270 \begin_inset Flex MenuItem
7273 \begin_layout Plain Layout
7274 設定\SpecialChar \menuseparator
7275 ファイル処理\SpecialChar \menuseparator
7276 ファイル書式\SpecialChar \menuseparator
7283 \begin_inset Flex Code
7286 \begin_layout Plain Layout
7287 SumatraPDF -inverse-search
7288 \begin_inset Quotes eld
7292 \begin_inset Quotes erd
7301 \begin_inset Flex Code
7304 \begin_layout Plain Layout
7310 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7313 \begin_layout Standard
7317 \begin_layout Subsubsection*
7321 \begin_layout Standard
7322 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7323 \begin_inset Flex MenuItem
7326 \begin_layout Plain Layout
7327 View\SpecialChar \menuseparator
7333 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7334 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7335 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7336 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7337 \begin_inset Flex Code
7340 \begin_layout Plain Layout
7346 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7347 \begin_inset Flex Code
7350 \begin_layout Plain Layout
7357 \begin_inset Flex Code
7360 \begin_layout Plain Layout
7366 と指定してください。これによって、LyXとの通信に
7370 が使用されるようになります。何らかの理由で
7375 \begin_inset Flex Code
7378 \begin_layout Plain Layout
7384 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7387 \begin_layout Standard
7388 yapでは、遡及検索はダブルクリックで始動します。
7391 \begin_layout Subsubsection*
7395 \begin_layout Standard
7396 SumatraPDFを遡及検索で使用するためには、
7397 \begin_inset Flex MenuItem
7400 \begin_layout Plain Layout
7401 設定\SpecialChar \menuseparator
7402 ファイル処理\SpecialChar \menuseparator
7403 ファイル書式\SpecialChar \menuseparator
7410 \begin_inset Flex Code
7413 \begin_layout Plain Layout
7420 \begin_inset Flex Code
7423 \begin_layout Plain Layout
7429 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7430 \begin_inset Flex Code
7433 \begin_layout Plain Layout
7442 \begin_layout LyX-Code
7444 \begin_inset Newline newline
7448 \begin_inset Newline newline
7451 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7454 \begin_layout Standard
7455 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7456 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7457 \begin_inset Flex Code
7460 \begin_layout Plain Layout
7475 \begin_inset Flex Code
7478 \begin_layout Plain Layout
7484 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7487 \begin_layout Standard
7491 \begin_layout Section
7495 \begin_layout Standard
7496 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7497 \begin_inset CommandInset ref
7499 reference "sub:遡及検索"
7503 節に述べられている方法で実行することができます。
7506 \begin_layout Standard
7508 \begin_inset Flex MenuItem
7511 \begin_layout Plain Layout
7512 設定\SpecialChar \menuseparator
7513 出力\SpecialChar \menuseparator
7519 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7524 \begin_layout Plain Layout
7525 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7530 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7531 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7532 \begin_inset Flex Code
7535 \begin_layout Plain Layout
7542 \begin_inset Flex Code
7545 \begin_layout Plain Layout
7552 \begin_inset Flex Code
7555 \begin_layout Plain Layout
7561 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7564 \begin_layout Standard
7565 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7569 \begin_layout Chapter
7573 \begin_layout Section
7577 \begin_layout Standard
7583 \begin_layout Subsection
7587 \begin_layout Standard
7594 Astronomy and Astrophysics
7596 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/
7597 \begin_inset Flex URL
7600 \begin_layout Plain Layout
7602 http://www.edpsciences.fr/aa/
7607 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7610 \begin_layout Standard
7612 \begin_inset VSpace medskip
7616 \begin_inset Flex URL
7619 \begin_layout Plain Layout
7621 ftp://ftp.edpsciences.org/pub/aa/readme.html
7627 \begin_inset VSpace medskip
7633 \begin_layout Standard
7638 \begin_layout Standard
7639 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7643 \begin_layout Standard
7644 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7645 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7646 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7652 $LyXDir/layouts/aapaper.layout
7657 \begin_layout Subsection
7661 \begin_layout Standard
7662 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7665 \begin_layout Itemize
7668 文書\SpecialChar \menuseparator
7675 を選択してください(まぁ、これは自明ですね)。
7678 \begin_layout Itemize
7683 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7686 \begin_layout Subsection
7690 \begin_layout Standard
7691 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7694 \begin_layout Itemize
7702 \begin_layout Itemize
7710 \begin_layout Itemize
7718 \begin_layout Itemize
7726 \begin_layout Itemize
7731 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7734 \begin_layout Itemize
7739 :[非必須]連絡用の電子メールアドレス。
7742 \begin_layout Itemize
7749 Received: <日付>; Accepted <日付>
7754 \begin_layout Standard
7761 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7762 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7765 \begin_layout Standard
7766 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7768 挿入\SpecialChar \menuseparator
7771 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7780 \begin_layout Standard
7781 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7784 \begin_layout Itemize
7785 複数の著者名あるいは所属名を区切るための
7792 \begin_layout Itemize
7803 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7806 \begin_layout Itemize
7813 は、至急連絡用に電子メールアドレスを付記します。
7816 \begin_layout Standard
7817 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7818 \begin_inset Flex Code
7821 \begin_layout Plain Layout
7830 \begin_layout Subsection
7834 \begin_layout Standard
7835 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7836 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7842 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7845 \begin_layout Subsection
7849 \begin_layout Standard
7850 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
7853 \begin_layout Itemize
7859 \begin_layout Itemize
7865 \begin_layout Itemize
7871 \begin_layout Itemize
7877 \begin_layout Itemize
7883 \begin_layout Itemize
7889 \begin_layout Itemize
7895 \begin_layout Itemize
7901 \begin_layout Itemize
7907 \begin_layout Itemize
7913 \begin_layout Itemize
7919 \begin_layout Itemize
7925 \begin_layout Subsection
7929 \begin_layout Standard
7934 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
7937 \begin_layout Itemize
7945 \begin_layout Itemize
7953 \begin_layout Itemize
7961 \begin_layout Itemize
7969 \begin_layout Itemize
7977 \begin_layout Itemize
7985 \begin_layout Itemize
7993 \begin_layout Itemize
8001 \begin_layout Standard
8002 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8004 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8007 \begin_layout Subsection
8011 \begin_layout Standard
8028 をサポートしていますので、ここでは詳しい説明はしません。
8032 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8034 編集\SpecialChar \menuseparator
8040 \begin_layout Standard
8041 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8044 \begin_layout Enumerate
8047 挿入\SpecialChar \menuseparator
8048 フロート\SpecialChar \menuseparator
8051 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8052 \begin_inset Flex MenuItem
8055 \begin_layout Plain Layout
8056 設定\SpecialChar \ldots{}
8077 \begin_layout Enumerate
8081 \begin_layout Enumerate
8086 を押して、カーソルをキャプションの上に移動します。
8089 \begin_layout Enumerate
8093 \begin_layout Enumerate
8096 挿入\SpecialChar \menuseparator
8099 \SpecialChar \menuseparator
8119 \begin_layout Enumerate
8122 挿入\SpecialChar \menuseparator
8128 \begin_layout Enumerate
8140 \begin_layout Enumerate
8141 カーソルをキャプション文の後ろに移動し、
8143 挿入\SpecialChar \menuseparator
8146 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8149 \begin_layout Standard
8153 \begin_layout Subsection
8157 \begin_layout Standard
8158 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8162 オプションを与える必要があります。これは、
8164 文書\SpecialChar \menuseparator
8171 クラスオプションフィールドを使って行うことができます。この欄に
8178 \begin_layout Subsection
8182 \begin_layout Standard
8187 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8188 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8191 \begin_layout Section
8195 \begin_layout Standard
8203 \begin_layout Subsection
8207 \begin_layout Standard
8208 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8209 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8210 the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8211 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8212 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8213 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8216 \begin_layout Standard
8218 \begin_inset VSpace medskip
8222 \begin_inset Flex URL
8225 \begin_layout Plain Layout
8227 http://www.journals.uchicago.edu/AAS/AASTeX
8233 \begin_inset VSpace medskip
8239 \begin_layout Standard
8240 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8241 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8242 求事項に完全に合致していることを確認するのは、あなたの責任です。
8245 \begin_layout Subsection
8249 \begin_layout Standard
8250 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8251 \begin_inset Flex MenuItem
8254 \begin_layout Plain Layout
8255 ファイル\SpecialChar \menuseparator
8261 をクリックして、新しいファイル名を入力し、ひな型
8265 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8269 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8281 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8282 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8283 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8286 \begin_layout Subsection
8290 \begin_layout Standard
8291 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8294 \begin_layout Enumerate
8295 論文を LaTeXファイルとして書き出します(
8297 ファイル\SpecialChar \menuseparator
8298 書き出し\SpecialChar \menuseparator
8304 \begin_layout Enumerate
8313 \begin_layout Enumerate
8320 コマンドよりも前のコメント行を削除します。
8323 \begin_layout Enumerate
8328 usepackage...{fontenc}
8345 \begin_layout Enumerate
8346 LaTeXプリアンブル中に意図的に置いたコマンド(
8350 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8362 の間のもの(これらのコマンドを含む)をすべて削除します。
8366 \begin_layout Enumerate
8367 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8370 \begin_layout Enumerate
8371 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8374 \begin_layout Enumerate
8378 \begin_layout Subsection
8382 \begin_layout Standard
8387 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8388 列挙して、必要なところだけコメントを加えることにしましょう。
8391 \begin_layout Subsubsection
8395 \begin_layout Standard
8396 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8496 begin{thebibliography}
8504 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8555 \begin_layout Standard
8556 以下のスタイルオプションも正しく動作します。
8577 \begin_inset Flex MenuItem
8580 \begin_layout Plain Layout
8581 文書\SpecialChar \menuseparator
8598 \begin_layout Subsubsection
8602 \begin_layout Standard
8603 以下のコマンドは動作しますが、若干の説明が必要です。
8606 \begin_layout Itemize
8607 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8638 \begin_layout Itemize
8639 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8660 \begin_layout Itemize
8667 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8670 \begin_layout Itemize
8677 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8680 \begin_layout Itemize
8687 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8690 \begin_layout Itemize
8697 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8700 \begin_layout Itemize
8716 \begin_layout Itemize
8723 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8726 \begin_layout Itemize
8733 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8736 \begin_layout Itemize
8743 (2.14.2)―文章のはじめにカーソルを置いて
8744 \begin_inset Flex MenuItem
8747 \begin_layout Plain Layout
8748 挿入\SpecialChar \menuseparator
8754 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8760 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8763 \begin_layout Itemize
8770 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8779 \begin_layout Itemize
8786 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8795 \begin_layout Subsubsection
8796 実装されていないため、TeXコードを使用するもの
8799 \begin_layout Standard
8822 setcounter{equation}
8824 (2.12)・学術誌名略語(2.12.4)・
8860 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
8872 (2.15.5)・補遺(2.17)の大半(
8923 \begin_layout Subsubsection
8927 \begin_layout Standard
8928 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
8929 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
8930 \begin_inset Flex MenuItem
8933 \begin_layout Plain Layout
8934 挿入\SpecialChar \menuseparator
8936 \begin_inset Formula $\text{\textipa{}}$
8939 \SpecialChar \menuseparator
8945 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
8952 \begin_layout Subsection
8956 \begin_layout Subsubsection
8960 \begin_layout Standard
8961 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
8964 \begin_layout Enumerate
8965 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
8973 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
8980 \begin_layout Enumerate
8992 \begin_layout Enumerate
8995 ツール\SpecialChar \menuseparator
8998 を再度実行し、LyXを再起動してください。
9001 \begin_layout Enumerate
9002 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9004 文書\SpecialChar \menuseparator
9010 \begin_layout Standard
9011 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9012 出るようであれば、正しい導入が行われていません。
9015 \begin_layout Subsubsection
9019 \begin_layout Standard
9020 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9023 編集\SpecialChar \menuseparator
9034 に設定してください。私のところではこれで解決しました。
9037 \begin_layout Subsubsection
9041 \begin_layout Standard
9042 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9055 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9059 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9060 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9063 \begin_layout Subsubsection
9067 \begin_layout Standard
9068 AASTeXには、自前の図関連コマンド(たとえば
9074 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9080 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9084 usepackage{graphics}
9086 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9087 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9090 \begin_layout Subsubsection
9094 \begin_layout Standard
9095 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9096 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9097 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9100 \begin_layout Subsection
9104 \begin_layout Standard
9105 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9106 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9110 \begin_layout Section
9114 \begin_layout Standard
9124 \begin_inset VSpace bigskip
9127 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9128 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9129 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9130 \begin_inset Flex URL
9133 \begin_layout Plain Layout
9141 \begin_inset Flex URL
9144 \begin_layout Plain Layout
9146 ftp://ftp.ams.org/pub/tex/amslatex/
9151 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9154 \begin_layout Standard
9155 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9158 \begin_layout Itemize
9159 amsart:標準のAMS article書式。
9162 \begin_layout Itemize
9163 amsbook:標準のAMS book(実際はモノグラフ)書式。
9166 \begin_layout Standard
9167 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9168 m」環境は、何一つ含まれていません。これらは、代わりに
9169 \begin_inset Flex Code
9172 \begin_layout Plain Layout
9178 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9179 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9180 \begin_inset Flex Code
9183 \begin_layout Plain Layout
9189 モジュールがあり、これは手動で読み込む必要があります。
9192 \begin_layout Standard
9193 既定では、定理類は、文書を通して連番が振られますが、これは
9194 \begin_inset Flex Code
9197 \begin_layout Plain Layout
9203 モジュールを読み込めば変更することができ、
9204 \begin_inset Flex Code
9207 \begin_layout Plain Layout
9214 \begin_inset Flex Code
9217 \begin_layout Plain Layout
9223 を用いても変更することができます。これらを用いると、出力は
9224 \begin_inset Formula $n.m$
9227 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9228 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9233 \begin_inset Flex Code
9236 \begin_layout Plain Layout
9245 \begin_layout Standard
9246 これらのモジュールは、AMSクラスで使用する
9251 \begin_inset Flex Code
9254 \begin_layout Plain Layout
9260 モジュールや上述の他のモジュールは、他のクラス、たとえば
9261 \begin_inset Flex Code
9264 \begin_layout Plain Layout
9271 \begin_inset Flex Code
9274 \begin_layout Plain Layout
9281 \begin_inset Flex Code
9284 \begin_layout Plain Layout
9293 \begin_layout Subsection
9297 \begin_layout Standard
9298 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9299 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9302 \begin_layout Standard
9303 \begin_inset Flex Code
9306 \begin_layout Plain Layout
9313 \begin_inset Flex Code
9316 \begin_layout Plain Layout
9323 \begin_inset space ~
9327 \begin_inset Flex Noun
9330 \begin_layout Plain Layout
9337 \begin_inset Flex Noun
9340 \begin_layout Plain Layout
9347 \begin_inset Flex Noun
9350 \begin_layout Plain Layout
9357 \begin_inset Flex Noun
9360 \begin_layout Plain Layout
9367 \begin_inset Flex Noun
9370 \begin_layout Plain Layout
9377 \begin_inset space ~
9381 \begin_inset space ~
9387 \begin_layout Description
9391 \begin_layout Description
9392 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9395 \begin_layout Description
9399 \begin_layout Description
9403 \begin_layout Description
9404 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9407 \begin_layout Description
9410 Mathematical Reviews
9412 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9416 \begin_layout Description
9420 \begin_layout Description
9424 \begin_layout Description
9428 \begin_layout Standard
9430 \begin_inset Flex Code
9433 \begin_layout Plain Layout
9440 \begin_inset Flex Code
9443 \begin_layout Plain Layout
9449 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9450 \begin_inset Flex Code
9453 \begin_layout Plain Layout
9459 モジュールでは、同環境の星付き版だけが提供されます。
9462 \begin_layout Theorem
9463 これは、通常、得られた主要な結果を叙述するのに使用されます。
9466 \begin_layout Corollary*
9467 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9471 他の叙述を証明するために必要とされる、比較的小さな結果です。
9474 \begin_layout Proposition
9475 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9478 \begin_layout Conjecture
9479 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9482 \begin_layout Definition*
9483 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9486 \begin_layout Problem
9487 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9490 \begin_layout Exercise*
9495 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9498 \begin_layout Claim*
9499 より大きな結果の証明を与える途中で、しばしば用いられます。
9503 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9507 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9511 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9512 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9523 \begin_layout Standard
9525 \begin_inset Flex Code
9528 \begin_layout Plain Layout
9537 \begin_layout Criterion*
9541 \begin_layout Algorithm*
9545 \begin_layout Axiom*
9546 議論されている系内部で真と仮定される性質や命題です。
9549 \begin_layout Condition*
9550 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9557 \begin_layout Notation*
9561 \begin_layout Summary
9565 \begin_layout Acknowledgement*
9566 謝辞(acknowledgement)です。
9569 \begin_layout Conclusion*
9574 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9577 \begin_layout Standard
9578 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9582 \begin_layout Section
9588 \begin_layout Standard
9596 \begin_layout Subsection
9600 \begin_layout Standard
9601 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9603 \begin_inset Flex URL
9606 \begin_layout Plain Layout
9608 ftp://ftp.agu.org/journals/latex/journals
9613 にあります)が導入されていることが必要です。
9616 \begin_layout Subsection
9620 \begin_layout Standard
9629 は、定義し直されています。LyXの画面では、依然として
9637 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9648 \begin_layout Standard
9685 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9688 \begin_layout Standard
9689 おそらく、これはまだ恐ろしく不完全です。
9692 \begin_layout Subsection
9696 \begin_layout Standard
9705 (Plate)が新しいフロートです。また、
9712 \begin_layout Subsection
9716 \begin_layout Itemize
9719 Journal of Geophysical Research
9728 \begin_layout Standard
9729 ここにあなたの作ったものを加えてください。難しくはありません。
9740 \begin_layout Subsection
9744 \begin_layout Standard
9745 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9748 \begin_layout Enumerate
9755 ツール\SpecialChar \menuseparator
9758 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9765 \begin_layout Enumerate
9770 と入力してください(すみません、これはバグです)。
9773 \begin_layout Enumerate
9774 BibTeX差込枠の2番目のフィールドに
9782 を使用していることを確認してください。標準スタイルはうまく動作しません。
9785 \begin_layout Section
9789 \begin_layout Standard
9797 \begin_layout Subsection
9801 \begin_layout Standard
9802 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9805 \begin_layout Subsection
9809 \begin_layout Standard
9813 \begin_layout Subsection
9817 \begin_layout Standard
9822 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9825 \begin_layout Subsection
9829 \begin_layout Standard
9830 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9833 \begin_layout Subsection
9837 \begin_layout Standard
9838 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9841 \begin_layout Itemize
9845 \begin_inset Newline newline
9850 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9853 \begin_layout Itemize
9857 \begin_inset space \hfill{}
9861 \begin_inset Newline newline
9866 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
9869 \begin_layout Itemize
9873 \begin_inset space \hfill{}
9877 \begin_inset Newline newline
9882 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
9885 \begin_layout Itemize
9889 \begin_inset space \hfill{}
9893 \begin_inset Newline newline
9898 幕の副題です。単に中央揃えの文になります。
9901 \begin_layout Itemize
9905 \begin_inset space \hfill{}
9909 \begin_inset Newline newline
9914 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
9917 \begin_layout Itemize
9921 \begin_inset space \hfill{}
9925 \begin_inset Newline newline
9930 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
9933 \begin_layout Itemize
9937 \begin_inset space \hfill{}
9941 \begin_inset Newline newline
9946 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
9949 \begin_layout Itemize
9953 \begin_inset space \hfill{}
9957 \begin_inset Newline newline
9962 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
9969 \begin_layout Itemize
9973 \begin_inset space \hfill{}
9977 \begin_inset Newline newline
9985 \begin_layout Itemize
9989 \begin_inset space \hfill{}
9993 \begin_inset Newline newline
10001 \begin_layout Itemize
10005 \begin_inset space \hfill{}
10011 \begin_layout Itemize
10015 \begin_inset space \hfill{}
10021 \begin_layout Itemize
10025 \begin_inset space \hfill{}
10031 \begin_layout Section
10035 \begin_layout Standard
10040 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10042 .../lyx/share/templates
10044 にあるので、それを土台として使用してください。
10047 \begin_layout Section
10053 \begin_layout Standard
10061 \begin_layout Subsection
10065 \begin_layout Standard
10066 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10071 \begin_inset Flex URL
10074 \begin_layout Plain Layout
10076 http://www.copernicus.org/
10084 \begin_layout Subsection
10088 \begin_layout Standard
10125 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10129 ファイルを読み込む形に変えた方が便利になると思われます。
10132 \begin_layout Section
10136 \begin_layout Standard
10139 See the LyX template file
10144 It contains all infos you need.
10147 \begin_layout Section
10149 \begin_inset CommandInset label
10158 \begin_layout Standard
10166 \begin_layout Subsection
10170 \begin_layout Standard
10171 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10172 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10175 \begin_layout Standard
10176 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10179 \begin_layout Standard
10180 \begin_inset VSpace bigskip
10186 \begin_layout Standard
10192 presentation (FoilT
10198 \begin_layout Plain Layout
10216 \begin_layout Standard
10217 \begin_inset VSpace bigskip
10223 \begin_layout Standard
10226 transparencies (slides)
10229 \begin_inset CommandInset ref
10231 reference "sec:slitex"
10235 節をご覧ください。お使いのコンピュータに
10241 presentation (FoilT
10245 \begin_layout Plain Layout
10265 \begin_layout Standard
10270 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10274 の第2.1版とともに使われるように設計されています。
10277 \begin_layout Subsection
10281 \begin_layout Standard
10282 いうまでもなく、この文書クラスを使うには、
10284 文書\SpecialChar \menuseparator
10285 設定\SpecialChar \menuseparator
10294 presentation (FoilT
10298 \begin_layout Plain Layout
10311 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10314 \begin_layout Itemize
10327 オプションは変更しないでください。これらは
10334 \begin_layout Itemize
10335 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10338 \begin_layout Itemize
10347 ですが、数式ではすべて、通常のローマン体が使用されます。
10350 \begin_layout Itemize
10352 \begin_inset space \thinspace{}
10355 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10358 \begin_layout Itemize
10363 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10366 \begin_layout Itemize
10371 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10372 \begin_inset CommandInset ref
10374 reference "sec:foilfoot"
10378 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10382 付けられず、(ロゴが定義されていれば)ロゴは、
10386 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10390 \begin_layout Labeling
10391 \labelwidthstring MMMMMMM
10398 最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10401 \begin_layout Labeling
10402 \labelwidthstring MMMMMMM
10409 最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10412 \begin_layout Labeling
10413 \labelwidthstring MMMMMMM
10418 ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10421 \begin_layout Labeling
10422 \labelwidthstring MMMMMMM
10431 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10436 \begin_layout Subsubsection
10440 \begin_layout Standard
10445 ダイアログの任意設定クラスオプションボックスで使うことができます。
10448 \begin_layout Labeling
10449 \labelwidthstring MMMMMMx
10454 これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10455 \begin_inset space \space{}
10458 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10461 \begin_layout Labeling
10462 \labelwidthstring MMMMMMx
10467 タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10470 \begin_layout Labeling
10471 \labelwidthstring MMMMMMx
10476 タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10479 \begin_layout Labeling
10480 \labelwidthstring MMMMMMx
10489 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10492 \begin_layout Labeling
10493 \labelwidthstring MMMMMMx
10498 このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10499 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10507 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10510 \begin_layout Labeling
10511 \labelwidthstring MMMMMMx
10519 \begin_layout Labeling
10520 \labelwidthstring MMMMMMx
10528 \begin_layout Subsection
10532 \begin_layout Standard
10533 他のクラスで標準的にサポートされている環境は、
10537 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10540 \begin_layout Standard
10544 \begin_layout Plain Layout
10548 begin{multicols}{2}
10556 \begin_layout Itemize
10562 \begin_layout Itemize
10568 \begin_layout Itemize
10574 \begin_layout Itemize
10580 \begin_layout Itemize
10586 \begin_layout Itemize
10592 \begin_layout Itemize
10598 \begin_layout Itemize
10604 \begin_layout Itemize
10610 \begin_layout Itemize
10616 \begin_layout Itemize
10622 \begin_layout Itemize
10628 \begin_layout Itemize
10634 \begin_layout Itemize
10640 \begin_layout Itemize
10646 \begin_layout Itemize
10652 \begin_layout Itemize
10658 \begin_layout Itemize
10664 \begin_layout Standard
10668 \begin_layout Plain Layout
10680 \begin_layout Standard
10681 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10685 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10688 \begin_layout Itemize
10694 \begin_layout Itemize
10697 横置きスライドタイトル(Rotatefoilhead)
10700 \begin_layout Standard
10701 LyXは、以下のような、これらを若干修正した環境も用意しています。
10704 \begin_layout Itemize
10707 スライドタイトル(小)(ShortFoilhead)
10710 \begin_layout Itemize
10713 横置きスライドタイトル(小)(ShortRotatefoilhead)
10716 \begin_layout Standard
10720 \begin_layout Standard
10721 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10725 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10728 \begin_layout Standard
10732 \begin_layout Plain Layout
10736 begin{multicols}{2}
10744 \begin_layout Itemize
10750 \begin_layout Itemize
10756 \begin_layout Itemize
10762 \begin_layout Itemize
10768 \begin_layout Itemize
10774 \begin_layout Itemize
10780 \begin_layout Itemize
10786 \begin_layout Itemize
10792 \begin_layout Itemize
10798 \begin_layout Itemize
10804 \begin_layout Itemize
10810 \begin_layout Standard
10814 \begin_layout Plain Layout
10826 \begin_layout Standard
10827 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10830 \begin_layout Itemize
10836 \begin_layout Itemize
10842 \begin_layout Standard
10843 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10844 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10847 \begin_layout Standard
10848 この目的のためには、以下のコマンドスタイルがあります(
10853 \begin_layout Standard
10857 \begin_layout Plain Layout
10861 begin{multicols}{2}
10869 \begin_layout Itemize
10875 \begin_layout Itemize
10881 \begin_layout Itemize
10887 \begin_layout Itemize
10893 \begin_layout Itemize
10900 \begin_layout Standard
10901 \begin_inset space ~
10908 \begin_layout Standard
10912 \begin_layout Plain Layout
10924 \begin_layout Standard
10925 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
10926 \begin_inset CommandInset ref
10928 reference "sec:unsuppfoils"
10935 \begin_layout Subsection
10939 \begin_layout Standard
10940 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
10951 \begin_layout Subsubsection
10955 \begin_layout Standard
10976 は独立したページにタイトルを作成します。
10980 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
10983 \begin_layout Subsubsection
10987 \begin_layout Standard
10988 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
10994 スライドタイトル(小)(ShortFoilhead)
10996 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
10999 \begin_layout Standard
11002 横向きスライドタイトル(Rotatefoilhead)
11006 ShortRotatefoilhead)
11008 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11012 \begin_layout Standard
11013 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11017 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11021 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11024 \begin_layout Subsubsection
11028 \begin_layout Standard
11029 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11030 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11035 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11036 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11039 \begin_layout Subsubsection
11043 \begin_layout Standard
11044 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11045 他の箇条書き環境について詳しく知りたい場合には、
11049 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11050 \begin_inset CommandInset ref
11052 reference "sec:ブリット"
11060 の節も、読まれることが望ましいでしょう。
11063 \begin_layout Standard
11072 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11077 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11081 パッケージが導入済であることを要求します。
11084 \begin_layout Subsubsection
11088 \begin_layout Standard
11089 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11090 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11093 \begin_layout Subsubsection
11095 \begin_inset CommandInset label
11097 name "sec:foilfoot"
11104 \begin_layout Standard
11113 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by
11117 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11120 \begin_layout Standard
11133 (左上)を使って文字を入れることができます。
11136 \begin_layout Subsection
11142 \begin_inset CommandInset label
11144 name "sec:unsuppfoils"
11151 \begin_layout Standard
11163 \begin_layout Subsubsection
11167 \begin_layout Standard
11190 は、変更したい長さに付けられている名前で置き換え、
11194 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11200 のように文書比あるいはフォント基準の長さで指定する必要があります。
11203 \begin_layout Standard
11210 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11211 \begin_inset space \space{}
11214 inだけスライド本文に近づけるには、プリアンブルに
11220 foilheadskip}{-0.5in}
11225 \begin_layout Standard
11226 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11229 \begin_layout Labeling
11230 \labelwidthstring MMMMMMMMMMM
11240 \begin_layout Labeling
11241 \labelwidthstring MMMMMMMMMMM
11251 \begin_layout Labeling
11252 \labelwidthstring MMMMMMMMMMM
11262 \begin_layout Labeling
11263 \labelwidthstring MMMMMMMMMMM
11270 この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11276 に対する相対的な長さで調整するのが最も良いでしょう。
11279 \begin_layout Standard
11280 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11283 \begin_layout Labeling
11284 \labelwidthstring MMMMMMMMMMM
11294 \begin_layout Labeling
11295 \labelwidthstring MMMMMMMMMMM
11313 \begin_layout Labeling
11314 \labelwidthstring MMMMMMMMMMM
11328 \begin_layout Labeling
11329 \labelwidthstring MMMMMMMMMMM
11347 \begin_layout Labeling
11348 \labelwidthstring MMMMMMMMMMM
11366 \begin_layout Standard
11367 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11373 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11379 を使う必要がないことに注意してください。
11382 \begin_layout Subsubsection
11386 \begin_layout Standard
11403 で定義したロゴを特定のページに入れるかどうかを制御します。
11409 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11415 を置き、次のスライドタイトルの直後に直接
11424 \begin_layout Standard
11433 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11447 パッケージが提供するページレイアウトと
11451 クラスの提供するページレイアウトの間に衝突が発生するためです。
11454 \begin_layout Section
11455 Hollywood(Hollywoodスペック・スクリプト)
11458 \begin_layout Standard
11466 \begin_layout Subsection
11470 \begin_layout Standard
11471 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11472 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11474 \begin_inset space \space{}
11477 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11480 \begin_layout Subsection
11484 \begin_layout Standard
11489 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11493 名を再度書き、その後に(Cont'd)と加えます。
11496 \begin_layout Subsection
11500 \begin_layout Standard
11505 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11506 きに話者名を挿入するのにも使用することができます。
11509 \begin_layout Subsection
11513 \begin_layout Standard
11514 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11517 \begin_layout Subsection
11521 \begin_layout Standard
11522 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11525 \begin_layout Itemize
11529 \begin_inset Newline newline
11534 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11537 \begin_layout Itemize
11539 \begin_inset space \hfill{}
11547 \begin_inset Newline newline
11550 通常、この後には「Sallyは目を覚ますと」のように続きます。
11553 \begin_layout Itemize
11557 \begin_inset space \hfill{}
11561 \begin_inset Newline newline
11566 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11570 \begin_layout Itemize
11574 \begin_inset space \hfill{}
11578 \begin_inset Newline newline
11583 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11586 \begin_layout Itemize
11590 \begin_inset space \hfill{}
11594 \begin_inset Newline newline
11602 \begin_layout Itemize
11606 \begin_inset space \hfill{}
11610 \begin_inset Newline newline
11615 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11618 \begin_layout Itemize
11622 \begin_inset space \hfill{}
11626 \begin_inset Newline newline
11634 \begin_layout Itemize
11638 \begin_inset space \hfill{}
11642 \begin_inset Newline newline
11647 カメラの動きの指示。例:CUT TO:。
11650 \begin_layout Itemize
11654 \begin_inset space \hfill{}
11660 \begin_layout Itemize
11664 \begin_inset space \hfill{}
11670 \begin_layout Itemize
11674 \begin_inset space \hfill{}
11680 \begin_layout Itemize
11684 \begin_inset space \hfill{}
11690 \begin_layout Subsection
11694 \begin_layout Itemize
11698 \begin_layout Itemize
11702 \begin_layout Itemize
11707 \begin_layout Itemize
11712 \begin_layout Itemize
11713 PAN — camera movement
11716 \begin_layout Itemize
11717 INSERT — cut to close-up of
11720 \begin_layout Section
11724 \begin_layout Standard
11727 Panayotis Papasotiriou
11732 \begin_layout Subsection
11736 \begin_layout Standard
11739 International Journal of Modern Physics C
11741 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11743 International Journal of Modern Physics D
11745 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11753 です。これらのファイルは、著者のための指針とともに、
11754 \begin_inset Flex URL
11757 \begin_layout Plain Layout
11759 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11765 \begin_inset Flex URL
11768 \begin_layout Plain Layout
11770 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11775 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11776 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11779 \begin_layout Subsection
11783 \begin_layout Standard
11784 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11786 ファイル\SpecialChar \menuseparator
11797 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11801 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11804 \begin_layout Enumerate
11805 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11808 \begin_layout Enumerate
11809 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11811 ツール\SpecialChar \menuseparator
11826 をクリックすれば、設定することができます(この変更を固定するなら
11833 \begin_layout Enumerate
11834 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11837 \begin_layout Enumerate
11838 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11839 ートされていませんので、ご注意ください。
11842 \begin_layout Enumerate
11843 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11844 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11847 \begin_layout Enumerate
11848 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11849 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11850 \begin_inset space \space{}
11866 \begin_layout Enumerate
11867 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
11870 \begin_layout Enumerate
11879 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
11880 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
11881 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
11885 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
11888 \begin_layout Enumerate
11889 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
11893 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
11894 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
11900 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
11904 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
11909 ファイルに収め、このファイルをLyX文書に取り込んでください(
11911 挿入\SpecialChar \menuseparator
11912 ファイル\SpecialChar \menuseparator
11915 )。表フロートの作り方についての詳細は、各パッケージに含まれている
11926 \begin_layout Subsection
11930 \begin_layout Standard
11931 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
11933 ファイル\SpecialChar \menuseparator
11934 書き出し\SpecialChar \menuseparator
11941 \begin_layout Plain Layout
11942 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
11943 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
11952 ファイルに以下の変更を加える必要があります。
11955 \begin_layout Enumerate
11962 コマンドより前にあるコメント行を削除する。
11965 \begin_layout Enumerate
11966 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
11978 コマンドの間にあるものをすべて削除する。
11981 \begin_layout Standard
11986 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
11990 文書も確認された方がよろしいでしょう。
11993 \begin_layout Subsection
11997 \begin_layout Standard
11998 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12006 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12007 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12011 markboth{著者名}{論文の短縮タイトル}
12016 \begin_layout Section
12020 \begin_layout Standard
12028 \begin_layout Subsection
12032 \begin_layout Standard
12033 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12034 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12035 \begin_inset Flex URL
12038 \begin_layout Plain Layout
12040 ftp://ftp.iop.org/pub/journals/latex2e
12045 からiopartパッケージとともにダウンロード可能です。
12048 \begin_layout Subsection
12052 \begin_layout Standard
12053 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12057 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12058 な助言として、以下の点にご注意ください。
12061 \begin_layout Itemize
12062 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12070 関連オプションが有効になっていないことを確認してください!
12073 \begin_layout Itemize
12074 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12078 \begin_layout Itemize
12084 \begin_layout Itemize
12090 \begin_layout Itemize
12096 \begin_layout Itemize
12102 \begin_layout Itemize
12108 \begin_layout Itemize
12116 \begin_layout Itemize
12117 Preliminary communication用には
12122 \begin_layout Itemize
12123 Rapid communication用には
12128 \begin_layout Itemize
12135 \begin_layout Itemize
12140 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12143 \begin_layout Itemize
12144 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12148 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12151 \begin_layout Standard
12152 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12155 \begin_layout Section
12159 \begin_layout Standard
12162 Panayotis Papasotiriou
12167 \begin_layout Subsection
12171 \begin_layout Standard
12172 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12173 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12175 Astrophysics and Space Science
12181 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12182 \begin_inset Flex URL
12185 \begin_layout Plain Layout
12187 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12192 に全覧があります)。Kluwerパッケージは、
12193 \begin_inset Flex URL
12196 \begin_layout Plain Layout
12198 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12203 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12206 \begin_layout Standard
12207 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12209 \begin_inset CommandInset ref
12211 reference "subsec:kluwer_peculiarities"
12215 参照)。最近、私はLyXを使って書いた論文を
12217 Astrophysics and Space Science
12219 に投稿しましたが、何らの問題も発生しませんでした。
12222 \begin_layout Subsection
12226 \begin_layout Standard
12227 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12229 ファイル\SpecialChar \menuseparator
12236 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12241 を含む)正しい情報で上書きしてください。
12244 \begin_layout Subsection
12248 \begin_layout Standard
12249 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12252 \begin_layout Enumerate
12255 ファイル\SpecialChar \menuseparator
12256 書き出し\SpecialChar \menuseparator
12259 をクリックして、論文をLaTeXファイルに書き出す。
12262 \begin_layout Enumerate
12267 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12271 \begin_layout Enumerate
12278 コマンドより前にあるコメント行を削除する。
12281 \begin_layout Enumerate
12282 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12294 の間にあるものを、これらのコマンドも含め、すべて削除する。
12297 \begin_layout Standard
12306 \begin_layout Enumerate
12311 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12314 \begin_layout Enumerate
12323 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12326 \begin_layout Subsection
12327 Kluwerパッケージの「風変わり」な特徴
12328 \begin_inset CommandInset label
12330 name "subsec:kluwer_peculiarities"
12337 \begin_layout Standard
12338 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12341 \begin_layout Enumerate
12342 複数の論文を1つのLaTeXファイルへ入れることができます
12346 \begin_layout Plain Layout
12347 わざわざこんなことをする必要はないでしょう。
12352 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12364 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12376 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12379 \begin_layout Enumerate
12380 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12381 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12396 \begin_layout Enumerate
12397 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12420 \begin_layout Standard
12425 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12429 \begin_layout Enumerate
12430 ひな型にあるTeXコードを削除しないでください。
12433 \begin_layout Enumerate
12434 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12437 \begin_layout Section
12441 \begin_layout Standard
12449 \begin_layout Subsection
12453 \begin_layout Standard
12456 article (koma-script)
12460 report (koma-script)
12478 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12494 に対応しています。これらは、標準文書クラス
12510 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12513 \begin_layout Itemize
12516 article (koma-script)
12520 report (koma-script)
12528 letter (koma-script)
12533 \begin_layout Itemize
12534 見出しや箇条書き(記述)環境のラベル、および
12536 letter (koma-script)
12538 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12542 \begin_layout Plain Layout
12543 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12544 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12557 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12558 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12561 文書\SpecialChar \menuseparator
12568 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12575 \begin_layout Itemize
12576 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12584 オプションを使う方法です(LyXでは、
12586 文書\SpecialChar \menuseparator
12593 フィールドで指定します)。これらのオプションは
12595 文書\SpecialChar \menuseparator
12598 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12606 \begin_layout Itemize
12607 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12611 \begin_layout Standard
12612 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12620 \begin_layout Plain Layout
12630 。以下の各節では、LyXに関係する側面のみ説明致します。
12633 \begin_layout Subsection
12634 article (koma-script)・report (koma-script)・book (koma-script)
12637 \begin_layout Standard
12640 article (koma-script)
12644 report (koma-script)
12666 によって実装されています。これらは、対応する標準文書クラス
12678 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12682 環境は例外であり、同じ機能を持つ新しい
12690 環境以外にも、新しい段落環境が多く追加されています。これらは、
12692 letter (koma-script)
12694 には含まれていないのでご注意ください。
12697 \begin_layout Itemize
12722 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12732 article (koma-script)
12737 \begin_layout Itemize
12754 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12760 article (koma-script)
12766 \begin_layout Plain Layout
12773 report (koma-script)
12785 と同一なので、LyXでは実装されていません。
12793 \begin_layout Itemize
12798 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12801 \begin_layout Itemize
12810 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12811 ねに表の上に置くべきでしょう)。また、クラスオプション
12815 を用いれば、キャプションを指定すると、表には
12823 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12826 \begin_layout Itemize
12831 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12833 挿入\SpecialChar \menuseparator
12836 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12842 article (koma-script)
12847 \begin_layout Standard
12860 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
12864 \begin_layout Plain Layout
12871 コマンドよりも前に現れなくてはなりません。
12876 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
12888 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
12891 \begin_layout Itemize
12908 )の上に、文書の主題用の中央揃えの段落を生成します。
12911 \begin_layout Itemize
12928 )の下に、出版社名用の中央揃えの段落を生成します。
12931 \begin_layout Itemize
12938 report (koma-script)
12944 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
12946 article (koma-script)
12960 )の下に献辞用の中央揃えの段落を生成します。
12963 \begin_layout Itemize
12980 )の上に、文書頭書き用の左揃えの段落を生成します。
12983 \begin_layout Itemize
12990 report (koma-script)
12996 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
12998 article (koma-script)
13003 \begin_layout Itemize
13010 report (koma-script)
13016 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13018 article (koma-script)
13023 \begin_layout Itemize
13028 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13031 \begin_layout Standard
13034 article (koma-script)
13038 report (koma-script)
13048 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13052 を、個人用レイアウトディレクトリにコピーして編集してください!
13055 \begin_layout Subsection
13056 letter (koma-script)
13059 \begin_layout Standard
13063 letter (koma-script)
13069 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13073 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13089 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13105 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13108 \begin_layout Standard
13109 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13113 \begin_layout Plain Layout
13114 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13118 \begin_layout LyX-Code
13128 \begin_layout LyX-Code
13144 \begin_layout LyX-Code
13154 \begin_layout LyX-Code
13170 \begin_layout LyX-Code
13178 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13182 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13185 \begin_layout Standard
13194 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13202 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13206 環境は、同じ受取人への書簡を新しく書き出すものであり、
13210 環境は、新しい受取人を生成するものです。
13226 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13229 \begin_layout Itemize
13234 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13237 \begin_layout Itemize
13242 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13245 \begin_layout Itemize
13253 \begin_layout Itemize
13261 \begin_layout Itemize
13269 \begin_layout Itemize
13277 \begin_layout Standard
13318 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13322 \begin_layout Plain Layout
13331 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13332 一文字をマークした通常の段落環境として実装しました。さらに、
13340 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13352 \begin_layout Standard
13353 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13358 環境で入力した署名は、標準的な挙動では、同じ書簡に
13362 環境も使用されているときのみ、書簡の出力に現れます。
13366 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13369 \begin_layout Standard
13370 入力環境は、空の段落として使うことができます。これは、たとえば
13378 環境を全く使用しない場合は、標準的な挙動では、
13382 環境の値が署名として使用されますが、空の
13386 環境を作成しておくと、署名の値は無定義となりません。
13389 \begin_layout Standard
13390 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13393 \begin_layout Itemize
13398 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13401 \begin_layout Itemize
13421 \begin_layout Itemize
13426 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13429 \begin_layout Itemize
13434 :送り主の電話番号。標準的な挙動では、LaTeX変数
13443 \begin_layout Itemize
13451 \begin_layout Itemize
13464 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13472 の値如何に関わらず、場所も日付も表示されません。
13476 環境を使用しない場合には、書簡を出力した日付が使用されます。
13479 \begin_layout Itemize
13484 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13487 \begin_layout Itemize
13492 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13495 \begin_layout Itemize
13500 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13503 \begin_layout Itemize
13508 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13511 \begin_layout Itemize
13523 \begin_layout Standard
13526 Yourref・Yourmail・Myref・顧客・インボイス
13532 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13533 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13537 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13541 の値は書簡には表示されなくなり、LaTeX変数
13547 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13555 \begin_layout Itemize
13563 \begin_layout Itemize
13571 \begin_layout Itemize
13579 \begin_layout Itemize
13587 \begin_layout Itemize
13595 \begin_layout Subsection
13596 新しいletterクラス:letter (koma-script v.2)
13599 \begin_layout Standard
13603 \begin_inset VSpace medskip
13609 \begin_layout Standard
13611 Koma-Script第2.8版では、新しいletterクラス
13619 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13620 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13623 \begin_layout Standard
13626 letter (koma-script)
13628 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13648 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13666 挿入\SpecialChar \menuseparator
13673 を入れることができるようになった点です。
13676 \begin_layout Standard
13677 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13678 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13686 \begin_layout Plain Layout
13691 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13705 文書\SpecialChar \menuseparator
13706 設定\SpecialChar \menuseparator
13707 文書クラス\SpecialChar \menuseparator
13714 を加えることで読み込むことができます。
13719 。用例としては、LyXに収録されているひな型
13723 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13730 \begin_layout Subsection
13734 \begin_layout Standard
13735 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13738 \begin_layout Itemize
13743 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13747 ラベル型に対するLyXの内部処理が原因です。
13750 \begin_layout Itemize
13759 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13766 \begin_layout Itemize
13771 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13774 文書\SpecialChar \menuseparator
13777 ダイアログでは、対応するラジオボタンは
13785 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13788 \begin_layout Section
13792 \begin_layout Standard
13800 \begin_layout Subsection
13804 \begin_layout Standard
13805 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13806 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13810 \begin_layout Standard
13811 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13812 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13813 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13817 \begin_layout Plain Layout
13819 \begin_inset Flex URL
13822 \begin_layout Plain Layout
13824 lyx-devel@lists.lyx.org
13834 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13839 \begin_layout Plain Layout
13841 \begin_inset CommandInset ref
13843 reference "sec:LaTeXコードを挿入する"
13852 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13853 ついては、Memoirクラスの詳しい取扱説明書
13857 \begin_layout Plain Layout
13859 \begin_inset Flex URL
13862 \begin_layout Plain Layout
13864 CTAN:/macros/latex/memoir/memman.pdf
13874 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
13878 \begin_layout Subsection
13882 \begin_layout Standard
13883 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
13886 \begin_layout Description
13887 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
13890 \begin_layout Description
13891 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
13892 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
13894 文書\SpecialChar \menuseparator
13895 設定\SpecialChar \menuseparator
13898 参照)。これらを章題ページに使用したい場合には、コマンド
13904 を、本文またはプリアンブルに記述する必要があります(例えば、
13908 chapterstyle{companion}
13913 \begin_layout Description
13914 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
13915 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
13917 挿入\SpecialChar \menuseparator
13920 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
13921 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
13922 のものにヘッダ用短縮タイトルを入れてください。
13925 \begin_layout Description
13926 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
13927 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
13930 \begin_layout Description
13931 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
13932 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
13936 aliaspagestyle{title}{empty}
13941 \begin_layout Description
13948 文書\SpecialChar \menuseparator
13949 設定\SpecialChar \menuseparator
13952 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
13953 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
13956 \begin_layout Description
13957 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
13969 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
13974 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
13975 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
13978 \begin_layout Subsection
13982 \begin_layout Standard
13983 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
13987 \begin_layout Plain Layout
13988 \begin_inset Flex URL
13991 \begin_layout Plain Layout
13993 CTAN:/macros/latex/memoir/memman.pdf
14006 \begin_layout Description
14007 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14008 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14011 \begin_layout Description
14012 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14013 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14016 \begin_layout Description
14017 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14018 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14028 のように、(TeXモードで)波括弧を入れなくてはなりません。
14031 \begin_layout Description
14032 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14033 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14034 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14037 \begin_layout Description
14038 詩題*: 目次に現れない他は詩題と同じです。
14041 \begin_layout Section
14042 Article(mwart)・book(mwbk)・report(mwrep)
14043 \begin_inset Argument
14046 \begin_layout Plain Layout
14059 \begin_layout Standard
14067 \begin_layout Standard
14074 report (mwrep)・book
14104 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14107 \begin_layout Standard
14111 \begin_layout Itemize
14119 \begin_layout Itemize
14124 \begin_layout Description
14128 \begin_layout Description
14144 \begin_layout Description
14145 myuheadings 分離線付きカスタムヘッダ
14148 \begin_layout Description
14153 \begin_layout Itemize
14158 \begin_layout Description
14159 rmheadings セリフ体見出し --- 既定
14162 \begin_layout Description
14163 sfheadings サンセリフ体見出し
14166 \begin_layout Description
14167 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14170 \begin_layout Description
14171 titleauthor タイトルページは、タイトル・著者名の順で配置
14174 \begin_layout Description
14175 withmarginpar ページ上に余白のための場所を確保
14179 \begin_layout Section
14183 \begin_layout Standard
14196 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14199 \begin_layout Section
14203 \begin_layout Standard
14209 \begin_layout Standard
14210 \begin_inset VSpace bigskip
14216 \begin_layout Standard
14221 \begin_inset space ~
14226 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14227 \begin_inset Formula $\beta$
14233 \begin_layout Standard
14234 LyXには、RevTeX 3.1で動作する
14238 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14239 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14243 \begin_inset space ~
14248 テキストクラスの組で使用するのは、たいへん簡単です。
14251 \begin_layout Standard
14252 この取扱説明書は、RevTeX 4.0の説明書の
14256 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14260 \begin_layout Subsection
14264 \begin_layout Standard
14265 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14267 \begin_inset Flex URL
14270 \begin_layout Plain Layout
14272 http://publish.aps.org/revtex4/
14277 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14278 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14279 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14282 \begin_layout Standard
14287 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14290 \begin_inset space ~
14295 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14298 \begin_layout Subsection
14302 \begin_layout Standard
14309 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14311 文書\SpecialChar \menuseparator
14312 設定\SpecialChar \menuseparator
14319 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14322 \begin_layout Standard
14329 など他のプリアンブルは、他のクラス同様、
14331 文書\SpecialChar \menuseparator
14332 設定\SpecialChar \menuseparator
14338 \begin_layout Subsection
14342 \begin_layout Standard
14343 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14349 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14357 はまったく同じものなので、両方を使う必要はありません
14361 \begin_layout Plain Layout
14386 \begin_layout Subsection
14390 \begin_layout Standard
14391 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14394 \begin_layout Standard
14411 に来なくてはなりません。LyXでは、独立した
14419 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14422 \begin_layout Standard
14443 )レイアウトの間に置かなければなりません。
14451 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14454 \begin_layout Subsection
14458 \begin_layout Standard
14459 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14460 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14461 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14462 ならないということです。これらのレイアウトがないと、
14474 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14478 \begin_layout Plain Layout
14483 実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14491 \begin_layout Section
14497 \begin_layout Standard
14505 \begin_layout Subsection
14509 \begin_layout Standard
14510 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14511 \begin_inset Flex URL
14514 \begin_layout Plain Layout
14516 http://www.springer.de/author/tex/help-journals.html
14521 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14526 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14533 \begin_layout Standard
14534 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14549 \begin_layout Standard
14550 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14558 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14559 eXの場合は、必要に応じてroot権限で
14563 を実行します)、LyXを再初期設定すれば、動作するはずです。
14566 \begin_layout Subsection
14570 \begin_layout Standard
14579 ・\SpecialChar \ldots{}
14587 \begin_layout Standard
14598 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14601 。詳しくは Springerのクラスファイルの説明書を読んでください。
14604 \begin_layout Subsection
14608 \begin_layout Itemize
14620 \begin_layout Itemize
14623 Probability Theory and Related Fields
14629 --- Jean-Marc Lasgouttes
14632 \begin_layout Standard
14633 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14636 \begin_layout Subsection
14640 \begin_layout Standard
14649 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14650 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14653 \begin_layout Subsection
14657 \begin_layout Standard
14662 よりは少なくなっているとは思いますが。
14665 \begin_layout Standard
14666 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14669 \begin_layout Section
14678 \begin_layout Plain Layout
14679 (訳註)この節の内容は、全般的に古くなっています。
14685 \begin_inset CommandInset label
14694 \begin_layout Standard
14702 \begin_layout Subsection
14706 \begin_layout Standard
14707 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14711 スライドクラスの2つがあります。本節は前者について説明を行います。
14714 \begin_layout Standard
14715 誤解のないように、正しく明確に、もう一度言っておきます。
14718 \begin_layout Standard
14719 \begin_inset VSpace bigskip
14725 \begin_layout Standard
14730 \begin_inset Quotes eld
14735 transparencies (slides)
14738 \begin_inset Quotes erd
14748 \begin_layout Standard
14749 \begin_inset VSpace bigskip
14755 \begin_layout Standard
14761 \begin_inset CommandInset ref
14763 reference "sec:foiltex"
14783 \begin_layout Plain Layout
14784 \SpecialChar \ldots{}
14789 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14797 \begin_layout Standard
14798 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14802 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14806 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14811 ならばできることもあります。詳しくは以下をお読みください。
14814 \begin_layout Subsection
14816 \begin_inset CommandInset label
14818 name "sec:slidesetup"
14825 \begin_layout Standard
14826 当然ながら、この文書クラスを使用するには、
14828 文書\SpecialChar \menuseparator
14833 transparencies (slides)
14835 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14838 \begin_layout Itemize
14847 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14851 クラスではサポートされていないので、効果がありません。
14854 \begin_layout Itemize
14859 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
14863 \begin_layout Description
14864 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
14867 \begin_layout Description
14872 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
14875 \begin_layout Description
14876 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
14880 \begin_layout Itemize
14889 というオプションがあります。これを使用するには、
14901 \begin_layout Standard
14906 にタイムマーカーを加えることができます。詳細は、第
14907 \begin_inset CommandInset ref
14909 reference "sec:slideNote"
14917 \begin_layout Standard
14922 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
14926 」を使用することもできます(新規ファイルを開く際に
14928 ファイル\SpecialChar \menuseparator
14931 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
14934 \begin_layout Subsection
14938 \begin_layout Subsubsection
14944 \begin_layout Standard
14949 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
14957 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
14958 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
14961 \begin_layout Standard
14962 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
14967 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
14970 \begin_layout Itemize
14976 \begin_layout Itemize
14982 \begin_layout Itemize
14988 \begin_layout Itemize
14994 \begin_layout Itemize
15000 \begin_layout Itemize
15006 \begin_layout Itemize
15012 \begin_layout Itemize
15018 \begin_layout Itemize
15024 \begin_layout Itemize
15030 \begin_layout Itemize
15036 \begin_layout Standard
15037 これ以外の標準的な環境、例えば節見出し用の環境などは
15044 \begin_layout Standard
15048 \begin_layout Itemize
15054 \begin_layout Itemize
15060 \begin_layout Itemize
15066 \begin_layout Itemize
15072 \begin_layout Itemize
15078 \begin_layout Standard
15079 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15080 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15084 \begin_layout Subsubsection
15086 \begin_inset CommandInset label
15095 \begin_layout Standard
15096 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15105 』で述べられているような段落環境ではなくなっています。
15108 \begin_layout Standard
15121 は「疑似環境」だとお考えください。これらは節見出しや「
15125 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15133 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15136 \begin_layout Standard
15157 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15177 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15180 \begin_layout Standard
15189 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15197 \begin_layout Standard
15198 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15199 きません。そこで以下のようにしてください。
15202 \begin_layout Itemize
15230 \begin_layout Itemize
15234 \begin_layout Itemize
15242 \begin_layout Itemize
15266 \begin_layout Standard
15267 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15272 \begin_layout Plain Layout
15273 (訳註)ここの記述は古くなっています。
15281 \begin_layout Subsection
15295 \begin_layout Subsubsection
15303 \begin_layout Standard
15304 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15309 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15312 \begin_layout Standard
15318 \begin_inset CommandInset ref
15320 reference "sec:スライドの癖"
15324 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15325 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15328 \begin_layout Standard
15329 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15333 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15334 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15342 \begin_layout Standard
15355 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15363 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15366 \begin_layout Standard
15379 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15387 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15390 \begin_layout Subsubsection
15396 \begin_layout Standard
15401 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15405 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15409 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15410 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15417 \begin_layout Standard
15434 \begin_layout Plain Layout
15435 想像できるように、複数のオーバーレイがあれば、「
15447 」などが親スライドのページ番号に付け加えられます。
15460 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15468 の「一部」であると考えるのがよいでしょう。LyXでは、
15476 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15484 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15487 \begin_layout Standard
15488 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15489 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15490 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15501 \begin_layout Standard
15510 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15511 \begin_inset CommandInset ref
15513 reference "sec:スライドの癖"
15525 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15533 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15536 \begin_layout Standard
15541 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15557 は自動的に終了されることに注意してください。したがって、
15568 \begin_layout Standard
15585 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15588 \begin_layout Enumerate
15593 かに関わらず、スライド上に現れるすべてを含んだ
15600 \begin_layout Enumerate
15605 のみに表示するすべての図や段落の前に、
15620 \begin_layout Enumerate
15632 \begin_layout Enumerate
15644 \begin_layout Enumerate
15668 \begin_layout Standard
15676 \begin_layout Standard
15681 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15682 実現するためには、LaTeXコードを埋め込む必要があります
15686 \begin_layout Plain Layout
15690 \begin_layout Itemize
15695 invisible \SpecialChar \ldots{}
15699 \begin_layout Itemize
15704 visible \SpecialChar \ldots{}
15708 \begin_layout Plain Layout
15709 \SpecialChar \ldots{}
15710 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15722 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15734 \begin_layout Subsubsection
15740 \begin_inset CommandInset label
15749 \begin_layout Standard
15762 に関連付けられています。ここでもLyX
15774 よりも短く(オーバーレイのラベルよりも長いですが)、
15778 のラベルと同様、派手な赤紫色です。加えて、印刷した
15794 3」等を付けたページ番号が付けられます。1つの
15810 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15813 \begin_layout Standard
15822 に関して付け加えたいことを書き留めておくことです。特定の
15826 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15834 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15837 \begin_layout Standard
15838 タイムマーカを使用するには、クラスオプション「
15843 \begin_inset CommandInset ref
15845 reference "sec:slidesetup-1"
15849 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15853 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
15865 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
15871 」は、タイムマーカを特定の時間に設定し、「
15877 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
15885 にどれだけの時間をかけるのか忘れないでいられます。
15888 \begin_layout Standard
15889 最後に、説明しておくべき機能がもう一つあります。当然ながら、
15901 はすべて普通の紙に印刷したいはずです。しかしながら、
15909 。ユーザーはどうしたら良いのでしょうか。
15912 \begin_layout Standard
15913 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
15929 のみが含まれるようにするものです。同様に、「
15941 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
15942 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
15951 のコメントを外して、現ファイル名に「*
15955 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
15967 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
15970 \begin_layout Standard
15983 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
15986 \begin_layout Subsection
15994 \begin_layout Standard
16003 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16005 ファイル\SpecialChar \menuseparator
16008 メニューを選択してください。すると新規ファイルには、
16036 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16039 \begin_layout LyX-Code
16040 % Uncomment to print out only slides and overlays
16043 \begin_layout LyX-Code
16047 \begin_layout LyX-Code
16053 \begin_inset Newline newline
16059 \begin_layout LyX-Code
16060 % Uncomment to print out only notes
16063 \begin_layout LyX-Code
16067 \begin_layout LyX-Code
16075 \begin_layout Standard
16076 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16080 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16081 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16086 \begin_inset CommandInset ref
16088 reference "sec:foiltex"
16096 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16100 \begin_layout Chapter
16101 ソフトウェアを追加する必要がある LyX機能
16104 \begin_layout Section
16108 \begin_layout Standard
16116 \begin_layout Subsection
16120 \begin_layout Standard
16129 \begin_layout Plain Layout
16130 LaTeX頒布版としてMiKTeXを使用している場合には、
16152 \begin_inset CommandInset href
16154 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16161 \begin_layout Standard
16166 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16167 \begin_inset Flex Noun
16170 \begin_layout Plain Layout
16177 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16185 \begin_layout Standard
16186 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16194 をチェックするだけでなく、打ち間違いによる
16210 は、以下のような誤りを検出することができます。
16213 \begin_layout Itemize
16215 \begin_inset Newline newline
16218 ...ではなく\SpecialChar \ldots{}
16222 \begin_layout Itemize
16224 \begin_inset Newline newline
16227 ( wrong spacing ):誤った空白
16230 \begin_layout Itemize
16231 よく使われる省略形の後ろは通常スペースにする:
16232 \begin_inset Newline newline
16236 \begin_inset space \thinspace{}
16240 \begin_inset space \space{}
16243 is too wide spacing.:広すぎる空白
16246 \begin_layout Itemize
16247 直前の文章が大文字で終わっているときに、文末スペースに直す:
16248 \begin_inset Newline newline
16252 And this is wrong spacing.:誤った空白
16255 \begin_layout Itemize
16257 \begin_inset Newline newline
16260 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。
16261 \begin_inset CommandInset label
16271 \begin_layout Plain Layout
16272 この脚注は、正しくないページに行ってしまう恐れがあります。
16280 \begin_layout Itemize
16281 参照の前にハードスペースではなくスペース:
16282 \begin_inset Newline newline
16285 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16286 \begin_inset CommandInset ref
16288 reference "sec:chktex"
16295 \begin_layout Itemize
16297 \begin_inset Formula $\times$
16301 \begin_inset Newline newline
16305 \begin_inset Formula $2\times2$
16311 \begin_layout Standard
16312 などなど\SpecialChar \ldots{}
16317 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16320 \begin_layout Subsection
16324 \begin_layout Standard
16325 このプログラムを導入したならば、使うのは
16327 ツール\SpecialChar \menuseparator
16330 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16334 を起動し、当該ファイルを検査しますが、
16338 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16340 移動\SpecialChar \menuseparator
16351 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16367 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16371 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16375 \begin_layout Standard
16376 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16377 警告のほとんどは実際には警告に値しません。
16380 \begin_layout Subsection
16384 \begin_layout Standard
16389 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16393 を無効にするか、あなたにもう少し合うように
16400 \begin_layout Standard
16405 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16409 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16417 \begin_layout Plain Layout
16428 文書\SpecialChar \menuseparator
16436 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16437 に対処するためには、以下の2つの方法があります。
16440 \begin_layout Itemize
16457 起動コマンドラインを調整するか、グローバルな
16462 \begin_inset Flex Code
16465 \begin_layout Plain Layout
16471 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16474 \begin_layout Itemize
16477 ファイル\SpecialChar \menuseparator
16478 書き出し\SpecialChar \menuseparator
16481 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16485 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16488 \begin_layout Standard
16493 で有効化・無効化できる警告メッセージです。警告を無効にするには
16501 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16503 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16508 \begin_layout Standard
16513 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16516 \begin_layout Enumerate
16520 Command terminated with space.
16523 \begin_layout Enumerate
16526 Non-breaking space (
16527 \begin_inset Quotes eld
16535 \begin_inset Quotes erd
16538 ) should have been used.
16541 \begin_layout Enumerate
16545 You should enclose the previous parenthesis with
16546 \begin_inset Quotes eld
16554 \begin_inset Quotes erd
16560 \begin_layout Enumerate
16563 Italic correction (
16564 \begin_inset Quotes eld
16574 \begin_inset Quotes erd
16577 ) found in non-italic buffer.
16580 \begin_layout Enumerate
16583 Italic correction (
16584 \begin_inset Quotes eld
16594 \begin_inset Quotes erd
16597 ) found more than once.
16600 \begin_layout Enumerate
16604 No italic correction (
16605 \begin_inset Quotes eld
16615 \begin_inset Quotes erd
16621 \begin_layout Enumerate
16625 \begin_inset Quotes eld
16633 \begin_inset Quotes erd
16637 \begin_inset Quotes eld
16645 \begin_inset Quotes erd
16651 \begin_layout Enumerate
16654 Wrong length of dash may have been used.
16657 \begin_layout Enumerate
16661 \begin_inset Quotes eld
16669 \begin_inset Quotes erd
16673 \begin_inset Quotes eld
16681 \begin_inset Quotes erd
16687 \begin_layout Enumerate
16691 \begin_inset Quotes eld
16699 \begin_inset Quotes erd
16705 \begin_layout Enumerate
16709 \begin_inset Quotes eld
16717 \begin_inset Quotes erd
16720 to achieve an ellipsis.
16723 \begin_layout Enumerate
16726 Inter-word spacing (
16727 \begin_inset Quotes eld
16737 \begin_inset Quotes eld
16740 ) should perhaps be used.
16743 \begin_layout Enumerate
16746 Inter-sentence spacing (
16747 \begin_inset Quotes eld
16757 \begin_inset Quotes erd
16760 ) should perhaps be used.
16763 \begin_layout Enumerate
16766 Could not find argument for command.
16769 \begin_layout Enumerate
16773 \begin_inset Quotes eld
16781 \begin_inset Quotes erd
16787 \begin_layout Enumerate
16790 Math mode still on at end of LaTeX file.
16793 \begin_layout Enumerate
16797 \begin_inset Quotes eld
16805 \begin_inset Quotes erd
16808 doesn't match the number of
16809 \begin_inset Quotes eld
16817 \begin_inset Quotes erd
16823 \begin_layout Enumerate
16826 You should use either
16829 \begin_inset Quotes eld
16837 \begin_inset Quotes erd
16842 as an alternative to
16843 \begin_inset Quotes eld
16851 \begin_inset Quotes erd
16857 \begin_layout Enumerate
16864 " (ASCII 39) instead of "" (ASCII 180).
16867 \begin_layout Enumerate
16870 User-specified pattern found.
16873 \begin_layout Enumerate
16876 This command might not be intended.
16879 \begin_layout Enumerate
16886 \begin_layout Enumerate
16904 \begin_layout Enumerate
16907 Delete this space to maintain correct page references.
16910 \begin_layout Enumerate
16914 You might wish to put this between a pair of
16915 \begin_inset Quotes eld
16923 \begin_inset Quotes erd
16929 \begin_layout Enumerate
16932 You ought to remove spaces in front of punctuation.
16935 \begin_layout Enumerate
16938 Could not execute LaTeX command.
16941 \begin_layout Enumerate
16950 in front of small punctuation.
16953 \begin_layout Enumerate
16961 may look prettier here.
16964 \begin_layout Enumerate
16968 Multiple spaces detected in output.
16971 \begin_layout Enumerate
16974 This text may be ignored.
16977 \begin_layout Enumerate
16983 \begin_inset Quotes eld
16988 to begin quotation, not
16995 \begin_layout Enumerate
17002 to end quotation, not
17005 \begin_inset Quotes eld
17013 \begin_layout Enumerate
17019 \begin_layout Enumerate
17022 You should perhaps use
17023 \begin_inset Quotes eld
17031 \begin_inset Quotes erd
17037 \begin_layout Enumerate
17040 You should put a space in front of/after parenthesis.
17043 \begin_layout Enumerate
17046 You should avoid spaces in front of/after parenthesis.
17049 \begin_layout Enumerate
17053 You should not use punctuation in front of/after quotes.
17056 \begin_layout Enumerate
17059 Double space found.
17062 \begin_layout Enumerate
17065 You should put punctuation outside inner/inside display math mode.
17068 \begin_layout Enumerate
17071 You ought to not use primitive TeX in LaTeX code.
17074 \begin_layout Enumerate
17077 You should remove spaces in front of
17078 \begin_inset Quotes eld
17086 \begin_inset Quotes erd
17092 \begin_layout Enumerate
17095 \begin_inset Quotes eld
17103 \begin_inset Quotes erd
17106 is normally not followed by
17107 \begin_inset Quotes eld
17115 \begin_inset Quotes erd
17121 \begin_layout Standard
17122 LyXの将来の版では、このツール(およびその縮小版
17126 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17127 書に使用してみていただければ、きっと驚かれることでしょう。
17130 \begin_layout Section
17134 \begin_layout Standard
17137 Lars Bullik Bjønnes
17146 \begin_layout Subsection
17150 \begin_layout Standard
17151 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17152 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17153 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17157 \begin_layout Standard
17158 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17159 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17163 \begin_layout Plain Layout
17164 \begin_inset CommandInset href
17166 target "http://svnbook.red-bean.com/"
17175 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17179 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17183 で終わるファイルです)の概念に注意を払ってください。
17186 \begin_layout Standard
17187 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17188 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17191 \begin_layout Standard
17192 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17195 \begin_layout Subsection
17199 \begin_layout Standard
17200 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17202 ファイル\SpecialChar \menuseparator
17205 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17208 \begin_layout Subsubsection
17214 \begin_layout Standard
17215 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17222 \begin_layout Standard
17223 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17224 書は読み込み専用モードになるので、変更を加えるためには
17228 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17231 \begin_layout Standard
17234 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17237 \begin_layout Standard
17245 \begin_layout Subsubsection
17251 \begin_layout Standard
17252 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17253 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17256 \begin_layout Standard
17259 ci -q -u -m"<説明文>" <ファイル名>
17262 \begin_layout Subsubsection
17268 \begin_layout Standard
17269 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17270 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17273 \begin_layout Standard
17279 \begin_layout Subsubsection
17285 \begin_layout Standard
17286 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17289 \begin_layout Standard
17292 co -f -u<バージョン> <ファイル名>
17295 \begin_layout Subsubsection
17301 \begin_layout Standard
17302 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17306 \begin_layout Standard
17309 rcs -o<バージョン> <ファイル名>
17312 \begin_layout Subsubsection
17318 \begin_layout Standard
17319 RCS文書の完全な履歴を表示します。ブラウザ中に、
17330 \begin_layout Subsubsection
17334 \begin_layout Standard
17335 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17336 \begin_inset CommandInset ref
17338 reference "sub:VCS改訂情報"
17345 \begin_layout Subsection
17349 \begin_layout Standard
17350 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17352 ファイル\SpecialChar \menuseparator
17355 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17358 \begin_layout Subsubsection
17362 \begin_layout Standard
17363 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17364 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17367 \begin_layout Standard
17368 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17369 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17370 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17371 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17372 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17373 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17374 \begin_inset Flex Code
17377 \begin_layout Plain Layout
17384 \begin_inset Flex Code
17387 \begin_layout Plain Layout
17393 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17394 コピーを書き込み可能にしているとは限りません。
17397 \begin_layout Standard
17398 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17399 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17400 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17402 \begin_inset Flex MenuItem
17405 \begin_layout Plain Layout
17411 メニューを使用しなくてはなりません。その後、
17412 \begin_inset Flex MenuItem
17415 \begin_layout Plain Layout
17421 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17424 \begin_layout Standard
17426 \begin_inset Flex URL
17429 \begin_layout Plain Layout
17431 http://www.nongnu.org/cvs
17437 \begin_inset Flex URL
17440 \begin_layout Plain Layout
17442 http://ximbiot.com/cvs
17450 \begin_layout Standard
17451 以下に言及するサブコマンドとスイッチを理解するには、
17458 \begin_layout Subsubsection
17462 \begin_layout Standard
17463 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17470 \begin_layout Standard
17471 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17478 \begin_inset Flex Code
17481 \begin_layout Plain Layout
17487 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17488 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17491 \begin_layout Standard
17492 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17495 \begin_layout Standard
17498 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17503 \begin_layout Standard
17504 上記および他のすべてのCVSコマンドにおける
17508 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17511 \begin_layout Subsubsection
17515 \begin_layout Standard
17516 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17517 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17518 \begin_inset Flex MenuItem
17521 \begin_layout Plain Layout
17530 \begin_layout Labeling
17531 \labelwidthstring 00.00.0000
17533 \begin_inset space ~
17537 \begin_inset Newline newline
17541 \begin_inset Flex Code
17544 \begin_layout Plain Layout
17545 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17551 \begin_inset Newline newline
17555 \begin_inset Flex Code
17558 \begin_layout Plain Layout
17559 cvs -q unedit "<ファイル名>"
17567 \begin_layout Subsubsection
17571 \begin_layout Standard
17572 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17575 \begin_layout Standard
17578 cvs -q update "<ファイル名>"
17581 \begin_layout Standard
17582 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17585 \begin_layout Standard
17588 cvs -q edit "<ファイル名>"
17591 \begin_layout Subsubsection
17595 \begin_layout Standard
17596 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17600 \begin_layout Standard
17603 cvs -q update "<ファイル名>"
17606 \begin_layout Standard
17607 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17610 \begin_layout Standard
17613 cvs -q unedit "<ファイル名>"
17616 \begin_layout Subsubsection
17617 ローカルディレクトリチェックアウトのレポジトリからの更新
17620 \begin_layout Standard
17622 \begin_inset Flex Code
17625 \begin_layout Plain Layout
17631 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17632 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17633 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17637 \begin_layout Standard
17639 \begin_inset Flex Code
17642 \begin_layout Plain Layout
17648 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17649 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17650 \begin_inset Flex Code
17653 \begin_layout Plain Layout
17660 \begin_inset Flex Code
17663 \begin_layout Plain Layout
17670 \begin_inset Flex Code
17673 \begin_layout Plain Layout
17679 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17680 \begin_inset Flex Code
17683 \begin_layout Plain Layout
17689 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17692 \begin_layout Labeling
17693 \labelwidthstring 00.00.0000
17695 \begin_inset space ~
17699 \begin_inset Newline newline
17703 \begin_inset Flex Code
17706 \begin_layout Plain Layout
17707 cd $path; cvs diff "."
17713 \begin_inset Newline newline
17717 \begin_inset Flex Code
17720 \begin_layout Plain Layout
17721 cd $path; cvs -q update "."
17729 \begin_layout Standard
17731 \begin_inset Flex Code
17734 \begin_layout Plain Layout
17743 \begin_layout Subsubsection
17747 \begin_layout Standard
17748 これは、CVS文書の全履歴を表示します。
17749 \begin_inset Flex Code
17752 \begin_layout Plain Layout
17754 \begin_inset Quotes eld
17758 \begin_inset Quotes erd
17769 \begin_layout Subsection
17773 \begin_layout Standard
17774 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17775 \begin_inset Flex MenuItem
17778 \begin_layout Plain Layout
17779 ファイル\SpecialChar \menuseparator
17785 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17786 1.5および1.6に対して試験されています
17790 \begin_layout Plain Layout
17791 ほとんどのコマンドは、1.4でも動作します。第
17792 \begin_inset CommandInset ref
17794 reference "sub:レポジトリからSVN同期"
17806 \begin_layout Subsubsection
17810 \begin_layout Standard
17811 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17818 \begin_layout Standard
17819 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17824 \begin_inset Flex Code
17827 \begin_layout Plain Layout
17833 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
17836 \begin_layout Standard
17837 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
17840 \begin_layout Standard
17842 \begin_inset Flex Code
17845 \begin_layout Plain Layout
17847 \begin_inset Quotes eld
17851 \begin_inset Quotes erd
17862 \begin_layout Standard
17864 \begin_inset Flex Code
17867 \begin_layout Plain Layout
17876 \begin_layout Subsubsection
17880 \begin_layout Standard
17881 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
17884 \begin_layout Standard
17889 \begin_layout Plain Layout
17890 ロックが有効になっていない場合です。第
17891 \begin_inset CommandInset ref
17893 reference "sub:SVNファイルロック"
17903 \begin_inset Flex Code
17906 \begin_layout Plain Layout
17908 \begin_inset Quotes erd
17912 \begin_inset Quotes erd
17916 \begin_inset Quotes eld
17920 \begin_inset Quotes erd
17931 \begin_layout Subsubsection
17935 \begin_layout Standard
17936 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
17940 \begin_layout Standard
17945 \begin_layout Plain Layout
17952 \begin_inset Flex Code
17955 \begin_layout Plain Layout
17956 svn update --non-interactive
17957 \begin_inset Quotes eld
17961 \begin_inset Quotes erd
17972 \begin_layout Subsubsection
17976 \begin_layout Standard
17977 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
17980 \begin_layout Standard
17982 \begin_inset Flex Code
17985 \begin_layout Plain Layout
17987 \begin_inset Quotes eld
17991 \begin_inset Quotes erd
18002 \begin_layout Subsubsection
18003 \begin_inset CommandInset label
18005 name "sub:レポジトリからSVN同期"
18009 レポジトリを使ったローカルディレクトリの同期
18013 \begin_layout Plain Layout
18015 \begin_inset Formula $\geqq1.5$
18018 でのみ動作することに注意してください。
18026 \begin_layout Standard
18027 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18028 \begin_inset Flex Code
18031 \begin_layout Plain Layout
18037 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18041 \begin_layout Plain Layout
18042 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18047 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18051 \begin_layout Standard
18052 \begin_inset Flex Code
18055 \begin_layout Plain Layout
18061 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18062 場合には、更新が開始される前にユーザに警告が与えられます。
18065 \begin_layout Labeling
18066 \labelwidthstring 00.00.0000
18068 \begin_inset space ~
18072 \begin_inset Newline newline
18076 \begin_inset Flex Code
18079 \begin_layout Plain Layout
18080 svn diff $path(変更が発見された場合には通知します)
18081 \begin_inset Newline newline
18084 svn update --accept mine-full $path
18092 \begin_layout Standard
18094 \begin_inset Flex Code
18097 \begin_layout Plain Layout
18106 \begin_layout Subsubsection
18110 \begin_layout Standard
18111 これは、SVN文書の全履歴を表示します。
18112 \begin_inset Flex Code
18115 \begin_layout Plain Layout
18117 \begin_inset Quotes eld
18121 \begin_inset Quotes erd
18132 \begin_layout Subsubsection
18134 \begin_inset CommandInset label
18136 name "sub:SVNファイルロック"
18143 \begin_layout Standard
18144 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18145 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18146 するための、何らかのロック機構を導入することが考えられます。
18149 \begin_layout Standard
18150 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18151 \begin_inset Flex Code
18154 \begin_layout Plain Layout
18160 svnファイル特性に依拠した書き込み権限の自動設定(第
18161 \begin_inset CommandInset ref
18163 reference "sub:自動ロック特性"
18171 \begin_layout Plain Layout
18172 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18177 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18178 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18181 \begin_layout Itemize
18182 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18186 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18189 \begin_layout Itemize
18190 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18194 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18198 \begin_layout Plain Layout
18199 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18204 、書き込みロックの解放のみが行われます。
18207 \begin_layout Standard
18211 \begin_layout Labeling
18212 \labelwidthstring 00.00.0000
18214 \begin_inset Flex Code
18217 \begin_layout Plain Layout
18219 \begin_inset Quotes erd
18223 \begin_inset Quotes erd
18227 \begin_inset Quotes eld
18231 \begin_inset Quotes erd
18240 \begin_inset Newline newline
18244 \begin_inset Flex Code
18247 \begin_layout Plain Layout
18249 \begin_inset Quotes eld
18253 \begin_inset Quotes erd
18264 \begin_layout Labeling
18265 \labelwidthstring 00.00.0000
18267 \begin_inset Flex Code
18270 \begin_layout Plain Layout
18272 \begin_inset Quotes eld
18276 \begin_inset Quotes erd
18285 \begin_inset Newline newline
18289 \begin_inset Flex Code
18292 \begin_layout Plain Layout
18294 \begin_inset Quotes eld
18298 \begin_inset Quotes erd
18309 \begin_layout Subsubsection
18311 \begin_inset CommandInset label
18320 \begin_layout Standard
18322 \begin_inset Flex Code
18325 \begin_layout Plain Layout
18331 ファイルに対する書き込み権限の自動設定は、
18332 \begin_inset Flex MenuItem
18335 \begin_layout Plain Layout
18336 ファイル\SpecialChar \menuseparator
18337 バージョン管理\SpecialChar \menuseparator
18343 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18346 \begin_layout Standard
18350 \begin_layout Labeling
18351 \labelwidthstring 00.00.0000
18353 \begin_inset Flex Code
18356 \begin_layout Plain Layout
18357 svn propset svn:needs-lock ON
18358 \begin_inset Quotes eld
18362 \begin_inset Quotes erd
18373 \begin_layout Labeling
18374 \labelwidthstring 00.00.0000
18376 \begin_inset Flex Code
18379 \begin_layout Plain Layout
18380 svn propdel svn:needs-lock
18381 \begin_inset Quotes eld
18385 \begin_inset Quotes erd
18396 \begin_layout Subsubsection
18397 \begin_inset CommandInset label
18406 \begin_layout Standard
18407 文書中で改訂情報を有効化するにはいくつかの方法があります。
18410 \begin_layout Itemize
18415 \begin_layout Itemize
18417 \begin_inset Flex Code
18420 \begin_layout Plain Layout
18427 \begin_inset Flex Code
18430 \begin_layout Plain Layout
18436 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18439 \begin_layout Standard
18441 \begin_inset Tabular
18442 <lyxtabular version="3" rows="6" columns="2">
18443 <features tabularvalignment="middle">
18444 <column alignment="center" valignment="top" width="0">
18445 <column alignment="center" valignment="top" width="0">
18447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18450 \begin_layout Plain Layout
18456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18459 \begin_layout Plain Layout
18467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18470 \begin_layout Plain Layout
18476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18479 \begin_layout Plain Layout
18487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18490 \begin_layout Plain Layout
18496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18499 \begin_layout Plain Layout
18507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18510 \begin_layout Plain Layout
18516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18519 \begin_layout Plain Layout
18527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18530 \begin_layout Plain Layout
18536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18539 \begin_layout Plain Layout
18540 チェックアウト頻度が低かったことによる不完全な作業コピー
18547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18550 \begin_layout Plain Layout
18556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18559 \begin_layout Plain Layout
18560 改訂版が混合し、修正され、スイッチされた作業コピー
18573 \begin_layout Itemize
18575 \begin_inset Flex Code
18578 \begin_layout Plain Layout
18580 \begin_inset space ~
18584 \begin_inset space ~
18588 \begin_inset space ~
18596 の出力を解析したものが返されます。サポートされるフラグは
18600 \begin_layout Itemize
18602 \begin_inset Flex Code
18605 \begin_layout Plain Layout
18614 \begin_layout Itemize
18616 \begin_inset Flex Code
18619 \begin_layout Plain Layout
18628 \begin_layout Itemize
18630 \begin_inset Flex Code
18633 \begin_layout Plain Layout
18642 \begin_layout Itemize
18644 \begin_inset Flex Code
18647 \begin_layout Plain Layout
18657 \begin_layout Standard
18658 これらの情報は、情報差込枠で得ることができます(例:
18659 \begin_inset Flex Code
18662 \begin_layout Plain Layout
18663 info-insert buffer vcs-date
18668 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18669 \begin_inset Flex Code
18672 \begin_layout Plain Layout
18678 ディレクトリがあるときのみ)利用可能です。
18682 \begin_layout Itemize
18683 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18687 \begin_layout Plain Layout
18688 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18693 。簡単に言えば、ファイルキーワード特性を設定して(例:
18695 svn propset svn:keywords 'Rev' file.lyx
18701 \begin_layout Plain Layout
18702 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18711 \begin_layout Plain Layout
18718 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18722 \begin_layout Plain Layout
18729 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18730 \begin_inset Formula $Rev$
18734 \begin_inset Formula $Rev:59$
18737 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18738 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18739 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18742 \begin_layout Subsection
18746 \begin_layout Quote
18747 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18752 \begin_layout Subsubsection
18756 \begin_layout Standard
18757 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18758 イアントプログラムのWindows用インストーラは
18759 \begin_inset CommandInset href
18762 target "http://www.collab.net/nonav/downloads/subversion/"
18767 \begin_inset CommandInset href
18770 target "http://tortoisesvn.tigris.org/"
18774 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18775 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18779 \begin_layout Subsubsection
18780 文書をSubversion管理下に置くには
18783 \begin_layout Standard
18784 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18785 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18786 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18787 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18788 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18789 レポジトリは既に存在し、新規プロジェクトを
18790 \begin_inset Flex Code
18793 \begin_layout Plain Layout
18801 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18802 \begin_inset Flex Code
18805 \begin_layout Plain Layout
18814 \begin_layout Enumerate
18816 \begin_inset Flex Code
18819 \begin_layout Plain Layout
18828 \begin_inset Flex MenuItem
18831 \begin_layout Plain Layout
18832 TortoiseSVN\SpecialChar \menuseparator
18838 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18841 \begin_layout Enumerate
18842 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18843 \begin_inset Flex MenuItem
18846 \begin_layout Plain Layout
18847 Create folder\SpecialChar \ldots{}
18853 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
18854 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
18857 \begin_layout Enumerate
18859 \begin_inset Flex Code
18862 \begin_layout Plain Layout
18871 \begin_inset Flex MenuItem
18874 \begin_layout Plain Layout
18875 SVN Checkout\SpecialChar \ldots{}
18881 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
18882 \begin_inset Flex Code
18885 \begin_layout Plain Layout
18893 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
18894 \begin_inset Flex Code
18897 \begin_layout Plain Layout
18906 \begin_inset Flex Code
18909 \begin_layout Plain Layout
18918 \begin_layout Enumerate
18919 LyXで文書を新規作成するか開くかして、
18920 \begin_inset Flex MenuItem
18923 \begin_layout Plain Layout
18924 ファイル\SpecialChar \menuseparator
18925 バージョン管理\SpecialChar \menuseparator
18931 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
18934 \begin_layout Standard
18936 \begin_inset Flex MenuItem
18939 \begin_layout Plain Layout
18940 ファイル\SpecialChar \menuseparator
18946 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
18947 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
18950 \begin_layout Subsubsection
18951 Windows下でSVNと共にSSHトンネルを使うには
18954 \begin_layout Standard
18955 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
18956 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
18960 \begin_layout Enumerate
18961 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
18962 \begin_inset Flex Code
18965 \begin_layout Plain Layout
18971 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
18974 \begin_layout Enumerate
18975 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
18979 \begin_layout Plain Layout
18980 \begin_inset Flex URL
18983 \begin_layout Plain Layout
18985 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
18995 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
18996 護などを加えないキーのみを使用することとします。
19000 \begin_layout Enumerate
19001 \begin_inset Flex Code
19004 \begin_layout Plain Layout
19010 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19011 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19012 _keys file:」編集フィールドから、直接サーバの
19013 \begin_inset Flex Code
19016 \begin_layout Plain Layout
19017 ~/.ssh/authorized_keys
19023 \begin_inset Flex Code
19026 \begin_layout Plain Layout
19032 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19035 \begin_layout Enumerate
19036 Puttyのplinkを入手してください。SVNのconfigファイル
19040 \begin_layout Plain Layout
19041 正確なパスはWindowsのバージョンに依りますが、通常は
19042 \begin_inset Flex Code
19045 \begin_layout Plain Layout
19048 Documents and Settings
19062 \begin_inset Flex Code
19065 \begin_layout Plain Layout
19081 \begin_inset Flex Code
19084 \begin_layout Plain Layout
19090 セクションにsshコマンドを設定してください。例:
19091 \begin_inset Flex Code
19094 \begin_layout Plain Layout
19095 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19104 \begin_layout Plain Layout
19105 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19106 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19115 \begin_layout Enumerate
19116 SVNアーカイブをチェックアウトしてください。例:
19117 \begin_inset Flex Code
19120 \begin_layout Plain Layout
19121 svn co svn+ssh://user@server/repository_path
19129 \begin_layout Subsubsection
19133 \begin_layout Standard
19134 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19135 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19136 \begin_inset Flex Code
19139 \begin_layout Plain Layout
19149 \begin_layout Plain Layout
19151 \begin_inset Flex Code
19154 \begin_layout Plain Layout
19155 svn propset svn:eol-style native FILE_NAME
19165 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19169 \begin_layout Plain Layout
19170 \begin_inset Flex URL
19173 \begin_layout Plain Layout
19175 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19188 \begin_layout Subsection
19192 \begin_layout Standard
19193 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19196 \begin_layout Standard
19197 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19200 \begin_layout Description
19202 \begin_inset Flex Code
19205 \begin_layout Plain Layout
19206 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19214 \begin_layout Description
19216 \begin_inset Flex Code
19219 \begin_layout Plain Layout
19220 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19228 \begin_layout Subsection
19232 \begin_layout Standard
19234 \begin_inset Flex Code
19237 \begin_layout Plain Layout
19243 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19244 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19245 \begin_inset Flex Code
19248 \begin_layout Plain Layout
19254 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19255 \begin_inset Flex MenuItem
19258 \begin_layout Plain Layout
19259 旧改訂と比較\SpecialChar \ldots{}
19265 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19267 \begin_inset Flex MenuItem
19270 \begin_layout Plain Layout
19276 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19279 \begin_layout Standard
19280 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19281 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19284 \begin_layout Section
19288 \begin_layout Standard
19293 (kayvan@sylvan.com)改訂
19295 Edmar Wienskoski Jr.
19297 (edmar-w-jr@technologist.com)原文
19300 \begin_layout Subsection
19304 \begin_layout Standard
19305 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19306 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19307 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19310 \begin_layout Standard
19311 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19312 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19315 \begin_layout Subsection
19319 \begin_layout Standard
19320 以下は、文芸的プログラミング FAQからの抜粋です。
19323 \begin_layout Quotation
19324 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19325 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19326 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19328 \begin_inset space \thinspace{}
19332 Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19335 \begin_layout Standard
19339 \begin_layout Quotation
19342 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19345 \begin_layout Quotation
19346 3つの際立った特徴があります。重要な順に列挙すれば、
19350 \begin_layout Itemize
19354 \begin_layout Itemize
19358 \begin_layout Itemize
19359 特に図式と数式を含んだドキュメンテーションの組版
19363 \begin_layout Quotation
19367 \begin_layout Standard
19368 あなたの興味に火を付けたところで参考文献を見てみましょう。
19371 \begin_layout Subsubsection
19375 \begin_layout Standard
19379 \begin_layout Quote
19380 Literate Programming FAQ
19381 \begin_inset Flex URL
19384 \begin_layout Plain Layout
19386 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19394 \begin_layout Standard
19398 \begin_layout Standard
19399 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19400 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19407 \begin_layout Itemize
19408 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19411 \begin_layout Itemize
19412 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19415 \begin_layout Itemize
19416 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19419 \begin_layout Itemize
19423 \begin_layout Standard
19427 \begin_layout Quote
19429 \begin_inset Flex URL
19432 \begin_layout Plain Layout
19434 http://www.cs.virginia.edu/~nr/noweb/
19442 \begin_layout Standard
19443 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19446 \begin_layout Subsection
19450 \begin_layout Standard
19451 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19452 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19455 \begin_layout Subsubsection
19456 ドキュメントとコードの生成(weavingおよびtangling)
19459 \begin_layout Paragraph
19463 \begin_layout Standard
19464 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19467 \begin_layout Itemize
19471 \begin_layout Itemize
19475 \begin_layout Itemize
19479 \begin_layout Standard
19480 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19483 \begin_layout Standard
19484 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19485 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19486 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19491 \begin_layout Plain Layout
19492 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19497 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19500 \begin_layout Paragraph
19504 \begin_layout Standard
19513 \begin_layout Plain Layout
19514 Nowebでの名称は「Chunk」です。歴史的な理由から、別の文芸プログラミングツールNuwebで使われている「scrap」という用語を使用しています。Nuwe
19515 bは、私がNowebに乗り換える前に長年使用していたツールです。
19520 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにscrapを区切ります。
19523 \begin_layout LyX-Code
19527 \begin_layout LyX-Code
19531 \begin_layout LyX-Code
19535 \begin_layout LyX-Code
19539 \begin_layout LyX-Code
19543 \begin_layout Standard
19544 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19545 れはScrapと呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19548 \begin_layout Standard
19549 Scrap段落環境の欠点は、連続したコードの段落の間に空行がソースコードにも印刷したドキュメントにも入ることです。これを回避するためには、Scrap環境の中の改
19550 行には(ctrl-return)を使ってください。上の例では次のようにします
19554 \begin_layout Plain Layout
19555 印刷したバージョンを読んでいる場合にはこの例と上の例の違いが分かりません。
19563 \begin_layout LyX-Code
19565 \begin_inset Newline newline
19569 \begin_inset Newline newline
19573 \begin_inset Newline newline
19577 \begin_inset Newline newline
19583 \begin_layout Standard
19584 この環境はうまく働きます。不便な点は普通のリターンのかわりにctrl-returnを使わなければならないことです
19588 \begin_layout Plain Layout
19589 これは改善しなければならない点でしょう。
19597 \begin_layout Standard
19598 また、Scrapの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19602 \begin_layout LyX-Code
19604 \begin_inset Newline newline
19607 def some_function(args):
19608 \begin_inset Newline newline
19611 "This is the doc string for this function."
19612 \begin_inset Newline newline
19615 print "My args: ", args
19618 \begin_layout LyX-Code
19619 @ %def some_function
19622 \begin_layout Standard
19623 これをどのように使って、その結果相互参照がどうなるかは
19625 LIBDIR/examples/listerrors.lyx
19627 の中の文芸pythonプログラムを見るとよくわかります。
19630 \begin_layout Paragraph
19634 \begin_layout Standard
19635 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19636 \begin_inset Flex MenuItem
19639 \begin_layout Plain Layout
19640 表示\SpecialChar \menuseparator
19646 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19649 \begin_layout Standard
19650 LyXの内部で何が起っているかを説明しておきましょう。
19653 \begin_layout Enumerate
19654 \begin_inset Flex MenuItem
19657 \begin_layout Plain Layout
19658 表示\SpecialChar \menuseparator
19664 が選ばれると、LaTeXファイルがつくられます。
19668 \begin_layout Standard
19669 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19670 \begin_inset Flex MenuItem
19673 \begin_layout Plain Layout
19679 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19683 \begin_layout Enumerate
19684 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。Scrap環境でコードを入力するのだけがポイントです。
19687 \begin_layout Enumerate
19688 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19692 \begin_layout Plain Layout
19698 dit\SpecialChar \menuseparator
19705 パネルの Conversion タブで設定できます。
19710 を使ってLaTeXファイルを生成します。
19714 \begin_layout Standard
19715 それ以外の場合はこのステップを飛ばします。
19719 \begin_layout Enumerate
19720 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19723 \begin_layout Standard
19724 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19727 \begin_layout Paragraph
19731 \begin_layout Standard
19732 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19736 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19739 \begin_layout Enumerate
19740 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19744 \begin_layout Enumerate
19745 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19749 \begin_layout Standard
19750 はじめのパートのために、「変換子」設定で、
19751 \begin_inset Quotes eld
19759 \begin_inset Quotes erd
19762 と指定します。これは基本的に、LyXが
19766 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19769 \begin_layout Standard
19770 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19773 \begin_layout LyX-Code
19777 \begin_layout LyX-Code
19781 \begin_layout LyX-Code
19782 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
19785 \begin_layout Standard
19786 コンバータの設定の次の部分はFlagsです。これを
19787 \begin_inset Quotes eld
19792 originaldir,parselog=listerrors
19795 \begin_inset Quotes erd
19802 が出すすべてのエラーをlisterrorsプログラムに渡します。
19805 \begin_layout Standard
19806 コンバータコードがlisterrorsプログラムを探す順序は、はじめに
19817 \begin_layout Paragraph
19821 \begin_layout Standard
19822 LyXとNowebの統合の最後の部分は、
19823 \begin_inset Quotes eld
19827 \begin_inset Quotes erd
19830 scrapです。一般に、あなたのプログラムの構築操作の説明それ自身をscrapに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
19831 iptでは、scrapを見つけるのにnotangleコマンドを使い、shを使って起動します。
19834 \begin_layout Standard
19835 以下に典型的なscrapがどのようなものかを書いておきます。
19838 \begin_layout LyX-Code
19840 \begin_inset Newline newline
19844 \begin_inset Newline newline
19848 \begin_inset Newline newline
19851 if [ -z "${NOWEB_SOURCE}" ]
19852 \begin_inset Newline newline
19856 \begin_inset Newline newline
19859 NOWEB_SOURCE=myfile.nw
19860 \begin_inset Newline newline
19864 \begin_inset Newline newline
19868 code to extract files ...]
19869 \begin_inset Newline newline
19873 code to compile files ...]
19874 \begin_inset Newline newline
19880 \begin_layout Standard
19883 LIBDIR/examples/listerrors.lyx
19887 LIBDIR/examples/Literate.lyx
19889 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
19892 LIBDIR/examples/noweb2lyx.lyx
19894 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
19898 \begin_layout Subsubsection
19902 \begin_layout Standard
19903 すべての文芸プログラムのための設定は、
19904 \begin_inset Flex MenuItem
19907 \begin_layout Plain Layout
19908 ツール\SpecialChar \menuseparator
19914 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
19917 \begin_layout Description
19919 \begin_inset space ~
19923 \begin_inset Quotes eld
19927 \begin_inset Quotes erd
19931 \begin_inset space ~
19934 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
19946 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
19950 という拡張子をつけることを指示します。
19953 \begin_layout Description
19955 \begin_inset space ~
19963 \begin_inset space ~
19966 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
19970 \begin_layout Description
19979 このコンバータは、weavingの段階を行います。Nowebの場合は、
19980 \begin_inset Quotes eld
19985 noweave -delay -index $$i > $$o
19988 \begin_inset Quotes erd
19994 \begin_layout Description
20003 これは、tanglingを行います。以前に説明したように、
20008 \begin_inset Quotes eld
20013 originaldir,parselog=listerrors
20016 \begin_inset Quotes erd
20022 \begin_layout Subsubsection
20026 \begin_layout Standard
20027 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20030 \begin_layout Standard
20031 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20033 \begin_inset Flex MenuItem
20036 \begin_layout Plain Layout
20037 ツール\SpecialChar \menuseparator
20038 設定\SpecialChar \menuseparator
20045 \begin_inset Flex MenuItem
20048 \begin_layout Plain Layout
20054 エントリを変えると変えることができます。
20057 \begin_layout Standard
20058 新しいLyXサーバの関数と、このdddの機能を使うために
20059 \begin_inset Flex MenuItem
20062 \begin_layout Plain Layout
20071 \begin_layout LyX-Code
20072 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20075 \begin_layout Standard
20076 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20077 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20081 \begin_layout Standard
20082 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20085 \begin_inset Flex MenuItem
20088 \begin_layout Plain Layout
20101 \begin_inset Flex MenuItem
20104 \begin_layout Plain Layout
20117 \begin_inset Flex MenuItem
20120 \begin_layout Plain Layout
20133 \begin_inset Quotes eld
20138 /home/<your-home-directory>/.lyx/lyxpipe
20141 \begin_inset Quotes erd
20147 \begin_layout Standard
20152 』のLyXサーバの説明を読んでください。
20155 \begin_layout Subsubsection
20159 \begin_layout Standard
20160 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20180 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20183 \begin_layout Standard
20184 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20185 \begin_inset Flex MenuItem
20188 \begin_layout Plain Layout
20189 表示\SpecialChar \menuseparator
20190 更新\SpecialChar \menuseparator
20197 \begin_inset Flex MenuItem
20200 \begin_layout Plain Layout
20201 表示\SpecialChar \menuseparator
20210 \begin_layout LyX-Code
20214 \begin_layout LyX-Code
20218 \begin_layout LyX-Code
20219 Icon "layout Standard"
20222 \begin_layout LyX-Code
20223 Icon "layout Section"
20226 \begin_layout LyX-Code
20227 Icon "layout LaTeX"
20230 \begin_layout LyX-Code
20231 Icon "layout LyX-Code"
20234 \begin_layout LyX-Code
20235 Icon "layout Scrap"
20238 \begin_layout LyX-Code
20242 \begin_layout LyX-Code
20246 \begin_layout LyX-Code
20247 Icon "buffer-typeset"
20250 \begin_layout LyX-Code
20251 Icon "build-program"
20254 \begin_layout LyX-Code
20258 \begin_layout LyX-Code
20262 \begin_layout LyX-Code
20266 \begin_layout LyX-Code
20270 \begin_layout LyX-Code
20274 \begin_layout Subsubsection
20278 \begin_layout Standard
20280 \begin_inset Flex MenuItem
20283 \begin_layout Plain Layout
20289 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ScrapはLaTeXフォントを使い、文芸的プログラ
20290 ミングでは多くのScrapがあるためにそれらがすべて赤では疲れてしまいます。
20291 \begin_inset Flex MenuItem
20294 \begin_layout Plain Layout
20295 操作性\SpecialChar \menuseparator
20304 \begin_layout Standard
20305 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20306 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20309 \begin_layout Chapter
20315 \begin_inset CommandInset label
20317 name "chap:Special-features"
20324 \begin_layout Standard
20327 You can do everything with LyX that you can do with LaTeX.
20328 However, LyX cannot support every LaTeX feature directly.
20329 But you can always use TeX Code.
20330 This chapter shows you some more special things you might want to use.
20331 For other special things you can do with figures, tables, floats, boxes
20332 and notes, have a look at the
20339 \begin_layout Section
20342 Multiple Text Columns
20345 \begin_layout Standard
20348 This feature is independent of the option
20350 Two-column document
20352 in the document settings under
20357 If you want to have 2
20358 \begin_inset space ~
20361 columns for the whole document, it is recommended to use the
20363 Two-column document
20366 For all other cases use this feature.
20369 \begin_layout Standard
20372 To use multiple text columns in your document, you have to load the module
20379 Document\SpecialChar \menuseparator
20380 Settings\SpecialChar \menuseparator
20383 ) and must have the LaTeX-package
20388 \begin_inset Index idx
20391 \begin_layout Plain Layout
20394 LaTeX-packages ! multicol
20402 \begin_layout Standard
20405 Footnotes within multiple columns will be placed at the bottom of the page
20406 and not under each column.
20407 Within the different columns you can use everything, with the limitation
20408 that for floats you need to use the float option
20415 \begin_layout Subsection
20421 \begin_layout Standard
20424 If you want to have 2 columns in your text, use the style
20426 Begin Multiple Columns
20428 where the columns should start.
20429 The content of the style is the number of the columns, so in this case
20431 \begin_inset Quotes eld
20435 \begin_inset Quotes erd
20439 At the point where the columns should end use the style
20441 End Multiple Columns
20446 \begin_layout Standard
20449 Here is an example:
20452 \begin_layout Begin Multiple Columns
20458 \begin_layout Standard
20464 The Adventure of the Empty House
20467 \begin_inset Newline newline
20472 Sir Arthur Conan Doyle
20475 \begin_layout Standard
20479 It was in the spring of the year 1894 that all London was interested, and
20480 the fashionable world dismayed, by the murder of the Honourable Ronald
20481 Adair under most unusual and inexplicable circumstances.
20482 The public has already learned those particulars of the crime which came
20483 out in the police investigation, but a good deal was suppressed upon that
20484 occasion, since the case for the prosecution was so overwhelmingly strong
20485 that it was not necessary to bring forward all the facts.
20486 Only now, at the end of nearly ten years, am I allowed to supply those
20487 missing links which make up the whole of that remarkable chain.
20488 The crime was of interest in itself, but that interest was as nothing to
20489 me compared to the inconceivable sequel, which afforded me the greatest
20490 shock and surprise of any event in my adventurous life.
20491 Even now, after this long interval, I find myself thrilling as I think
20492 of it, and feeling once more that sudden flood of joy, amazement, and increduli
20493 ty which utterly submerged my mind.
20494 Let me say to that public, which has shown some interest in those glimpses
20495 which I have occasionally given them of the thoughts and actions of a very
20496 remarkable man, that they are not to blame me if I have not shared my knowledge
20497 with them, for I should have considered it my first duty to do so, had
20498 I not been barred by a positive prohibition from his own lips, which was
20499 only withdrawn upon the third of last month.
20502 \begin_layout End Multiple Columns
20506 \begin_layout Standard
20509 Here is an example with 3
20510 \begin_inset space ~
20516 \begin_layout Begin Multiple Columns
20522 \begin_layout Standard
20526 It can be imagined that my close intimacy with Sherlock Holmes had interested
20527 me deeply in crime, and that after his disappearance I never failed to
20528 read with care the various problems which came before the public.
20529 And I even attempted, more than once, for my own private satisfaction,
20530 to employ his methods in their solution, though with indifferent success.
20531 There was none, however, which appealed to me like this tragedy of Ronald
20533 As I read the evidence at the inquest, which led up to a verdict of willful
20534 murder against some person or persons unknown, I realized more clearly
20535 than I had ever done the loss which the community had sustained by the
20536 death of Sherlock Holmes.
20537 There were points about this strange business which would, I was sure,
20538 have specially appealed to him, and the efforts of the police would have
20539 been supplemented, or more probably anticipated, by the trained observation
20540 and the alert mind of the first criminal agent in Europe.
20541 All day, as I drove upon my round, I turned over the case in my mind and
20542 found no explanation which appeared to me to be adequate.
20543 At the risk of telling a twice-told tale, I will recapitulate the facts
20544 as they were known to the public at the conclusion of the inquest.
20547 \begin_layout End Multiple Columns
20551 \begin_layout Standard
20554 You can have up to 10
20555 \begin_inset space ~
20558 columns if you want to, but that might not be very pleasant for the readers
20562 \begin_layout Standard
20565 \begin_inset Newpage newpage
20571 \begin_layout Subsection
20574 Columns inside Columns
20577 \begin_layout Standard
20580 You can also have columns inside columns:
20583 \begin_layout Begin Multiple Columns
20589 \begin_layout Standard
20593 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20594 at that time governor of one of the Australian colonies.
20595 Adair's mother had returned from Australia to undergo the operation for
20596 cataract, and she, her son Ronald, and her daughter Hilda were living together
20600 \begin_layout Begin Multiple Columns
20606 \begin_layout Standard
20610 The youth moved in the best society–had, so far as was known, no enemies
20611 and no particular vices.
20612 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20613 had been broken off by mutual consent some months before, and there was
20614 no sign that it had left any very profound feeling behind it.
20615 For the rest {sic} the man's life moved in a narrow and conventional circle,
20616 for his habits were quiet and his nature unemotional.
20617 Yet it was upon this easy-going young aristocrat that death came, in most
20618 strange and unexpected form, between the hours of ten and eleven-twenty
20619 on the night of March 30, 1894.
20622 \begin_layout End Multiple Columns
20626 \begin_layout Standard
20630 Ronald Adair was fond of cards–playing continually, but never for such stakes
20632 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20633 It was shown that, after dinner on the day of his death, he had played
20634 a rubber of whist at the latter club.
20635 He had also played there in the afternoon.
20640 The evidence of those who had played with him– Mr.
20641 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20642 and that there was a fairly equal fall of the cards.
20643 Adair might have lost five pounds, but not more.
20644 His fortune was a considerable one, and such a loss could not in any way
20646 He had played nearly every day at one club or other, but he was a cautious
20647 player, and usually rose a winner.
20648 It came out in evidence that, in partnership with Colonel Moran, he had
20649 actually won as much as four hundred and twenty pounds in a sitting, some
20650 weeks before, from Godfrey Milner and Lord Balmoral.
20651 So much for his recent history as it came out at the inquest.
20654 \begin_layout End Multiple Columns
20658 \begin_layout Subsection
20664 \begin_layout Standard
20667 The examples in this section show some more special features of multiple
20671 \begin_layout Standard
20674 For more features of multiple columns, have a look at the documentation
20675 of the LaTeX-package
20680 \begin_inset Index idx
20683 \begin_layout Plain Layout
20686 LaTeX-packages ! multicol
20694 \begin_inset CommandInset citation
20703 \begin_layout Subsubsection
20709 \begin_layout Standard
20712 To add a preface text for multiple columns, add the command
20715 \begin_layout Standard
20722 \begin_layout Standard
20725 as TeX Code behind the number of columns in the
20727 Begin Multiple Columns
20730 behind the command write the text.
20731 At the end of the style use the command
20734 \begin_layout Standard
20741 \begin_layout Standard
20745 An example with some preface text:
20748 \begin_layout Standard
20751 \begin_inset VSpace bigskip
20757 \begin_layout Begin Multiple Columns
20764 \begin_layout Plain Layout
20771 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20776 \begin_layout Plain Layout
20786 \begin_layout Standard
20790 On the evening of the crime, he returned from the club exactly at ten.
20791 His mother and sister were out spending the evening with a relation.
20792 The servant deposed that she heard him enter the front room on the second
20793 floor, generally used as his sitting-room.
20794 She had lit a fire there, and as it smoked she had opened the window.
20795 No sound was heard from the room until eleven-twenty, the hour of the return
20796 of Lady Maynooth and her daughter.
20797 Desiring to say good-night, she attempted to enter her son's room.
20798 The door was locked on the inside, and no answer could be got to their
20799 cries and knocking.
20800 Help was obtained, and the door forced.
20801 The unfortunate young man was found lying near the table.
20802 His head had been horribly mutilated by an expanding revolver bullet, but
20803 no weapon of any sort was to be found in the room.
20806 \begin_layout End Multiple Columns
20810 \begin_layout Standard
20813 You can also use a section heading as the preface if you use a section command
20814 as TeX Code behind the first TeX Code.
20815 For example the command
20818 \begin_layout Standard
20824 subsection{subsection title}
20827 \begin_layout Standard
20830 creates a subsection.
20831 In this example the preface is a subsubsection:
20834 \begin_layout Begin Multiple Columns
20841 \begin_layout Plain Layout
20852 \begin_layout Plain Layout
20861 This is a subsubsection heading as a preface
20865 \begin_layout Plain Layout
20876 \begin_layout Plain Layout
20886 \begin_layout Standard
20890 A minute examination of the circumstances served only to make the case more
20892 In the first place, no reason could be given why the young man should have
20893 fastened the door upon the inside.
20894 There was the possibility that the murderer had done this, and had afterwards
20895 escaped by the window.
20896 The drop was at least twenty feet, however, and a bed of crocuses in full
20898 Neither the flowers nor the earth showed any sign of having been disturbed,
20899 nor were there any marks upon the narrow strip of grass which separated
20900 the house from the road.
20901 Apparently, therefore, it was the young man himself who had fastened the
20903 But how did he come by his death? No one could have climbed up to the window
20904 without leaving traces.
20905 Suppose a man had fired through the window, he would indeed be a remarkable
20906 shot who could with a revolver inflict so deadly a wound.
20907 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
20908 a hundred yards of the house.
20909 No one had heard a shot.
20912 \begin_layout End Multiple Columns
20916 \begin_layout Standard
20919 If there is less vertical space left on the page at the beginning of the
20920 multiple columns than needed for 6
20921 \begin_inset space ~
20924 text lines, a page break will be inserted before the multiple columns.
20925 Depending on the number of lines of the preface text, you might want to
20927 It is determined by inserting the command
20930 \begin_layout Standard
20939 \begin_layout Standard
20942 as TeX Code behind the preface definition but before the final
20951 is hereby the number of text lines.
20952 In this example the space is set to 7
20953 \begin_inset space ~
20959 \begin_layout Begin Multiple Columns
20966 \begin_layout Plain Layout
20977 \begin_layout Plain Layout
20986 This is the sectioning command
20987 \begin_inset Newline newline
20991 \begin_inset Newline newline
20994 with multiple text lines
20998 \begin_layout Plain Layout
21009 \begin_layout Plain Layout
21022 \begin_layout Plain Layout
21032 \begin_layout Standard
21036 On the evening of the crime, he returned from the club exactly at ten.
21037 His mother and sister were out spending the evening with a relation.
21038 The servant deposed that she heard him enter the front room on the second
21039 floor, generally used as his sitting-room.
21040 She had lit a fire there, and as it smoked she had opened the window.
21041 No sound was heard from the room until eleven-twenty, the hour of the return
21042 of Lady Maynooth and her daughter.
21043 Desiring to say good-night, she attempted to enter her son's room.
21044 The door was locked on the inside, and no answer could be got to their
21045 cries and knocking.
21046 Help was obtained, and the door forced.
21047 The unfortunate young man was found lying near the table.
21048 His head had been horribly mutilated by an expanding revolver bullet, but
21049 no weapon of any sort was to be found in the room.
21052 \begin_layout End Multiple Columns
21056 \begin_layout Subsubsection
21062 \begin_layout Standard
21065 The amount of space before and after multiple columns can be changed by
21066 changing the length
21073 For example the command
21076 \begin_layout Standard
21087 \begin_layout Standard
21090 in TeX Code changes its value to 3
21091 \begin_inset space \thinspace{}
21095 The change must be made before the multiple columns' start.
21096 The predefined value is 13
21097 \begin_inset space \thinspace{}
21103 \begin_layout Standard
21113 \begin_inset space \thinspace{}
21119 \begin_layout Standard
21125 \begin_layout Plain Layout
21131 multicolsep}{2.5cm}
21139 \begin_layout Begin Multiple Columns
21145 \begin_layout Standard
21149 All day I turned these facts over in my mind, endeavouring to hit upon some
21150 theory which could reconcile them all, and to find that line of least resistanc
21151 e which my poor friend had declared to be the starting-point of every investigat
21153 I confess that I made little progress.
21154 In the evening I strolled across the Park, and found myself about six o'clock
21155 at the Oxford Street end of Park Lane.
21156 A group of loafers upon the pavements, all staring up at a particular window,
21157 directed me to the house which I had come to see.
21158 A tall, thin man with coloured glasses, whom I strongly suspected of being
21159 a plain-clothes detective, was pointing out some theory of his own, while
21160 the others crowded round to listen to what he said.
21161 I got as near him as I could, but his observations seemed to me to be absurd,
21162 so I withdrew again in some disgust.
21163 As I did so I struck against an elderly, deformed man, who had been behind
21164 me, and I knocked down several books which he was carrying.
21167 \begin_layout End Multiple Columns
21171 \begin_layout Standard
21174 \begin_inset Note Greyedout
21177 \begin_layout Plain Layout
21183 The values you set with
21189 will be used for all following multiple columns until to change them again.
21197 \begin_layout Standard
21203 \begin_layout Plain Layout
21215 \begin_inset Note Note
21218 \begin_layout Plain Layout
21221 go back to the default
21229 \begin_layout Subsubsection
21235 \begin_layout Standard
21238 The width of the columns is automatically calculated, but you can modify
21239 the space between the columns.
21240 This is done by changing the length
21247 Its predefined value is 10
21248 \begin_inset space \thinspace{}
21252 Here is an example where
21259 \begin_inset space \thinspace{}
21265 \begin_layout Standard
21271 \begin_layout Plain Layout
21285 \begin_layout Begin Multiple Columns
21291 \begin_layout Standard
21295 My observations of No.
21296 \begin_inset space \space{}
21299 427 Park Lane did little to clear up the problem in which I was interested.
21300 The house was separated from the street by a low wall and railing, the
21301 whole not more than five feet high.
21302 It was perfectly easy, therefore, for anyone to get into the garden, but
21303 the window was entirely inaccessible, since there was no water pipe or
21304 anything which could help the most active man to climb it.
21305 More puzzled than ever, I retraced my steps to Kensington.
21306 I had not been in my study five minutes when the maid entered to say that
21307 a person desired to see me.
21308 To my astonishment it was none other than my strange old book collector,
21309 his sharp, wizened face peering out from a frame of white hair, and his
21310 precious volumes, a dozen of them at least, wedged under his right arm.
21313 \begin_layout End Multiple Columns
21317 \begin_layout Standard
21323 \begin_layout Plain Layout
21335 \begin_inset Note Note
21338 \begin_layout Plain Layout
21341 go back to the default
21349 \begin_layout Subsubsection
21355 \begin_layout Standard
21358 Between the columns a rule with a width of the length
21365 If this rule width is set to 0
21366 \begin_inset space \thinspace{}
21369 pt (this is the default), the rule is suppressed.
21370 In the following example, the line separating the columns is 2
21371 \begin_inset space \thinspace{}
21377 \begin_layout Standard
21383 \begin_layout Plain Layout
21389 columnseprule}{2pt}
21397 \begin_layout Begin Multiple Columns
21403 \begin_layout Standard
21407 \begin_inset Quotes eld
21410 You're surprised to see me, sir,
21411 \begin_inset Quotes erd
21414 said he, in a strange, croaking voice.
21417 \begin_layout Standard
21421 I acknowledged that I was.
21424 \begin_layout Standard
21428 \begin_inset Quotes eld
21431 Well, I've a conscience, sir, and when I chanced to see you go into this
21432 house, as I came hobbling after you, I thought to myself, I'll just step
21433 in and see that kind gentleman, and tell him that if I was a bit gruff
21434 in my manner there was not any harm meant, and that I am much obliged to
21435 him for picking up my books.
21436 \begin_inset Quotes erd
21442 \begin_layout Standard
21446 \begin_inset Quotes eld
21449 You make too much of a trifle,
21450 \begin_inset Quotes erd
21455 \begin_inset Quotes eld
21458 May I ask how you knew who I was?
21459 \begin_inset Quotes erd
21465 \begin_layout Standard
21469 \begin_inset Quotes eld
21472 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21473 you'll find my little bookshop at the corner of Church Street, and very
21474 happy to see you, I am sure.
21475 Maybe you collect yourself, sir.
21479 \begin_inset space ~
21492 --a bargain, every one of them.
21493 With five volumes you could just fill that gap on that second shelf.
21494 It looks untidy, does it not, sir?
21495 \begin_inset Quotes erd
21501 \begin_layout End Multiple Columns
21505 \begin_layout Standard
21511 \begin_layout Plain Layout
21517 columnseprule}{0pt}
21523 \begin_inset Note Note
21526 \begin_layout Plain Layout
21529 go back to the default
21537 \begin_layout Standard
21538 \begin_inset Newpage newpage
21544 \begin_layout Section
21548 \begin_layout Standard
21552 \begin_layout Plain Layout
21564 \begin_layout Standard
21568 \begin_layout Plain Layout
21577 \begin_layout Plain Layout
21591 \begin_layout Standard
21596 \begin_layout Plain Layout
21607 \begin_layout Plain Layout
21616 \begin_layout Plain Layout
21625 \begin_layout Plain Layout
21634 \begin_layout Plain Layout
21643 \begin_layout Plain Layout
21652 \begin_layout Plain Layout
21661 \begin_layout Plain Layout
21670 \begin_layout Plain Layout
21679 \begin_layout Plain Layout
21688 \begin_layout Plain Layout
21697 \begin_layout Plain Layout
21706 \begin_layout Plain Layout
21715 \begin_layout Plain Layout
21724 \begin_layout Plain Layout
21733 \begin_layout Plain Layout
21742 \begin_layout Plain Layout
21751 \begin_layout Plain Layout
21760 \begin_layout Plain Layout
21769 \begin_layout Plain Layout
21775 長方形の段落の形を変えたい場合があるでしょう。そういう場合は楽しいTeXコマンド
21781 を使いましょう。この例で分かるように適当に行の長さを設定することで好きな形の段落が作れます。馬鹿げているように見えるかもしれませんが、dropped
21782 capitalを最終調整したり、長方形ではない図のまわりを文章で囲ったりするのにこのような手作業が必要なのです。
21785 \begin_layout Standard
21786 \begin_inset VSpace bigskip
21793 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
21800 は段落をつくる行数です。その段落の本文がこれより短い場合はそこで終わり、長い場合には最後の行の定義がそれ以後も使われます。
21808 エントリは左余白からの字下げの量と、字下げされたところからの行の長さを指定します。この形は現在の段落にだけ適応されて、次の段落では通常の形にリセットされます。
21811 \begin_layout Standard
21815 \begin_layout Plain Layout
21827 \begin_layout Bibliography
21828 \begin_inset CommandInset bibitem
21829 LatexCommand bibitem
21836 Documentation of the LaTeX-package
21839 \begin_inset CommandInset href
21842 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
21849 \begin_inset Index idx
21852 \begin_layout Plain Layout
21855 LaTeX-packages ! multicol