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
119 \notefontcolor #0000ff
126 \paragraph_separation indent
127 \paragraph_indentation default
128 \quotes_language english
131 \paperpagestyle headings
132 \tracking_changes false
133 \output_changes false
143 \begin_inset Newline newline
147 \begin_inset Newline newline
160 \begin_layout Plain Layout
161 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
162 \begin_inset Flex Code
165 \begin_layout Plain Layout
169 <lyx-docs@lists.lyx.org>
174 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
182 \begin_layout Standard
183 \begin_inset CommandInset toc
184 LatexCommand tableofcontents
191 \begin_layout Chapter
195 \begin_layout Standard
204 』の第二部です。この文書を別部とした理由は、単純に『
212 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
213 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
214 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
215 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
218 \begin_layout Standard
219 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
220 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
221 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
224 \begin_layout Standard
229 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
233 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
237 』をよくお読みになって、LyXの全基本機能を習得してください。
240 \begin_layout Standard
241 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
242 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
245 \begin_layout Chapter
249 \begin_layout Section
253 \begin_layout Standard
263 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
264 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
267 \begin_layout Standard
295 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
299 \begin_layout Plain Layout
309 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
314 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
315 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
333 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
334 でも、いちど以下の手順を試してみてください。まず
344 \begin_inset Flex MenuItem
347 \begin_layout Plain Layout
374 \begin_inset Flex MenuItem
377 \begin_layout Plain Layout
380 エクスポート\SpecialChar \menuseparator
405 \begin_inset Flex MenuItem
408 \begin_layout Plain Layout
411 表示\SpecialChar \menuseparator
427 \begin_inset Flex Code
430 \begin_layout Plain Layout
438 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
447 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
450 \begin_layout Standard
460 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
463 \begin_layout Itemize
464 \begin_inset Flex MenuItem
467 \begin_layout Plain Layout
470 表示\SpecialChar \menuseparator
481 \begin_layout Itemize
484 \begin_inset Flex MenuItem
487 \begin_layout Plain Layout
490 表示\SpecialChar \menuseparator
491 更新\SpecialChar \menuseparator
502 \begin_layout Itemize
505 \begin_inset Flex MenuItem
508 \begin_layout Plain Layout
513 \SpecialChar \menuseparator
524 \begin_layout Itemize
527 \begin_inset Flex MenuItem
530 \begin_layout Plain Layout
535 \SpecialChar \menuseparator
546 \begin_layout Standard
556 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
559 \begin_layout Standard
569 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
572 \begin_layout Enumerate
582 文書をLaTeXに変換し、ファイルの拡張子を
583 \begin_inset Flex Code
586 \begin_layout Plain Layout
602 \begin_inset Flex Code
605 \begin_layout Plain Layout
623 \begin_layout Enumerate
634 \begin_inset Flex Code
637 \begin_layout Plain Layout
652 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
653 \begin_inset Flex Code
656 \begin_layout Plain Layout
672 \begin_inset Flex Code
675 \begin_layout Plain Layout
693 \begin_layout Enumerate
706 \begin_layout Standard
726 \begin_inset Flex MenuItem
729 \begin_layout Plain Layout
732 表示\SpecialChar \menuseparator
747 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
748 \begin_inset Flex MenuItem
751 \begin_layout Plain Layout
761 表示\SpecialChar \menuseparator
767 を使用した場合には、LyXはさらに以下の段階をふみます。
770 \begin_layout Itemize
780 \begin_inset Flex Code
783 \begin_layout Plain Layout
821 \begin_layout Itemize
831 \begin_inset Flex Code
834 \begin_layout Plain Layout
842 などのPostScript®ビューアを実行して、PostScript®
854 \begin_layout Standard
855 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
858 \begin_layout Section
862 \begin_layout Standard
866 \begin_inset Flex MenuItem
869 \begin_layout Plain Layout
872 ファイル\SpecialChar \menuseparator
873 インポート\SpecialChar \menuseparator
888 コマンドを使用すると、LaTeXファイルを
904 LyXにインポートすることができます。このコマンドは、
914 \begin_inset Flex Code
917 \begin_layout Plain Layout
944 \begin_inset Flex Code
947 \begin_layout Plain Layout
958 \begin_inset Flex Code
961 \begin_layout Plain Layout
969 を生成します。LyXは、この変換したファイルを開きます
973 \begin_layout Plain Layout
974 \begin_inset Flex Code
977 \begin_layout Plain Layout
983 は、もちろんコマンドラインから実行することもできます。
991 \begin_layout Standard
994 \begin_inset Flex Code
997 \begin_layout Plain Layout
1014 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1024 \begin_inset Flex Code
1027 \begin_layout Plain Layout
1044 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1054 \begin_inset Flex Code
1057 \begin_layout Plain Layout
1074 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1077 \begin_layout Standard
1087 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1090 \begin_layout Section
1092 \begin_inset CommandInset label
1094 name "sec:LaTeXコードを挿入する"
1101 \begin_layout Standard
1111 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1112 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1114 \begin_inset Flex Code
1117 \begin_layout Plain Layout
1142 \begin_inset Flex MenuItem
1145 \begin_layout Plain Layout
1148 挿入\SpecialChar \menuseparator
1166 \begin_layout Standard
1167 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1170 \begin_layout LyX-Code
1174 \begin_inset Newline newline
1179 begin{minipage}{5cm}
1180 \begin_inset Newline newline
1184 \begin_inset Newline newline
1188 \begin_inset Newline newline
1192 \begin_inset Newline newline
1196 \begin_inset Newline newline
1200 \begin_inset Newline newline
1206 \begin_inset Newline newline
1210 \begin_inset Newline newline
1215 begin{minipage}{5cm}
1216 \begin_inset Newline newline
1222 \begin_inset Newline newline
1227 begin{minipage}{5cm}
1228 \begin_inset Newline newline
1233 \begin_inset Newline newline
1239 \begin_inset Newline newline
1245 \begin_inset Newline newline
1251 \begin_inset Newline newline
1259 \begin_layout LyX-Code
1263 \begin_layout Standard
1265 \begin_inset Flex Code
1268 \begin_layout Plain Layout
1274 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1278 \begin_layout Standard
1282 \begin_layout Plain Layout
1289 \begin_layout Plain Layout
1293 begin{minipage}{5cm}
1296 \begin_layout Plain Layout
1298 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。
1303 \begin_layout Plain Layout
1308 \begin_layout Plain Layout
1312 begin{minipage}{5cm}
1315 \begin_layout Plain Layout
1322 \begin_layout Plain Layout
1326 begin{minipage}{5cm}
1329 \begin_layout Plain Layout
1337 \begin_layout Plain Layout
1344 \begin_layout Plain Layout
1351 \begin_layout Plain Layout
1363 \begin_layout Standard
1373 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1374 \begin_inset Flex MenuItem
1377 \begin_layout Plain Layout
1387 挿入\SpecialChar \menuseparator
1388 ファイル\SpecialChar \menuseparator
1394 を使用する方法もあります(取り込みの型として
1395 \begin_inset Flex Code
1398 \begin_layout Plain Layout
1413 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1431 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1434 \begin_layout Standard
1444 最後に、いくつか強調しておくべきことがあります。
1447 \begin_layout Itemize
1457 LyXは、あなたのLaTeXコードが正しいかどうかを
1478 \begin_layout Itemize
1488 車輪の再発明をしないようにご注意ください。
1491 \begin_layout Standard
1501 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1502 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1503 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1513 \begin_inset CommandInset href
1516 target "http://www.ctan.org/"
1530 \begin_inset CommandInset ref
1532 reference "chap:Special-features"
1539 \begin_layout Standard
1549 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1567 』の参考文献に多くのLaTeX関連書籍が引用されています。
1570 \begin_layout Section
1574 \begin_layout Subsection
1578 \begin_layout Standard
1588 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1589 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1590 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1593 \begin_layout Standard
1603 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1621 の部分に来ます。ここでは以下のことを行います。
1624 \begin_layout Itemize
1634 文書クラス(ドキュメントクラス)の宣言。
1635 \begin_inset Newline newline
1638 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1656 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1659 \begin_layout Itemize
1670 \begin_inset Newline newline
1673 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1692 \begin_inset Flex Code
1695 \begin_layout Plain Layout
1703 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1706 \begin_layout Itemize
1717 \begin_inset Newline newline
1720 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1740 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1741 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1744 \begin_layout Itemize
1755 \begin_inset Flex Code
1758 \begin_layout Plain Layout
1776 \begin_inset Flex Code
1779 \begin_layout Plain Layout
1797 \begin_inset Newline newline
1800 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1818 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1822 \begin_layout Standard
1833 \begin_inset Flex Code
1836 \begin_layout Plain Layout
1851 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1854 \begin_layout Subsection
1858 \begin_layout Standard
1868 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1870 \begin_inset Flex MenuItem
1873 \begin_layout Plain Layout
1883 文書\SpecialChar \menuseparator
1890 \begin_inset Flex MenuItem
1893 \begin_layout Plain Layout
1908 の項から、プリアンブルに追加をすることはできます。LyXは、
1918 \begin_inset Flex MenuItem
1921 \begin_layout Plain Layout
1938 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1939 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1950 プリアンブルコードが正しいことを確認してください。
1952 LyXは、プリアンブルをチェックしません。
1962 \begin_inset Flex Code
1965 \begin_layout Plain Layout
1982 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1985 \begin_layout Subsection
1989 \begin_layout Standard
1999 以下は、プリアンブルに追加できるものとその効果を示す例です。
2002 \begin_layout Subsubsection
2006 \begin_layout Standard
2035 \begin_inset Flex Code
2038 \begin_layout Plain Layout
2058 \begin_inset Flex Code
2061 \begin_layout Plain Layout
2080 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2081 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2082 \begin_inset Flex Code
2085 \begin_layout Plain Layout
2105 \begin_inset Flex Code
2108 \begin_layout Plain Layout
2123 \begin_layout Standard
2133 \begin_inset Flex Code
2136 \begin_layout Plain Layout
2156 \begin_inset Flex Code
2159 \begin_layout Plain Layout
2178 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2179 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2181 \begin_inset Flex Code
2184 \begin_layout Plain Layout
2204 \begin_inset Flex Code
2207 \begin_layout Plain Layout
2226 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2229 \begin_layout LyX-Code
2237 \begin_layout LyX-Code
2245 \begin_layout Standard
2258 \begin_layout Subsubsection
2262 \begin_layout Standard
2272 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2273 \begin_inset Flex Code
2276 \begin_layout Plain Layout
2284 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2285 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2289 \begin_layout Standard
2300 \begin_inset Flex Code
2303 \begin_layout Plain Layout
2311 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2314 \begin_layout LyX-Code
2320 \begin_layout LyX-Code
2326 \begin_layout LyX-Code
2332 \begin_layout LyX-Code
2338 \begin_layout LyX-Code
2344 \begin_layout LyX-Code
2350 \begin_layout LyX-Code
2356 \begin_layout Standard
2375 Avery®ラベルシートのストック5360
2384 番を使用する場合の設定です。これで、各宛名を
2385 \begin_inset Flex Code
2388 \begin_layout Plain Layout
2408 \begin_inset Flex Code
2411 \begin_layout Plain Layout
2430 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2431 \begin_inset Flex Code
2434 \begin_layout Plain Layout
2445 \begin_layout Standard
2455 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2458 \begin_layout Subsubsection
2462 \begin_layout Standard
2492 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2509 \begin_layout Standard
2519 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2537 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2541 \begin_layout Standard
2551 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2555 \begin_layout LyX-Code
2558 usepackage{indentfirst}
2561 \begin_layout Standard
2571 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2574 \begin_layout Subsubsection
2578 \begin_layout Standard
2588 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2598 \begin_inset CommandInset ref
2600 reference "chap:Special-features"
2613 章には、他の例や、LaTeXの各種の「汚い技」があります。
2616 \begin_layout Section
2620 \begin_layout Standard
2630 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2631 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2632 ル中、そのエラーの発生した場所に表示を移動します
2636 \begin_layout Plain Layout
2646 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2647 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2648 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2665 \begin_layout Standard
2675 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2676 \begin_inset Flex MenuItem
2679 \begin_layout Plain Layout
2689 文書\SpecialChar \menuseparator
2695 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2699 \begin_layout Itemize
2702 \begin_inset Flex Code
2705 \begin_layout Plain Layout
2723 \begin_inset Newline newline
2726 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2727 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2730 \begin_layout Itemize
2733 \begin_inset Flex Code
2736 \begin_layout Plain Layout
2754 \begin_inset Newline newline
2757 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2761 \begin_layout Itemize
2771 \begin_inset Flex Code
2774 \begin_layout Plain Layout
2785 \begin_inset Newline newline
2806 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2807 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2808 \begin_inset Newline newline
2811 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2815 \begin_layout Plain Layout
2817 \begin_inset Flex MenuItem
2820 \begin_layout Plain Layout
2821 文書\SpecialChar \menuseparator
2827 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2835 \begin_layout Itemize
2838 \begin_inset Flex Code
2841 \begin_layout Plain Layout
2852 \begin_inset Newline newline
2864 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2867 \begin_layout Itemize
2868 \begin_inset Flex Code
2871 \begin_layout Plain Layout
2884 \begin_inset Flex Code
2887 \begin_layout Plain Layout
2900 \begin_inset Newline newline
2912 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2915 \begin_layout Itemize
2918 \begin_inset Flex Code
2921 \begin_layout Plain Layout
2925 \begin_inset Quotes els
2929 \begin_inset Quotes ers
2947 \begin_inset Newline newline
2950 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2952 \begin_inset Flex Code
2955 \begin_layout Plain Layout
2965 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2975 \begin_inset Flex MenuItem
2978 \begin_layout Plain Layout
2979 ヘルプ\SpecialChar \menuseparator
2994 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
2995 \begin_inset Flex MenuItem
2998 \begin_layout Plain Layout
3008 ツール\SpecialChar \menuseparator
3014 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3015 \begin_inset Newline newline
3028 \begin_inset Flex Code
3031 \begin_layout Plain Layout
3050 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3053 \begin_layout Itemize
3056 \begin_inset Flex Code
3059 \begin_layout Plain Layout
3062 LaTeX Error: Unknown option
3077 \begin_inset Newline newline
3080 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3084 \begin_layout Itemize
3087 \begin_inset Flex Code
3090 \begin_layout Plain Layout
3093 Undefined control sequence
3108 \begin_inset Newline newline
3111 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3112 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3115 \begin_layout Standard
3125 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3126 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3144 手がかりがありません。誰もわからないのです。
3147 \begin_layout Standard
3157 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3160 \begin_layout Enumerate
3170 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3173 \begin_layout Enumerate
3183 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3186 \begin_layout Enumerate
3196 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3197 \begin_inset Flex Code
3200 \begin_layout Plain Layout
3217 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3220 \begin_layout Enumerate
3230 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3234 \begin_layout Enumerate
3244 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3245 \begin_inset Flex Code
3248 \begin_layout Plain Layout
3252 \begin_inset space ~
3261 \begin_inset Flex Code
3264 \begin_layout Plain Layout
3282 \begin_inset Flex Code
3285 \begin_layout Plain Layout
3302 などをたくさん挿入するなど、微調整オプションを
3320 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3323 \begin_layout Enumerate
3333 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3334 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3337 \begin_layout Enumerate
3338 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3339 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3342 \begin_inset Flex Code
3345 \begin_layout Plain Layout
3360 \begin_layout Enumerate
3370 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3371 、それが原因です(LaTeXの上限は5段です)。
3374 \begin_layout Enumerate
3384 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3388 \begin_layout Enumerate
3401 \begin_layout Enumerate
3414 \begin_layout Standard
3428 \begin_layout Enumerate
3429 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3432 \begin_layout Standard
3460 LyXのバグを発見したのかもしれません‥‥。
3463 \begin_layout Chapter
3467 \begin_layout Section
3468 BibTeXによる参照文献のカスタマイズ
3471 \begin_layout Standard
3480 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3483 \begin_layout Subsection
3487 \begin_layout Standard
3488 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3489 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3490 \begin_inset Flex Code
3493 \begin_layout Plain Layout
3500 \begin_inset Flex Code
3503 \begin_layout Plain Layout
3509 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3511 \begin_inset Flex Code
3514 \begin_layout Plain Layout
3520 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3521 \begin_inset Flex Code
3524 \begin_layout Plain Layout
3530 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3535 \begin_inset Flex Code
3538 \begin_layout Plain Layout
3544 パッケージの利用を考えるとよいかもしれません。
3547 \begin_layout Standard
3548 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3549 \begin_inset Flex MenuItem
3552 \begin_layout Plain Layout
3553 文書\SpecialChar \menuseparator
3560 \begin_inset Flex MenuItem
3563 \begin_layout Plain Layout
3570 \begin_inset Flex MenuItem
3573 \begin_layout Plain Layout
3580 \begin_inset Flex MenuItem
3583 \begin_layout Plain Layout
3589 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3590 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3591 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3592 \begin_inset Flex Code
3595 \begin_layout Plain Layout
3601 に至っては、対話的なスタイルファイルビルダーさえ存在します
3605 \begin_layout Plain Layout
3606 \begin_inset Flex URL
3609 \begin_layout Plain Layout
3611 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3624 \begin_layout Subsection
3628 \begin_layout Standard
3629 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3630 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3634 \begin_layout Standard
3635 LyXは、このようなパッケージの一つである
3636 \begin_inset Flex Code
3639 \begin_layout Plain Layout
3649 \begin_layout Plain Layout
3650 \begin_inset Flex URL
3653 \begin_layout Plain Layout
3655 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3665 をそのままでサポートします。このパッケージの長所は、(
3666 \begin_inset Flex Code
3669 \begin_layout Plain Layout
3675 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3676 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3677 \begin_inset Flex Code
3680 \begin_layout Plain Layout
3687 \begin_inset Flex Code
3690 \begin_layout Plain Layout
3699 \begin_layout Standard
3700 \begin_inset Flex MenuItem
3703 \begin_layout Plain Layout
3704 文書\SpecialChar \menuseparator
3711 \begin_inset Flex MenuItem
3714 \begin_layout Plain Layout
3721 \begin_inset Flex MenuItem
3724 \begin_layout Plain Layout
3730 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3731 \begin_inset Flex Code
3734 \begin_layout Plain Layout
3741 \begin_inset Flex Code
3744 \begin_layout Plain Layout
3750 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3751 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3752 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3754 \begin_inset Flex Code
3757 \begin_layout Plain Layout
3763 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3766 \begin_layout Subsection
3770 \begin_layout Standard
3771 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3772 \begin_inset Flex Code
3775 \begin_layout Plain Layout
3782 \begin_inset CommandInset ref
3784 reference "sec:LaTeXコードを挿入する"
3788 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3789 \begin_inset Flex Code
3792 \begin_layout Plain Layout
3798 パッケージが、この課題を解決する簡単な方法を提供します
3802 \begin_layout Plain Layout
3804 \begin_inset Flex Code
3807 \begin_layout Plain Layout
3814 \begin_inset Flex Code
3817 \begin_layout Plain Layout
3831 \begin_layout Standard
3833 \begin_inset Flex MenuItem
3836 \begin_layout Plain Layout
3837 文書\SpecialChar \menuseparator
3844 \begin_inset Flex MenuItem
3847 \begin_layout Plain Layout
3854 \begin_inset Flex MenuItem
3857 \begin_layout Plain Layout
3863 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3864 \begin_inset Flex Code
3867 \begin_layout Plain Layout
3876 \begin_inset Flex Code
3879 \begin_layout Plain Layout
3887 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3888 \begin_inset Flex Code
3891 \begin_layout Plain Layout
3897 において引用されたすべての参照が含まれることになります。
3901 この方法を用いる場合には、すべての参照はいずれかの
3902 \begin_inset Flex Code
3905 \begin_layout Plain Layout
3912 \begin_inset Flex Code
3915 \begin_layout Plain Layout
3924 \begin_layout Section
3928 \begin_layout Subsection
3932 \begin_layout Standard
3933 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3934 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3935 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3939 \begin_layout Plain Layout
3944 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3950 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3951 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3952 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3965 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3968 \begin_layout Standard
3971 挿入\SpecialChar \menuseparator
3972 ファイル\SpecialChar \menuseparator
3975 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3976 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3979 \begin_layout Standard
3980 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3981 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3982 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3985 \begin_layout Standard
3986 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3990 \begin_layout Standard
3991 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3992 \begin_inset Flex Code
3995 \begin_layout Plain Layout
4001 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4002 ものの、単なる見えない空白です。ただし、
4005 \begin_inset Flex MenuItem
4008 \begin_layout Plain Layout
4018 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4021 \begin_layout Subsection
4025 \begin_layout Standard
4026 \begin_inset Box Shadowbox
4036 height_special "totalheight"
4039 \begin_layout Plain Layout
4040 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4048 \begin_layout Standard
4049 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4050 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4054 \begin_layout Subsection
4058 \begin_layout Standard
4059 \begin_inset Box Shadowbox
4069 height_special "totalheight"
4072 \begin_layout Plain Layout
4073 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4081 \begin_layout Standard
4082 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4083 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4086 \begin_layout Standard
4087 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4088 ントをインクルードするLaTeXパッケージの
4089 \begin_inset Flex Code
4092 \begin_layout Plain Layout
4098 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4101 \begin_layout LyX-Code
4107 \begin_layout LyX-Code
4110 includecomment{comment}
4113 \begin_layout Standard
4114 \begin_inset Flex URL
4117 \begin_layout Plain Layout
4119 http://wiki.lyx.org/FAQ/Unsorted#toc31
4127 \begin_layout Section
4131 \begin_layout Standard
4132 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4133 \begin_inset Flex Code
4136 \begin_layout Plain Layout
4142 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4147 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4148 ルに挿入する必要のあるLaTeXコードについて解説します。
4151 \begin_layout Standard
4152 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4153 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4156 \begin_inset Flex Code
4159 \begin_layout Plain Layout
4174 \begin_inset Flex Code
4177 \begin_layout Plain Layout
4192 \begin_inset Flex Code
4195 \begin_layout Plain Layout
4208 \begin_inset Flex Code
4211 \begin_layout Plain Layout
4219 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4222 \begin_layout Standard
4230 \begin_layout Standard
4231 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4235 \begin_layout Standard
4241 \begin_inset Newline newline
4249 \begin_layout Standard
4250 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4251 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4254 \begin_layout Standard
4264 \begin_layout Standard
4272 \begin_layout Standard
4282 \begin_layout Standard
4290 \begin_layout Standard
4298 \begin_layout Standard
4308 \begin_layout Standard
4312 \begin_inset Flex Code
4315 \begin_layout Plain Layout
4332 \begin_inset Flex Code
4335 \begin_layout Plain Layout
4347 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4348 \begin_inset Flex Code
4351 \begin_layout Plain Layout
4366 \begin_layout Standard
4367 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4368 フッタ罫線は0ptです。太さを変更するには、
4371 \begin_inset Flex Code
4374 \begin_layout Plain Layout
4381 headrulewidth}{0.4pt}
4391 \begin_inset Flex Code
4394 \begin_layout Plain Layout
4401 footrulewidth}{0.4pt}
4411 \begin_layout Standard
4412 \begin_inset Flex Code
4415 \begin_layout Plain Layout
4420 thispagestyle{empty}
4426 \begin_inset Flex Code
4429 \begin_layout Plain Layout
4434 thispagestyle{plain}
4440 \begin_inset Flex Code
4443 \begin_layout Plain Layout
4448 thispagestyle{fancy}
4453 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4454 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4455 レーン(plain)になるように設定されているのです。
4458 \begin_layout Standard
4459 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4460 \begin_inset Flex Code
4463 \begin_layout Plain Layout
4471 パッケージの取扱説明書をご参照ください(
4472 \begin_inset Flex Code
4475 \begin_layout Plain Layout
4484 \begin_layout Standard
4485 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4488 \begin_layout Standard
4497 includegraphics{logo.eps}}}
4500 \begin_layout Standard
4502 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4503 \begin_inset Newline newline
4507 \begin_inset Flex Code
4510 \begin_layout Plain Layout
4516 usepackage{graphics}
4521 をプリアンブルに宣言する必要があります)。
4524 \begin_layout Section
4526 \begin_inset CommandInset label
4535 \begin_layout Standard
4541 \begin_layout Subsection
4545 \begin_layout Standard
4546 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4547 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4551 \begin_layout Plain Layout
4552 正確には可能ですが、手動で行う必要があります。
4560 \begin_layout Subsection
4564 \begin_layout Standard
4566 \begin_inset Flex MenuItem
4569 \begin_layout Plain Layout
4570 文書\SpecialChar \menuseparator
4577 \begin_inset Flex MenuItem
4580 \begin_layout Plain Layout
4589 \begin_layout Standard
4590 そのダイアログに、ブリットの形の一覧表があります。
4591 \begin_inset Flex MenuItem
4594 \begin_layout Plain Layout
4600 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4601 \begin_inset Flex MenuItem
4604 \begin_layout Plain Layout
4610 パネルは、変更したい階層を選択するものです。
4611 \begin_inset Flex MenuItem
4614 \begin_layout Plain Layout
4620 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4624 \begin_layout Standard
4625 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4628 \begin_layout Standard
4630 \begin_inset Tabular
4631 <lyxtabular version="3" rows="7" columns="2">
4632 <features tabularvalignment="middle">
4633 <column alignment="center" valignment="top" width="0pt">
4634 <column alignment="center" valignment="top" width="0pt">
4636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4639 \begin_layout Plain Layout
4645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4648 \begin_layout Plain Layout
4665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4668 \begin_layout Plain Layout
4676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4679 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4700 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4738 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4756 \begin_layout Plain Layout
4773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4794 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4814 \begin_layout Plain Layout
4829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4832 \begin_layout Plain Layout
4849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4852 \begin_layout Plain Layout
4867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4870 \begin_layout Plain Layout
4893 \begin_layout Standard
4894 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4895 出るようならば、パッケージが導入されていない可能性が大です
4899 \begin_layout Plain Layout
4900 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4908 \begin_layout Subsection
4912 \begin_layout Standard
4913 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4917 \begin_layout Plain Layout
4922 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4923 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4926 \begin_layout Plain Layout
4930 \begin_layout Plain Layout
4946 \begin_layout Plain Layout
4950 \begin_layout Plain Layout
4972 \begin_layout Itemize
4973 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4974 \begin_inset Flex Code
4977 \begin_layout Plain Layout
4987 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4988 更するために、以下のLaTeXコードが使用されています。
4992 \begin_layout LyX-Code
5004 \begin_layout LyX-Code
5023 \begin_layout Itemize
5025 \begin_inset Flex Code
5028 \begin_layout Plain Layout
5036 コマンドの一部にローマ数字で指定されていることに注意してください。
5039 \begin_layout Itemize
5043 \begin_layout Plain Layout
5056 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5057 \begin_inset Flex Code
5060 \begin_layout Plain Layout
5066 として挿入してください。たとえば、この項目の行頭には
5069 \begin_inset Flex Code
5072 \begin_layout Plain Layout
5091 \begin_layout Plain Layout
5095 \begin_layout Plain Layout
5111 \begin_layout Plain Layout
5112 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5115 \begin_layout LyX-Code
5132 \begin_layout Chapter
5136 \begin_layout Standard
5137 LyX has long supported the export of documents to various web-friendly formats,
5139 Before verson 2.0, however, HTML export was always accomplished by the use
5140 of external converters.
5144 \begin_layout Plain Layout
5145 For details on the use of external converters with LyX, see the
5149 section of the Customization manual.
5154 These fall into two large groups: there are converters that use LaTeX as
5155 an intermediate format, such as
5156 \begin_inset Flex Code
5159 \begin_layout Plain Layout
5168 \begin_inset Flex Code
5171 \begin_layout Plain Layout
5180 \begin_inset Flex Code
5183 \begin_layout Plain Layout
5191 , relying upon LyX to produce the LaTeX; and there is a converter that works
5192 directly on LyX files,
5193 \begin_inset Flex Code
5196 \begin_layout Plain Layout
5205 All of these have different advantages and disadvantages.
5209 \begin_layout Standard
5210 The LaTeX-based converters have the advantage that, in principle, they know
5211 everything about the exported document that LaTeX does.
5212 Such converters do not care, for example, if a certain block of code was
5213 produced by LyX or was Evil Red Text.
5214 These converters know about
5215 \begin_inset Flex Code
5218 \begin_layout Plain Layout
5226 files, counters, and references, and can often make use of the
5227 \begin_inset Flex Code
5230 \begin_layout Plain Layout
5238 files generated by BibTeX.
5239 On the other hand, LaTeX is a very hard language to parse---it is sometimes
5240 said that only TeX itself understands TeX---and LaTeX-based converters
5241 will often choke on what seem to be quite simple constructs; complex ones
5242 can throw them completely, and as of this writing, for example, the
5246 manual will not export with
5247 \begin_inset Flex Code
5250 \begin_layout Plain Layout
5258 , though the others will.
5259 The other issue concerns how math is handled.
5260 These converters typically convert the formulae into little pictures that
5261 are then linked from the HTML document.
5262 Since these are actually generated by LaTeX, they are accurate.
5263 But they do not scale well, and just getting them to look as if they are
5264 actually meant to be in your document---so that the font sizes seem to
5265 be roughly the same---can be a challenge.
5268 \begin_layout Standard
5270 \begin_inset Flex Code
5273 \begin_layout Plain Layout
5282 \begin_inset CommandInset href
5284 name "http://elyxer.nongnu.org/"
5285 target "http://elyxer.nongnu.org/"
5289 ) solves some of these problems.
5290 In particular, the formulae it produces scale perfectly, since it renders
5291 math using a combination of HTML and CSS rather than converting the formulae
5293 But even moderately complex formula are rendered less well than with
5294 \begin_inset Flex Code
5297 \begin_layout Plain Layout
5305 ; this reflects the limitations of HTML.
5309 \begin_layout Plain Layout
5311 \begin_inset Flex Code
5314 \begin_layout Plain Layout
5322 can also use jsMath and MathJax for equations, but this setting is only
5323 available globally and requires one to have access to a server that runs
5329 More importantly (as of version 1.1.1, at least),
5330 \begin_inset Flex Code
5333 \begin_layout Plain Layout
5341 has limited support for math macros and no support for user-defined paragraph
5342 or character styles.
5343 These limitations make
5344 \begin_inset Flex Code
5347 \begin_layout Plain Layout
5355 unsuitable for many of the documents LyX users produce.
5356 In principle, of course, these problems could be solved, but the LyX developers
5357 have decided to follow a different path and have made LyX itself capable
5358 of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5362 \begin_layout Standard
5363 As of this writing, XHTML output remains under development and should probably
5365 \begin_inset Quotes eld
5369 \begin_inset Quotes erd
5376 \begin_layout Plain Layout
5378 \begin_inset Flex Code
5381 \begin_layout Plain Layout
5384 development/HTML.notes
5389 , which can be found in the LyX source tree or
5390 \begin_inset CommandInset href
5392 name "accessed online"
5393 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5397 , usually contains up-to-date information about the state of XHTML output.
5398 See also the list of XHTML bugs on
5399 \begin_inset CommandInset href
5401 name "the bug tracker"
5402 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"
5411 Still, the developers have chosen this approach because it has several
5412 potential advantages over the other two.
5415 \begin_layout Standard
5416 These advantages are primarily due to the fact that the XHTML output routines,
5417 since they are part of LyX, know everything LyX knows about the document
5422 \begin_layout Plain Layout
5423 Another advantage is that, since these routines are internal to LyX, they
5424 are immune to changes in LyX's file format, or to changes in the semantics
5430 So they know about the table of contents (as displayed in the outline),
5431 about the counters associated with different paragraph styles, and about
5432 user-defined styles.
5433 The XHTML output routines know what LyX knows about internationalization,
5434 too, so they will output
5435 \begin_inset Quotes eld
5439 \begin_inset Quotes erd
5443 \begin_inset Quotes eld
5447 \begin_inset Quotes erd
5450 , depending upon the language in effect at the time.
5454 \begin_layout Standard
5455 Quite generally, the output routines know what LyX knows about document
5456 layout, that is, about how the document is to be rendered on screen.
5457 We use this information when we output the document as XHTML.
5462 generates CSS style information corresponding to the layout information
5463 it uses to render the document on screen: if section headings are supposed
5464 to be sans-serif and bold as seen in LyX, then (by default) they will be
5465 sans-serif and bold when viewed in a web browser, too.
5466 And this is true not just for pre-defined styles, like Section, but for
5467 any style, including user-defined styles.
5468 Indeed, the XHTML output routines make no distinction between user-defined
5469 paragraph and character styles and LyX's own pre-defined styles: in each
5470 case, everything LyX knows about the styles is contained in the layout
5472 And much the same is true as regards pre-defined textual insets, such as
5473 footnotes, and various custom insets.
5477 \begin_layout Standard
5478 The result is that XHTML output can be customized and extended in exactly
5479 the same way LaTeX output can be customized and extended: through layout
5481 See chapter five of the
5485 manual for the details.
5488 \begin_layout Standard
5489 The remainder of this chapter contains more detailed information on XHTML
5490 output, its limitations, and ways to work around those limitations.
5493 \begin_layout Section
5494 Math Output in XHTML
5497 \begin_layout Standard
5498 LyX offers four choices for how math is rendered.
5499 These have various advantages and disadvantages:
5502 \begin_layout Itemize
5504 \begin_inset Newline newline
5507 MathML is a dialect of XML designed specifically for mathematics on the
5508 web, and it typically renders very well in browsers that support it.
5509 The disadvantage is that not all browsers support MathML, and support is
5510 not complete even in the Gecko-based browsers, such as Firefox.
5511 \begin_inset Newline newline
5514 If LyX is unable to render a formula as MathML---for example, if the formula
5516 \begin_inset Flex Code
5519 \begin_layout Plain Layout
5527 package or ERT---then it will instead output the formula as an image.
5531 \begin_layout Itemize
5533 \begin_inset Newline newline
5537 \begin_inset Flex Code
5540 \begin_layout Plain Layout
5548 outputs math as HTML, styled by CSS.
5552 \begin_layout Plain Layout
5553 LyX has borrowed some of the CSS for its HTML output from
5554 \begin_inset Flex Code
5557 \begin_layout Plain Layout
5570 For simple formulae, this can work quite well, though with more complicated
5571 formulae it tends to break down.
5572 Still, this method has the advantage that it is very widely supported and
5573 so it may be appropriate for documents that contain only a little, fairly
5575 \begin_inset Newline newline
5578 If Lyx is unable to render a formula as HTML---for example, if the formula
5580 \begin_inset Flex Code
5583 \begin_layout Plain Layout
5591 package or ERT---then it will instead output the formula as an image.
5595 \begin_layout Itemize
5597 \begin_inset Newline newline
5601 \begin_inset Flex Code
5604 \begin_layout Plain Layout
5612 , LyX will output formulae as images, the very same images, in fact, that
5613 are used for instant preview.
5617 \begin_layout Plain Layout
5618 Instant preview does
5622 have to be on for images to be output, however.
5627 The advantage to this method is that the images are simply generated by
5628 LaTeX, so they are very accurate.
5629 The disadvantage, as mentioned earlier, is that these are bitmapped images,
5630 so they do not scale terribly well, and one cannot copy them, etc.
5631 (As of this writing, there are also problems about equation numbering.
5633 \begin_inset CommandInset href
5636 target "http://www.lyx.org/trac/ticket/6894"
5641 \begin_inset Newline newline
5644 The size of the images can be controlled by setting the
5645 \begin_inset Quotes eld
5649 \begin_inset Quotes erd
5653 \begin_inset Flex MenuItem
5656 \begin_layout Plain Layout
5659 Document\SpecialChar \menuseparator
5660 Settings\SpecialChar \menuseparator
5670 \begin_layout Plain Layout
5671 For those who want to know, this controls the resolution of the image in
5672 dots per inch and is based upon a default of 75 dpi.
5678 \begin_inset Newline newline
5681 If LyX for some reason fails to create an image for a formula (e.g., if a
5682 required LaTeX package is not installed), then it will fall back to outputing
5686 \begin_layout Itemize
5688 \begin_inset Newline newline
5691 Finally, LyX will happily output math as LaTeX.
5692 As well as being the output of last resort, this method can be used with
5694 \begin_inset CommandInset href
5697 target "http://www.math.union.edu/~dpvc/jsMath/"
5701 , which uses JavaScript to render LaTeX embedded in HTML documents.
5702 LyX wraps the LaTeX in either a
5703 \begin_inset Flex Code
5706 \begin_layout Plain Layout
5714 (for inline formulas) or
5715 \begin_inset Flex Code
5718 \begin_layout Plain Layout
5726 (for displayed formulas) with
5727 \begin_inset Flex Code
5730 \begin_layout Plain Layout
5738 , as is required for jsMath.
5741 \begin_layout Standard
5742 One of these output methods must be selected under
5743 \begin_inset Flex MenuItem
5746 \begin_layout Plain Layout
5749 Document\SpecialChar \menuseparator
5750 Settings\SpecialChar \menuseparator
5757 By default, LyX outputs MathML.
5758 This is a document-wide setting, therefore.
5761 \begin_layout Standard
5762 Eventually, LyX will offer the user the option to select an alternate output
5763 method for a particular inset, say, one that isn't being rendered very
5768 \begin_layout Plain Layout
5769 That said, since LyX falls back to images if the inset contains ERT, then
5770 one can force output as an image by putting some harmless ERT into the
5772 \begin_inset Formula $a=b\relax$
5783 \begin_layout Section
5784 Bibliography and Citations
5787 \begin_layout Standard
5788 XHTML output fully supports bibliographies and citations.
5792 \begin_layout Standard
5793 Citation labels are generated by the same machinery that generates LyX's
5794 on-screen labels, so the labels will look in the output much as they do
5795 in LyX, though better.
5796 If you are using numerical citations, then LyX will output numerical labels,
5797 such as [1] or [17], rather than simply showing the citation key in square
5798 brackets, as it does on-screen.
5799 If you are using author-year citations, then LyX will add lowercase letters
5800 to the years, just as BibTeX does, if it finds more than one citation for
5801 a given author-year combination.
5802 The labels will be printed with the bibliography entries.
5803 Note that there is, at present, no way to customize the appearance of the
5804 labels, for example, to choose between square brackets and parentheses.
5807 \begin_layout Standard
5808 Bibliography output is handled by the same machinery that handles the presentati
5809 on of reference information in the citation dialog, so you will see in the
5810 XHTML output pretty much what you would see if you were to look at a given
5811 entry in the citation dialog.
5812 The formatting can be customized in your layout file or, preferably, in
5818 manual for the details.
5821 \begin_layout Standard
5822 The main defect at present is that cross-referenced information is printed
5823 with every entry with which it is associated.
5824 So you can see things like this:
5829 \begin_inset Quotes eld
5832 Context and Logical Form
5833 \begin_inset Quotes erd
5838 Language in Context: Selected Essays
5840 (Oxford: Oxford University Press, 2007), pp.
5846 \begin_inset Quotes eld
5849 Semantics in Context
5850 \begin_inset Quotes erd
5855 Language in Context: Selected Essays
5857 (Oxford: Oxford University Press, 2007), pp.
5861 \begin_layout Standard
5862 This should be fixed before long.
5865 \begin_layout Standard
5866 There is no support at present for sectioned bibliographies.
5867 If you have multiple bibliographies, then LyX will print the same bibliography
5871 \begin_layout Section
5875 \begin_layout Standard
5876 LyX will happily export indexes as XHTML, but with certain limitations at
5880 \begin_layout Standard
5881 Index export will be most reliable when you do not attempt to use the fancy
5882 constructs that are described in the section on indexes in the
5890 \begin_layout Plain Layout
5891 The main issue here is that LyX itself does not really handle these.
5892 It just lets you enter what you would have to enter in raw LaTeX.
5897 We'll describe how they are handled using the subsection headings from
5901 \begin_layout Itemize
5902 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5903 these, but the entries must be separated by
5904 \begin_inset Quotes eld
5908 \begin_inset Quotes erd
5911 , that is, there must be spaces around the exclamation point.
5912 This is because it is otherwise too difficult to check for escaped exclamation
5913 points, ones in math, and so forth.
5916 \begin_layout Itemize
5917 Page Ranges: There is no support at all for page ranges, since these make
5918 no sense with XHMTL.
5919 Instead, you will just get two index entries, one at either end.
5922 \begin_layout Itemize
5923 Cross-referencing: There is no support for cross-referencing.
5924 If LyX finds an entry containing the
5925 \begin_inset Quotes eld
5928 |see\SpecialChar \ldots{}
5930 \begin_inset Quotes erd
5933 construct, it is just dropped, and the rest is treated as an ordinary index
5937 \begin_layout Itemize
5938 Index Entry Order: LyX does support attempts to fix the sorting order.
5939 It will take what is before the first `@' it finds and use that for sorting,
5940 taking what follows the first `@' to be the actual entry.
5941 At present, LyX does not check for escaped `@', so do not try to index
5945 \begin_layout Itemize
5946 Index Entry Layout: You can format entries by using the text style dialog,
5947 or by using any other method available within LyX itself.
5948 There is no support for constructs like:
5949 \begin_inset Quotes eld
5953 \begin_inset Quotes erd
5957 Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5958 and everything that follows it.
5961 \begin_layout Itemize
5962 Multiple Indexes: There is no support for multiple indexes.
5963 Rather, all index entries will be printed as one large index.
5964 To avoid our printing several versions of the index, we print only the
5965 main index, so make sure you have one.
5968 \begin_layout Section
5969 Nomenclature and Glossary
5972 \begin_layout Standard
5973 There is at present no support for glossaries.
5974 Adding it would be fairly trivial, and welcome.
5977 \begin_layout Chapter
5981 \begin_layout Section
5985 \begin_layout Standard
5986 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5987 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5988 yXに文献引用を「押し込む」ことが可能となります。
5991 \begin_layout Standard
5994 LyXサーバーはWindowsでは機能しない
6000 \begin_layout Plain Layout
6001 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6009 \begin_layout Section
6013 \begin_layout Standard
6014 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6015 \begin_inset Flex Code
6018 \begin_layout Plain Layout
6024 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6029 \begin_inset Flex Code
6032 \begin_layout Plain Layout
6044 に特別なオブジェクトとして置かれます)、「
6045 \begin_inset Flex Code
6048 \begin_layout Plain Layout
6055 \begin_inset Flex Code
6058 \begin_layout Plain Layout
6064 」という名前がついています。外部プログラムは、
6065 \begin_inset Flex Code
6068 \begin_layout Plain Layout
6075 \begin_inset Flex Code
6078 \begin_layout Plain Layout
6085 \begin_inset Flex MenuItem
6088 \begin_layout Plain Layout
6089 ツール\SpecialChar \menuseparator
6096 \begin_inset Flex Code
6099 \begin_layout Plain Layout
6100 /home/myhome/lyxpipe
6106 \begin_inset Flex Code
6109 \begin_layout Plain Layout
6123 」などに設定することができます。サーバーを開始するためには、これを
6130 \begin_layout Standard
6132 \begin_inset Flex Code
6135 \begin_layout Plain Layout
6142 \begin_inset Flex Code
6145 \begin_layout Plain Layout
6151 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6152 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6153 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6154 除するので、「古い」パイプが残ることはありません。
6157 \begin_layout Standard
6158 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6159 \begin_inset Flex Code
6162 \begin_layout Plain Layout
6168 ファイルを使用させるなど、別々の設定を使用する必要があります。
6171 \begin_layout Standard
6172 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6173 \begin_inset Flex Code
6176 \begin_layout Plain Layout
6185 \begin_layout Standard
6186 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6187 \begin_inset Flex Code
6190 \begin_layout Plain Layout
6191 development/lyxserver/server_monitor.c
6199 \begin_layout Standard
6201 \begin_inset Flex Code
6204 \begin_layout Plain Layout
6205 src/client/lyxclient
6210 にあるコマンドラインベースのクライアントがあります。
6213 \begin_layout Section
6217 \begin_layout Standard
6218 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6235 \begin_layout Description
6236 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6237 答をする際、クライアント名をエコーするときだけです。
6240 \begin_layout Description
6241 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6244 \begin_layout Description
6245 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6248 \begin_layout Standard
6249 LyXからの返答は、出力パイプに送り出され、
6266 \begin_layout Standard
6275 は、コマンド要求からそのままエコーされますが、
6279 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6280 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6283 \begin_layout Standard
6301 \begin_layout Standard
6306 には、なぜコマンドが失敗したかの説明が入っているはずです。
6309 \begin_layout Standard
6313 \begin_layout LyX-Code
6314 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6315 \begin_inset Newline newline
6318 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6319 \begin_inset Newline newline
6322 read a <~/.lyxpipe.out
6323 \begin_inset Newline newline
6329 \begin_layout Section
6333 \begin_layout Standard
6334 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6335 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6339 \begin_inset Flex Code
6342 \begin_layout Plain Layout
6353 \begin_layout Standard
6358 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6361 \begin_layout Standard
6362 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6363 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6366 \begin_layout Section
6370 \begin_layout Standard
6371 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6384 \begin_layout Standard
6389 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6390 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6393 \begin_layout Section
6397 \begin_layout Standard
6402 \begin_layout Plain Layout
6403 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6409 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6410 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6415 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6420 \begin_inset Flex Code
6423 \begin_layout Plain Layout
6429 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6430 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6431 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6432 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6435 \begin_layout Subsection
6436 \begin_inset CommandInset label
6445 \begin_layout Standard
6448 In most cases LyX will do the work for you by enabling the option
6449 \begin_inset Flex MenuItem
6452 \begin_layout Plain Layout
6455 Synchronize with Output
6461 \begin_inset Flex MenuItem
6464 \begin_layout Plain Layout
6467 Document\SpecialChar \menuseparator
6468 Settings\SpecialChar \menuseparator
6475 In such a case LyX will automatically insert the necessary SyncTeX macro
6476 (for PDF) or load the srcltx package (for DVI) respectively.
6477 This option can be easily reached also on
6478 \begin_inset Flex Code
6481 \begin_layout Plain Layout
6492 \begin_layout Standard
6495 If you need a different setting, you can select or input a custom macro
6496 from the drop down box just below
6497 \begin_inset Flex MenuItem
6500 \begin_layout Plain Layout
6503 Document\SpecialChar \menuseparator
6504 Settings\SpecialChar \menuseparator
6505 Output\SpecialChar \menuseparator
6506 Synchronize with Output
6514 \begin_layout Standard
6517 Note that the method
6518 \begin_inset Flex Code
6521 \begin_layout Plain Layout
6531 enables gzip compression.
6532 If your viewer does not support it, you should instead use
6533 \begin_inset Flex Code
6536 \begin_layout Plain Layout
6549 \begin_layout Standard
6552 Please aöso note that including the
6553 \begin_inset Flex Code
6556 \begin_layout Plain Layout
6565 \begin_inset Flex Code
6568 \begin_layout Plain Layout
6576 sometimes has an undesired impact on the typesetting.
6577 Thus, you should switch output synchronization off for the final typesetting
6579 \begin_inset Flex Code
6582 \begin_layout Plain Layout
6591 \begin_inset Flex Code
6594 \begin_layout Plain Layout
6606 \begin_layout Standard
6609 In case you need some more special settings that are not covered by the
6610 automatic settings, read the next section about how to set up output synchroniz
6612 If the automatic setup suits your needs, you can readily jump to section
6613 \begin_inset space ~
6619 \begin_inset CommandInset ref
6621 reference "sub:特定のビューアを設定して使うには"
6627 , where the necessary configuration steps in your viewer -- needed both
6628 with the automatic and the manual setup -- are described.
6631 \begin_layout Subsection
6635 \begin_layout Standard
6636 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6637 \begin_inset Flex Code
6640 \begin_layout Plain Layout
6646 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6647 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6650 \begin_layout Subsubsection*
6651 src-special経由のDVI組み込み検索(DVIのみ)
6654 \begin_layout Standard
6655 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6656 応しています)、安定して動作します。これを有効にするには、
6657 \begin_inset Flex MenuItem
6660 \begin_layout Plain Layout
6661 設定\SpecialChar \menuseparator
6662 ファイル処理\SpecialChar \menuseparator
6669 \begin_inset Flex MenuItem
6672 \begin_layout Plain Layout
6677 \begin_layout Plain Layout
6690 \begin_inset Flex MenuItem
6693 \begin_layout Plain Layout
6698 \begin_layout Plain Layout
6705 eX (plain)->DraftDVI
6711 \begin_inset Flex Code
6714 \begin_layout Plain Layout
6715 latex -src-specials $$i
6720 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6724 \begin_layout Subsubsection*
6725 外部パッケージ(PDFSyncおよびsrcltx)
6728 \begin_layout Standard
6737 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6741 \begin_layout Itemize
6743 \begin_inset Flex Code
6746 \begin_layout Plain Layout
6757 \begin_layout Itemize
6759 \begin_inset Flex Code
6762 \begin_layout Plain Layout
6765 usepackage[active]{srcltx}
6773 \begin_layout Standard
6774 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6777 \begin_layout LyX-Code
6781 \begin_inset Newline newline
6787 \begin_inset Newline newline
6793 \begin_inset Newline newline
6799 \begin_inset Newline newline
6804 usepackage[active]{srcltx}
6805 \begin_inset Newline newline
6813 \begin_layout Standard
6814 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6817 \begin_layout Standard
6818 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6822 \begin_layout Subsubsection*
6823 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6826 \begin_layout Standard
6827 \begin_inset Flex Code
6830 \begin_layout Plain Layout
6836 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6840 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6841 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6842 せん(Mac上のSkimとWindows上のSumatraPDF)。
6845 \begin_layout Standard
6846 DVI出力でSyncTeXを有効にするには、
6847 \begin_inset Flex MenuItem
6850 \begin_layout Plain Layout
6851 設定\SpecialChar \menuseparator
6852 ファイル処理\SpecialChar \menuseparator
6859 \begin_inset Flex MenuItem
6862 \begin_layout Plain Layout
6867 \begin_layout Plain Layout
6880 \begin_inset Flex MenuItem
6883 \begin_layout Plain Layout
6888 \begin_layout Plain Layout
6895 eX (plain)->DraftDVI
6901 \begin_inset Flex Code
6904 \begin_layout Plain Layout
6905 latex -synctex=1 $$i
6911 \begin_inset Flex MenuItem
6914 \begin_layout Plain Layout
6919 \begin_layout Plain Layout
6926 eX (pdflatex)->PDF (pdflatex)
6932 \begin_inset Flex Code
6935 \begin_layout Plain Layout
6936 pdflatex -synctex=1 $$i
6941 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
6945 \begin_layout Plain Layout
6946 \begin_inset Flex Code
6949 \begin_layout Plain Layout
6955 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6956 \begin_inset Flex Code
6959 \begin_layout Plain Layout
6973 \begin_layout Subsection
6975 \begin_inset CommandInset label
6977 name "sub:特定のビューアを設定して使うには"
6984 \begin_layout Subsubsection*
6988 \begin_layout Standard
6990 \begin_inset Flex Code
6993 \begin_layout Plain Layout
6999 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7000 \begin_inset Flex Code
7003 \begin_layout Plain Layout
7009 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7010 、Mac OS X上ではAlt-クリックで始動します)。
7013 \begin_layout Standard
7014 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
7015 \begin_inset Flex MenuItem
7018 \begin_layout Plain Layout
7019 設定\SpecialChar \menuseparator
7020 ファイル処理\SpecialChar \menuseparator
7027 \begin_inset Flex Code
7030 \begin_layout Plain Layout
7031 xdvi -editor 'lyxeditor.sh %f %l'
7037 \begin_inset Flex Code
7040 \begin_layout Plain Layout
7046 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7049 \begin_layout LyX-Code
7051 \begin_inset Newline newline
7054 LYXPIPE="/path/to/lyxpipe"
7055 \begin_inset Newline newline
7058 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7059 \begin_inset Newline newline
7062 echo "$COMMAND" > "${LYXPIPE}".in || exit
7063 \begin_inset Newline newline
7066 read < "${LYXPIPE}".out || exit
7069 \begin_layout Standard
7071 \begin_inset Flex Code
7074 \begin_layout Plain Layout
7081 \begin_inset Flex MenuItem
7084 \begin_layout Plain Layout
7085 設定\SpecialChar \menuseparator
7095 \begin_layout Plain Layout
7102 XServerパイプのパスを指定してください
7106 \begin_layout Plain Layout
7108 \begin_inset Flex Code
7111 \begin_layout Plain Layout
7122 \begin_inset Flex Code
7125 \begin_layout Plain Layout
7139 \begin_layout Subsubsection*
7143 \begin_layout Standard
7144 \begin_inset Flex Code
7147 \begin_layout Plain Layout
7148 /Applications/MacDviX_Folder/calleditor.script
7156 \begin_layout LyX-Code
7161 \begin_layout Plain Layout
7168 X.app/Contents/MacOS/lyxeditor "$2" $1
7169 \begin_inset Newline newline
7175 \begin_layout Standard
7176 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7179 \begin_layout Standard
7180 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7183 \begin_layout Subsubsection*
7187 \begin_layout Standard
7188 \begin_inset Flex MenuItem
7191 \begin_layout Plain Layout
7192 設定\SpecialChar \menuseparator
7193 ファイル処理\SpecialChar \menuseparator
7194 ファイル書式\SpecialChar \menuseparator
7201 \begin_inset Flex Code
7204 \begin_layout Plain Layout
7205 open -a Skim.app $$i
7211 \begin_inset Flex MenuItem
7214 \begin_layout Plain Layout
7215 Skim\SpecialChar \menuseparator
7216 設定\SpecialChar \menuseparator
7226 \begin_layout Plain Layout
7236 \begin_layout Standard
7237 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7240 \begin_layout Subsubsection*
7244 \begin_layout Standard
7245 \begin_inset Flex MenuItem
7248 \begin_layout Plain Layout
7249 設定\SpecialChar \menuseparator
7250 Okularを設定\SpecialChar \ldots{}
7251 \SpecialChar \menuseparator
7257 で「カスタムテキストエディタ」を選択し、コマンドに
7258 \begin_inset Flex Code
7261 \begin_layout Plain Layout
7270 \begin_layout Standard
7271 遡及検索は、SHIFT-クリックで始動します。
7274 \begin_layout Subsubsection*
7278 \begin_layout Standard
7280 \begin_inset Flex MenuItem
7283 \begin_layout Plain Layout
7284 View\SpecialChar \menuseparator
7290 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7291 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7292 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7293 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7294 \begin_inset Flex Code
7297 \begin_layout Plain Layout
7303 (以下参照)のあるディレクトリを見つけます。
7304 \begin_inset Flex Code
7307 \begin_layout Plain Layout
7314 \begin_inset Flex Code
7317 \begin_layout Plain Layout
7324 \begin_inset Flex Code
7327 \begin_layout Plain Layout
7337 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7340 \begin_layout LyX-Code
7342 \begin_inset Newline newline
7345 echo LYXCMD:revdvi:server-goto-file-row:%1 %2>
7354 \begin_inset Newline newline
7368 \begin_layout Standard
7369 LyXで指定したLyXServerパイプパスが、
7370 \begin_inset Flex Code
7373 \begin_layout Plain Layout
7388 \begin_inset Flex Code
7391 \begin_layout Plain Layout
7400 \begin_layout Standard
7401 yapでは、遡及検索はダブルクリックで始動します。
7404 \begin_layout Subsubsection*
7408 \begin_layout Standard
7409 SumatraPDFを遡及検索で使用するためには、
7410 \begin_inset Flex MenuItem
7413 \begin_layout Plain Layout
7414 設定\SpecialChar \menuseparator
7415 ファイル処理\SpecialChar \menuseparator
7416 ファイル書式\SpecialChar \menuseparator
7423 \begin_inset Flex Code
7426 \begin_layout Plain Layout
7427 SumatraPDF -inverse-search
7428 \begin_inset Quotes eld
7432 \begin_inset Quotes erd
7441 \begin_inset Flex Code
7444 \begin_layout Plain Layout
7450 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7453 \begin_layout Standard
7457 \begin_layout Subsubsection*
7461 \begin_layout Standard
7462 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7463 \begin_inset Flex MenuItem
7466 \begin_layout Plain Layout
7467 View\SpecialChar \menuseparator
7473 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7474 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7475 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7476 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7477 \begin_inset Flex Code
7480 \begin_layout Plain Layout
7486 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7487 \begin_inset Flex Code
7490 \begin_layout Plain Layout
7497 \begin_inset Flex Code
7500 \begin_layout Plain Layout
7506 と指定してください。これによって、LyXとの通信に
7510 が使用されるようになります。何らかの理由で
7515 \begin_inset Flex Code
7518 \begin_layout Plain Layout
7524 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7527 \begin_layout Standard
7528 yapでは、遡及検索はダブルクリックで始動します。
7531 \begin_layout Subsubsection*
7535 \begin_layout Standard
7536 SumatraPDFを遡及検索で使用するためには、
7537 \begin_inset Flex MenuItem
7540 \begin_layout Plain Layout
7541 設定\SpecialChar \menuseparator
7542 ファイル処理\SpecialChar \menuseparator
7543 ファイル書式\SpecialChar \menuseparator
7550 \begin_inset Flex Code
7553 \begin_layout Plain Layout
7560 \begin_inset Flex Code
7563 \begin_layout Plain Layout
7569 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7570 \begin_inset Flex Code
7573 \begin_layout Plain Layout
7582 \begin_layout LyX-Code
7584 \begin_inset Newline newline
7588 \begin_inset Newline newline
7591 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7594 \begin_layout Standard
7595 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7596 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7597 \begin_inset Flex Code
7600 \begin_layout Plain Layout
7615 \begin_inset Flex Code
7618 \begin_layout Plain Layout
7624 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7627 \begin_layout Standard
7631 \begin_layout Section
7635 \begin_layout Standard
7636 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7637 \begin_inset CommandInset ref
7639 reference "sub:遡及検索"
7643 節に述べられている方法で実行することができます。
7646 \begin_layout Standard
7648 \begin_inset Flex MenuItem
7651 \begin_layout Plain Layout
7652 設定\SpecialChar \menuseparator
7653 出力\SpecialChar \menuseparator
7659 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7664 \begin_layout Plain Layout
7665 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7670 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7671 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7672 \begin_inset Flex Code
7675 \begin_layout Plain Layout
7682 \begin_inset Flex Code
7685 \begin_layout Plain Layout
7692 \begin_inset Flex Code
7695 \begin_layout Plain Layout
7701 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7704 \begin_layout Standard
7705 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7709 \begin_layout Chapter
7713 \begin_layout Section
7717 \begin_layout Standard
7723 \begin_layout Subsection
7727 \begin_layout Standard
7734 Astronomy and Astrophysics
7736 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/
7737 \begin_inset Flex URL
7740 \begin_layout Plain Layout
7742 http://www.edpsciences.fr/aa/
7747 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7750 \begin_layout Standard
7752 \begin_inset VSpace medskip
7756 \begin_inset Flex URL
7759 \begin_layout Plain Layout
7761 ftp://ftp.edpsciences.org/pub/aa/readme.html
7767 \begin_inset VSpace medskip
7773 \begin_layout Standard
7778 \begin_layout Standard
7779 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7783 \begin_layout Standard
7784 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7785 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7786 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7792 $LyXDir/layouts/aapaper.layout
7797 \begin_layout Subsection
7801 \begin_layout Standard
7802 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7805 \begin_layout Itemize
7808 文書\SpecialChar \menuseparator
7815 を選択してください(まぁ、これは自明ですね)。
7818 \begin_layout Itemize
7823 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7826 \begin_layout Subsection
7830 \begin_layout Standard
7831 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7834 \begin_layout Itemize
7842 \begin_layout Itemize
7850 \begin_layout Itemize
7858 \begin_layout Itemize
7866 \begin_layout Itemize
7871 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7874 \begin_layout Itemize
7879 :[非必須]連絡用の電子メールアドレス。
7882 \begin_layout Itemize
7889 Received: <日付>; Accepted <日付>
7894 \begin_layout Standard
7901 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7902 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7905 \begin_layout Standard
7906 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7908 挿入\SpecialChar \menuseparator
7911 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7920 \begin_layout Standard
7921 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7924 \begin_layout Itemize
7925 複数の著者名あるいは所属名を区切るための
7932 \begin_layout Itemize
7943 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7946 \begin_layout Itemize
7953 は、至急連絡用に電子メールアドレスを付記します。
7956 \begin_layout Standard
7957 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7958 \begin_inset Flex Code
7961 \begin_layout Plain Layout
7970 \begin_layout Subsection
7974 \begin_layout Standard
7975 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7976 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7982 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7985 \begin_layout Subsection
7989 \begin_layout Standard
7990 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
7993 \begin_layout Itemize
7999 \begin_layout Itemize
8005 \begin_layout Itemize
8011 \begin_layout Itemize
8017 \begin_layout Itemize
8023 \begin_layout Itemize
8029 \begin_layout Itemize
8035 \begin_layout Itemize
8041 \begin_layout Itemize
8047 \begin_layout Itemize
8053 \begin_layout Itemize
8059 \begin_layout Itemize
8065 \begin_layout Subsection
8069 \begin_layout Standard
8074 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8077 \begin_layout Itemize
8085 \begin_layout Itemize
8093 \begin_layout Itemize
8101 \begin_layout Itemize
8109 \begin_layout Itemize
8117 \begin_layout Itemize
8125 \begin_layout Itemize
8133 \begin_layout Itemize
8141 \begin_layout Standard
8142 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8144 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8147 \begin_layout Subsection
8151 \begin_layout Standard
8168 をサポートしていますので、ここでは詳しい説明はしません。
8172 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8174 編集\SpecialChar \menuseparator
8180 \begin_layout Standard
8181 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8184 \begin_layout Enumerate
8187 挿入\SpecialChar \menuseparator
8188 フロート\SpecialChar \menuseparator
8191 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8192 \begin_inset Flex MenuItem
8195 \begin_layout Plain Layout
8196 設定\SpecialChar \ldots{}
8217 \begin_layout Enumerate
8221 \begin_layout Enumerate
8226 を押して、カーソルをキャプションの上に移動します。
8229 \begin_layout Enumerate
8233 \begin_layout Enumerate
8236 挿入\SpecialChar \menuseparator
8239 \SpecialChar \menuseparator
8259 \begin_layout Enumerate
8262 挿入\SpecialChar \menuseparator
8268 \begin_layout Enumerate
8280 \begin_layout Enumerate
8281 カーソルをキャプション文の後ろに移動し、
8283 挿入\SpecialChar \menuseparator
8286 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8289 \begin_layout Standard
8293 \begin_layout Subsection
8297 \begin_layout Standard
8298 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8302 オプションを与える必要があります。これは、
8304 文書\SpecialChar \menuseparator
8311 クラスオプションフィールドを使って行うことができます。この欄に
8318 \begin_layout Subsection
8322 \begin_layout Standard
8327 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8328 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8331 \begin_layout Section
8335 \begin_layout Standard
8343 \begin_layout Subsection
8347 \begin_layout Standard
8348 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8349 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8350 the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8351 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8352 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8353 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8356 \begin_layout Standard
8358 \begin_inset VSpace medskip
8362 \begin_inset Flex URL
8365 \begin_layout Plain Layout
8367 http://www.journals.uchicago.edu/AAS/AASTeX
8373 \begin_inset VSpace medskip
8379 \begin_layout Standard
8380 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8381 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8382 求事項に完全に合致していることを確認するのは、あなたの責任です。
8385 \begin_layout Subsection
8389 \begin_layout Standard
8390 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8391 \begin_inset Flex MenuItem
8394 \begin_layout Plain Layout
8395 ファイル\SpecialChar \menuseparator
8401 をクリックして、新しいファイル名を入力し、ひな型
8405 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8409 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8421 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8422 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8423 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8426 \begin_layout Subsection
8430 \begin_layout Standard
8431 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8434 \begin_layout Enumerate
8435 論文を LaTeXファイルとして書き出します(
8437 ファイル\SpecialChar \menuseparator
8438 書き出し\SpecialChar \menuseparator
8444 \begin_layout Enumerate
8453 \begin_layout Enumerate
8460 コマンドよりも前のコメント行を削除します。
8463 \begin_layout Enumerate
8468 usepackage...{fontenc}
8485 \begin_layout Enumerate
8486 LaTeXプリアンブル中に意図的に置いたコマンド(
8490 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8502 の間のもの(これらのコマンドを含む)をすべて削除します。
8506 \begin_layout Enumerate
8507 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8510 \begin_layout Enumerate
8511 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8514 \begin_layout Enumerate
8518 \begin_layout Subsection
8522 \begin_layout Standard
8527 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8528 列挙して、必要なところだけコメントを加えることにしましょう。
8531 \begin_layout Subsubsection
8535 \begin_layout Standard
8536 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8636 begin{thebibliography}
8644 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8695 \begin_layout Standard
8696 以下のスタイルオプションも正しく動作します。
8717 \begin_inset Flex MenuItem
8720 \begin_layout Plain Layout
8721 文書\SpecialChar \menuseparator
8738 \begin_layout Subsubsection
8742 \begin_layout Standard
8743 以下のコマンドは動作しますが、若干の説明が必要です。
8746 \begin_layout Itemize
8747 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8778 \begin_layout Itemize
8779 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8800 \begin_layout Itemize
8807 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8810 \begin_layout Itemize
8817 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8820 \begin_layout Itemize
8827 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8830 \begin_layout Itemize
8837 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8840 \begin_layout Itemize
8856 \begin_layout Itemize
8863 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8866 \begin_layout Itemize
8873 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8876 \begin_layout Itemize
8883 (2.14.2)―文章のはじめにカーソルを置いて
8884 \begin_inset Flex MenuItem
8887 \begin_layout Plain Layout
8888 挿入\SpecialChar \menuseparator
8894 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8900 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8903 \begin_layout Itemize
8910 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8919 \begin_layout Itemize
8926 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8935 \begin_layout Subsubsection
8936 実装されていないため、TeXコードを使用するもの
8939 \begin_layout Standard
8962 setcounter{equation}
8964 (2.12)・学術誌名略語(2.12.4)・
9000 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
9012 (2.15.5)・補遺(2.17)の大半(
9063 \begin_layout Subsubsection
9067 \begin_layout Standard
9068 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9069 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9070 \begin_inset Flex MenuItem
9073 \begin_layout Plain Layout
9074 挿入\SpecialChar \menuseparator
9076 \begin_inset Formula $\text{\textipa{}}$
9079 \SpecialChar \menuseparator
9085 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
9092 \begin_layout Subsection
9096 \begin_layout Subsubsection
9100 \begin_layout Standard
9101 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9104 \begin_layout Enumerate
9105 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
9113 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
9120 \begin_layout Enumerate
9132 \begin_layout Enumerate
9135 ツール\SpecialChar \menuseparator
9138 を再度実行し、LyXを再起動してください。
9141 \begin_layout Enumerate
9142 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9144 文書\SpecialChar \menuseparator
9150 \begin_layout Standard
9151 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9152 出るようであれば、正しい導入が行われていません。
9155 \begin_layout Subsubsection
9159 \begin_layout Standard
9160 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9163 編集\SpecialChar \menuseparator
9174 に設定してください。私のところではこれで解決しました。
9177 \begin_layout Subsubsection
9181 \begin_layout Standard
9182 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9195 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9199 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9200 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9203 \begin_layout Subsubsection
9207 \begin_layout Standard
9208 AASTeXには、自前の図関連コマンド(たとえば
9214 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9220 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9224 usepackage{graphics}
9226 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9227 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9230 \begin_layout Subsubsection
9234 \begin_layout Standard
9235 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9236 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9237 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9240 \begin_layout Subsection
9244 \begin_layout Standard
9245 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9246 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9250 \begin_layout Section
9254 \begin_layout Standard
9264 \begin_inset VSpace bigskip
9267 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9268 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9269 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9270 \begin_inset Flex URL
9273 \begin_layout Plain Layout
9281 \begin_inset Flex URL
9284 \begin_layout Plain Layout
9286 ftp://ftp.ams.org/pub/tex/amslatex/
9291 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9294 \begin_layout Standard
9295 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9298 \begin_layout Itemize
9299 amsart:標準のAMS article書式。
9302 \begin_layout Itemize
9303 amsbook:標準のAMS book(実際はモノグラフ)書式。
9306 \begin_layout Standard
9307 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9308 m」環境は、何一つ含まれていません。これらは、代わりに
9309 \begin_inset Flex Code
9312 \begin_layout Plain Layout
9318 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9319 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9320 \begin_inset Flex Code
9323 \begin_layout Plain Layout
9329 モジュールがあり、これは手動で読み込む必要があります。
9332 \begin_layout Standard
9333 既定では、定理類は、文書を通して連番が振られますが、これは
9334 \begin_inset Flex Code
9337 \begin_layout Plain Layout
9343 モジュールを読み込めば変更することができ、
9344 \begin_inset Flex Code
9347 \begin_layout Plain Layout
9354 \begin_inset Flex Code
9357 \begin_layout Plain Layout
9363 を用いても変更することができます。これらを用いると、出力は
9364 \begin_inset Formula $n.m$
9367 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9368 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9373 \begin_inset Flex Code
9376 \begin_layout Plain Layout
9385 \begin_layout Standard
9386 これらのモジュールは、AMSクラスで使用する
9391 \begin_inset Flex Code
9394 \begin_layout Plain Layout
9400 モジュールや上述の他のモジュールは、他のクラス、たとえば
9401 \begin_inset Flex Code
9404 \begin_layout Plain Layout
9411 \begin_inset Flex Code
9414 \begin_layout Plain Layout
9421 \begin_inset Flex Code
9424 \begin_layout Plain Layout
9433 \begin_layout Subsection
9437 \begin_layout Standard
9438 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9439 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9442 \begin_layout Standard
9443 \begin_inset Flex Code
9446 \begin_layout Plain Layout
9453 \begin_inset Flex Code
9456 \begin_layout Plain Layout
9463 \begin_inset space ~
9467 \begin_inset Flex Noun
9470 \begin_layout Plain Layout
9477 \begin_inset Flex Noun
9480 \begin_layout Plain Layout
9487 \begin_inset Flex Noun
9490 \begin_layout Plain Layout
9497 \begin_inset Flex Noun
9500 \begin_layout Plain Layout
9507 \begin_inset Flex Noun
9510 \begin_layout Plain Layout
9517 \begin_inset space ~
9521 \begin_inset space ~
9527 \begin_layout Description
9531 \begin_layout Description
9532 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9535 \begin_layout Description
9539 \begin_layout Description
9543 \begin_layout Description
9544 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9547 \begin_layout Description
9550 Mathematical Reviews
9552 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9556 \begin_layout Description
9560 \begin_layout Description
9564 \begin_layout Description
9568 \begin_layout Standard
9570 \begin_inset Flex Code
9573 \begin_layout Plain Layout
9580 \begin_inset Flex Code
9583 \begin_layout Plain Layout
9589 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9590 \begin_inset Flex Code
9593 \begin_layout Plain Layout
9599 モジュールでは、同環境の星付き版だけが提供されます。
9602 \begin_layout Theorem
9603 これは、通常、得られた主要な結果を叙述するのに使用されます。
9606 \begin_layout Corollary*
9607 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9611 他の叙述を証明するために必要とされる、比較的小さな結果です。
9614 \begin_layout Proposition
9615 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9618 \begin_layout Conjecture
9619 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9622 \begin_layout Definition*
9623 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9626 \begin_layout Problem
9627 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9630 \begin_layout Exercise*
9635 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9638 \begin_layout Claim*
9639 より大きな結果の証明を与える途中で、しばしば用いられます。
9643 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9647 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9651 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9652 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9663 \begin_layout Standard
9665 \begin_inset Flex Code
9668 \begin_layout Plain Layout
9677 \begin_layout Criterion*
9681 \begin_layout Algorithm*
9685 \begin_layout Axiom*
9686 議論されている系内部で真と仮定される性質や命題です。
9689 \begin_layout Condition*
9690 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9697 \begin_layout Notation*
9701 \begin_layout Summary
9705 \begin_layout Acknowledgement*
9706 謝辞(acknowledgement)です。
9709 \begin_layout Conclusion*
9714 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9717 \begin_layout Standard
9718 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9722 \begin_layout Section
9728 \begin_layout Standard
9736 \begin_layout Subsection
9740 \begin_layout Standard
9741 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9743 \begin_inset Flex URL
9746 \begin_layout Plain Layout
9748 ftp://ftp.agu.org/journals/latex/journals
9753 にあります)が導入されていることが必要です。
9756 \begin_layout Subsection
9760 \begin_layout Standard
9769 は、定義し直されています。LyXの画面では、依然として
9777 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9788 \begin_layout Standard
9825 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9828 \begin_layout Standard
9829 おそらく、これはまだ恐ろしく不完全です。
9832 \begin_layout Subsection
9836 \begin_layout Standard
9845 (Plate)が新しいフロートです。また、
9852 \begin_layout Subsection
9856 \begin_layout Itemize
9859 Journal of Geophysical Research
9868 \begin_layout Standard
9869 ここにあなたの作ったものを加えてください。難しくはありません。
9880 \begin_layout Subsection
9884 \begin_layout Standard
9885 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9888 \begin_layout Enumerate
9895 ツール\SpecialChar \menuseparator
9898 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9905 \begin_layout Enumerate
9910 と入力してください(すみません、これはバグです)。
9913 \begin_layout Enumerate
9914 BibTeX差込枠の2番目のフィールドに
9922 を使用していることを確認してください。標準スタイルはうまく動作しません。
9925 \begin_layout Section
9929 \begin_layout Standard
9937 \begin_layout Subsection
9941 \begin_layout Standard
9942 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9945 \begin_layout Subsection
9949 \begin_layout Standard
9953 \begin_layout Subsection
9957 \begin_layout Standard
9962 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9965 \begin_layout Subsection
9969 \begin_layout Standard
9970 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9973 \begin_layout Subsection
9977 \begin_layout Standard
9978 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9981 \begin_layout Itemize
9985 \begin_inset Newline newline
9990 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9993 \begin_layout Itemize
9997 \begin_inset space \hfill{}
10001 \begin_inset Newline newline
10006 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10009 \begin_layout Itemize
10013 \begin_inset space \hfill{}
10017 \begin_inset Newline newline
10022 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10025 \begin_layout Itemize
10029 \begin_inset space \hfill{}
10033 \begin_inset Newline newline
10038 幕の副題です。単に中央揃えの文になります。
10041 \begin_layout Itemize
10045 \begin_inset space \hfill{}
10049 \begin_inset Newline newline
10054 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10057 \begin_layout Itemize
10061 \begin_inset space \hfill{}
10065 \begin_inset Newline newline
10070 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10073 \begin_layout Itemize
10077 \begin_inset space \hfill{}
10081 \begin_inset Newline newline
10086 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10089 \begin_layout Itemize
10093 \begin_inset space \hfill{}
10097 \begin_inset Newline newline
10102 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10109 \begin_layout Itemize
10113 \begin_inset space \hfill{}
10117 \begin_inset Newline newline
10125 \begin_layout Itemize
10129 \begin_inset space \hfill{}
10133 \begin_inset Newline newline
10141 \begin_layout Itemize
10145 \begin_inset space \hfill{}
10151 \begin_layout Itemize
10155 \begin_inset space \hfill{}
10161 \begin_layout Itemize
10165 \begin_inset space \hfill{}
10171 \begin_layout Section
10175 \begin_layout Standard
10180 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10182 .../lyx/share/templates
10184 にあるので、それを土台として使用してください。
10187 \begin_layout Section
10193 \begin_layout Standard
10201 \begin_layout Subsection
10205 \begin_layout Standard
10206 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10211 \begin_inset Flex URL
10214 \begin_layout Plain Layout
10216 http://www.copernicus.org/
10224 \begin_layout Subsection
10228 \begin_layout Standard
10265 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10269 ファイルを読み込む形に変えた方が便利になると思われます。
10272 \begin_layout Section
10276 \begin_layout Standard
10279 See the LyX template file
10284 It contains all infos you need.
10287 \begin_layout Section
10289 \begin_inset CommandInset label
10298 \begin_layout Standard
10306 \begin_layout Subsection
10310 \begin_layout Standard
10311 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10312 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10315 \begin_layout Standard
10316 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10319 \begin_layout Standard
10320 \begin_inset VSpace bigskip
10326 \begin_layout Standard
10332 presentation (FoilT
10338 \begin_layout Plain Layout
10356 \begin_layout Standard
10357 \begin_inset VSpace bigskip
10363 \begin_layout Standard
10366 transparencies (slides)
10369 \begin_inset CommandInset ref
10371 reference "sec:slitex"
10375 節をご覧ください。お使いのコンピュータに
10381 presentation (FoilT
10385 \begin_layout Plain Layout
10405 \begin_layout Standard
10410 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10414 の第2.1版とともに使われるように設計されています。
10417 \begin_layout Subsection
10421 \begin_layout Standard
10422 いうまでもなく、この文書クラスを使うには、
10424 文書\SpecialChar \menuseparator
10425 設定\SpecialChar \menuseparator
10434 presentation (FoilT
10438 \begin_layout Plain Layout
10451 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10454 \begin_layout Itemize
10467 オプションは変更しないでください。これらは
10474 \begin_layout Itemize
10475 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10478 \begin_layout Itemize
10487 ですが、数式ではすべて、通常のローマン体が使用されます。
10490 \begin_layout Itemize
10492 \begin_inset space \thinspace{}
10495 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10498 \begin_layout Itemize
10503 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10506 \begin_layout Itemize
10511 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10512 \begin_inset CommandInset ref
10514 reference "sec:foilfoot"
10518 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10522 付けられず、(ロゴが定義されていれば)ロゴは、
10526 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10530 \begin_layout Labeling
10531 \labelwidthstring MMMMMMM
10538 最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10541 \begin_layout Labeling
10542 \labelwidthstring MMMMMMM
10549 最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10552 \begin_layout Labeling
10553 \labelwidthstring MMMMMMM
10558 ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10561 \begin_layout Labeling
10562 \labelwidthstring MMMMMMM
10571 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10576 \begin_layout Subsubsection
10580 \begin_layout Standard
10585 ダイアログの任意設定クラスオプションボックスで使うことができます。
10588 \begin_layout Labeling
10589 \labelwidthstring MMMMMMx
10594 これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10595 \begin_inset space \space{}
10598 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10601 \begin_layout Labeling
10602 \labelwidthstring MMMMMMx
10607 タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10610 \begin_layout Labeling
10611 \labelwidthstring MMMMMMx
10616 タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10619 \begin_layout Labeling
10620 \labelwidthstring MMMMMMx
10629 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10632 \begin_layout Labeling
10633 \labelwidthstring MMMMMMx
10638 このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10639 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10647 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10650 \begin_layout Labeling
10651 \labelwidthstring MMMMMMx
10659 \begin_layout Labeling
10660 \labelwidthstring MMMMMMx
10668 \begin_layout Subsection
10672 \begin_layout Standard
10673 他のクラスで標準的にサポートされている環境は、
10677 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10680 \begin_layout Standard
10684 \begin_layout Plain Layout
10688 begin{multicols}{2}
10696 \begin_layout Itemize
10702 \begin_layout Itemize
10708 \begin_layout Itemize
10714 \begin_layout Itemize
10720 \begin_layout Itemize
10726 \begin_layout Itemize
10732 \begin_layout Itemize
10738 \begin_layout Itemize
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 Standard
10808 \begin_layout Plain Layout
10820 \begin_layout Standard
10821 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10825 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10828 \begin_layout Itemize
10834 \begin_layout Itemize
10837 横置きスライドタイトル(Rotatefoilhead)
10840 \begin_layout Standard
10841 LyXは、以下のような、これらを若干修正した環境も用意しています。
10844 \begin_layout Itemize
10847 スライドタイトル(小)(ShortFoilhead)
10850 \begin_layout Itemize
10853 横置きスライドタイトル(小)(ShortRotatefoilhead)
10856 \begin_layout Standard
10860 \begin_layout Standard
10861 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10865 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10868 \begin_layout Standard
10872 \begin_layout Plain Layout
10876 begin{multicols}{2}
10884 \begin_layout Itemize
10890 \begin_layout Itemize
10896 \begin_layout Itemize
10902 \begin_layout Itemize
10908 \begin_layout Itemize
10914 \begin_layout Itemize
10920 \begin_layout Itemize
10926 \begin_layout Itemize
10932 \begin_layout Itemize
10938 \begin_layout Itemize
10944 \begin_layout Itemize
10950 \begin_layout Standard
10954 \begin_layout Plain Layout
10966 \begin_layout Standard
10967 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10970 \begin_layout Itemize
10976 \begin_layout Itemize
10982 \begin_layout Standard
10983 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10984 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10987 \begin_layout Standard
10988 この目的のためには、以下のコマンドスタイルがあります(
10993 \begin_layout Standard
10997 \begin_layout Plain Layout
11001 begin{multicols}{2}
11009 \begin_layout Itemize
11015 \begin_layout Itemize
11021 \begin_layout Itemize
11027 \begin_layout Itemize
11033 \begin_layout Itemize
11040 \begin_layout Standard
11041 \begin_inset space ~
11048 \begin_layout Standard
11052 \begin_layout Plain Layout
11064 \begin_layout Standard
11065 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11066 \begin_inset CommandInset ref
11068 reference "sec:unsuppfoils"
11075 \begin_layout Subsection
11079 \begin_layout Standard
11080 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
11091 \begin_layout Subsubsection
11095 \begin_layout Standard
11116 は独立したページにタイトルを作成します。
11120 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11123 \begin_layout Subsubsection
11127 \begin_layout Standard
11128 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11134 スライドタイトル(小)(ShortFoilhead)
11136 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11139 \begin_layout Standard
11142 横向きスライドタイトル(Rotatefoilhead)
11146 ShortRotatefoilhead)
11148 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11152 \begin_layout Standard
11153 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11157 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11161 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11164 \begin_layout Subsubsection
11168 \begin_layout Standard
11169 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11170 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11175 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11176 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11179 \begin_layout Subsubsection
11183 \begin_layout Standard
11184 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11185 他の箇条書き環境について詳しく知りたい場合には、
11189 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11190 \begin_inset CommandInset ref
11192 reference "sec:ブリット"
11200 の節も、読まれることが望ましいでしょう。
11203 \begin_layout Standard
11212 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11217 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11221 パッケージが導入済であることを要求します。
11224 \begin_layout Subsubsection
11228 \begin_layout Standard
11229 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11230 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11233 \begin_layout Subsubsection
11235 \begin_inset CommandInset label
11237 name "sec:foilfoot"
11244 \begin_layout Standard
11253 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by
11257 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11260 \begin_layout Standard
11273 (左上)を使って文字を入れることができます。
11276 \begin_layout Subsection
11282 \begin_inset CommandInset label
11284 name "sec:unsuppfoils"
11291 \begin_layout Standard
11303 \begin_layout Subsubsection
11307 \begin_layout Standard
11330 は、変更したい長さに付けられている名前で置き換え、
11334 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11340 のように文書比あるいはフォント基準の長さで指定する必要があります。
11343 \begin_layout Standard
11350 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11351 \begin_inset space \space{}
11354 inだけスライド本文に近づけるには、プリアンブルに
11360 foilheadskip}{-0.5in}
11365 \begin_layout Standard
11366 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11369 \begin_layout Labeling
11370 \labelwidthstring MMMMMMMMMMM
11380 \begin_layout Labeling
11381 \labelwidthstring MMMMMMMMMMM
11391 \begin_layout Labeling
11392 \labelwidthstring MMMMMMMMMMM
11402 \begin_layout Labeling
11403 \labelwidthstring MMMMMMMMMMM
11410 この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11416 に対する相対的な長さで調整するのが最も良いでしょう。
11419 \begin_layout Standard
11420 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11423 \begin_layout Labeling
11424 \labelwidthstring MMMMMMMMMMM
11434 \begin_layout Labeling
11435 \labelwidthstring MMMMMMMMMMM
11453 \begin_layout Labeling
11454 \labelwidthstring MMMMMMMMMMM
11468 \begin_layout Labeling
11469 \labelwidthstring MMMMMMMMMMM
11487 \begin_layout Labeling
11488 \labelwidthstring MMMMMMMMMMM
11506 \begin_layout Standard
11507 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11513 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11519 を使う必要がないことに注意してください。
11522 \begin_layout Subsubsection
11526 \begin_layout Standard
11543 で定義したロゴを特定のページに入れるかどうかを制御します。
11549 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11555 を置き、次のスライドタイトルの直後に直接
11564 \begin_layout Standard
11573 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11587 パッケージが提供するページレイアウトと
11591 クラスの提供するページレイアウトの間に衝突が発生するためです。
11594 \begin_layout Section
11595 Hollywood(Hollywoodスペック・スクリプト)
11598 \begin_layout Standard
11606 \begin_layout Subsection
11610 \begin_layout Standard
11611 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11612 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11614 \begin_inset space \space{}
11617 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11620 \begin_layout Subsection
11624 \begin_layout Standard
11629 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11633 名を再度書き、その後に(Cont'd)と加えます。
11636 \begin_layout Subsection
11640 \begin_layout Standard
11645 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11646 きに話者名を挿入するのにも使用することができます。
11649 \begin_layout Subsection
11653 \begin_layout Standard
11654 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11657 \begin_layout Subsection
11661 \begin_layout Standard
11662 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11665 \begin_layout Itemize
11669 \begin_inset Newline newline
11674 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11677 \begin_layout Itemize
11679 \begin_inset space \hfill{}
11687 \begin_inset Newline newline
11690 通常、この後には「Sallyは目を覚ますと」のように続きます。
11693 \begin_layout Itemize
11697 \begin_inset space \hfill{}
11701 \begin_inset Newline newline
11706 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11710 \begin_layout Itemize
11714 \begin_inset space \hfill{}
11718 \begin_inset Newline newline
11723 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11726 \begin_layout Itemize
11730 \begin_inset space \hfill{}
11734 \begin_inset Newline newline
11742 \begin_layout Itemize
11746 \begin_inset space \hfill{}
11750 \begin_inset Newline newline
11755 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11758 \begin_layout Itemize
11762 \begin_inset space \hfill{}
11766 \begin_inset Newline newline
11774 \begin_layout Itemize
11778 \begin_inset space \hfill{}
11782 \begin_inset Newline newline
11787 カメラの動きの指示。例:CUT TO:。
11790 \begin_layout Itemize
11794 \begin_inset space \hfill{}
11800 \begin_layout Itemize
11804 \begin_inset space \hfill{}
11810 \begin_layout Itemize
11814 \begin_inset space \hfill{}
11820 \begin_layout Itemize
11824 \begin_inset space \hfill{}
11830 \begin_layout Subsection
11834 \begin_layout Itemize
11838 \begin_layout Itemize
11842 \begin_layout Itemize
11847 \begin_layout Itemize
11852 \begin_layout Itemize
11853 PAN — camera movement
11856 \begin_layout Itemize
11857 INSERT — cut to close-up of
11860 \begin_layout Section
11864 \begin_layout Standard
11867 Panayotis Papasotiriou
11872 \begin_layout Subsection
11876 \begin_layout Standard
11879 International Journal of Modern Physics C
11881 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11883 International Journal of Modern Physics D
11885 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11893 です。これらのファイルは、著者のための指針とともに、
11894 \begin_inset Flex URL
11897 \begin_layout Plain Layout
11899 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11905 \begin_inset Flex URL
11908 \begin_layout Plain Layout
11910 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11915 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11916 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11919 \begin_layout Subsection
11923 \begin_layout Standard
11924 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11926 ファイル\SpecialChar \menuseparator
11937 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11941 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11944 \begin_layout Enumerate
11945 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11948 \begin_layout Enumerate
11949 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11951 ツール\SpecialChar \menuseparator
11966 をクリックすれば、設定することができます(この変更を固定するなら
11973 \begin_layout Enumerate
11974 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11977 \begin_layout Enumerate
11978 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11979 ートされていませんので、ご注意ください。
11982 \begin_layout Enumerate
11983 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11984 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11987 \begin_layout Enumerate
11988 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11989 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11990 \begin_inset space \space{}
12006 \begin_layout Enumerate
12007 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12010 \begin_layout Enumerate
12019 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
12020 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
12021 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
12025 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12028 \begin_layout Enumerate
12029 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12033 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
12034 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
12040 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
12044 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12049 ファイルに収め、このファイルをLyX文書に取り込んでください(
12051 挿入\SpecialChar \menuseparator
12052 ファイル\SpecialChar \menuseparator
12055 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12066 \begin_layout Subsection
12070 \begin_layout Standard
12071 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
12073 ファイル\SpecialChar \menuseparator
12074 書き出し\SpecialChar \menuseparator
12081 \begin_layout Plain Layout
12082 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
12083 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12092 ファイルに以下の変更を加える必要があります。
12095 \begin_layout Enumerate
12102 コマンドより前にあるコメント行を削除する。
12105 \begin_layout Enumerate
12106 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
12118 コマンドの間にあるものをすべて削除する。
12121 \begin_layout Standard
12126 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
12130 文書も確認された方がよろしいでしょう。
12133 \begin_layout Subsection
12137 \begin_layout Standard
12138 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12146 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12147 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12151 markboth{著者名}{論文の短縮タイトル}
12156 \begin_layout Section
12160 \begin_layout Standard
12168 \begin_layout Subsection
12172 \begin_layout Standard
12173 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12174 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12175 \begin_inset Flex URL
12178 \begin_layout Plain Layout
12180 ftp://ftp.iop.org/pub/journals/latex2e
12185 からiopartパッケージとともにダウンロード可能です。
12188 \begin_layout Subsection
12192 \begin_layout Standard
12193 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12197 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12198 な助言として、以下の点にご注意ください。
12201 \begin_layout Itemize
12202 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12210 関連オプションが有効になっていないことを確認してください!
12213 \begin_layout Itemize
12214 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12218 \begin_layout Itemize
12224 \begin_layout Itemize
12230 \begin_layout Itemize
12236 \begin_layout Itemize
12242 \begin_layout Itemize
12248 \begin_layout Itemize
12256 \begin_layout Itemize
12257 Preliminary communication用には
12262 \begin_layout Itemize
12263 Rapid communication用には
12268 \begin_layout Itemize
12275 \begin_layout Itemize
12280 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12283 \begin_layout Itemize
12284 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12288 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12291 \begin_layout Standard
12292 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12295 \begin_layout Section
12299 \begin_layout Standard
12302 Panayotis Papasotiriou
12307 \begin_layout Subsection
12311 \begin_layout Standard
12312 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12313 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12315 Astrophysics and Space Science
12321 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12322 \begin_inset Flex URL
12325 \begin_layout Plain Layout
12327 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12332 に全覧があります)。Kluwerパッケージは、
12333 \begin_inset Flex URL
12336 \begin_layout Plain Layout
12338 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12343 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12346 \begin_layout Standard
12347 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12349 \begin_inset CommandInset ref
12351 reference "subsec:kluwer_peculiarities"
12355 参照)。最近、私はLyXを使って書いた論文を
12357 Astrophysics and Space Science
12359 に投稿しましたが、何らの問題も発生しませんでした。
12362 \begin_layout Subsection
12366 \begin_layout Standard
12367 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12369 ファイル\SpecialChar \menuseparator
12376 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12381 を含む)正しい情報で上書きしてください。
12384 \begin_layout Subsection
12388 \begin_layout Standard
12389 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12392 \begin_layout Enumerate
12395 ファイル\SpecialChar \menuseparator
12396 書き出し\SpecialChar \menuseparator
12399 をクリックして、論文をLaTeXファイルに書き出す。
12402 \begin_layout Enumerate
12407 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12411 \begin_layout Enumerate
12418 コマンドより前にあるコメント行を削除する。
12421 \begin_layout Enumerate
12422 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12434 の間にあるものを、これらのコマンドも含め、すべて削除する。
12437 \begin_layout Standard
12446 \begin_layout Enumerate
12451 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12454 \begin_layout Enumerate
12463 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12466 \begin_layout Subsection
12467 Kluwerパッケージの「風変わり」な特徴
12468 \begin_inset CommandInset label
12470 name "subsec:kluwer_peculiarities"
12477 \begin_layout Standard
12478 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12481 \begin_layout Enumerate
12482 複数の論文を1つのLaTeXファイルへ入れることができます
12486 \begin_layout Plain Layout
12487 わざわざこんなことをする必要はないでしょう。
12492 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12504 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12516 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12519 \begin_layout Enumerate
12520 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12521 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12536 \begin_layout Enumerate
12537 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12560 \begin_layout Standard
12565 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12569 \begin_layout Enumerate
12570 ひな型にあるTeXコードを削除しないでください。
12573 \begin_layout Enumerate
12574 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12577 \begin_layout Section
12581 \begin_layout Standard
12589 \begin_layout Subsection
12593 \begin_layout Standard
12596 article (koma-script)
12600 report (koma-script)
12618 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12634 に対応しています。これらは、標準文書クラス
12650 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12653 \begin_layout Itemize
12656 article (koma-script)
12660 report (koma-script)
12668 letter (koma-script)
12673 \begin_layout Itemize
12674 見出しや箇条書き(記述)環境のラベル、および
12676 letter (koma-script)
12678 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12682 \begin_layout Plain Layout
12683 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12684 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12697 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12698 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12701 文書\SpecialChar \menuseparator
12708 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12715 \begin_layout Itemize
12716 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12724 オプションを使う方法です(LyXでは、
12726 文書\SpecialChar \menuseparator
12733 フィールドで指定します)。これらのオプションは
12735 文書\SpecialChar \menuseparator
12738 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12746 \begin_layout Itemize
12747 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12751 \begin_layout Standard
12752 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12760 \begin_layout Plain Layout
12770 。以下の各節では、LyXに関係する側面のみ説明致します。
12773 \begin_layout Subsection
12774 article (koma-script)・report (koma-script)・book (koma-script)
12777 \begin_layout Standard
12780 article (koma-script)
12784 report (koma-script)
12806 によって実装されています。これらは、対応する標準文書クラス
12818 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12822 環境は例外であり、同じ機能を持つ新しい
12830 環境以外にも、新しい段落環境が多く追加されています。これらは、
12832 letter (koma-script)
12834 には含まれていないのでご注意ください。
12837 \begin_layout Itemize
12862 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12872 article (koma-script)
12877 \begin_layout Itemize
12894 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12900 article (koma-script)
12906 \begin_layout Plain Layout
12913 report (koma-script)
12925 と同一なので、LyXでは実装されていません。
12933 \begin_layout Itemize
12938 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12941 \begin_layout Itemize
12950 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12951 ねに表の上に置くべきでしょう)。また、クラスオプション
12955 を用いれば、キャプションを指定すると、表には
12963 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12966 \begin_layout Itemize
12971 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12973 挿入\SpecialChar \menuseparator
12976 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12982 article (koma-script)
12987 \begin_layout Standard
13000 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13004 \begin_layout Plain Layout
13011 コマンドよりも前に現れなくてはなりません。
13016 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13028 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13031 \begin_layout Itemize
13048 )の上に、文書の主題用の中央揃えの段落を生成します。
13051 \begin_layout Itemize
13068 )の下に、出版社名用の中央揃えの段落を生成します。
13071 \begin_layout Itemize
13078 report (koma-script)
13084 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13086 article (koma-script)
13100 )の下に献辞用の中央揃えの段落を生成します。
13103 \begin_layout Itemize
13120 )の上に、文書頭書き用の左揃えの段落を生成します。
13123 \begin_layout Itemize
13130 report (koma-script)
13136 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13138 article (koma-script)
13143 \begin_layout Itemize
13150 report (koma-script)
13156 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13158 article (koma-script)
13163 \begin_layout Itemize
13168 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13171 \begin_layout Standard
13174 article (koma-script)
13178 report (koma-script)
13188 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13192 を、個人用レイアウトディレクトリにコピーして編集してください!
13195 \begin_layout Subsection
13196 letter (koma-script)
13199 \begin_layout Standard
13203 letter (koma-script)
13209 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13213 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13229 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13245 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13248 \begin_layout Standard
13249 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13253 \begin_layout Plain Layout
13254 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13258 \begin_layout LyX-Code
13268 \begin_layout LyX-Code
13284 \begin_layout LyX-Code
13294 \begin_layout LyX-Code
13310 \begin_layout LyX-Code
13318 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13322 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13325 \begin_layout Standard
13334 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13342 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13346 環境は、同じ受取人への書簡を新しく書き出すものであり、
13350 環境は、新しい受取人を生成するものです。
13366 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13369 \begin_layout Itemize
13374 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13377 \begin_layout Itemize
13382 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13385 \begin_layout Itemize
13393 \begin_layout Itemize
13401 \begin_layout Itemize
13409 \begin_layout Itemize
13417 \begin_layout Standard
13458 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13462 \begin_layout Plain Layout
13471 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13472 一文字をマークした通常の段落環境として実装しました。さらに、
13480 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13492 \begin_layout Standard
13493 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13498 環境で入力した署名は、標準的な挙動では、同じ書簡に
13502 環境も使用されているときのみ、書簡の出力に現れます。
13506 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13509 \begin_layout Standard
13510 入力環境は、空の段落として使うことができます。これは、たとえば
13518 環境を全く使用しない場合は、標準的な挙動では、
13522 環境の値が署名として使用されますが、空の
13526 環境を作成しておくと、署名の値は無定義となりません。
13529 \begin_layout Standard
13530 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13533 \begin_layout Itemize
13538 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13541 \begin_layout Itemize
13561 \begin_layout Itemize
13566 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13569 \begin_layout Itemize
13574 :送り主の電話番号。標準的な挙動では、LaTeX変数
13583 \begin_layout Itemize
13591 \begin_layout Itemize
13604 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13612 の値如何に関わらず、場所も日付も表示されません。
13616 環境を使用しない場合には、書簡を出力した日付が使用されます。
13619 \begin_layout Itemize
13624 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13627 \begin_layout Itemize
13632 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13635 \begin_layout Itemize
13640 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13643 \begin_layout Itemize
13648 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13651 \begin_layout Itemize
13663 \begin_layout Standard
13666 Yourref・Yourmail・Myref・顧客・インボイス
13672 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13673 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13677 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13681 の値は書簡には表示されなくなり、LaTeX変数
13687 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13695 \begin_layout Itemize
13703 \begin_layout Itemize
13711 \begin_layout Itemize
13719 \begin_layout Itemize
13727 \begin_layout Itemize
13735 \begin_layout Subsection
13736 新しいletterクラス:letter (koma-script v.2)
13739 \begin_layout Standard
13743 \begin_inset VSpace medskip
13749 \begin_layout Standard
13751 Koma-Script第2.8版では、新しいletterクラス
13759 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13760 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13763 \begin_layout Standard
13766 letter (koma-script)
13768 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13788 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13806 挿入\SpecialChar \menuseparator
13813 を入れることができるようになった点です。
13816 \begin_layout Standard
13817 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13818 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13826 \begin_layout Plain Layout
13831 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13845 文書\SpecialChar \menuseparator
13846 設定\SpecialChar \menuseparator
13847 文書クラス\SpecialChar \menuseparator
13854 を加えることで読み込むことができます。
13859 。用例としては、LyXに収録されているひな型
13863 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13870 \begin_layout Subsection
13874 \begin_layout Standard
13875 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13878 \begin_layout Itemize
13883 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13887 ラベル型に対するLyXの内部処理が原因です。
13890 \begin_layout Itemize
13899 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13906 \begin_layout Itemize
13911 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13914 文書\SpecialChar \menuseparator
13917 ダイアログでは、対応するラジオボタンは
13925 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13928 \begin_layout Section
13932 \begin_layout Standard
13940 \begin_layout Subsection
13944 \begin_layout Standard
13945 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13946 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13950 \begin_layout Standard
13951 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13952 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13953 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13957 \begin_layout Plain Layout
13959 \begin_inset Flex URL
13962 \begin_layout Plain Layout
13964 lyx-devel@lists.lyx.org
13974 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13979 \begin_layout Plain Layout
13981 \begin_inset CommandInset ref
13983 reference "sec:LaTeXコードを挿入する"
13992 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13993 ついては、Memoirクラスの詳しい取扱説明書
13997 \begin_layout Plain Layout
13999 \begin_inset Flex URL
14002 \begin_layout Plain Layout
14004 CTAN:/macros/latex/memoir/memman.pdf
14014 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14018 \begin_layout Subsection
14022 \begin_layout Standard
14023 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14026 \begin_layout Description
14027 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14030 \begin_layout Description
14031 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
14032 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14034 文書\SpecialChar \menuseparator
14035 設定\SpecialChar \menuseparator
14038 参照)。これらを章題ページに使用したい場合には、コマンド
14044 を、本文またはプリアンブルに記述する必要があります(例えば、
14048 chapterstyle{companion}
14053 \begin_layout Description
14054 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14055 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
14057 挿入\SpecialChar \menuseparator
14060 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14061 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14062 のものにヘッダ用短縮タイトルを入れてください。
14065 \begin_layout Description
14066 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14067 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14070 \begin_layout Description
14071 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
14072 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
14076 aliaspagestyle{title}{empty}
14081 \begin_layout Description
14088 文書\SpecialChar \menuseparator
14089 設定\SpecialChar \menuseparator
14092 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14093 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14096 \begin_layout Description
14097 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
14109 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
14114 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
14115 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14118 \begin_layout Subsection
14122 \begin_layout Standard
14123 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14127 \begin_layout Plain Layout
14128 \begin_inset Flex URL
14131 \begin_layout Plain Layout
14133 CTAN:/macros/latex/memoir/memman.pdf
14146 \begin_layout Description
14147 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14148 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14151 \begin_layout Description
14152 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14153 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14156 \begin_layout Description
14157 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14158 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14168 のように、(TeXモードで)波括弧を入れなくてはなりません。
14171 \begin_layout Description
14172 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14173 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14174 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14177 \begin_layout Description
14178 詩題*: 目次に現れない他は詩題と同じです。
14181 \begin_layout Section
14182 Article(mwart)・book(mwbk)・report(mwrep)
14183 \begin_inset Argument
14186 \begin_layout Plain Layout
14199 \begin_layout Standard
14207 \begin_layout Standard
14214 report (mwrep)・book
14244 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14247 \begin_layout Standard
14251 \begin_layout Itemize
14259 \begin_layout Itemize
14264 \begin_layout Description
14268 \begin_layout Description
14284 \begin_layout Description
14285 myuheadings 分離線付きカスタムヘッダ
14288 \begin_layout Description
14293 \begin_layout Itemize
14298 \begin_layout Description
14299 rmheadings セリフ体見出し --- 既定
14302 \begin_layout Description
14303 sfheadings サンセリフ体見出し
14306 \begin_layout Description
14307 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14310 \begin_layout Description
14311 titleauthor タイトルページは、タイトル・著者名の順で配置
14314 \begin_layout Description
14315 withmarginpar ページ上に余白のための場所を確保
14319 \begin_layout Section
14323 \begin_layout Standard
14336 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14339 \begin_layout Section
14343 \begin_layout Standard
14349 \begin_layout Standard
14350 \begin_inset VSpace bigskip
14356 \begin_layout Standard
14361 \begin_inset space ~
14366 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14367 \begin_inset Formula $\beta$
14373 \begin_layout Standard
14374 LyXには、RevTeX 3.1で動作する
14378 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14379 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14383 \begin_inset space ~
14388 テキストクラスの組で使用するのは、たいへん簡単です。
14391 \begin_layout Standard
14392 この取扱説明書は、RevTeX 4.0の説明書の
14396 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14400 \begin_layout Subsection
14404 \begin_layout Standard
14405 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14407 \begin_inset Flex URL
14410 \begin_layout Plain Layout
14412 http://publish.aps.org/revtex4/
14417 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14418 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14419 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14422 \begin_layout Standard
14427 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14430 \begin_inset space ~
14435 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14438 \begin_layout Subsection
14442 \begin_layout Standard
14449 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14451 文書\SpecialChar \menuseparator
14452 設定\SpecialChar \menuseparator
14459 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14462 \begin_layout Standard
14469 など他のプリアンブルは、他のクラス同様、
14471 文書\SpecialChar \menuseparator
14472 設定\SpecialChar \menuseparator
14478 \begin_layout Subsection
14482 \begin_layout Standard
14483 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14489 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14497 はまったく同じものなので、両方を使う必要はありません
14501 \begin_layout Plain Layout
14526 \begin_layout Subsection
14530 \begin_layout Standard
14531 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14534 \begin_layout Standard
14551 に来なくてはなりません。LyXでは、独立した
14559 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14562 \begin_layout Standard
14583 )レイアウトの間に置かなければなりません。
14591 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14594 \begin_layout Subsection
14598 \begin_layout Standard
14599 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14600 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14601 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14602 ならないということです。これらのレイアウトがないと、
14614 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14618 \begin_layout Plain Layout
14623 実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14631 \begin_layout Section
14637 \begin_layout Standard
14645 \begin_layout Subsection
14649 \begin_layout Standard
14650 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14651 \begin_inset Flex URL
14654 \begin_layout Plain Layout
14656 http://www.springer.de/author/tex/help-journals.html
14661 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14666 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14673 \begin_layout Standard
14674 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14689 \begin_layout Standard
14690 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14698 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14699 eXの場合は、必要に応じてroot権限で
14703 を実行します)、LyXを再初期設定すれば、動作するはずです。
14706 \begin_layout Subsection
14710 \begin_layout Standard
14719 ・\SpecialChar \ldots{}
14727 \begin_layout Standard
14738 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14741 。詳しくは Springerのクラスファイルの説明書を読んでください。
14744 \begin_layout Subsection
14748 \begin_layout Itemize
14760 \begin_layout Itemize
14763 Probability Theory and Related Fields
14769 --- Jean-Marc Lasgouttes
14772 \begin_layout Standard
14773 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14776 \begin_layout Subsection
14780 \begin_layout Standard
14789 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14790 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14793 \begin_layout Subsection
14797 \begin_layout Standard
14802 よりは少なくなっているとは思いますが。
14805 \begin_layout Standard
14806 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14809 \begin_layout Section
14818 \begin_layout Plain Layout
14819 (訳註)この節の内容は、全般的に古くなっています。
14825 \begin_inset CommandInset label
14834 \begin_layout Standard
14842 \begin_layout Subsection
14846 \begin_layout Standard
14847 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14851 スライドクラスの2つがあります。本節は前者について説明を行います。
14854 \begin_layout Standard
14855 誤解のないように、正しく明確に、もう一度言っておきます。
14858 \begin_layout Standard
14859 \begin_inset VSpace bigskip
14865 \begin_layout Standard
14870 \begin_inset Quotes eld
14875 transparencies (slides)
14878 \begin_inset Quotes erd
14888 \begin_layout Standard
14889 \begin_inset VSpace bigskip
14895 \begin_layout Standard
14901 \begin_inset CommandInset ref
14903 reference "sec:foiltex"
14923 \begin_layout Plain Layout
14924 \SpecialChar \ldots{}
14929 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14937 \begin_layout Standard
14938 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14942 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14946 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14951 ならばできることもあります。詳しくは以下をお読みください。
14954 \begin_layout Subsection
14956 \begin_inset CommandInset label
14958 name "sec:slidesetup"
14965 \begin_layout Standard
14966 当然ながら、この文書クラスを使用するには、
14968 文書\SpecialChar \menuseparator
14973 transparencies (slides)
14975 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14978 \begin_layout Itemize
14987 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14991 クラスではサポートされていないので、効果がありません。
14994 \begin_layout Itemize
14999 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15003 \begin_layout Description
15004 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15007 \begin_layout Description
15012 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15015 \begin_layout Description
15016 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15020 \begin_layout Itemize
15029 というオプションがあります。これを使用するには、
15041 \begin_layout Standard
15046 にタイムマーカーを加えることができます。詳細は、第
15047 \begin_inset CommandInset ref
15049 reference "sec:slideNote"
15057 \begin_layout Standard
15062 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15066 」を使用することもできます(新規ファイルを開く際に
15068 ファイル\SpecialChar \menuseparator
15071 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15074 \begin_layout Subsection
15078 \begin_layout Subsubsection
15084 \begin_layout Standard
15089 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
15097 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
15098 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
15101 \begin_layout Standard
15102 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
15107 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
15110 \begin_layout Itemize
15116 \begin_layout Itemize
15122 \begin_layout Itemize
15128 \begin_layout Itemize
15134 \begin_layout Itemize
15140 \begin_layout Itemize
15146 \begin_layout Itemize
15152 \begin_layout Itemize
15158 \begin_layout Itemize
15164 \begin_layout Itemize
15170 \begin_layout Itemize
15176 \begin_layout Standard
15177 これ以外の標準的な環境、例えば節見出し用の環境などは
15184 \begin_layout Standard
15188 \begin_layout Itemize
15194 \begin_layout Itemize
15200 \begin_layout Itemize
15206 \begin_layout Itemize
15212 \begin_layout Itemize
15218 \begin_layout Standard
15219 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15220 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15224 \begin_layout Subsubsection
15226 \begin_inset CommandInset label
15235 \begin_layout Standard
15236 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15245 』で述べられているような段落環境ではなくなっています。
15248 \begin_layout Standard
15261 は「疑似環境」だとお考えください。これらは節見出しや「
15265 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15273 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15276 \begin_layout Standard
15297 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15317 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15320 \begin_layout Standard
15329 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15337 \begin_layout Standard
15338 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15339 きません。そこで以下のようにしてください。
15342 \begin_layout Itemize
15370 \begin_layout Itemize
15374 \begin_layout Itemize
15382 \begin_layout Itemize
15406 \begin_layout Standard
15407 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15412 \begin_layout Plain Layout
15413 (訳註)ここの記述は古くなっています。
15421 \begin_layout Subsection
15435 \begin_layout Subsubsection
15443 \begin_layout Standard
15444 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15449 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15452 \begin_layout Standard
15458 \begin_inset CommandInset ref
15460 reference "sec:スライドの癖"
15464 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15465 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15468 \begin_layout Standard
15469 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15473 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15474 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15482 \begin_layout Standard
15495 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15503 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15506 \begin_layout Standard
15519 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15527 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15530 \begin_layout Subsubsection
15536 \begin_layout Standard
15541 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15545 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15549 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15550 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15557 \begin_layout Standard
15574 \begin_layout Plain Layout
15575 想像できるように、複数のオーバーレイがあれば、「
15587 」などが親スライドのページ番号に付け加えられます。
15600 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15608 の「一部」であると考えるのがよいでしょう。LyXでは、
15616 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15624 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15627 \begin_layout Standard
15628 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15629 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15630 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15641 \begin_layout Standard
15650 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15651 \begin_inset CommandInset ref
15653 reference "sec:スライドの癖"
15665 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15673 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15676 \begin_layout Standard
15681 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15697 は自動的に終了されることに注意してください。したがって、
15708 \begin_layout Standard
15725 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15728 \begin_layout Enumerate
15733 かに関わらず、スライド上に現れるすべてを含んだ
15740 \begin_layout Enumerate
15745 のみに表示するすべての図や段落の前に、
15760 \begin_layout Enumerate
15772 \begin_layout Enumerate
15784 \begin_layout Enumerate
15808 \begin_layout Standard
15816 \begin_layout Standard
15821 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15822 実現するためには、LaTeXコードを埋め込む必要があります
15826 \begin_layout Plain Layout
15830 \begin_layout Itemize
15835 invisible \SpecialChar \ldots{}
15839 \begin_layout Itemize
15844 visible \SpecialChar \ldots{}
15848 \begin_layout Plain Layout
15849 \SpecialChar \ldots{}
15850 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15862 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15874 \begin_layout Subsubsection
15880 \begin_inset CommandInset label
15889 \begin_layout Standard
15902 に関連付けられています。ここでもLyX
15914 よりも短く(オーバーレイのラベルよりも長いですが)、
15918 のラベルと同様、派手な赤紫色です。加えて、印刷した
15934 3」等を付けたページ番号が付けられます。1つの
15950 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15953 \begin_layout Standard
15962 に関して付け加えたいことを書き留めておくことです。特定の
15966 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15974 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15977 \begin_layout Standard
15978 タイムマーカを使用するには、クラスオプション「
15983 \begin_inset CommandInset ref
15985 reference "sec:slidesetup-1"
15989 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15993 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
16005 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16011 」は、タイムマーカを特定の時間に設定し、「
16017 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16025 にどれだけの時間をかけるのか忘れないでいられます。
16028 \begin_layout Standard
16029 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16041 はすべて普通の紙に印刷したいはずです。しかしながら、
16049 。ユーザーはどうしたら良いのでしょうか。
16052 \begin_layout Standard
16053 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16069 のみが含まれるようにするものです。同様に、「
16081 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
16082 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
16091 のコメントを外して、現ファイル名に「*
16095 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
16107 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
16110 \begin_layout Standard
16123 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
16126 \begin_layout Subsection
16134 \begin_layout Standard
16143 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16145 ファイル\SpecialChar \menuseparator
16148 メニューを選択してください。すると新規ファイルには、
16176 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16179 \begin_layout LyX-Code
16180 % Uncomment to print out only slides and overlays
16183 \begin_layout LyX-Code
16187 \begin_layout LyX-Code
16193 \begin_inset Newline newline
16199 \begin_layout LyX-Code
16200 % Uncomment to print out only notes
16203 \begin_layout LyX-Code
16207 \begin_layout LyX-Code
16215 \begin_layout Standard
16216 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16220 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16221 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16226 \begin_inset CommandInset ref
16228 reference "sec:foiltex"
16236 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16240 \begin_layout Chapter
16241 ソフトウェアを追加する必要がある LyX機能
16244 \begin_layout Section
16248 \begin_layout Standard
16256 \begin_layout Subsection
16260 \begin_layout Standard
16269 \begin_layout Plain Layout
16270 LaTeX頒布版としてMiKTeXを使用している場合には、
16292 \begin_inset CommandInset href
16294 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16301 \begin_layout Standard
16306 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16307 \begin_inset Flex Noun
16310 \begin_layout Plain Layout
16317 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16325 \begin_layout Standard
16326 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16334 をチェックするだけでなく、打ち間違いによる
16350 は、以下のような誤りを検出することができます。
16353 \begin_layout Itemize
16355 \begin_inset Newline newline
16358 ...ではなく\SpecialChar \ldots{}
16362 \begin_layout Itemize
16364 \begin_inset Newline newline
16367 ( wrong spacing ):誤った空白
16370 \begin_layout Itemize
16371 よく使われる省略形の後ろは通常スペースにする:
16372 \begin_inset Newline newline
16376 \begin_inset space \thinspace{}
16380 \begin_inset space \space{}
16383 is too wide spacing.:広すぎる空白
16386 \begin_layout Itemize
16387 直前の文章が大文字で終わっているときに、文末スペースに直す:
16388 \begin_inset Newline newline
16392 And this is wrong spacing.:誤った空白
16395 \begin_layout Itemize
16397 \begin_inset Newline newline
16400 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。
16401 \begin_inset CommandInset label
16411 \begin_layout Plain Layout
16412 この脚注は、正しくないページに行ってしまう恐れがあります。
16420 \begin_layout Itemize
16421 参照の前にハードスペースではなくスペース:
16422 \begin_inset Newline newline
16425 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16426 \begin_inset CommandInset ref
16428 reference "sec:chktex"
16435 \begin_layout Itemize
16437 \begin_inset Formula $\times$
16441 \begin_inset Newline newline
16445 \begin_inset Formula $2\times2$
16451 \begin_layout Standard
16452 などなど\SpecialChar \ldots{}
16457 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16460 \begin_layout Subsection
16464 \begin_layout Standard
16465 このプログラムを導入したならば、使うのは
16467 ツール\SpecialChar \menuseparator
16470 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16474 を起動し、当該ファイルを検査しますが、
16478 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16480 移動\SpecialChar \menuseparator
16491 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16507 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16511 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16515 \begin_layout Standard
16516 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16517 警告のほとんどは実際には警告に値しません。
16520 \begin_layout Subsection
16524 \begin_layout Standard
16529 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16533 を無効にするか、あなたにもう少し合うように
16540 \begin_layout Standard
16545 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16549 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16557 \begin_layout Plain Layout
16568 文書\SpecialChar \menuseparator
16576 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16577 に対処するためには、以下の2つの方法があります。
16580 \begin_layout Itemize
16597 起動コマンドラインを調整するか、グローバルな
16602 \begin_inset Flex Code
16605 \begin_layout Plain Layout
16611 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16614 \begin_layout Itemize
16617 ファイル\SpecialChar \menuseparator
16618 書き出し\SpecialChar \menuseparator
16621 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16625 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16628 \begin_layout Standard
16633 で有効化・無効化できる警告メッセージです。警告を無効にするには
16641 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16643 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16648 \begin_layout Standard
16653 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16656 \begin_layout Enumerate
16660 Command terminated with space.
16663 \begin_layout Enumerate
16666 Non-breaking space (
16667 \begin_inset Quotes eld
16675 \begin_inset Quotes erd
16678 ) should have been used.
16681 \begin_layout Enumerate
16685 You should enclose the previous parenthesis with
16686 \begin_inset Quotes eld
16694 \begin_inset Quotes erd
16700 \begin_layout Enumerate
16703 Italic correction (
16704 \begin_inset Quotes eld
16714 \begin_inset Quotes erd
16717 ) found in non-italic buffer.
16720 \begin_layout Enumerate
16723 Italic correction (
16724 \begin_inset Quotes eld
16734 \begin_inset Quotes erd
16737 ) found more than once.
16740 \begin_layout Enumerate
16744 No italic correction (
16745 \begin_inset Quotes eld
16755 \begin_inset Quotes erd
16761 \begin_layout Enumerate
16765 \begin_inset Quotes eld
16773 \begin_inset Quotes erd
16777 \begin_inset Quotes eld
16785 \begin_inset Quotes erd
16791 \begin_layout Enumerate
16794 Wrong length of dash may have been used.
16797 \begin_layout Enumerate
16801 \begin_inset Quotes eld
16809 \begin_inset Quotes erd
16813 \begin_inset Quotes eld
16821 \begin_inset Quotes erd
16827 \begin_layout Enumerate
16831 \begin_inset Quotes eld
16839 \begin_inset Quotes erd
16845 \begin_layout Enumerate
16849 \begin_inset Quotes eld
16857 \begin_inset Quotes erd
16860 to achieve an ellipsis.
16863 \begin_layout Enumerate
16866 Inter-word spacing (
16867 \begin_inset Quotes eld
16877 \begin_inset Quotes eld
16880 ) should perhaps be used.
16883 \begin_layout Enumerate
16886 Inter-sentence spacing (
16887 \begin_inset Quotes eld
16897 \begin_inset Quotes erd
16900 ) should perhaps be used.
16903 \begin_layout Enumerate
16906 Could not find argument for command.
16909 \begin_layout Enumerate
16913 \begin_inset Quotes eld
16921 \begin_inset Quotes erd
16927 \begin_layout Enumerate
16930 Math mode still on at end of LaTeX file.
16933 \begin_layout Enumerate
16937 \begin_inset Quotes eld
16945 \begin_inset Quotes erd
16948 doesn't match the number of
16949 \begin_inset Quotes eld
16957 \begin_inset Quotes erd
16963 \begin_layout Enumerate
16966 You should use either
16969 \begin_inset Quotes eld
16977 \begin_inset Quotes erd
16982 as an alternative to
16983 \begin_inset Quotes eld
16991 \begin_inset Quotes erd
16997 \begin_layout Enumerate
17004 " (ASCII 39) instead of "" (ASCII 180).
17007 \begin_layout Enumerate
17010 User-specified pattern found.
17013 \begin_layout Enumerate
17016 This command might not be intended.
17019 \begin_layout Enumerate
17026 \begin_layout Enumerate
17044 \begin_layout Enumerate
17047 Delete this space to maintain correct page references.
17050 \begin_layout Enumerate
17054 You might wish to put this between a pair of
17055 \begin_inset Quotes eld
17063 \begin_inset Quotes erd
17069 \begin_layout Enumerate
17072 You ought to remove spaces in front of punctuation.
17075 \begin_layout Enumerate
17078 Could not execute LaTeX command.
17081 \begin_layout Enumerate
17090 in front of small punctuation.
17093 \begin_layout Enumerate
17101 may look prettier here.
17104 \begin_layout Enumerate
17108 Multiple spaces detected in output.
17111 \begin_layout Enumerate
17114 This text may be ignored.
17117 \begin_layout Enumerate
17123 \begin_inset Quotes eld
17128 to begin quotation, not
17135 \begin_layout Enumerate
17142 to end quotation, not
17145 \begin_inset Quotes eld
17153 \begin_layout Enumerate
17159 \begin_layout Enumerate
17162 You should perhaps use
17163 \begin_inset Quotes eld
17171 \begin_inset Quotes erd
17177 \begin_layout Enumerate
17180 You should put a space in front of/after parenthesis.
17183 \begin_layout Enumerate
17186 You should avoid spaces in front of/after parenthesis.
17189 \begin_layout Enumerate
17193 You should not use punctuation in front of/after quotes.
17196 \begin_layout Enumerate
17199 Double space found.
17202 \begin_layout Enumerate
17205 You should put punctuation outside inner/inside display math mode.
17208 \begin_layout Enumerate
17211 You ought to not use primitive TeX in LaTeX code.
17214 \begin_layout Enumerate
17217 You should remove spaces in front of
17218 \begin_inset Quotes eld
17226 \begin_inset Quotes erd
17232 \begin_layout Enumerate
17235 \begin_inset Quotes eld
17243 \begin_inset Quotes erd
17246 is normally not followed by
17247 \begin_inset Quotes eld
17255 \begin_inset Quotes erd
17261 \begin_layout Standard
17262 LyXの将来の版では、このツール(およびその縮小版
17266 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17267 書に使用してみていただければ、きっと驚かれることでしょう。
17270 \begin_layout Section
17274 \begin_layout Standard
17277 Lars Bullik Bjønnes
17286 \begin_layout Subsection
17290 \begin_layout Standard
17291 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17292 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17293 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17297 \begin_layout Standard
17298 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17299 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17303 \begin_layout Plain Layout
17304 \begin_inset CommandInset href
17306 target "http://svnbook.red-bean.com/"
17315 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17319 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17323 で終わるファイルです)の概念に注意を払ってください。
17326 \begin_layout Standard
17327 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17328 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17331 \begin_layout Standard
17332 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17335 \begin_layout Subsection
17339 \begin_layout Standard
17340 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17342 ファイル\SpecialChar \menuseparator
17345 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17348 \begin_layout Subsubsection
17354 \begin_layout Standard
17355 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17362 \begin_layout Standard
17363 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17364 書は読み込み専用モードになるので、変更を加えるためには
17368 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17371 \begin_layout Standard
17374 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17377 \begin_layout Standard
17385 \begin_layout Subsubsection
17391 \begin_layout Standard
17392 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17393 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17396 \begin_layout Standard
17399 ci -q -u -m"<説明文>" <ファイル名>
17402 \begin_layout Subsubsection
17408 \begin_layout Standard
17409 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17410 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17413 \begin_layout Standard
17419 \begin_layout Subsubsection
17425 \begin_layout Standard
17426 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17429 \begin_layout Standard
17432 co -f -u<バージョン> <ファイル名>
17435 \begin_layout Subsubsection
17441 \begin_layout Standard
17442 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17446 \begin_layout Standard
17449 rcs -o<バージョン> <ファイル名>
17452 \begin_layout Subsubsection
17458 \begin_layout Standard
17459 RCS文書の完全な履歴を表示します。ブラウザ中に、
17470 \begin_layout Subsubsection
17474 \begin_layout Standard
17475 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17476 \begin_inset CommandInset ref
17478 reference "sub:VCS改訂情報"
17485 \begin_layout Subsection
17489 \begin_layout Standard
17490 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17492 ファイル\SpecialChar \menuseparator
17495 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17498 \begin_layout Subsubsection
17502 \begin_layout Standard
17503 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17504 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17507 \begin_layout Standard
17508 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17509 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17510 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17511 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17512 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17513 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17514 \begin_inset Flex Code
17517 \begin_layout Plain Layout
17524 \begin_inset Flex Code
17527 \begin_layout Plain Layout
17533 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17534 コピーを書き込み可能にしているとは限りません。
17537 \begin_layout Standard
17538 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17539 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17540 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17542 \begin_inset Flex MenuItem
17545 \begin_layout Plain Layout
17551 メニューを使用しなくてはなりません。その後、
17552 \begin_inset Flex MenuItem
17555 \begin_layout Plain Layout
17561 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17564 \begin_layout Standard
17566 \begin_inset Flex URL
17569 \begin_layout Plain Layout
17571 http://www.nongnu.org/cvs
17577 \begin_inset Flex URL
17580 \begin_layout Plain Layout
17582 http://ximbiot.com/cvs
17590 \begin_layout Standard
17591 以下に言及するサブコマンドとスイッチを理解するには、
17598 \begin_layout Subsubsection
17602 \begin_layout Standard
17603 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17610 \begin_layout Standard
17611 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17618 \begin_inset Flex Code
17621 \begin_layout Plain Layout
17627 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17628 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17631 \begin_layout Standard
17632 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17635 \begin_layout Standard
17638 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17643 \begin_layout Standard
17644 上記および他のすべてのCVSコマンドにおける
17648 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17651 \begin_layout Subsubsection
17655 \begin_layout Standard
17656 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17657 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17658 \begin_inset Flex MenuItem
17661 \begin_layout Plain Layout
17670 \begin_layout Labeling
17671 \labelwidthstring 00.00.0000
17673 \begin_inset space ~
17677 \begin_inset Newline newline
17681 \begin_inset Flex Code
17684 \begin_layout Plain Layout
17685 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17691 \begin_inset Newline newline
17695 \begin_inset Flex Code
17698 \begin_layout Plain Layout
17699 cvs -q unedit "<ファイル名>"
17707 \begin_layout Subsubsection
17711 \begin_layout Standard
17712 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17715 \begin_layout Standard
17718 cvs -q update "<ファイル名>"
17721 \begin_layout Standard
17722 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17725 \begin_layout Standard
17728 cvs -q edit "<ファイル名>"
17731 \begin_layout Subsubsection
17735 \begin_layout Standard
17736 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17740 \begin_layout Standard
17743 cvs -q update "<ファイル名>"
17746 \begin_layout Standard
17747 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17750 \begin_layout Standard
17753 cvs -q unedit "<ファイル名>"
17756 \begin_layout Subsubsection
17757 ローカルディレクトリチェックアウトのレポジトリからの更新
17760 \begin_layout Standard
17762 \begin_inset Flex Code
17765 \begin_layout Plain Layout
17771 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17772 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17773 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17777 \begin_layout Standard
17779 \begin_inset Flex Code
17782 \begin_layout Plain Layout
17788 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17789 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17790 \begin_inset Flex Code
17793 \begin_layout Plain Layout
17800 \begin_inset Flex Code
17803 \begin_layout Plain Layout
17810 \begin_inset Flex Code
17813 \begin_layout Plain Layout
17819 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17820 \begin_inset Flex Code
17823 \begin_layout Plain Layout
17829 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17832 \begin_layout Labeling
17833 \labelwidthstring 00.00.0000
17835 \begin_inset space ~
17839 \begin_inset Newline newline
17843 \begin_inset Flex Code
17846 \begin_layout Plain Layout
17847 cd $path; cvs diff "."
17853 \begin_inset Newline newline
17857 \begin_inset Flex Code
17860 \begin_layout Plain Layout
17861 cd $path; cvs -q update "."
17869 \begin_layout Standard
17871 \begin_inset Flex Code
17874 \begin_layout Plain Layout
17883 \begin_layout Subsubsection
17887 \begin_layout Standard
17888 これは、CVS文書の全履歴を表示します。
17889 \begin_inset Flex Code
17892 \begin_layout Plain Layout
17894 \begin_inset Quotes eld
17898 \begin_inset Quotes erd
17909 \begin_layout Subsection
17913 \begin_layout Standard
17914 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17915 \begin_inset Flex MenuItem
17918 \begin_layout Plain Layout
17919 ファイル\SpecialChar \menuseparator
17925 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17926 1.5および1.6に対して試験されています
17930 \begin_layout Plain Layout
17931 ほとんどのコマンドは、1.4でも動作します。第
17932 \begin_inset CommandInset ref
17934 reference "sub:レポジトリからSVN同期"
17946 \begin_layout Subsubsection
17950 \begin_layout Standard
17951 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17958 \begin_layout Standard
17959 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17964 \begin_inset Flex Code
17967 \begin_layout Plain Layout
17973 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
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 Standard
18004 \begin_inset Flex Code
18007 \begin_layout Plain Layout
18016 \begin_layout Subsubsection
18020 \begin_layout Standard
18021 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
18024 \begin_layout Standard
18029 \begin_layout Plain Layout
18030 ロックが有効になっていない場合です。第
18031 \begin_inset CommandInset ref
18033 reference "sub:SVNファイルロック"
18043 \begin_inset Flex Code
18046 \begin_layout Plain Layout
18048 \begin_inset Quotes erd
18052 \begin_inset Quotes erd
18056 \begin_inset Quotes eld
18060 \begin_inset Quotes erd
18071 \begin_layout Subsubsection
18075 \begin_layout Standard
18076 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
18080 \begin_layout Standard
18085 \begin_layout Plain Layout
18092 \begin_inset Flex Code
18095 \begin_layout Plain Layout
18096 svn update --non-interactive
18097 \begin_inset Quotes eld
18101 \begin_inset Quotes erd
18112 \begin_layout Subsubsection
18116 \begin_layout Standard
18117 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
18120 \begin_layout Standard
18122 \begin_inset Flex Code
18125 \begin_layout Plain Layout
18127 \begin_inset Quotes eld
18131 \begin_inset Quotes erd
18142 \begin_layout Subsubsection
18143 \begin_inset CommandInset label
18145 name "sub:レポジトリからSVN同期"
18149 レポジトリを使ったローカルディレクトリの同期
18153 \begin_layout Plain Layout
18155 \begin_inset Formula $\geqq1.5$
18158 でのみ動作することに注意してください。
18166 \begin_layout Standard
18167 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18168 \begin_inset Flex Code
18171 \begin_layout Plain Layout
18177 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18181 \begin_layout Plain Layout
18182 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18187 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18191 \begin_layout Standard
18192 \begin_inset Flex Code
18195 \begin_layout Plain Layout
18201 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18202 場合には、更新が開始される前にユーザに警告が与えられます。
18205 \begin_layout Labeling
18206 \labelwidthstring 00.00.0000
18208 \begin_inset space ~
18212 \begin_inset Newline newline
18216 \begin_inset Flex Code
18219 \begin_layout Plain Layout
18220 svn diff $path(変更が発見された場合には通知します)
18221 \begin_inset Newline newline
18224 svn update --accept mine-full $path
18232 \begin_layout Standard
18234 \begin_inset Flex Code
18237 \begin_layout Plain Layout
18246 \begin_layout Subsubsection
18250 \begin_layout Standard
18251 これは、SVN文書の全履歴を表示します。
18252 \begin_inset Flex Code
18255 \begin_layout Plain Layout
18257 \begin_inset Quotes eld
18261 \begin_inset Quotes erd
18272 \begin_layout Subsubsection
18274 \begin_inset CommandInset label
18276 name "sub:SVNファイルロック"
18283 \begin_layout Standard
18284 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18285 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18286 するための、何らかのロック機構を導入することが考えられます。
18289 \begin_layout Standard
18290 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18291 \begin_inset Flex Code
18294 \begin_layout Plain Layout
18300 svnファイル特性に依拠した書き込み権限の自動設定(第
18301 \begin_inset CommandInset ref
18303 reference "sub:自動ロック特性"
18311 \begin_layout Plain Layout
18312 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18317 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18318 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18321 \begin_layout Itemize
18322 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18326 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18329 \begin_layout Itemize
18330 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18334 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18338 \begin_layout Plain Layout
18339 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18344 、書き込みロックの解放のみが行われます。
18347 \begin_layout Standard
18351 \begin_layout Labeling
18352 \labelwidthstring 00.00.0000
18354 \begin_inset Flex Code
18357 \begin_layout Plain Layout
18359 \begin_inset Quotes erd
18363 \begin_inset Quotes erd
18367 \begin_inset Quotes eld
18371 \begin_inset Quotes erd
18380 \begin_inset Newline newline
18384 \begin_inset Flex Code
18387 \begin_layout Plain Layout
18389 \begin_inset Quotes eld
18393 \begin_inset Quotes erd
18404 \begin_layout Labeling
18405 \labelwidthstring 00.00.0000
18407 \begin_inset Flex Code
18410 \begin_layout Plain Layout
18412 \begin_inset Quotes eld
18416 \begin_inset Quotes erd
18425 \begin_inset Newline newline
18429 \begin_inset Flex Code
18432 \begin_layout Plain Layout
18434 \begin_inset Quotes eld
18438 \begin_inset Quotes erd
18449 \begin_layout Subsubsection
18451 \begin_inset CommandInset label
18460 \begin_layout Standard
18462 \begin_inset Flex Code
18465 \begin_layout Plain Layout
18471 ファイルに対する書き込み権限の自動設定は、
18472 \begin_inset Flex MenuItem
18475 \begin_layout Plain Layout
18476 ファイル\SpecialChar \menuseparator
18477 バージョン管理\SpecialChar \menuseparator
18483 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18486 \begin_layout Standard
18490 \begin_layout Labeling
18491 \labelwidthstring 00.00.0000
18493 \begin_inset Flex Code
18496 \begin_layout Plain Layout
18497 svn propset svn:needs-lock ON
18498 \begin_inset Quotes eld
18502 \begin_inset Quotes erd
18513 \begin_layout Labeling
18514 \labelwidthstring 00.00.0000
18516 \begin_inset Flex Code
18519 \begin_layout Plain Layout
18520 svn propdel svn:needs-lock
18521 \begin_inset Quotes eld
18525 \begin_inset Quotes erd
18536 \begin_layout Subsubsection
18537 \begin_inset CommandInset label
18546 \begin_layout Standard
18547 文書中で改訂情報を有効化するにはいくつかの方法があります。
18550 \begin_layout Itemize
18555 \begin_layout Itemize
18557 \begin_inset Flex Code
18560 \begin_layout Plain Layout
18567 \begin_inset Flex Code
18570 \begin_layout Plain Layout
18576 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18579 \begin_layout Standard
18581 \begin_inset Tabular
18582 <lyxtabular version="3" rows="6" columns="2">
18583 <features tabularvalignment="middle">
18584 <column alignment="center" valignment="top" width="0">
18585 <column alignment="center" valignment="top" width="0">
18587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18590 \begin_layout Plain Layout
18596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18599 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18610 \begin_layout Plain Layout
18616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18619 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18639 \begin_layout Plain Layout
18647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18650 \begin_layout Plain Layout
18656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18659 \begin_layout Plain Layout
18667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18670 \begin_layout Plain Layout
18676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18679 \begin_layout Plain Layout
18680 チェックアウト頻度が低かったことによる不完全な作業コピー
18687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18690 \begin_layout Plain Layout
18696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18699 \begin_layout Plain Layout
18700 改訂版が混合し、修正され、スイッチされた作業コピー
18713 \begin_layout Itemize
18715 \begin_inset Flex Code
18718 \begin_layout Plain Layout
18720 \begin_inset space ~
18724 \begin_inset space ~
18728 \begin_inset space ~
18736 の出力を解析したものが返されます。サポートされるフラグは
18740 \begin_layout Itemize
18742 \begin_inset Flex Code
18745 \begin_layout Plain Layout
18754 \begin_layout Itemize
18756 \begin_inset Flex Code
18759 \begin_layout Plain Layout
18768 \begin_layout Itemize
18770 \begin_inset Flex Code
18773 \begin_layout Plain Layout
18782 \begin_layout Itemize
18784 \begin_inset Flex Code
18787 \begin_layout Plain Layout
18797 \begin_layout Standard
18798 これらの情報は、情報差込枠で得ることができます(例:
18799 \begin_inset Flex Code
18802 \begin_layout Plain Layout
18803 info-insert buffer vcs-date
18808 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18809 \begin_inset Flex Code
18812 \begin_layout Plain Layout
18818 ディレクトリがあるときのみ)利用可能です。
18822 \begin_layout Itemize
18823 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18827 \begin_layout Plain Layout
18828 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18833 。簡単に言えば、ファイルキーワード特性を設定して(例:
18835 svn propset svn:keywords 'Rev' file.lyx
18841 \begin_layout Plain Layout
18842 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18851 \begin_layout Plain Layout
18858 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18862 \begin_layout Plain Layout
18869 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18870 \begin_inset Formula $Rev$
18874 \begin_inset Formula $Rev:59$
18877 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18878 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18879 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18882 \begin_layout Subsection
18886 \begin_layout Quote
18887 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18892 \begin_layout Subsubsection
18896 \begin_layout Standard
18897 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18898 イアントプログラムのWindows用インストーラは
18899 \begin_inset CommandInset href
18902 target "http://www.collab.net/nonav/downloads/subversion/"
18907 \begin_inset CommandInset href
18910 target "http://tortoisesvn.tigris.org/"
18914 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18915 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18919 \begin_layout Subsubsection
18920 文書をSubversion管理下に置くには
18923 \begin_layout Standard
18924 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18925 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18926 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18927 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18928 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18929 レポジトリは既に存在し、新規プロジェクトを
18930 \begin_inset Flex Code
18933 \begin_layout Plain Layout
18941 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18942 \begin_inset Flex Code
18945 \begin_layout Plain Layout
18954 \begin_layout Enumerate
18956 \begin_inset Flex Code
18959 \begin_layout Plain Layout
18968 \begin_inset Flex MenuItem
18971 \begin_layout Plain Layout
18972 TortoiseSVN\SpecialChar \menuseparator
18978 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18981 \begin_layout Enumerate
18982 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18983 \begin_inset Flex MenuItem
18986 \begin_layout Plain Layout
18987 Create folder\SpecialChar \ldots{}
18993 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
18994 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
18997 \begin_layout Enumerate
18999 \begin_inset Flex Code
19002 \begin_layout Plain Layout
19011 \begin_inset Flex MenuItem
19014 \begin_layout Plain Layout
19015 SVN Checkout\SpecialChar \ldots{}
19021 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
19022 \begin_inset Flex Code
19025 \begin_layout Plain Layout
19033 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
19034 \begin_inset Flex Code
19037 \begin_layout Plain Layout
19046 \begin_inset Flex Code
19049 \begin_layout Plain Layout
19058 \begin_layout Enumerate
19059 LyXで文書を新規作成するか開くかして、
19060 \begin_inset Flex MenuItem
19063 \begin_layout Plain Layout
19064 ファイル\SpecialChar \menuseparator
19065 バージョン管理\SpecialChar \menuseparator
19071 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
19074 \begin_layout Standard
19076 \begin_inset Flex MenuItem
19079 \begin_layout Plain Layout
19080 ファイル\SpecialChar \menuseparator
19086 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
19087 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
19090 \begin_layout Subsubsection
19091 Windows下でSVNと共にSSHトンネルを使うには
19094 \begin_layout Standard
19095 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
19096 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
19100 \begin_layout Enumerate
19101 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
19102 \begin_inset Flex Code
19105 \begin_layout Plain Layout
19111 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
19114 \begin_layout Enumerate
19115 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
19119 \begin_layout Plain Layout
19120 \begin_inset Flex URL
19123 \begin_layout Plain Layout
19125 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
19135 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
19136 護などを加えないキーのみを使用することとします。
19140 \begin_layout Enumerate
19141 \begin_inset Flex Code
19144 \begin_layout Plain Layout
19150 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19151 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19152 _keys file:」編集フィールドから、直接サーバの
19153 \begin_inset Flex Code
19156 \begin_layout Plain Layout
19157 ~/.ssh/authorized_keys
19163 \begin_inset Flex Code
19166 \begin_layout Plain Layout
19172 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19175 \begin_layout Enumerate
19176 Puttyのplinkを入手してください。SVNのconfigファイル
19180 \begin_layout Plain Layout
19181 正確なパスはWindowsのバージョンに依りますが、通常は
19182 \begin_inset Flex Code
19185 \begin_layout Plain Layout
19188 Documents and Settings
19202 \begin_inset Flex Code
19205 \begin_layout Plain Layout
19221 \begin_inset Flex Code
19224 \begin_layout Plain Layout
19230 セクションにsshコマンドを設定してください。例:
19231 \begin_inset Flex Code
19234 \begin_layout Plain Layout
19235 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19244 \begin_layout Plain Layout
19245 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19246 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19255 \begin_layout Enumerate
19256 SVNアーカイブをチェックアウトしてください。例:
19257 \begin_inset Flex Code
19260 \begin_layout Plain Layout
19261 svn co svn+ssh://user@server/repository_path
19269 \begin_layout Subsubsection
19273 \begin_layout Standard
19274 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19275 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19276 \begin_inset Flex Code
19279 \begin_layout Plain Layout
19289 \begin_layout Plain Layout
19291 \begin_inset Flex Code
19294 \begin_layout Plain Layout
19295 svn propset svn:eol-style native FILE_NAME
19305 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19309 \begin_layout Plain Layout
19310 \begin_inset Flex URL
19313 \begin_layout Plain Layout
19315 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19328 \begin_layout Subsection
19332 \begin_layout Standard
19333 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19336 \begin_layout Standard
19337 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19340 \begin_layout Description
19342 \begin_inset Flex Code
19345 \begin_layout Plain Layout
19346 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19354 \begin_layout Description
19356 \begin_inset Flex Code
19359 \begin_layout Plain Layout
19360 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19368 \begin_layout Subsection
19372 \begin_layout Standard
19374 \begin_inset Flex Code
19377 \begin_layout Plain Layout
19383 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19384 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19385 \begin_inset Flex Code
19388 \begin_layout Plain Layout
19394 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19395 \begin_inset Flex MenuItem
19398 \begin_layout Plain Layout
19399 旧改訂と比較\SpecialChar \ldots{}
19405 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19407 \begin_inset Flex MenuItem
19410 \begin_layout Plain Layout
19416 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19419 \begin_layout Standard
19420 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19421 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19424 \begin_layout Section
19428 \begin_layout Standard
19433 (kayvan@sylvan.com)改訂
19435 Edmar Wienskoski Jr.
19437 (edmar-w-jr@technologist.com)原文
19440 \begin_layout Subsection
19444 \begin_layout Standard
19445 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19446 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19447 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19450 \begin_layout Standard
19451 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19452 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19455 \begin_layout Subsection
19459 \begin_layout Standard
19460 以下は、文芸的プログラミング FAQからの抜粋です。
19463 \begin_layout Quotation
19464 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19465 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19466 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19468 \begin_inset space \thinspace{}
19472 Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19475 \begin_layout Standard
19479 \begin_layout Quotation
19482 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19485 \begin_layout Quotation
19486 3つの際立った特徴があります。重要な順に列挙すれば、
19490 \begin_layout Itemize
19494 \begin_layout Itemize
19498 \begin_layout Itemize
19499 特に図式と数式を含んだドキュメンテーションの組版
19503 \begin_layout Quotation
19507 \begin_layout Standard
19508 あなたの興味に火を付けたところで参考文献を見てみましょう。
19511 \begin_layout Subsubsection
19515 \begin_layout Standard
19519 \begin_layout Quote
19520 Literate Programming FAQ
19521 \begin_inset Flex URL
19524 \begin_layout Plain Layout
19526 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19534 \begin_layout Standard
19538 \begin_layout Standard
19539 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19540 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19547 \begin_layout Itemize
19548 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19551 \begin_layout Itemize
19552 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19555 \begin_layout Itemize
19556 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19559 \begin_layout Itemize
19563 \begin_layout Standard
19567 \begin_layout Quote
19569 \begin_inset Flex URL
19572 \begin_layout Plain Layout
19574 http://www.cs.virginia.edu/~nr/noweb/
19582 \begin_layout Standard
19583 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19586 \begin_layout Subsection
19590 \begin_layout Standard
19591 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19592 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19595 \begin_layout Subsubsection
19596 ドキュメントとコードの生成(weavingおよびtangling)
19599 \begin_layout Paragraph
19603 \begin_layout Standard
19604 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19607 \begin_layout Itemize
19611 \begin_layout Itemize
19615 \begin_layout Itemize
19619 \begin_layout Standard
19620 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19623 \begin_layout Standard
19624 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19625 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19626 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19631 \begin_layout Plain Layout
19632 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19637 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19640 \begin_layout Paragraph
19644 \begin_layout Standard
19653 \begin_layout Plain Layout
19654 Nowebでの名称は「Chunk」です。歴史的な理由から、別の文芸プログラミングツールNuwebで使われている「scrap」という用語を使用しています。Nuwe
19655 bは、私がNowebに乗り換える前に長年使用していたツールです。
19660 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにscrapを区切ります。
19663 \begin_layout LyX-Code
19667 \begin_layout LyX-Code
19671 \begin_layout LyX-Code
19675 \begin_layout LyX-Code
19679 \begin_layout LyX-Code
19683 \begin_layout Standard
19684 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19685 れはScrapと呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19688 \begin_layout Standard
19689 Scrap段落環境の欠点は、連続したコードの段落の間に空行がソースコードにも印刷したドキュメントにも入ることです。これを回避するためには、Scrap環境の中の改
19690 行には(ctrl-return)を使ってください。上の例では次のようにします
19694 \begin_layout Plain Layout
19695 印刷したバージョンを読んでいる場合にはこの例と上の例の違いが分かりません。
19703 \begin_layout LyX-Code
19705 \begin_inset Newline newline
19709 \begin_inset Newline newline
19713 \begin_inset Newline newline
19717 \begin_inset Newline newline
19723 \begin_layout Standard
19724 この環境はうまく働きます。不便な点は普通のリターンのかわりにctrl-returnを使わなければならないことです
19728 \begin_layout Plain Layout
19729 これは改善しなければならない点でしょう。
19737 \begin_layout Standard
19738 また、Scrapの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19742 \begin_layout LyX-Code
19744 \begin_inset Newline newline
19747 def some_function(args):
19748 \begin_inset Newline newline
19751 "This is the doc string for this function."
19752 \begin_inset Newline newline
19755 print "My args: ", args
19758 \begin_layout LyX-Code
19759 @ %def some_function
19762 \begin_layout Standard
19763 これをどのように使って、その結果相互参照がどうなるかは
19765 LIBDIR/examples/listerrors.lyx
19767 の中の文芸pythonプログラムを見るとよくわかります。
19770 \begin_layout Paragraph
19774 \begin_layout Standard
19775 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19776 \begin_inset Flex MenuItem
19779 \begin_layout Plain Layout
19780 表示\SpecialChar \menuseparator
19786 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19789 \begin_layout Standard
19790 LyXの内部で何が起っているかを説明しておきましょう。
19793 \begin_layout Enumerate
19794 \begin_inset Flex MenuItem
19797 \begin_layout Plain Layout
19798 表示\SpecialChar \menuseparator
19804 が選ばれると、LaTeXファイルがつくられます。
19808 \begin_layout Standard
19809 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19810 \begin_inset Flex MenuItem
19813 \begin_layout Plain Layout
19819 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19823 \begin_layout Enumerate
19824 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。Scrap環境でコードを入力するのだけがポイントです。
19827 \begin_layout Enumerate
19828 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19832 \begin_layout Plain Layout
19838 dit\SpecialChar \menuseparator
19845 パネルの Conversion タブで設定できます。
19850 を使ってLaTeXファイルを生成します。
19854 \begin_layout Standard
19855 それ以外の場合はこのステップを飛ばします。
19859 \begin_layout Enumerate
19860 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19863 \begin_layout Standard
19864 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19867 \begin_layout Paragraph
19871 \begin_layout Standard
19872 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19876 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19879 \begin_layout Enumerate
19880 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19884 \begin_layout Enumerate
19885 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19889 \begin_layout Standard
19890 はじめのパートのために、「変換子」設定で、
19891 \begin_inset Quotes eld
19899 \begin_inset Quotes erd
19902 と指定します。これは基本的に、LyXが
19906 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19909 \begin_layout Standard
19910 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19913 \begin_layout LyX-Code
19917 \begin_layout LyX-Code
19921 \begin_layout LyX-Code
19922 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
19925 \begin_layout Standard
19926 コンバータの設定の次の部分はFlagsです。これを
19927 \begin_inset Quotes eld
19932 originaldir,parselog=listerrors
19935 \begin_inset Quotes erd
19942 が出すすべてのエラーをlisterrorsプログラムに渡します。
19945 \begin_layout Standard
19946 コンバータコードがlisterrorsプログラムを探す順序は、はじめに
19957 \begin_layout Paragraph
19961 \begin_layout Standard
19962 LyXとNowebの統合の最後の部分は、
19963 \begin_inset Quotes eld
19967 \begin_inset Quotes erd
19970 scrapです。一般に、あなたのプログラムの構築操作の説明それ自身をscrapに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
19971 iptでは、scrapを見つけるのにnotangleコマンドを使い、shを使って起動します。
19974 \begin_layout Standard
19975 以下に典型的なscrapがどのようなものかを書いておきます。
19978 \begin_layout LyX-Code
19980 \begin_inset Newline newline
19984 \begin_inset Newline newline
19988 \begin_inset Newline newline
19991 if [ -z "${NOWEB_SOURCE}" ]
19992 \begin_inset Newline newline
19996 \begin_inset Newline newline
19999 NOWEB_SOURCE=myfile.nw
20000 \begin_inset Newline newline
20004 \begin_inset Newline newline
20008 code to extract files ...]
20009 \begin_inset Newline newline
20013 code to compile files ...]
20014 \begin_inset Newline newline
20020 \begin_layout Standard
20023 LIBDIR/examples/listerrors.lyx
20027 LIBDIR/examples/Literate.lyx
20029 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
20032 LIBDIR/examples/noweb2lyx.lyx
20034 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
20038 \begin_layout Subsubsection
20042 \begin_layout Standard
20043 すべての文芸プログラムのための設定は、
20044 \begin_inset Flex MenuItem
20047 \begin_layout Plain Layout
20048 ツール\SpecialChar \menuseparator
20054 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
20057 \begin_layout Description
20059 \begin_inset space ~
20063 \begin_inset Quotes eld
20067 \begin_inset Quotes erd
20071 \begin_inset space ~
20074 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
20086 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
20090 という拡張子をつけることを指示します。
20093 \begin_layout Description
20095 \begin_inset space ~
20103 \begin_inset space ~
20106 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
20110 \begin_layout Description
20119 このコンバータは、weavingの段階を行います。Nowebの場合は、
20120 \begin_inset Quotes eld
20125 noweave -delay -index $$i > $$o
20128 \begin_inset Quotes erd
20134 \begin_layout Description
20143 これは、tanglingを行います。以前に説明したように、
20148 \begin_inset Quotes eld
20153 originaldir,parselog=listerrors
20156 \begin_inset Quotes erd
20162 \begin_layout Subsubsection
20166 \begin_layout Standard
20167 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20170 \begin_layout Standard
20171 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20173 \begin_inset Flex MenuItem
20176 \begin_layout Plain Layout
20177 ツール\SpecialChar \menuseparator
20178 設定\SpecialChar \menuseparator
20185 \begin_inset Flex MenuItem
20188 \begin_layout Plain Layout
20194 エントリを変えると変えることができます。
20197 \begin_layout Standard
20198 新しいLyXサーバの関数と、このdddの機能を使うために
20199 \begin_inset Flex MenuItem
20202 \begin_layout Plain Layout
20211 \begin_layout LyX-Code
20212 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20215 \begin_layout Standard
20216 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20217 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20221 \begin_layout Standard
20222 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20225 \begin_inset Flex MenuItem
20228 \begin_layout Plain Layout
20241 \begin_inset Flex MenuItem
20244 \begin_layout Plain Layout
20257 \begin_inset Flex MenuItem
20260 \begin_layout Plain Layout
20273 \begin_inset Quotes eld
20278 /home/<your-home-directory>/.lyx/lyxpipe
20281 \begin_inset Quotes erd
20287 \begin_layout Standard
20292 』のLyXサーバの説明を読んでください。
20295 \begin_layout Subsubsection
20299 \begin_layout Standard
20300 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20320 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20323 \begin_layout Standard
20324 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20325 \begin_inset Flex MenuItem
20328 \begin_layout Plain Layout
20329 表示\SpecialChar \menuseparator
20330 更新\SpecialChar \menuseparator
20337 \begin_inset Flex MenuItem
20340 \begin_layout Plain Layout
20341 表示\SpecialChar \menuseparator
20350 \begin_layout LyX-Code
20354 \begin_layout LyX-Code
20358 \begin_layout LyX-Code
20359 Icon "layout Standard"
20362 \begin_layout LyX-Code
20363 Icon "layout Section"
20366 \begin_layout LyX-Code
20367 Icon "layout LaTeX"
20370 \begin_layout LyX-Code
20371 Icon "layout LyX-Code"
20374 \begin_layout LyX-Code
20375 Icon "layout Scrap"
20378 \begin_layout LyX-Code
20382 \begin_layout LyX-Code
20386 \begin_layout LyX-Code
20387 Icon "buffer-typeset"
20390 \begin_layout LyX-Code
20391 Icon "build-program"
20394 \begin_layout LyX-Code
20398 \begin_layout LyX-Code
20402 \begin_layout LyX-Code
20406 \begin_layout LyX-Code
20410 \begin_layout LyX-Code
20414 \begin_layout Subsubsection
20418 \begin_layout Standard
20420 \begin_inset Flex MenuItem
20423 \begin_layout Plain Layout
20429 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ScrapはLaTeXフォントを使い、文芸的プログラ
20430 ミングでは多くのScrapがあるためにそれらがすべて赤では疲れてしまいます。
20431 \begin_inset Flex MenuItem
20434 \begin_layout Plain Layout
20435 操作性\SpecialChar \menuseparator
20444 \begin_layout Standard
20445 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20446 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20449 \begin_layout Chapter
20455 \begin_inset CommandInset label
20457 name "chap:Special-features"
20464 \begin_layout Standard
20467 You can do everything with LyX that you can do with LaTeX.
20468 However, LyX cannot support every LaTeX feature directly.
20469 But you can always use TeX Code.
20470 This chapter shows you some more special things you might want to use.
20471 For other special things you can do with figures, tables, floats, boxes
20472 and notes, have a look at the
20479 \begin_layout Section
20482 Multiple Text Columns
20485 \begin_layout Standard
20488 This feature is independent of the option
20490 Two-column document
20492 in the document settings under
20497 If you want to have 2
20498 \begin_inset space ~
20501 columns for the whole document, it is recommended to use the
20503 Two-column document
20506 For all other cases use this feature.
20509 \begin_layout Standard
20512 To use multiple text columns in your document, you have to load the module
20519 Document\SpecialChar \menuseparator
20520 Settings\SpecialChar \menuseparator
20523 ) and must have the LaTeX-package
20528 \begin_inset Index idx
20531 \begin_layout Plain Layout
20534 LaTeX-packages ! multicol
20542 \begin_layout Standard
20545 Footnotes within multiple columns will be placed at the bottom of the page
20546 and not under each column.
20547 Within the different columns you can use everything, with the limitation
20548 that for floats you need to use the float option
20555 \begin_layout Subsection
20561 \begin_layout Standard
20564 If you want to have 2 columns in your text, use the style
20566 Begin Multiple Columns
20568 where the columns should start.
20569 The content of the style is the number of the columns, so in this case
20571 \begin_inset Quotes eld
20575 \begin_inset Quotes erd
20579 At the point where the columns should end use the style
20581 End Multiple Columns
20586 \begin_layout Standard
20589 Here is an example:
20592 \begin_layout Begin Multiple Columns
20598 \begin_layout Standard
20604 The Adventure of the Empty House
20607 \begin_inset Newline newline
20612 Sir Arthur Conan Doyle
20615 \begin_layout Standard
20619 It was in the spring of the year 1894 that all London was interested, and
20620 the fashionable world dismayed, by the murder of the Honourable Ronald
20621 Adair under most unusual and inexplicable circumstances.
20622 The public has already learned those particulars of the crime which came
20623 out in the police investigation, but a good deal was suppressed upon that
20624 occasion, since the case for the prosecution was so overwhelmingly strong
20625 that it was not necessary to bring forward all the facts.
20626 Only now, at the end of nearly ten years, am I allowed to supply those
20627 missing links which make up the whole of that remarkable chain.
20628 The crime was of interest in itself, but that interest was as nothing to
20629 me compared to the inconceivable sequel, which afforded me the greatest
20630 shock and surprise of any event in my adventurous life.
20631 Even now, after this long interval, I find myself thrilling as I think
20632 of it, and feeling once more that sudden flood of joy, amazement, and increduli
20633 ty which utterly submerged my mind.
20634 Let me say to that public, which has shown some interest in those glimpses
20635 which I have occasionally given them of the thoughts and actions of a very
20636 remarkable man, that they are not to blame me if I have not shared my knowledge
20637 with them, for I should have considered it my first duty to do so, had
20638 I not been barred by a positive prohibition from his own lips, which was
20639 only withdrawn upon the third of last month.
20642 \begin_layout End Multiple Columns
20646 \begin_layout Standard
20649 Here is an example with 3
20650 \begin_inset space ~
20656 \begin_layout Begin Multiple Columns
20662 \begin_layout Standard
20666 It can be imagined that my close intimacy with Sherlock Holmes had interested
20667 me deeply in crime, and that after his disappearance I never failed to
20668 read with care the various problems which came before the public.
20669 And I even attempted, more than once, for my own private satisfaction,
20670 to employ his methods in their solution, though with indifferent success.
20671 There was none, however, which appealed to me like this tragedy of Ronald
20673 As I read the evidence at the inquest, which led up to a verdict of willful
20674 murder against some person or persons unknown, I realized more clearly
20675 than I had ever done the loss which the community had sustained by the
20676 death of Sherlock Holmes.
20677 There were points about this strange business which would, I was sure,
20678 have specially appealed to him, and the efforts of the police would have
20679 been supplemented, or more probably anticipated, by the trained observation
20680 and the alert mind of the first criminal agent in Europe.
20681 All day, as I drove upon my round, I turned over the case in my mind and
20682 found no explanation which appeared to me to be adequate.
20683 At the risk of telling a twice-told tale, I will recapitulate the facts
20684 as they were known to the public at the conclusion of the inquest.
20687 \begin_layout End Multiple Columns
20691 \begin_layout Standard
20694 You can have up to 10
20695 \begin_inset space ~
20698 columns if you want to, but that might not be very pleasant for the readers
20702 \begin_layout Standard
20705 \begin_inset Newpage newpage
20711 \begin_layout Subsection
20714 Columns inside Columns
20717 \begin_layout Standard
20720 You can also have columns inside columns:
20723 \begin_layout Begin Multiple Columns
20729 \begin_layout Standard
20733 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20734 at that time governor of one of the Australian colonies.
20735 Adair's mother had returned from Australia to undergo the operation for
20736 cataract, and she, her son Ronald, and her daughter Hilda were living together
20740 \begin_layout Begin Multiple Columns
20746 \begin_layout Standard
20750 The youth moved in the best society–had, so far as was known, no enemies
20751 and no particular vices.
20752 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20753 had been broken off by mutual consent some months before, and there was
20754 no sign that it had left any very profound feeling behind it.
20755 For the rest {sic} the man's life moved in a narrow and conventional circle,
20756 for his habits were quiet and his nature unemotional.
20757 Yet it was upon this easy-going young aristocrat that death came, in most
20758 strange and unexpected form, between the hours of ten and eleven-twenty
20759 on the night of March 30, 1894.
20762 \begin_layout End Multiple Columns
20766 \begin_layout Standard
20770 Ronald Adair was fond of cards–playing continually, but never for such stakes
20772 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20773 It was shown that, after dinner on the day of his death, he had played
20774 a rubber of whist at the latter club.
20775 He had also played there in the afternoon.
20780 The evidence of those who had played with him– Mr.
20781 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20782 and that there was a fairly equal fall of the cards.
20783 Adair might have lost five pounds, but not more.
20784 His fortune was a considerable one, and such a loss could not in any way
20786 He had played nearly every day at one club or other, but he was a cautious
20787 player, and usually rose a winner.
20788 It came out in evidence that, in partnership with Colonel Moran, he had
20789 actually won as much as four hundred and twenty pounds in a sitting, some
20790 weeks before, from Godfrey Milner and Lord Balmoral.
20791 So much for his recent history as it came out at the inquest.
20794 \begin_layout End Multiple Columns
20798 \begin_layout Subsection
20804 \begin_layout Standard
20807 The examples in this section show some more special features of multiple
20811 \begin_layout Standard
20814 For more features of multiple columns, have a look at the documentation
20815 of the LaTeX-package
20820 \begin_inset Index idx
20823 \begin_layout Plain Layout
20826 LaTeX-packages ! multicol
20834 \begin_inset CommandInset citation
20843 \begin_layout Subsubsection
20849 \begin_layout Standard
20852 To add a preface text for multiple columns, add the command
20855 \begin_layout Standard
20862 \begin_layout Standard
20865 as TeX Code behind the number of columns in the
20867 Begin Multiple Columns
20870 behind the command write the text.
20871 At the end of the style use the command
20874 \begin_layout Standard
20881 \begin_layout Standard
20885 An example with some preface text:
20888 \begin_layout Standard
20891 \begin_inset VSpace bigskip
20897 \begin_layout Begin Multiple Columns
20904 \begin_layout Plain Layout
20911 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20916 \begin_layout Plain Layout
20926 \begin_layout Standard
20930 On the evening of the crime, he returned from the club exactly at ten.
20931 His mother and sister were out spending the evening with a relation.
20932 The servant deposed that she heard him enter the front room on the second
20933 floor, generally used as his sitting-room.
20934 She had lit a fire there, and as it smoked she had opened the window.
20935 No sound was heard from the room until eleven-twenty, the hour of the return
20936 of Lady Maynooth and her daughter.
20937 Desiring to say good-night, she attempted to enter her son's room.
20938 The door was locked on the inside, and no answer could be got to their
20939 cries and knocking.
20940 Help was obtained, and the door forced.
20941 The unfortunate young man was found lying near the table.
20942 His head had been horribly mutilated by an expanding revolver bullet, but
20943 no weapon of any sort was to be found in the room.
20946 \begin_layout End Multiple Columns
20950 \begin_layout Standard
20953 You can also use a section heading as the preface if you use a section command
20954 as TeX Code behind the first TeX Code.
20955 For example the command
20958 \begin_layout Standard
20964 subsection{subsection title}
20967 \begin_layout Standard
20970 creates a subsection.
20971 In this example the preface is a subsubsection:
20974 \begin_layout Begin Multiple Columns
20981 \begin_layout Plain Layout
20992 \begin_layout Plain Layout
21001 This is a subsubsection heading as a preface
21005 \begin_layout Plain Layout
21016 \begin_layout Plain Layout
21026 \begin_layout Standard
21030 A minute examination of the circumstances served only to make the case more
21032 In the first place, no reason could be given why the young man should have
21033 fastened the door upon the inside.
21034 There was the possibility that the murderer had done this, and had afterwards
21035 escaped by the window.
21036 The drop was at least twenty feet, however, and a bed of crocuses in full
21038 Neither the flowers nor the earth showed any sign of having been disturbed,
21039 nor were there any marks upon the narrow strip of grass which separated
21040 the house from the road.
21041 Apparently, therefore, it was the young man himself who had fastened the
21043 But how did he come by his death? No one could have climbed up to the window
21044 without leaving traces.
21045 Suppose a man had fired through the window, he would indeed be a remarkable
21046 shot who could with a revolver inflict so deadly a wound.
21047 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
21048 a hundred yards of the house.
21049 No one had heard a shot.
21052 \begin_layout End Multiple Columns
21056 \begin_layout Standard
21059 If there is less vertical space left on the page at the beginning of the
21060 multiple columns than needed for 6
21061 \begin_inset space ~
21064 text lines, a page break will be inserted before the multiple columns.
21065 Depending on the number of lines of the preface text, you might want to
21067 It is determined by inserting the command
21070 \begin_layout Standard
21079 \begin_layout Standard
21082 as TeX Code behind the preface definition but before the final
21091 is hereby the number of text lines.
21092 In this example the space is set to 7
21093 \begin_inset space ~
21099 \begin_layout Begin Multiple Columns
21106 \begin_layout Plain Layout
21117 \begin_layout Plain Layout
21126 This is the sectioning command
21127 \begin_inset Newline newline
21131 \begin_inset Newline newline
21134 with multiple text lines
21138 \begin_layout Plain Layout
21149 \begin_layout Plain Layout
21162 \begin_layout Plain Layout
21172 \begin_layout Standard
21176 On the evening of the crime, he returned from the club exactly at ten.
21177 His mother and sister were out spending the evening with a relation.
21178 The servant deposed that she heard him enter the front room on the second
21179 floor, generally used as his sitting-room.
21180 She had lit a fire there, and as it smoked she had opened the window.
21181 No sound was heard from the room until eleven-twenty, the hour of the return
21182 of Lady Maynooth and her daughter.
21183 Desiring to say good-night, she attempted to enter her son's room.
21184 The door was locked on the inside, and no answer could be got to their
21185 cries and knocking.
21186 Help was obtained, and the door forced.
21187 The unfortunate young man was found lying near the table.
21188 His head had been horribly mutilated by an expanding revolver bullet, but
21189 no weapon of any sort was to be found in the room.
21192 \begin_layout End Multiple Columns
21196 \begin_layout Subsubsection
21202 \begin_layout Standard
21205 The amount of space before and after multiple columns can be changed by
21206 changing the length
21213 For example the command
21216 \begin_layout Standard
21227 \begin_layout Standard
21230 in TeX Code changes its value to 3
21231 \begin_inset space \thinspace{}
21235 The change must be made before the multiple columns' start.
21236 The predefined value is 13
21237 \begin_inset space \thinspace{}
21243 \begin_layout Standard
21253 \begin_inset space \thinspace{}
21259 \begin_layout Standard
21265 \begin_layout Plain Layout
21271 multicolsep}{2.5cm}
21279 \begin_layout Begin Multiple Columns
21285 \begin_layout Standard
21289 All day I turned these facts over in my mind, endeavouring to hit upon some
21290 theory which could reconcile them all, and to find that line of least resistanc
21291 e which my poor friend had declared to be the starting-point of every investigat
21293 I confess that I made little progress.
21294 In the evening I strolled across the Park, and found myself about six o'clock
21295 at the Oxford Street end of Park Lane.
21296 A group of loafers upon the pavements, all staring up at a particular window,
21297 directed me to the house which I had come to see.
21298 A tall, thin man with coloured glasses, whom I strongly suspected of being
21299 a plain-clothes detective, was pointing out some theory of his own, while
21300 the others crowded round to listen to what he said.
21301 I got as near him as I could, but his observations seemed to me to be absurd,
21302 so I withdrew again in some disgust.
21303 As I did so I struck against an elderly, deformed man, who had been behind
21304 me, and I knocked down several books which he was carrying.
21307 \begin_layout End Multiple Columns
21311 \begin_layout Standard
21314 \begin_inset Note Greyedout
21317 \begin_layout Plain Layout
21323 The values you set with
21329 will be used for all following multiple columns until to change them again.
21337 \begin_layout Standard
21343 \begin_layout Plain Layout
21355 \begin_inset Note Note
21358 \begin_layout Plain Layout
21361 go back to the default
21369 \begin_layout Subsubsection
21375 \begin_layout Standard
21378 The width of the columns is automatically calculated, but you can modify
21379 the space between the columns.
21380 This is done by changing the length
21387 Its predefined value is 10
21388 \begin_inset space \thinspace{}
21392 Here is an example where
21399 \begin_inset space \thinspace{}
21405 \begin_layout Standard
21411 \begin_layout Plain Layout
21425 \begin_layout Begin Multiple Columns
21431 \begin_layout Standard
21435 My observations of No.
21436 \begin_inset space \space{}
21439 427 Park Lane did little to clear up the problem in which I was interested.
21440 The house was separated from the street by a low wall and railing, the
21441 whole not more than five feet high.
21442 It was perfectly easy, therefore, for anyone to get into the garden, but
21443 the window was entirely inaccessible, since there was no water pipe or
21444 anything which could help the most active man to climb it.
21445 More puzzled than ever, I retraced my steps to Kensington.
21446 I had not been in my study five minutes when the maid entered to say that
21447 a person desired to see me.
21448 To my astonishment it was none other than my strange old book collector,
21449 his sharp, wizened face peering out from a frame of white hair, and his
21450 precious volumes, a dozen of them at least, wedged under his right arm.
21453 \begin_layout End Multiple Columns
21457 \begin_layout Standard
21463 \begin_layout Plain Layout
21475 \begin_inset Note Note
21478 \begin_layout Plain Layout
21481 go back to the default
21489 \begin_layout Subsubsection
21495 \begin_layout Standard
21498 Between the columns a rule with a width of the length
21505 If this rule width is set to 0
21506 \begin_inset space \thinspace{}
21509 pt (this is the default), the rule is suppressed.
21510 In the following example, the line separating the columns is 2
21511 \begin_inset space \thinspace{}
21517 \begin_layout Standard
21523 \begin_layout Plain Layout
21529 columnseprule}{2pt}
21537 \begin_layout Begin Multiple Columns
21543 \begin_layout Standard
21547 \begin_inset Quotes eld
21550 You're surprised to see me, sir,
21551 \begin_inset Quotes erd
21554 said he, in a strange, croaking voice.
21557 \begin_layout Standard
21561 I acknowledged that I was.
21564 \begin_layout Standard
21568 \begin_inset Quotes eld
21571 Well, I've a conscience, sir, and when I chanced to see you go into this
21572 house, as I came hobbling after you, I thought to myself, I'll just step
21573 in and see that kind gentleman, and tell him that if I was a bit gruff
21574 in my manner there was not any harm meant, and that I am much obliged to
21575 him for picking up my books.
21576 \begin_inset Quotes erd
21582 \begin_layout Standard
21586 \begin_inset Quotes eld
21589 You make too much of a trifle,
21590 \begin_inset Quotes erd
21595 \begin_inset Quotes eld
21598 May I ask how you knew who I was?
21599 \begin_inset Quotes erd
21605 \begin_layout Standard
21609 \begin_inset Quotes eld
21612 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21613 you'll find my little bookshop at the corner of Church Street, and very
21614 happy to see you, I am sure.
21615 Maybe you collect yourself, sir.
21619 \begin_inset space ~
21632 --a bargain, every one of them.
21633 With five volumes you could just fill that gap on that second shelf.
21634 It looks untidy, does it not, sir?
21635 \begin_inset Quotes erd
21641 \begin_layout End Multiple Columns
21645 \begin_layout Standard
21651 \begin_layout Plain Layout
21657 columnseprule}{0pt}
21663 \begin_inset Note Note
21666 \begin_layout Plain Layout
21669 go back to the default
21677 \begin_layout Standard
21678 \begin_inset Newpage newpage
21684 \begin_layout Section
21688 \begin_layout Standard
21692 \begin_layout Plain Layout
21704 \begin_layout Standard
21708 \begin_layout Plain Layout
21717 \begin_layout Plain Layout
21731 \begin_layout Standard
21736 \begin_layout Plain Layout
21747 \begin_layout Plain Layout
21756 \begin_layout Plain Layout
21765 \begin_layout Plain Layout
21774 \begin_layout Plain Layout
21783 \begin_layout Plain Layout
21792 \begin_layout Plain Layout
21801 \begin_layout Plain Layout
21810 \begin_layout Plain Layout
21819 \begin_layout Plain Layout
21828 \begin_layout Plain Layout
21837 \begin_layout Plain Layout
21846 \begin_layout Plain Layout
21855 \begin_layout Plain Layout
21864 \begin_layout Plain Layout
21873 \begin_layout Plain Layout
21882 \begin_layout Plain Layout
21891 \begin_layout Plain Layout
21900 \begin_layout Plain Layout
21909 \begin_layout Plain Layout
21915 長方形の段落の形を変えたい場合があるでしょう。そういう場合は楽しいTeXコマンド
21921 を使いましょう。この例で分かるように適当に行の長さを設定することで好きな形の段落が作れます。馬鹿げているように見えるかもしれませんが、dropped
21922 capitalを最終調整したり、長方形ではない図のまわりを文章で囲ったりするのにこのような手作業が必要なのです。
21925 \begin_layout Standard
21926 \begin_inset VSpace bigskip
21933 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
21940 は段落をつくる行数です。その段落の本文がこれより短い場合はそこで終わり、長い場合には最後の行の定義がそれ以後も使われます。
21948 エントリは左余白からの字下げの量と、字下げされたところからの行の長さを指定します。この形は現在の段落にだけ適応されて、次の段落では通常の形にリセットされます。
21951 \begin_layout Standard
21955 \begin_layout Plain Layout
21967 \begin_layout Bibliography
21968 \begin_inset CommandInset bibitem
21969 LatexCommand bibitem
21976 Documentation of the LaTeX-package
21979 \begin_inset CommandInset href
21982 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
21989 \begin_inset Index idx
21992 \begin_layout Plain Layout
21995 LaTeX-packages ! multicol