1 #LyX 2.1 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 % extra space for tables
40 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
53 \maintain_unincluded_children false
56 InsetLayout CharStyle:MenuItem
65 \newcommand*{\menuitem}[1]{{\sffamily #1}}
70 \language_package default
75 \font_typewriter default
77 \font_default_family default
78 \use_non_tex_fonts false
84 \default_output_format default
86 \bibtex_command default
87 \index_command default
92 \pdf_author "LyXプロジェクトチーム"
93 \pdf_subject "LyX拡張機能取扱説明書"
94 \pdf_keywords "LyX、取扱説明書、文書化、拡張"
96 \pdf_bookmarksnumbered true
97 \pdf_bookmarksopen false
98 \pdf_bookmarksopenlevel 1
103 \pdf_pdfusetitle false
104 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
107 \use_package amsmath 1
108 \use_package amssymb 1
110 \use_package mathdots 1
111 \use_package mathtools 0
112 \use_package mhchem 1
113 \use_package stackrel 0
114 \use_package stmaryrd 0
115 \use_package undertilde 0
117 \cite_engine_type numerical
121 \paperorientation portrait
125 \notefontcolor #0000ff
132 \paragraph_separation indent
133 \paragraph_indentation default
134 \quotes_language english
137 \paperpagestyle headings
138 \tracking_changes false
139 \output_changes false
149 \begin_inset Newline newline
153 \begin_inset Newline newline
166 \begin_layout Plain Layout
167 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
168 \begin_inset Flex Code
171 \begin_layout Plain Layout
175 <lyx-docs@lists.lyx.org>
180 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
188 \begin_layout Standard
189 \begin_inset CommandInset toc
190 LatexCommand tableofcontents
197 \begin_layout Chapter
201 \begin_layout Standard
210 』の第二部です。この文書を別部とした理由は、単純に『
218 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
219 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
220 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
221 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
224 \begin_layout Standard
225 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
226 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
227 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
230 \begin_layout Standard
235 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
239 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
243 』をよくお読みになって、LyXの全基本機能を習得してください。
246 \begin_layout Standard
247 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
248 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
251 \begin_layout Chapter
255 \begin_layout Section
259 \begin_layout Standard
269 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
270 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
273 \begin_layout Standard
301 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
305 \begin_layout Plain Layout
315 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
320 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
321 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
339 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
340 でも、いちど以下の手順を試してみてください。まず
350 \begin_inset Flex MenuItem
353 \begin_layout Plain Layout
380 \begin_inset Flex MenuItem
383 \begin_layout Plain Layout
386 エクスポート\SpecialChar \menuseparator
411 \begin_inset Flex MenuItem
414 \begin_layout Plain Layout
417 表示\SpecialChar \menuseparator
433 \begin_inset Flex Code
436 \begin_layout Plain Layout
444 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
453 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
456 \begin_layout Standard
466 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
469 \begin_layout Itemize
470 \begin_inset Flex MenuItem
473 \begin_layout Plain Layout
476 表示\SpecialChar \menuseparator
487 \begin_layout Itemize
490 \begin_inset Flex MenuItem
493 \begin_layout Plain Layout
496 表示\SpecialChar \menuseparator
497 更新\SpecialChar \menuseparator
508 \begin_layout Itemize
511 \begin_inset Flex MenuItem
514 \begin_layout Plain Layout
519 \SpecialChar \menuseparator
530 \begin_layout Itemize
533 \begin_inset Flex MenuItem
536 \begin_layout Plain Layout
541 \SpecialChar \menuseparator
552 \begin_layout Standard
562 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
565 \begin_layout Standard
575 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
578 \begin_layout Enumerate
588 文書をLaTeXに変換し、ファイルの拡張子を
589 \begin_inset Flex Code
592 \begin_layout Plain Layout
608 \begin_inset Flex Code
611 \begin_layout Plain Layout
629 \begin_layout Enumerate
640 \begin_inset Flex Code
643 \begin_layout Plain Layout
658 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
659 \begin_inset Flex Code
662 \begin_layout Plain Layout
678 \begin_inset Flex Code
681 \begin_layout Plain Layout
699 \begin_layout Enumerate
712 \begin_layout Standard
732 \begin_inset Flex MenuItem
735 \begin_layout Plain Layout
738 表示\SpecialChar \menuseparator
753 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
754 \begin_inset Flex MenuItem
757 \begin_layout Plain Layout
767 表示\SpecialChar \menuseparator
773 を使用した場合には、LyXはさらに以下の段階をふみます。
776 \begin_layout Itemize
786 \begin_inset Flex Code
789 \begin_layout Plain Layout
827 \begin_layout Itemize
837 \begin_inset Flex Code
840 \begin_layout Plain Layout
848 などのPostScript®ビューアを実行して、PostScript®
860 \begin_layout Standard
861 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
864 \begin_layout Section
868 \begin_layout Standard
872 \begin_inset Flex MenuItem
875 \begin_layout Plain Layout
878 ファイル\SpecialChar \menuseparator
879 インポート\SpecialChar \menuseparator
894 コマンドを使用すると、LaTeXファイルを
910 LyXにインポートすることができます。このコマンドは、
920 \begin_inset Flex Code
923 \begin_layout Plain Layout
950 \begin_inset Flex Code
953 \begin_layout Plain Layout
964 \begin_inset Flex Code
967 \begin_layout Plain Layout
975 を生成します。LyXは、この変換したファイルを開きます
979 \begin_layout Plain Layout
980 \begin_inset Flex Code
983 \begin_layout Plain Layout
989 は、もちろんコマンドラインから実行することもできます。
997 \begin_layout Standard
1000 \begin_inset Flex Code
1003 \begin_layout Plain Layout
1020 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1030 \begin_inset Flex Code
1033 \begin_layout Plain Layout
1050 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1060 \begin_inset Flex Code
1063 \begin_layout Plain Layout
1080 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1083 \begin_layout Standard
1093 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1096 \begin_layout Section
1098 \begin_inset CommandInset label
1100 name "sec:LaTeXコードを挿入する"
1107 \begin_layout Standard
1117 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1118 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1120 \begin_inset Flex Code
1123 \begin_layout Plain Layout
1148 \begin_inset Flex MenuItem
1151 \begin_layout Plain Layout
1154 挿入\SpecialChar \menuseparator
1172 \begin_layout Standard
1173 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1176 \begin_layout LyX-Code
1180 \begin_inset Newline newline
1185 begin{minipage}{5cm}
1186 \begin_inset Newline newline
1190 \begin_inset Newline newline
1194 \begin_inset Newline newline
1198 \begin_inset Newline newline
1202 \begin_inset Newline newline
1206 \begin_inset Newline newline
1212 \begin_inset Newline newline
1216 \begin_inset Newline newline
1221 begin{minipage}{5cm}
1222 \begin_inset Newline newline
1228 \begin_inset Newline newline
1233 begin{minipage}{5cm}
1234 \begin_inset Newline newline
1239 \begin_inset Newline newline
1245 \begin_inset Newline newline
1251 \begin_inset Newline newline
1257 \begin_inset Newline newline
1265 \begin_layout LyX-Code
1269 \begin_layout Standard
1271 \begin_inset Flex Code
1274 \begin_layout Plain Layout
1280 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1284 \begin_layout Standard
1288 \begin_layout Plain Layout
1295 \begin_layout Plain Layout
1299 begin{minipage}{5cm}
1302 \begin_layout Plain Layout
1304 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。
1309 \begin_layout Plain Layout
1314 \begin_layout Plain Layout
1318 begin{minipage}{5cm}
1321 \begin_layout Plain Layout
1328 \begin_layout Plain Layout
1332 begin{minipage}{5cm}
1335 \begin_layout Plain Layout
1343 \begin_layout Plain Layout
1350 \begin_layout Plain Layout
1357 \begin_layout Plain Layout
1369 \begin_layout Standard
1379 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1380 \begin_inset Flex MenuItem
1383 \begin_layout Plain Layout
1393 挿入\SpecialChar \menuseparator
1394 ファイル\SpecialChar \menuseparator
1400 を使用する方法もあります(取り込みの型として
1401 \begin_inset Flex Code
1404 \begin_layout Plain Layout
1419 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1437 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1440 \begin_layout Standard
1450 最後に、いくつか強調しておくべきことがあります。
1453 \begin_layout Itemize
1463 LyXは、あなたのLaTeXコードが正しいかどうかを
1484 \begin_layout Itemize
1494 車輪の再発明をしないようにご注意ください。
1497 \begin_layout Standard
1507 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1508 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1509 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1519 \begin_inset CommandInset href
1522 target "http://www.ctan.org/"
1536 \begin_inset CommandInset ref
1538 reference "chap:Special-features"
1545 \begin_layout Standard
1555 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1573 』の参考文献に多くのLaTeX関連書籍が引用されています。
1576 \begin_layout Section
1580 \begin_layout Subsection
1584 \begin_layout Standard
1594 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1595 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1596 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1599 \begin_layout Standard
1609 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1627 の部分に来ます。ここでは以下のことを行います。
1630 \begin_layout Itemize
1640 文書クラス(ドキュメントクラス)の宣言。
1641 \begin_inset Newline newline
1644 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1662 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1665 \begin_layout Itemize
1676 \begin_inset Newline newline
1679 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1698 \begin_inset Flex Code
1701 \begin_layout Plain Layout
1709 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1712 \begin_layout Itemize
1723 \begin_inset Newline newline
1726 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1746 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1747 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1750 \begin_layout Itemize
1761 \begin_inset Flex Code
1764 \begin_layout Plain Layout
1782 \begin_inset Flex Code
1785 \begin_layout Plain Layout
1803 \begin_inset Newline newline
1806 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1824 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1828 \begin_layout Standard
1839 \begin_inset Flex Code
1842 \begin_layout Plain Layout
1857 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1860 \begin_layout Subsection
1864 \begin_layout Standard
1874 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1876 \begin_inset Flex MenuItem
1879 \begin_layout Plain Layout
1889 文書\SpecialChar \menuseparator
1896 \begin_inset Flex MenuItem
1899 \begin_layout Plain Layout
1914 の項から、プリアンブルに追加をすることはできます。LyXは、
1924 \begin_inset Flex MenuItem
1927 \begin_layout Plain Layout
1944 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1945 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1956 プリアンブルコードが正しいことを確認してください。
1958 LyXは、プリアンブルをチェックしません。
1968 \begin_inset Flex Code
1971 \begin_layout Plain Layout
1988 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1991 \begin_layout Subsection
1995 \begin_layout Standard
2005 以下は、プリアンブルに追加できるものとその効果を示す例です。
2008 \begin_layout Subsubsection
2012 \begin_layout Standard
2041 \begin_inset Flex Code
2044 \begin_layout Plain Layout
2064 \begin_inset Flex Code
2067 \begin_layout Plain Layout
2086 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2087 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2088 \begin_inset Flex Code
2091 \begin_layout Plain Layout
2111 \begin_inset Flex Code
2114 \begin_layout Plain Layout
2129 \begin_layout Standard
2139 \begin_inset Flex Code
2142 \begin_layout Plain Layout
2162 \begin_inset Flex Code
2165 \begin_layout Plain Layout
2184 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2185 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2187 \begin_inset Flex Code
2190 \begin_layout Plain Layout
2210 \begin_inset Flex Code
2213 \begin_layout Plain Layout
2232 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2235 \begin_layout LyX-Code
2243 \begin_layout LyX-Code
2251 \begin_layout Standard
2264 \begin_layout Subsubsection
2268 \begin_layout Standard
2278 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2279 \begin_inset Flex Code
2282 \begin_layout Plain Layout
2290 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2291 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2295 \begin_layout Standard
2306 \begin_inset Flex Code
2309 \begin_layout Plain Layout
2317 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
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 LyX-Code
2362 \begin_layout Standard
2381 Avery®ラベルシートのストック5360
2390 番を使用する場合の設定です。これで、各宛名を
2391 \begin_inset Flex Code
2394 \begin_layout Plain Layout
2414 \begin_inset Flex Code
2417 \begin_layout Plain Layout
2436 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2437 \begin_inset Flex Code
2440 \begin_layout Plain Layout
2451 \begin_layout Standard
2461 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2464 \begin_layout Subsubsection
2468 \begin_layout Standard
2498 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2515 \begin_layout Standard
2525 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2543 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2547 \begin_layout Standard
2557 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2561 \begin_layout LyX-Code
2564 usepackage{indentfirst}
2567 \begin_layout Standard
2577 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2580 \begin_layout Subsubsection
2584 \begin_layout Standard
2594 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2604 \begin_inset CommandInset ref
2606 reference "chap:Special-features"
2619 章には、他の例や、LaTeXの各種の「汚い技」があります。
2622 \begin_layout Section
2626 \begin_layout Standard
2636 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2637 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2638 ル中、そのエラーの発生した場所に表示を移動します
2642 \begin_layout Plain Layout
2652 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2653 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2654 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2671 \begin_layout Standard
2681 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2682 \begin_inset Flex MenuItem
2685 \begin_layout Plain Layout
2695 文書\SpecialChar \menuseparator
2701 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2705 \begin_layout Itemize
2708 \begin_inset Flex Code
2711 \begin_layout Plain Layout
2729 \begin_inset Newline newline
2732 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2733 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2736 \begin_layout Itemize
2739 \begin_inset Flex Code
2742 \begin_layout Plain Layout
2760 \begin_inset Newline newline
2763 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2767 \begin_layout Itemize
2777 \begin_inset Flex Code
2780 \begin_layout Plain Layout
2791 \begin_inset Newline newline
2812 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2813 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2814 \begin_inset Newline newline
2817 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2821 \begin_layout Plain Layout
2823 \begin_inset Flex MenuItem
2826 \begin_layout Plain Layout
2827 文書\SpecialChar \menuseparator
2833 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2841 \begin_layout Itemize
2844 \begin_inset Flex Code
2847 \begin_layout Plain Layout
2858 \begin_inset Newline newline
2870 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2873 \begin_layout Itemize
2874 \begin_inset Flex Code
2877 \begin_layout Plain Layout
2890 \begin_inset Flex Code
2893 \begin_layout Plain Layout
2906 \begin_inset Newline newline
2918 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2921 \begin_layout Itemize
2924 \begin_inset Flex Code
2927 \begin_layout Plain Layout
2931 \begin_inset Quotes els
2935 \begin_inset Quotes ers
2953 \begin_inset Newline newline
2956 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2958 \begin_inset Flex Code
2961 \begin_layout Plain Layout
2971 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2981 \begin_inset Flex MenuItem
2984 \begin_layout Plain Layout
2985 ヘルプ\SpecialChar \menuseparator
3000 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
3001 \begin_inset Flex MenuItem
3004 \begin_layout Plain Layout
3014 ツール\SpecialChar \menuseparator
3020 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3021 \begin_inset Newline newline
3034 \begin_inset Flex Code
3037 \begin_layout Plain Layout
3056 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3059 \begin_layout Itemize
3062 \begin_inset Flex Code
3065 \begin_layout Plain Layout
3068 LaTeX Error: Unknown option
3083 \begin_inset Newline newline
3086 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3090 \begin_layout Itemize
3093 \begin_inset Flex Code
3096 \begin_layout Plain Layout
3099 Undefined control sequence
3114 \begin_inset Newline newline
3117 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3118 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3121 \begin_layout Standard
3131 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3132 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3150 手がかりがありません。誰もわからないのです。
3153 \begin_layout Standard
3163 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3166 \begin_layout Enumerate
3176 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3179 \begin_layout Enumerate
3189 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3192 \begin_layout Enumerate
3202 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3203 \begin_inset Flex Code
3206 \begin_layout Plain Layout
3223 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3226 \begin_layout Enumerate
3236 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3240 \begin_layout Enumerate
3250 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3251 \begin_inset Flex Code
3254 \begin_layout Plain Layout
3258 \begin_inset space ~
3267 \begin_inset Flex Code
3270 \begin_layout Plain Layout
3288 \begin_inset Flex Code
3291 \begin_layout Plain Layout
3308 などをたくさん挿入するなど、微調整オプションを
3326 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3329 \begin_layout Enumerate
3339 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3340 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3343 \begin_layout Enumerate
3344 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3345 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3348 \begin_inset Flex Code
3351 \begin_layout Plain Layout
3366 \begin_layout Enumerate
3376 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3377 、それが原因です(LaTeXの上限は5段です)。
3380 \begin_layout Enumerate
3390 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3394 \begin_layout Enumerate
3407 \begin_layout Enumerate
3420 \begin_layout Standard
3434 \begin_layout Enumerate
3435 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3438 \begin_layout Standard
3466 LyXのバグを発見したのかもしれません‥‥。
3469 \begin_layout Chapter
3473 \begin_layout Section
3474 BibTeXによる参照文献のカスタマイズ
3477 \begin_layout Standard
3486 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3489 \begin_layout Subsection
3493 \begin_layout Standard
3494 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3495 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3496 \begin_inset Flex Code
3499 \begin_layout Plain Layout
3506 \begin_inset Flex Code
3509 \begin_layout Plain Layout
3515 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3517 \begin_inset Flex Code
3520 \begin_layout Plain Layout
3526 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3527 \begin_inset Flex Code
3530 \begin_layout Plain Layout
3536 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3541 \begin_inset Flex Code
3544 \begin_layout Plain Layout
3550 パッケージの利用を考えるとよいかもしれません。
3553 \begin_layout Standard
3554 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3555 \begin_inset Flex MenuItem
3558 \begin_layout Plain Layout
3559 文書\SpecialChar \menuseparator
3566 \begin_inset Flex MenuItem
3569 \begin_layout Plain Layout
3576 \begin_inset Flex MenuItem
3579 \begin_layout Plain Layout
3586 \begin_inset Flex MenuItem
3589 \begin_layout Plain Layout
3595 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3596 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3597 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3598 \begin_inset Flex Code
3601 \begin_layout Plain Layout
3607 に至っては、対話的なスタイルファイルビルダーさえ存在します
3611 \begin_layout Plain Layout
3612 \begin_inset Flex URL
3615 \begin_layout Plain Layout
3617 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3630 \begin_layout Subsection
3634 \begin_layout Standard
3635 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3636 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3640 \begin_layout Standard
3641 LyXは、このようなパッケージの一つである
3642 \begin_inset Flex Code
3645 \begin_layout Plain Layout
3655 \begin_layout Plain Layout
3656 \begin_inset Flex URL
3659 \begin_layout Plain Layout
3661 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3671 をそのままでサポートします。このパッケージの長所は、(
3672 \begin_inset Flex Code
3675 \begin_layout Plain Layout
3681 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3682 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3683 \begin_inset Flex Code
3686 \begin_layout Plain Layout
3693 \begin_inset Flex Code
3696 \begin_layout Plain Layout
3705 \begin_layout Standard
3706 \begin_inset Flex MenuItem
3709 \begin_layout Plain Layout
3710 文書\SpecialChar \menuseparator
3717 \begin_inset Flex MenuItem
3720 \begin_layout Plain Layout
3727 \begin_inset Flex MenuItem
3730 \begin_layout Plain Layout
3736 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3737 \begin_inset Flex Code
3740 \begin_layout Plain Layout
3747 \begin_inset Flex Code
3750 \begin_layout Plain Layout
3756 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3757 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3758 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3760 \begin_inset Flex Code
3763 \begin_layout Plain Layout
3769 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3772 \begin_layout Subsection
3776 \begin_layout Standard
3777 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3778 \begin_inset Flex Code
3781 \begin_layout Plain Layout
3788 \begin_inset CommandInset ref
3790 reference "sec:LaTeXコードを挿入する"
3794 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3795 \begin_inset Flex Code
3798 \begin_layout Plain Layout
3804 パッケージが、この課題を解決する簡単な方法を提供します
3808 \begin_layout Plain Layout
3810 \begin_inset Flex Code
3813 \begin_layout Plain Layout
3820 \begin_inset Flex Code
3823 \begin_layout Plain Layout
3837 \begin_layout Standard
3839 \begin_inset Flex MenuItem
3842 \begin_layout Plain Layout
3843 文書\SpecialChar \menuseparator
3850 \begin_inset Flex MenuItem
3853 \begin_layout Plain Layout
3860 \begin_inset Flex MenuItem
3863 \begin_layout Plain Layout
3869 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3870 \begin_inset Flex Code
3873 \begin_layout Plain Layout
3882 \begin_inset Flex Code
3885 \begin_layout Plain Layout
3893 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3894 \begin_inset Flex Code
3897 \begin_layout Plain Layout
3903 において引用されたすべての参照が含まれることになります。
3907 この方法を用いる場合には、すべての参照はいずれかの
3908 \begin_inset Flex Code
3911 \begin_layout Plain Layout
3918 \begin_inset Flex Code
3921 \begin_layout Plain Layout
3930 \begin_layout Section
3934 \begin_layout Subsection
3938 \begin_layout Standard
3939 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3940 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3941 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3945 \begin_layout Plain Layout
3950 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3956 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3957 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3958 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3971 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3974 \begin_layout Standard
3977 挿入\SpecialChar \menuseparator
3978 ファイル\SpecialChar \menuseparator
3981 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3982 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3985 \begin_layout Standard
3986 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3987 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3988 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3991 \begin_layout Standard
3992 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3996 \begin_layout Standard
3997 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3998 \begin_inset Flex Code
4001 \begin_layout Plain Layout
4007 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4008 ものの、単なる見えない空白です。ただし、
4011 \begin_inset Flex MenuItem
4014 \begin_layout Plain Layout
4024 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4027 \begin_layout Subsection
4031 \begin_layout Standard
4032 \begin_inset Box Shadowbox
4042 height_special "totalheight"
4045 \begin_layout Plain Layout
4046 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4054 \begin_layout Standard
4055 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4056 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4060 \begin_layout Subsection
4064 \begin_layout Standard
4065 \begin_inset Box Shadowbox
4075 height_special "totalheight"
4078 \begin_layout Plain Layout
4079 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4087 \begin_layout Standard
4088 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4089 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4092 \begin_layout Standard
4093 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4094 ントをインクルードするLaTeXパッケージの
4095 \begin_inset Flex Code
4098 \begin_layout Plain Layout
4104 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4107 \begin_layout LyX-Code
4113 \begin_layout LyX-Code
4116 includecomment{comment}
4119 \begin_layout Standard
4120 \begin_inset Flex URL
4123 \begin_layout Plain Layout
4125 http://wiki.lyx.org/FAQ/Unsorted#toc31
4133 \begin_layout Section
4137 \begin_layout Standard
4138 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4139 \begin_inset Flex Code
4142 \begin_layout Plain Layout
4148 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4153 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4154 ルに挿入する必要のあるLaTeXコードについて解説します。
4157 \begin_layout Standard
4158 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4159 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4162 \begin_inset Flex Code
4165 \begin_layout Plain Layout
4180 \begin_inset Flex Code
4183 \begin_layout Plain Layout
4198 \begin_inset Flex Code
4201 \begin_layout Plain Layout
4214 \begin_inset Flex Code
4217 \begin_layout Plain Layout
4225 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4228 \begin_layout Standard
4236 \begin_layout Standard
4237 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4241 \begin_layout Standard
4247 \begin_inset Newline newline
4255 \begin_layout Standard
4256 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4257 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4260 \begin_layout Standard
4270 \begin_layout Standard
4278 \begin_layout Standard
4288 \begin_layout Standard
4296 \begin_layout Standard
4304 \begin_layout Standard
4314 \begin_layout Standard
4318 \begin_inset Flex Code
4321 \begin_layout Plain Layout
4338 \begin_inset Flex Code
4341 \begin_layout Plain Layout
4353 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4354 \begin_inset Flex Code
4357 \begin_layout Plain Layout
4372 \begin_layout Standard
4373 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4374 フッタ罫線は0ptです。太さを変更するには、
4377 \begin_inset Flex Code
4380 \begin_layout Plain Layout
4387 headrulewidth}{0.4pt}
4397 \begin_inset Flex Code
4400 \begin_layout Plain Layout
4407 footrulewidth}{0.4pt}
4417 \begin_layout Standard
4418 \begin_inset Flex Code
4421 \begin_layout Plain Layout
4426 thispagestyle{empty}
4432 \begin_inset Flex Code
4435 \begin_layout Plain Layout
4440 thispagestyle{plain}
4446 \begin_inset Flex Code
4449 \begin_layout Plain Layout
4454 thispagestyle{fancy}
4459 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4460 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4461 レーン(plain)になるように設定されているのです。
4464 \begin_layout Standard
4465 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4466 \begin_inset Flex Code
4469 \begin_layout Plain Layout
4477 パッケージの取扱説明書をご参照ください(
4478 \begin_inset Flex Code
4481 \begin_layout Plain Layout
4490 \begin_layout Standard
4491 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4494 \begin_layout Standard
4503 includegraphics{logo.eps}}}
4506 \begin_layout Standard
4508 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4509 \begin_inset Newline newline
4513 \begin_inset Flex Code
4516 \begin_layout Plain Layout
4522 usepackage{graphics}
4527 をプリアンブルに宣言する必要があります)。
4530 \begin_layout Section
4532 \begin_inset CommandInset label
4541 \begin_layout Standard
4547 \begin_layout Subsection
4551 \begin_layout Standard
4552 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4553 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4557 \begin_layout Plain Layout
4558 正確には可能ですが、手動で行う必要があります。
4566 \begin_layout Subsection
4570 \begin_layout Standard
4572 \begin_inset Flex MenuItem
4575 \begin_layout Plain Layout
4576 文書\SpecialChar \menuseparator
4583 \begin_inset Flex MenuItem
4586 \begin_layout Plain Layout
4595 \begin_layout Standard
4596 そのダイアログに、ブリットの形の一覧表があります。
4597 \begin_inset Flex MenuItem
4600 \begin_layout Plain Layout
4606 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4607 \begin_inset Flex MenuItem
4610 \begin_layout Plain Layout
4616 パネルは、変更したい階層を選択するものです。
4617 \begin_inset Flex MenuItem
4620 \begin_layout Plain Layout
4626 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4630 \begin_layout Standard
4631 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4634 \begin_layout Standard
4636 \begin_inset Tabular
4637 <lyxtabular version="3" rows="7" columns="2">
4638 <features rotate="0" tabularvalignment="middle">
4639 <column alignment="center" valignment="top" width="0pt">
4640 <column alignment="center" valignment="top" width="0pt">
4642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4645 \begin_layout Plain Layout
4651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4654 \begin_layout Plain Layout
4671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4674 \begin_layout Plain Layout
4682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4685 \begin_layout Plain Layout
4703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4706 \begin_layout Plain Layout
4721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4724 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4744 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4762 \begin_layout Plain Layout
4779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4782 \begin_layout Plain Layout
4797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4800 \begin_layout Plain Layout
4817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4820 \begin_layout Plain Layout
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4838 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4858 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4876 \begin_layout Plain Layout
4899 \begin_layout Standard
4900 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4901 出るようならば、パッケージが導入されていない可能性が大です
4905 \begin_layout Plain Layout
4906 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4914 \begin_layout Subsection
4918 \begin_layout Standard
4919 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4923 \begin_layout Plain Layout
4928 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4929 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4932 \begin_layout Plain Layout
4936 \begin_layout Plain Layout
4952 \begin_layout Plain Layout
4956 \begin_layout Plain Layout
4978 \begin_layout Itemize
4979 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4980 \begin_inset Flex Code
4983 \begin_layout Plain Layout
4993 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4994 更するために、以下のLaTeXコードが使用されています。
4998 \begin_layout LyX-Code
5010 \begin_layout LyX-Code
5029 \begin_layout Itemize
5031 \begin_inset Flex Code
5034 \begin_layout Plain Layout
5042 コマンドの一部にローマ数字で指定されていることに注意してください。
5045 \begin_layout Itemize
5049 \begin_layout Plain Layout
5062 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5063 \begin_inset Flex Code
5066 \begin_layout Plain Layout
5072 として挿入してください。たとえば、この項目の行頭には
5075 \begin_inset Flex Code
5078 \begin_layout Plain Layout
5097 \begin_layout Plain Layout
5101 \begin_layout Plain Layout
5117 \begin_layout Plain Layout
5118 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5121 \begin_layout LyX-Code
5138 \begin_layout Chapter
5142 \begin_layout Standard
5143 LyX has long supported the export of documents to various web-friendly formats,
5145 Before verson 2.0, however, HTML export was always accomplished by the use
5146 of external converters.
5150 \begin_layout Plain Layout
5151 For details on the use of external converters with LyX, see the
5155 section of the Customization manual.
5160 These fall into two large groups: there are converters that use LaTeX as
5161 an intermediate format, such as
5162 \begin_inset Flex Code
5165 \begin_layout Plain Layout
5174 \begin_inset Flex Code
5177 \begin_layout Plain Layout
5186 \begin_inset Flex Code
5189 \begin_layout Plain Layout
5197 , relying upon LyX to produce the LaTeX; and there is a converter that works
5198 directly on LyX files,
5199 \begin_inset Flex Code
5202 \begin_layout Plain Layout
5211 All of these have different advantages and disadvantages.
5215 \begin_layout Standard
5216 The LaTeX-based converters have the advantage that, in principle, they know
5217 everything about the exported document that LaTeX does.
5218 Such converters do not care, for example, if a certain block of code was
5219 produced by LyX or was Evil Red Text.
5220 These converters know about
5221 \begin_inset Flex Code
5224 \begin_layout Plain Layout
5232 files, counters, and references, and can often make use of the
5233 \begin_inset Flex Code
5236 \begin_layout Plain Layout
5244 files generated by BibTeX.
5245 On the other hand, LaTeX is a very hard language to parse---it is sometimes
5246 said that only TeX itself understands TeX---and LaTeX-based converters
5247 will often choke on what seem to be quite simple constructs; complex ones
5248 can throw them completely, and as of this writing, for example, the
5252 manual will not export with
5253 \begin_inset Flex Code
5256 \begin_layout Plain Layout
5264 , though the others will.
5265 The other issue concerns how math is handled.
5266 These converters typically convert the formulae into little pictures that
5267 are then linked from the HTML document.
5268 Since these are actually generated by LaTeX, they are accurate.
5269 But they do not scale well, and just getting them to look as if they are
5270 actually meant to be in your document---so that the font sizes seem to
5271 be roughly the same---can be a challenge.
5274 \begin_layout Standard
5276 \begin_inset Flex Code
5279 \begin_layout Plain Layout
5288 \begin_inset CommandInset href
5290 name "http://elyxer.nongnu.org/"
5291 target "http://elyxer.nongnu.org/"
5295 ) solves some of these problems.
5296 In particular, the formulae it produces scale perfectly, since it renders
5297 math using a combination of HTML and CSS rather than converting the formulae
5299 But even moderately complex formula are rendered less well than with
5300 \begin_inset Flex Code
5303 \begin_layout Plain Layout
5311 ; this reflects the limitations of HTML.
5315 \begin_layout Plain Layout
5317 \begin_inset Flex Code
5320 \begin_layout Plain Layout
5328 can also use jsMath and MathJax for equations, but this setting is only
5329 available globally and requires one to have access to a server that runs
5335 More importantly (as of version 1.1.1, at least),
5336 \begin_inset Flex Code
5339 \begin_layout Plain Layout
5347 has limited support for math macros and no support for user-defined paragraph
5348 or character styles.
5349 These limitations make
5350 \begin_inset Flex Code
5353 \begin_layout Plain Layout
5361 unsuitable for many of the documents LyX users produce.
5362 In principle, of course, these problems could be solved, but the LyX developers
5363 have decided to follow a different path and have made LyX itself capable
5364 of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5368 \begin_layout Standard
5369 As of this writing, XHTML output remains under development and should probably
5371 \begin_inset Quotes eld
5375 \begin_inset Quotes erd
5382 \begin_layout Plain Layout
5384 \begin_inset Flex Code
5387 \begin_layout Plain Layout
5390 development/HTML.notes
5395 , which can be found in the LyX source tree or
5396 \begin_inset CommandInset href
5398 name "accessed online"
5399 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5403 , usually contains up-to-date information about the state of XHTML output.
5404 See also the list of XHTML bugs on
5405 \begin_inset CommandInset href
5407 name "the bug tracker"
5408 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"
5417 Still, the developers have chosen this approach because it has several
5418 potential advantages over the other two.
5421 \begin_layout Standard
5422 These advantages are primarily due to the fact that the XHTML output routines,
5423 since they are part of LyX, know everything LyX knows about the document
5428 \begin_layout Plain Layout
5429 Another advantage is that, since these routines are internal to LyX, they
5430 are immune to changes in LyX's file format, or to changes in the semantics
5436 So they know about the table of contents (as displayed in the outline),
5437 about the counters associated with different paragraph styles, and about
5438 user-defined styles.
5439 The XHTML output routines know what LyX knows about internationalization,
5440 too, so they will output
5441 \begin_inset Quotes eld
5445 \begin_inset Quotes erd
5449 \begin_inset Quotes eld
5453 \begin_inset Quotes erd
5456 , depending upon the language in effect at the time.
5460 \begin_layout Standard
5461 Quite generally, the output routines know what LyX knows about document
5462 layout, that is, about how the document is to be rendered on screen.
5463 We use this information when we output the document as XHTML.
5468 generates CSS style information corresponding to the layout information
5469 it uses to render the document on screen: if section headings are supposed
5470 to be sans-serif and bold as seen in LyX, then (by default) they will be
5471 sans-serif and bold when viewed in a web browser, too.
5472 And this is true not just for pre-defined styles, like Section, but for
5473 any style, including user-defined styles.
5474 Indeed, the XHTML output routines make no distinction between user-defined
5475 paragraph and character styles and LyX's own pre-defined styles: in each
5476 case, everything LyX knows about the styles is contained in the layout
5478 And much the same is true as regards pre-defined textual insets, such as
5479 footnotes, and various custom insets.
5483 \begin_layout Standard
5484 The result is that XHTML output can be customized and extended in exactly
5485 the same way LaTeX output can be customized and extended: through layout
5487 See chapter five of the
5491 manual for the details.
5494 \begin_layout Standard
5495 The remainder of this chapter contains more detailed information on XHTML
5496 output, its limitations, and ways to work around those limitations.
5499 \begin_layout Section
5500 Math Output in XHTML
5503 \begin_layout Standard
5504 LyX offers four choices for how math is rendered.
5505 These have various advantages and disadvantages:
5508 \begin_layout Itemize
5510 \begin_inset Newline newline
5513 MathML is a dialect of XML designed specifically for mathematics on the
5514 web, and it typically renders very well in browsers that support it.
5515 The disadvantage is that not all browsers support MathML, and support is
5516 not complete even in the Gecko-based browsers, such as Firefox.
5517 \begin_inset Newline newline
5520 If LyX is unable to render a formula as MathML---for example, if the formula
5522 \begin_inset Flex Code
5525 \begin_layout Plain Layout
5533 package or ERT---then it will instead output the formula as an image.
5537 \begin_layout Itemize
5539 \begin_inset Newline newline
5543 \begin_inset Flex Code
5546 \begin_layout Plain Layout
5554 outputs math as HTML, styled by CSS.
5558 \begin_layout Plain Layout
5559 LyX has borrowed some of the CSS for its HTML output from
5560 \begin_inset Flex Code
5563 \begin_layout Plain Layout
5576 For simple formulae, this can work quite well, though with more complicated
5577 formulae it tends to break down.
5578 Still, this method has the advantage that it is very widely supported and
5579 so it may be appropriate for documents that contain only a little, fairly
5581 \begin_inset Newline newline
5584 If Lyx is unable to render a formula as HTML---for example, if the formula
5586 \begin_inset Flex Code
5589 \begin_layout Plain Layout
5597 package or ERT---then it will instead output the formula as an image.
5601 \begin_layout Itemize
5603 \begin_inset Newline newline
5607 \begin_inset Flex Code
5610 \begin_layout Plain Layout
5618 , LyX will output formulae as images, the very same images, in fact, that
5619 are used for instant preview.
5623 \begin_layout Plain Layout
5624 Instant preview does
5628 have to be on for images to be output, however.
5633 The advantage to this method is that the images are simply generated by
5634 LaTeX, so they are very accurate.
5635 The disadvantage, as mentioned earlier, is that these are bitmapped images,
5636 so they do not scale terribly well, and one cannot copy them, etc.
5637 (As of this writing, there are also problems about equation numbering.
5639 \begin_inset CommandInset href
5642 target "http://www.lyx.org/trac/ticket/6894"
5647 \begin_inset Newline newline
5650 The size of the images can be controlled by setting the
5651 \begin_inset Quotes eld
5655 \begin_inset Quotes erd
5659 \begin_inset Flex MenuItem
5662 \begin_layout Plain Layout
5665 Document\SpecialChar \menuseparator
5666 Settings\SpecialChar \menuseparator
5676 \begin_layout Plain Layout
5677 For those who want to know, this controls the resolution of the image in
5678 dots per inch and is based upon a default of 75 dpi.
5684 \begin_inset Newline newline
5687 If LyX for some reason fails to create an image for a formula (e.g., if a
5688 required LaTeX package is not installed), then it will fall back to outputing
5692 \begin_layout Itemize
5694 \begin_inset Newline newline
5697 Finally, LyX will happily output math as LaTeX.
5698 As well as being the output of last resort, this method can be used with
5700 \begin_inset CommandInset href
5703 target "http://www.math.union.edu/~dpvc/jsMath/"
5707 , which uses JavaScript to render LaTeX embedded in HTML documents.
5708 LyX wraps the LaTeX in either a
5709 \begin_inset Flex Code
5712 \begin_layout Plain Layout
5720 (for inline formulas) or
5721 \begin_inset Flex Code
5724 \begin_layout Plain Layout
5732 (for displayed formulas) with
5733 \begin_inset Flex Code
5736 \begin_layout Plain Layout
5744 , as is required for jsMath.
5747 \begin_layout Standard
5748 One of these output methods must be selected under
5749 \begin_inset Flex MenuItem
5752 \begin_layout Plain Layout
5755 Document\SpecialChar \menuseparator
5756 Settings\SpecialChar \menuseparator
5763 By default, LyX outputs MathML.
5764 This is a document-wide setting, therefore.
5767 \begin_layout Standard
5768 Eventually, LyX will offer the user the option to select an alternate output
5769 method for a particular inset, say, one that isn't being rendered very
5774 \begin_layout Plain Layout
5775 That said, since LyX falls back to images if the inset contains ERT, then
5776 one can force output as an image by putting some harmless ERT into the
5778 \begin_inset Formula $a=b\relax$
5789 \begin_layout Section
5790 Bibliography and Citations
5793 \begin_layout Standard
5794 XHTML output fully supports bibliographies and citations.
5798 \begin_layout Standard
5799 Citation labels are generated by the same machinery that generates LyX's
5800 on-screen labels, so the labels will look in the output much as they do
5801 in LyX, though better.
5802 If you are using numerical citations, then LyX will output numerical labels,
5803 such as [1] or [17], rather than simply showing the citation key in square
5804 brackets, as it does on-screen.
5805 If you are using author-year citations, then LyX will add lowercase letters
5806 to the years, just as BibTeX does, if it finds more than one citation for
5807 a given author-year combination.
5808 The labels will be printed with the bibliography entries.
5809 Note that there is, at present, no way to customize the appearance of the
5810 labels, for example, to choose between square brackets and parentheses.
5813 \begin_layout Standard
5814 Bibliography output is handled by the same machinery that handles the presentati
5815 on of reference information in the citation dialog, so you will see in the
5816 XHTML output pretty much what you would see if you were to look at a given
5817 entry in the citation dialog.
5818 The formatting can be customized in your layout file or, preferably, in
5824 manual for the details.
5827 \begin_layout Standard
5828 The main defect at present is that cross-referenced information is printed
5829 with every entry with which it is associated.
5830 So you can see things like this:
5835 \begin_inset Quotes eld
5838 Context and Logical Form
5839 \begin_inset Quotes erd
5844 Language in Context: Selected Essays
5846 (Oxford: Oxford University Press, 2007), pp.
5852 \begin_inset Quotes eld
5855 Semantics in Context
5856 \begin_inset Quotes erd
5861 Language in Context: Selected Essays
5863 (Oxford: Oxford University Press, 2007), pp.
5867 \begin_layout Standard
5868 This should be fixed before long.
5871 \begin_layout Standard
5872 There is no support at present for sectioned bibliographies.
5873 If you have multiple bibliographies, then LyX will print the same bibliography
5877 \begin_layout Section
5881 \begin_layout Standard
5882 LyX will happily export indexes as XHTML, but with certain limitations at
5886 \begin_layout Standard
5887 Index export will be most reliable when you do not attempt to use the fancy
5888 constructs that are described in the section on indexes in the
5896 \begin_layout Plain Layout
5897 The main issue here is that LyX itself does not really handle these.
5898 It just lets you enter what you would have to enter in raw LaTeX.
5903 We'll describe how they are handled using the subsection headings from
5907 \begin_layout Itemize
5908 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5909 these, but the entries must be separated by
5910 \begin_inset Quotes eld
5914 \begin_inset Quotes erd
5917 , that is, there must be spaces around the exclamation point.
5918 This is because it is otherwise too difficult to check for escaped exclamation
5919 points, ones in math, and so forth.
5922 \begin_layout Itemize
5923 Page Ranges: There is no support at all for page ranges, since these make
5924 no sense with XHMTL.
5925 Instead, you will just get two index entries, one at either end.
5928 \begin_layout Itemize
5929 Cross-referencing: There is no support for cross-referencing.
5930 If LyX finds an entry containing the
5931 \begin_inset Quotes eld
5934 |see\SpecialChar \ldots{}
5936 \begin_inset Quotes erd
5939 construct, it is just dropped, and the rest is treated as an ordinary index
5943 \begin_layout Itemize
5944 Index Entry Order: LyX does support attempts to fix the sorting order.
5945 It will take what is before the first `@' it finds and use that for sorting,
5946 taking what follows the first `@' to be the actual entry.
5947 At present, LyX does not check for escaped `@', so do not try to index
5951 \begin_layout Itemize
5952 Index Entry Layout: You can format entries by using the text style dialog,
5953 or by using any other method available within LyX itself.
5954 There is no support for constructs like:
5955 \begin_inset Quotes eld
5959 \begin_inset Quotes erd
5963 Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5964 and everything that follows it.
5967 \begin_layout Itemize
5968 Multiple Indexes: There is no support for multiple indexes.
5969 Rather, all index entries will be printed as one large index.
5970 To avoid our printing several versions of the index, we print only the
5971 main index, so make sure you have one.
5974 \begin_layout Section
5975 Nomenclature and Glossary
5978 \begin_layout Standard
5979 There is at present no support for glossaries.
5980 Adding it would be fairly trivial, and welcome.
5983 \begin_layout Chapter
5987 \begin_layout Section
5991 \begin_layout Standard
5992 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5993 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5994 yXに文献引用を「押し込む」ことが可能となります。
5997 \begin_layout Standard
6000 LyXサーバーはWindowsでは機能しない
6006 \begin_layout Plain Layout
6007 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6015 \begin_layout Section
6019 \begin_layout Standard
6020 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6021 \begin_inset Flex Code
6024 \begin_layout Plain Layout
6030 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6035 \begin_inset Flex Code
6038 \begin_layout Plain Layout
6050 に特別なオブジェクトとして置かれます)、「
6051 \begin_inset Flex Code
6054 \begin_layout Plain Layout
6061 \begin_inset Flex Code
6064 \begin_layout Plain Layout
6070 」という名前がついています。外部プログラムは、
6071 \begin_inset Flex Code
6074 \begin_layout Plain Layout
6081 \begin_inset Flex Code
6084 \begin_layout Plain Layout
6091 \begin_inset Flex MenuItem
6094 \begin_layout Plain Layout
6095 ツール\SpecialChar \menuseparator
6102 \begin_inset Flex Code
6105 \begin_layout Plain Layout
6106 /home/myhome/lyxpipe
6112 \begin_inset Flex Code
6115 \begin_layout Plain Layout
6129 」などに設定することができます。サーバーを開始するためには、これを
6136 \begin_layout Standard
6138 \begin_inset Flex Code
6141 \begin_layout Plain Layout
6148 \begin_inset Flex Code
6151 \begin_layout Plain Layout
6157 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6158 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6159 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6160 除するので、「古い」パイプが残ることはありません。
6163 \begin_layout Standard
6164 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6165 \begin_inset Flex Code
6168 \begin_layout Plain Layout
6174 ファイルを使用させるなど、別々の設定を使用する必要があります。
6177 \begin_layout Standard
6178 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6179 \begin_inset Flex Code
6182 \begin_layout Plain Layout
6191 \begin_layout Standard
6192 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6193 \begin_inset Flex Code
6196 \begin_layout Plain Layout
6197 development/lyxserver/server_monitor.c
6205 \begin_layout Standard
6207 \begin_inset Flex Code
6210 \begin_layout Plain Layout
6211 src/client/lyxclient
6216 にあるコマンドラインベースのクライアントがあります。
6219 \begin_layout Section
6223 \begin_layout Standard
6224 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6241 \begin_layout Description
6242 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6243 答をする際、クライアント名をエコーするときだけです。
6246 \begin_layout Description
6247 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6250 \begin_layout Description
6251 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6254 \begin_layout Standard
6255 LyXからの返答は、出力パイプに送り出され、
6272 \begin_layout Standard
6281 は、コマンド要求からそのままエコーされますが、
6285 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6286 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6289 \begin_layout Standard
6307 \begin_layout Standard
6312 には、なぜコマンドが失敗したかの説明が入っているはずです。
6315 \begin_layout Standard
6319 \begin_layout LyX-Code
6320 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6321 \begin_inset Newline newline
6324 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6325 \begin_inset Newline newline
6328 read a <~/.lyxpipe.out
6329 \begin_inset Newline newline
6335 \begin_layout Section
6339 \begin_layout Standard
6340 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6341 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6345 \begin_inset Flex Code
6348 \begin_layout Plain Layout
6359 \begin_layout Standard
6364 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6367 \begin_layout Standard
6368 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6369 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6372 \begin_layout Section
6376 \begin_layout Standard
6377 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6390 \begin_layout Standard
6395 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6396 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6399 \begin_layout Section
6403 \begin_layout Standard
6408 \begin_layout Plain Layout
6409 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6415 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6416 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6421 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6426 \begin_inset Flex Code
6429 \begin_layout Plain Layout
6435 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6436 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6437 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6438 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6441 \begin_layout Subsection
6442 \begin_inset CommandInset label
6451 \begin_layout Standard
6454 In most cases LyX will do the work for you by enabling the option
6455 \begin_inset Flex MenuItem
6458 \begin_layout Plain Layout
6461 Synchronize with Output
6467 \begin_inset Flex MenuItem
6470 \begin_layout Plain Layout
6473 Document\SpecialChar \menuseparator
6474 Settings\SpecialChar \menuseparator
6481 In such a case LyX will automatically insert the necessary SyncTeX macro
6482 (for PDF) or load the srcltx package (for DVI) respectively.
6483 This option can be easily reached also on
6484 \begin_inset Flex Code
6487 \begin_layout Plain Layout
6498 \begin_layout Standard
6501 If you need a different setting, you can select or input a custom macro
6502 from the drop down box just below
6503 \begin_inset Flex MenuItem
6506 \begin_layout Plain Layout
6509 Document\SpecialChar \menuseparator
6510 Settings\SpecialChar \menuseparator
6511 Output\SpecialChar \menuseparator
6512 Synchronize with Output
6520 \begin_layout Standard
6523 Note that the method
6524 \begin_inset Flex Code
6527 \begin_layout Plain Layout
6537 enables gzip compression.
6538 If your viewer does not support it, you should instead use
6539 \begin_inset Flex Code
6542 \begin_layout Plain Layout
6555 \begin_layout Standard
6558 Please aöso note that including the
6559 \begin_inset Flex Code
6562 \begin_layout Plain Layout
6571 \begin_inset Flex Code
6574 \begin_layout Plain Layout
6582 sometimes has an undesired impact on the typesetting.
6583 Thus, you should switch output synchronization off for the final typesetting
6585 \begin_inset Flex Code
6588 \begin_layout Plain Layout
6597 \begin_inset Flex Code
6600 \begin_layout Plain Layout
6612 \begin_layout Standard
6615 In case you need some more special settings that are not covered by the
6616 automatic settings, read the next section about how to set up output synchroniz
6618 If the automatic setup suits your needs, you can readily jump to section
6619 \begin_inset space ~
6625 \begin_inset CommandInset ref
6627 reference "sub:特定のビューアを設定して使うには"
6633 , where the necessary configuration steps in your viewer -- needed both
6634 with the automatic and the manual setup -- are described.
6637 \begin_layout Subsection
6641 \begin_layout Standard
6642 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6643 \begin_inset Flex Code
6646 \begin_layout Plain Layout
6652 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6653 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6656 \begin_layout Subsubsection*
6657 src-special経由のDVI組み込み検索(DVIのみ)
6660 \begin_layout Standard
6661 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6662 応しています)、安定して動作します。これを有効にするには、
6663 \begin_inset Flex MenuItem
6666 \begin_layout Plain Layout
6667 設定\SpecialChar \menuseparator
6668 ファイル処理\SpecialChar \menuseparator
6675 \begin_inset Flex MenuItem
6678 \begin_layout Plain Layout
6683 \begin_layout Plain Layout
6696 \begin_inset Flex MenuItem
6699 \begin_layout Plain Layout
6704 \begin_layout Plain Layout
6711 eX (plain)->DraftDVI
6717 \begin_inset Flex Code
6720 \begin_layout Plain Layout
6721 latex -src-specials $$i
6726 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6730 \begin_layout Subsubsection*
6731 外部パッケージ(PDFSyncおよびsrcltx)
6734 \begin_layout Standard
6743 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6747 \begin_layout Itemize
6749 \begin_inset Flex Code
6752 \begin_layout Plain Layout
6763 \begin_layout Itemize
6765 \begin_inset Flex Code
6768 \begin_layout Plain Layout
6771 usepackage[active]{srcltx}
6779 \begin_layout Standard
6780 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6783 \begin_layout LyX-Code
6787 \begin_inset Newline newline
6793 \begin_inset Newline newline
6799 \begin_inset Newline newline
6805 \begin_inset Newline newline
6810 usepackage[active]{srcltx}
6811 \begin_inset Newline newline
6819 \begin_layout Standard
6820 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6823 \begin_layout Standard
6824 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6828 \begin_layout Subsubsection*
6829 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6832 \begin_layout Standard
6833 \begin_inset Flex Code
6836 \begin_layout Plain Layout
6842 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6846 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6847 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6848 せん(Mac上のSkimとWindows上のSumatraPDF)。
6851 \begin_layout Standard
6852 DVI出力でSyncTeXを有効にするには、
6853 \begin_inset Flex MenuItem
6856 \begin_layout Plain Layout
6857 設定\SpecialChar \menuseparator
6858 ファイル処理\SpecialChar \menuseparator
6865 \begin_inset Flex MenuItem
6868 \begin_layout Plain Layout
6873 \begin_layout Plain Layout
6886 \begin_inset Flex MenuItem
6889 \begin_layout Plain Layout
6894 \begin_layout Plain Layout
6901 eX (plain)->DraftDVI
6907 \begin_inset Flex Code
6910 \begin_layout Plain Layout
6911 latex -synctex=1 $$i
6917 \begin_inset Flex MenuItem
6920 \begin_layout Plain Layout
6925 \begin_layout Plain Layout
6932 eX (pdflatex)->PDF (pdflatex)
6938 \begin_inset Flex Code
6941 \begin_layout Plain Layout
6942 pdflatex -synctex=1 $$i
6947 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
6951 \begin_layout Plain Layout
6952 \begin_inset Flex Code
6955 \begin_layout Plain Layout
6961 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6962 \begin_inset Flex Code
6965 \begin_layout Plain Layout
6979 \begin_layout Subsection
6981 \begin_inset CommandInset label
6983 name "sub:特定のビューアを設定して使うには"
6990 \begin_layout Subsubsection*
6994 \begin_layout Standard
6996 \begin_inset Flex Code
6999 \begin_layout Plain Layout
7005 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7006 \begin_inset Flex Code
7009 \begin_layout Plain Layout
7015 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7016 、Mac OS X上ではAlt-クリックで始動します)。
7019 \begin_layout Standard
7020 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
7021 \begin_inset Flex MenuItem
7024 \begin_layout Plain Layout
7025 設定\SpecialChar \menuseparator
7026 ファイル処理\SpecialChar \menuseparator
7033 \begin_inset Flex Code
7036 \begin_layout Plain Layout
7037 xdvi -editor 'lyxeditor.sh %f %l'
7043 \begin_inset Flex Code
7046 \begin_layout Plain Layout
7052 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7055 \begin_layout LyX-Code
7057 \begin_inset Newline newline
7060 LYXPIPE="/path/to/lyxpipe"
7061 \begin_inset Newline newline
7064 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7065 \begin_inset Newline newline
7068 echo "$COMMAND" > "${LYXPIPE}".in || exit
7069 \begin_inset Newline newline
7072 read < "${LYXPIPE}".out || exit
7075 \begin_layout Standard
7077 \begin_inset Flex Code
7080 \begin_layout Plain Layout
7087 \begin_inset Flex MenuItem
7090 \begin_layout Plain Layout
7091 設定\SpecialChar \menuseparator
7101 \begin_layout Plain Layout
7108 XServerパイプのパスを指定してください
7112 \begin_layout Plain Layout
7114 \begin_inset Flex Code
7117 \begin_layout Plain Layout
7128 \begin_inset Flex Code
7131 \begin_layout Plain Layout
7145 \begin_layout Subsubsection*
7149 \begin_layout Standard
7150 \begin_inset Flex Code
7153 \begin_layout Plain Layout
7154 /Applications/MacDviX_Folder/calleditor.script
7162 \begin_layout LyX-Code
7167 \begin_layout Plain Layout
7174 X.app/Contents/MacOS/lyxeditor "$2" $1
7175 \begin_inset Newline newline
7181 \begin_layout Standard
7182 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7185 \begin_layout Standard
7186 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7189 \begin_layout Subsubsection*
7193 \begin_layout Standard
7194 \begin_inset Flex MenuItem
7197 \begin_layout Plain Layout
7198 設定\SpecialChar \menuseparator
7199 ファイル処理\SpecialChar \menuseparator
7200 ファイル書式\SpecialChar \menuseparator
7207 \begin_inset Flex Code
7210 \begin_layout Plain Layout
7211 open -a Skim.app $$i
7217 \begin_inset Flex MenuItem
7220 \begin_layout Plain Layout
7221 Skim\SpecialChar \menuseparator
7222 設定\SpecialChar \menuseparator
7232 \begin_layout Plain Layout
7242 \begin_layout Standard
7243 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7246 \begin_layout Subsubsection*
7250 \begin_layout Standard
7251 \begin_inset Flex MenuItem
7254 \begin_layout Plain Layout
7255 設定\SpecialChar \menuseparator
7256 Okularを設定\SpecialChar \ldots{}
7257 \SpecialChar \menuseparator
7263 で「カスタムテキストエディタ」を選択し、コマンドに
7264 \begin_inset Flex Code
7267 \begin_layout Plain Layout
7276 \begin_layout Standard
7277 遡及検索は、SHIFT-クリックで始動します。
7280 \begin_layout Subsubsection*
7284 \begin_layout Standard
7286 \begin_inset Flex MenuItem
7289 \begin_layout Plain Layout
7290 View\SpecialChar \menuseparator
7296 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7297 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7298 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7299 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7300 \begin_inset Flex Code
7303 \begin_layout Plain Layout
7309 (以下参照)のあるディレクトリを見つけます。
7310 \begin_inset Flex Code
7313 \begin_layout Plain Layout
7320 \begin_inset Flex Code
7323 \begin_layout Plain Layout
7330 \begin_inset Flex Code
7333 \begin_layout Plain Layout
7343 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7346 \begin_layout LyX-Code
7348 \begin_inset Newline newline
7351 echo LYXCMD:revdvi:server-goto-file-row:%1 %2>
7360 \begin_inset Newline newline
7374 \begin_layout Standard
7375 LyXで指定したLyXServerパイプパスが、
7376 \begin_inset Flex Code
7379 \begin_layout Plain Layout
7394 \begin_inset Flex Code
7397 \begin_layout Plain Layout
7406 \begin_layout Standard
7407 yapでは、遡及検索はダブルクリックで始動します。
7410 \begin_layout Subsubsection*
7414 \begin_layout Standard
7415 SumatraPDFを遡及検索で使用するためには、
7416 \begin_inset Flex MenuItem
7419 \begin_layout Plain Layout
7420 設定\SpecialChar \menuseparator
7421 ファイル処理\SpecialChar \menuseparator
7422 ファイル書式\SpecialChar \menuseparator
7429 \begin_inset Flex Code
7432 \begin_layout Plain Layout
7433 SumatraPDF -inverse-search
7434 \begin_inset Quotes eld
7438 \begin_inset Quotes erd
7447 \begin_inset Flex Code
7450 \begin_layout Plain Layout
7456 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7459 \begin_layout Standard
7463 \begin_layout Subsubsection*
7467 \begin_layout Standard
7468 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7469 \begin_inset Flex MenuItem
7472 \begin_layout Plain Layout
7473 View\SpecialChar \menuseparator
7479 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7480 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7481 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7482 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7483 \begin_inset Flex Code
7486 \begin_layout Plain Layout
7492 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7493 \begin_inset Flex Code
7496 \begin_layout Plain Layout
7503 \begin_inset Flex Code
7506 \begin_layout Plain Layout
7512 と指定してください。これによって、LyXとの通信に
7516 が使用されるようになります。何らかの理由で
7521 \begin_inset Flex Code
7524 \begin_layout Plain Layout
7530 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7533 \begin_layout Standard
7534 yapでは、遡及検索はダブルクリックで始動します。
7537 \begin_layout Subsubsection*
7541 \begin_layout Standard
7542 SumatraPDFを遡及検索で使用するためには、
7543 \begin_inset Flex MenuItem
7546 \begin_layout Plain Layout
7547 設定\SpecialChar \menuseparator
7548 ファイル処理\SpecialChar \menuseparator
7549 ファイル書式\SpecialChar \menuseparator
7556 \begin_inset Flex Code
7559 \begin_layout Plain Layout
7566 \begin_inset Flex Code
7569 \begin_layout Plain Layout
7575 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7576 \begin_inset Flex Code
7579 \begin_layout Plain Layout
7588 \begin_layout LyX-Code
7590 \begin_inset Newline newline
7594 \begin_inset Newline newline
7597 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7600 \begin_layout Standard
7601 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7602 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7603 \begin_inset Flex Code
7606 \begin_layout Plain Layout
7621 \begin_inset Flex Code
7624 \begin_layout Plain Layout
7630 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7633 \begin_layout Standard
7637 \begin_layout Section
7641 \begin_layout Standard
7642 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7643 \begin_inset CommandInset ref
7645 reference "sub:遡及検索"
7649 節に述べられている方法で実行することができます。
7652 \begin_layout Standard
7654 \begin_inset Flex MenuItem
7657 \begin_layout Plain Layout
7658 設定\SpecialChar \menuseparator
7659 出力\SpecialChar \menuseparator
7665 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7670 \begin_layout Plain Layout
7671 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7676 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7677 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7678 \begin_inset Flex Code
7681 \begin_layout Plain Layout
7688 \begin_inset Flex Code
7691 \begin_layout Plain Layout
7698 \begin_inset Flex Code
7701 \begin_layout Plain Layout
7707 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7710 \begin_layout Standard
7711 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7715 \begin_layout Chapter
7719 \begin_layout Section
7723 \begin_layout Standard
7729 \begin_layout Subsection
7733 \begin_layout Standard
7740 Astronomy and Astrophysics
7742 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/
7743 \begin_inset Flex URL
7746 \begin_layout Plain Layout
7748 http://www.edpsciences.fr/aa/
7753 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7756 \begin_layout Standard
7758 \begin_inset VSpace medskip
7762 \begin_inset Flex URL
7765 \begin_layout Plain Layout
7767 ftp://ftp.edpsciences.org/pub/aa/readme.html
7773 \begin_inset VSpace medskip
7779 \begin_layout Standard
7784 \begin_layout Standard
7785 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7789 \begin_layout Standard
7790 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7791 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7792 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7798 $LyXDir/layouts/aapaper.layout
7803 \begin_layout Subsection
7807 \begin_layout Standard
7808 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7811 \begin_layout Itemize
7814 文書\SpecialChar \menuseparator
7821 を選択してください(まぁ、これは自明ですね)。
7824 \begin_layout Itemize
7829 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7832 \begin_layout Subsection
7836 \begin_layout Standard
7837 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7840 \begin_layout Itemize
7848 \begin_layout Itemize
7856 \begin_layout Itemize
7864 \begin_layout Itemize
7872 \begin_layout Itemize
7877 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7880 \begin_layout Itemize
7885 :[非必須]連絡用の電子メールアドレス。
7888 \begin_layout Itemize
7895 Received: <日付>; Accepted <日付>
7900 \begin_layout Standard
7907 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7908 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7911 \begin_layout Standard
7912 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7914 挿入\SpecialChar \menuseparator
7917 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7926 \begin_layout Standard
7927 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7930 \begin_layout Itemize
7931 複数の著者名あるいは所属名を区切るための
7938 \begin_layout Itemize
7949 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7952 \begin_layout Itemize
7959 は、至急連絡用に電子メールアドレスを付記します。
7962 \begin_layout Standard
7963 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7964 \begin_inset Flex Code
7967 \begin_layout Plain Layout
7976 \begin_layout Subsection
7980 \begin_layout Standard
7981 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7982 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7988 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7991 \begin_layout Subsection
7995 \begin_layout Standard
7996 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
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 Itemize
8071 \begin_layout Subsection
8075 \begin_layout Standard
8080 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8083 \begin_layout Itemize
8091 \begin_layout Itemize
8099 \begin_layout Itemize
8107 \begin_layout Itemize
8115 \begin_layout Itemize
8123 \begin_layout Itemize
8131 \begin_layout Itemize
8139 \begin_layout Itemize
8147 \begin_layout Standard
8148 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8150 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8153 \begin_layout Subsection
8157 \begin_layout Standard
8174 をサポートしていますので、ここでは詳しい説明はしません。
8178 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8180 編集\SpecialChar \menuseparator
8186 \begin_layout Standard
8187 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8190 \begin_layout Enumerate
8193 挿入\SpecialChar \menuseparator
8194 フロート\SpecialChar \menuseparator
8197 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8198 \begin_inset Flex MenuItem
8201 \begin_layout Plain Layout
8202 設定\SpecialChar \ldots{}
8223 \begin_layout Enumerate
8227 \begin_layout Enumerate
8232 を押して、カーソルをキャプションの上に移動します。
8235 \begin_layout Enumerate
8239 \begin_layout Enumerate
8242 挿入\SpecialChar \menuseparator
8245 \SpecialChar \menuseparator
8265 \begin_layout Enumerate
8268 挿入\SpecialChar \menuseparator
8274 \begin_layout Enumerate
8286 \begin_layout Enumerate
8287 カーソルをキャプション文の後ろに移動し、
8289 挿入\SpecialChar \menuseparator
8292 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8295 \begin_layout Standard
8299 \begin_layout Subsection
8303 \begin_layout Standard
8304 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8308 オプションを与える必要があります。これは、
8310 文書\SpecialChar \menuseparator
8317 クラスオプションフィールドを使って行うことができます。この欄に
8324 \begin_layout Subsection
8328 \begin_layout Standard
8333 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8334 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8337 \begin_layout Section
8341 \begin_layout Standard
8349 \begin_layout Subsection
8353 \begin_layout Standard
8354 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8355 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8356 the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8357 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8358 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8359 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8362 \begin_layout Standard
8364 \begin_inset VSpace medskip
8368 \begin_inset Flex URL
8371 \begin_layout Plain Layout
8373 http://www.journals.uchicago.edu/AAS/AASTeX
8379 \begin_inset VSpace medskip
8385 \begin_layout Standard
8386 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8387 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8388 求事項に完全に合致していることを確認するのは、あなたの責任です。
8391 \begin_layout Subsection
8395 \begin_layout Standard
8396 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8397 \begin_inset Flex MenuItem
8400 \begin_layout Plain Layout
8401 ファイル\SpecialChar \menuseparator
8407 をクリックして、新しいファイル名を入力し、ひな型
8411 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8415 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8427 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8428 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8429 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8432 \begin_layout Subsection
8436 \begin_layout Standard
8437 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8440 \begin_layout Enumerate
8441 論文を LaTeXファイルとして書き出します(
8443 ファイル\SpecialChar \menuseparator
8444 書き出し\SpecialChar \menuseparator
8450 \begin_layout Enumerate
8459 \begin_layout Enumerate
8466 コマンドよりも前のコメント行を削除します。
8469 \begin_layout Enumerate
8474 usepackage...{fontenc}
8491 \begin_layout Enumerate
8492 LaTeXプリアンブル中に意図的に置いたコマンド(
8496 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8508 の間のもの(これらのコマンドを含む)をすべて削除します。
8512 \begin_layout Enumerate
8513 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8516 \begin_layout Enumerate
8517 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8520 \begin_layout Enumerate
8524 \begin_layout Subsection
8528 \begin_layout Standard
8533 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8534 列挙して、必要なところだけコメントを加えることにしましょう。
8537 \begin_layout Subsubsection
8541 \begin_layout Standard
8542 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8642 begin{thebibliography}
8650 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8701 \begin_layout Standard
8702 以下のスタイルオプションも正しく動作します。
8723 \begin_inset Flex MenuItem
8726 \begin_layout Plain Layout
8727 文書\SpecialChar \menuseparator
8744 \begin_layout Subsubsection
8748 \begin_layout Standard
8749 以下のコマンドは動作しますが、若干の説明が必要です。
8752 \begin_layout Itemize
8753 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8784 \begin_layout Itemize
8785 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8806 \begin_layout Itemize
8813 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8816 \begin_layout Itemize
8823 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8826 \begin_layout Itemize
8833 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8836 \begin_layout Itemize
8843 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8846 \begin_layout Itemize
8862 \begin_layout Itemize
8869 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8872 \begin_layout Itemize
8879 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8882 \begin_layout Itemize
8889 (2.14.2)―文章のはじめにカーソルを置いて
8890 \begin_inset Flex MenuItem
8893 \begin_layout Plain Layout
8894 挿入\SpecialChar \menuseparator
8900 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8906 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8909 \begin_layout Itemize
8916 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8925 \begin_layout Itemize
8932 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8941 \begin_layout Subsubsection
8942 実装されていないため、TeXコードを使用するもの
8945 \begin_layout Standard
8968 setcounter{equation}
8970 (2.12)・学術誌名略語(2.12.4)・
9006 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
9018 (2.15.5)・補遺(2.17)の大半(
9069 \begin_layout Subsubsection
9073 \begin_layout Standard
9074 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9075 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9076 \begin_inset Flex MenuItem
9079 \begin_layout Plain Layout
9080 挿入\SpecialChar \menuseparator
9082 \begin_inset Formula $\text{\textipa{}}$
9085 \SpecialChar \menuseparator
9091 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
9098 \begin_layout Subsection
9102 \begin_layout Subsubsection
9106 \begin_layout Standard
9107 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9110 \begin_layout Enumerate
9111 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
9119 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
9126 \begin_layout Enumerate
9138 \begin_layout Enumerate
9141 ツール\SpecialChar \menuseparator
9144 を再度実行し、LyXを再起動してください。
9147 \begin_layout Enumerate
9148 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9150 文書\SpecialChar \menuseparator
9156 \begin_layout Standard
9157 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9158 出るようであれば、正しい導入が行われていません。
9161 \begin_layout Subsubsection
9165 \begin_layout Standard
9166 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9169 編集\SpecialChar \menuseparator
9180 に設定してください。私のところではこれで解決しました。
9183 \begin_layout Subsubsection
9187 \begin_layout Standard
9188 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9201 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9205 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9206 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9209 \begin_layout Subsubsection
9213 \begin_layout Standard
9214 AASTeXには、自前の図関連コマンド(たとえば
9220 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9226 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9230 usepackage{graphics}
9232 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9233 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9236 \begin_layout Subsubsection
9240 \begin_layout Standard
9241 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9242 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9243 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9246 \begin_layout Subsection
9250 \begin_layout Standard
9251 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9252 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9256 \begin_layout Section
9260 \begin_layout Standard
9270 \begin_inset VSpace bigskip
9273 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9274 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9275 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9276 \begin_inset Flex URL
9279 \begin_layout Plain Layout
9287 \begin_inset Flex URL
9290 \begin_layout Plain Layout
9292 ftp://ftp.ams.org/pub/tex/amslatex/
9297 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9300 \begin_layout Standard
9301 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9304 \begin_layout Itemize
9305 amsart:標準のAMS article書式。
9308 \begin_layout Itemize
9309 amsbook:標準のAMS book(実際はモノグラフ)書式。
9312 \begin_layout Standard
9313 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9314 m」環境は、何一つ含まれていません。これらは、代わりに
9315 \begin_inset Flex Code
9318 \begin_layout Plain Layout
9324 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9325 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9326 \begin_inset Flex Code
9329 \begin_layout Plain Layout
9335 モジュールがあり、これは手動で読み込む必要があります。
9338 \begin_layout Standard
9339 既定では、定理類は、文書を通して連番が振られますが、これは
9340 \begin_inset Flex Code
9343 \begin_layout Plain Layout
9349 モジュールを読み込めば変更することができ、
9350 \begin_inset Flex Code
9353 \begin_layout Plain Layout
9360 \begin_inset Flex Code
9363 \begin_layout Plain Layout
9369 を用いても変更することができます。これらを用いると、出力は
9370 \begin_inset Formula $n.m$
9373 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9374 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9379 \begin_inset Flex Code
9382 \begin_layout Plain Layout
9391 \begin_layout Standard
9392 これらのモジュールは、AMSクラスで使用する
9397 \begin_inset Flex Code
9400 \begin_layout Plain Layout
9406 モジュールや上述の他のモジュールは、他のクラス、たとえば
9407 \begin_inset Flex Code
9410 \begin_layout Plain Layout
9417 \begin_inset Flex Code
9420 \begin_layout Plain Layout
9427 \begin_inset Flex Code
9430 \begin_layout Plain Layout
9439 \begin_layout Subsection
9443 \begin_layout Standard
9444 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9445 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9448 \begin_layout Standard
9449 \begin_inset Flex Code
9452 \begin_layout Plain Layout
9459 \begin_inset Flex Code
9462 \begin_layout Plain Layout
9469 \begin_inset space ~
9473 \begin_inset Flex Noun
9476 \begin_layout Plain Layout
9483 \begin_inset Flex Noun
9486 \begin_layout Plain Layout
9493 \begin_inset Flex Noun
9496 \begin_layout Plain Layout
9503 \begin_inset Flex Noun
9506 \begin_layout Plain Layout
9513 \begin_inset Flex Noun
9516 \begin_layout Plain Layout
9523 \begin_inset space ~
9527 \begin_inset space ~
9533 \begin_layout Description
9537 \begin_layout Description
9538 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9541 \begin_layout Description
9545 \begin_layout Description
9549 \begin_layout Description
9550 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9553 \begin_layout Description
9556 Mathematical Reviews
9558 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9562 \begin_layout Description
9566 \begin_layout Description
9570 \begin_layout Description
9574 \begin_layout Standard
9576 \begin_inset Flex Code
9579 \begin_layout Plain Layout
9586 \begin_inset Flex Code
9589 \begin_layout Plain Layout
9595 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9596 \begin_inset Flex Code
9599 \begin_layout Plain Layout
9605 モジュールでは、同環境の星付き版だけが提供されます。
9608 \begin_layout Theorem
9609 これは、通常、得られた主要な結果を叙述するのに使用されます。
9612 \begin_layout Corollary*
9613 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9617 他の叙述を証明するために必要とされる、比較的小さな結果です。
9620 \begin_layout Proposition
9621 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9624 \begin_layout Conjecture
9625 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9628 \begin_layout Definition*
9629 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9632 \begin_layout Problem
9633 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9636 \begin_layout Exercise*
9641 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9644 \begin_layout Claim*
9645 より大きな結果の証明を与える途中で、しばしば用いられます。
9649 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9653 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9657 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9658 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9669 \begin_layout Standard
9671 \begin_inset Flex Code
9674 \begin_layout Plain Layout
9683 \begin_layout Criterion*
9687 \begin_layout Algorithm*
9691 \begin_layout Axiom*
9692 議論されている系内部で真と仮定される性質や命題です。
9695 \begin_layout Condition*
9696 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9703 \begin_layout Notation*
9707 \begin_layout Summary
9711 \begin_layout Acknowledgement*
9712 謝辞(acknowledgement)です。
9715 \begin_layout Conclusion*
9720 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9723 \begin_layout Standard
9724 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9728 \begin_layout Section
9734 \begin_layout Standard
9742 \begin_layout Subsection
9746 \begin_layout Standard
9747 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9749 \begin_inset Flex URL
9752 \begin_layout Plain Layout
9754 ftp://ftp.agu.org/journals/latex/journals
9759 にあります)が導入されていることが必要です。
9762 \begin_layout Subsection
9766 \begin_layout Standard
9775 は、定義し直されています。LyXの画面では、依然として
9783 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9794 \begin_layout Standard
9831 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9834 \begin_layout Standard
9835 おそらく、これはまだ恐ろしく不完全です。
9838 \begin_layout Subsection
9842 \begin_layout Standard
9851 (Plate)が新しいフロートです。また、
9858 \begin_layout Subsection
9862 \begin_layout Itemize
9865 Journal of Geophysical Research
9874 \begin_layout Standard
9875 ここにあなたの作ったものを加えてください。難しくはありません。
9886 \begin_layout Subsection
9890 \begin_layout Standard
9891 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9894 \begin_layout Enumerate
9901 ツール\SpecialChar \menuseparator
9904 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9911 \begin_layout Enumerate
9916 と入力してください(すみません、これはバグです)。
9919 \begin_layout Enumerate
9920 BibTeX差込枠の2番目のフィールドに
9928 を使用していることを確認してください。標準スタイルはうまく動作しません。
9931 \begin_layout Section
9935 \begin_layout Standard
9943 \begin_layout Subsection
9947 \begin_layout Standard
9948 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9951 \begin_layout Subsection
9955 \begin_layout Standard
9959 \begin_layout Subsection
9963 \begin_layout Standard
9968 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9971 \begin_layout Subsection
9975 \begin_layout Standard
9976 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9979 \begin_layout Subsection
9983 \begin_layout Standard
9984 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9987 \begin_layout Itemize
9991 \begin_inset Newline newline
9996 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9999 \begin_layout Itemize
10003 \begin_inset space \hfill{}
10007 \begin_inset Newline newline
10012 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10015 \begin_layout Itemize
10019 \begin_inset space \hfill{}
10023 \begin_inset Newline newline
10028 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10031 \begin_layout Itemize
10035 \begin_inset space \hfill{}
10039 \begin_inset Newline newline
10044 幕の副題です。単に中央揃えの文になります。
10047 \begin_layout Itemize
10051 \begin_inset space \hfill{}
10055 \begin_inset Newline newline
10060 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10063 \begin_layout Itemize
10067 \begin_inset space \hfill{}
10071 \begin_inset Newline newline
10076 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10079 \begin_layout Itemize
10083 \begin_inset space \hfill{}
10087 \begin_inset Newline newline
10092 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10095 \begin_layout Itemize
10099 \begin_inset space \hfill{}
10103 \begin_inset Newline newline
10108 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10115 \begin_layout Itemize
10119 \begin_inset space \hfill{}
10123 \begin_inset Newline newline
10131 \begin_layout Itemize
10135 \begin_inset space \hfill{}
10139 \begin_inset Newline newline
10147 \begin_layout Itemize
10151 \begin_inset space \hfill{}
10157 \begin_layout Itemize
10161 \begin_inset space \hfill{}
10167 \begin_layout Itemize
10171 \begin_inset space \hfill{}
10177 \begin_layout Section
10181 \begin_layout Standard
10186 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10188 .../lyx/share/templates
10190 にあるので、それを土台として使用してください。
10193 \begin_layout Section
10199 \begin_layout Standard
10207 \begin_layout Subsection
10211 \begin_layout Standard
10212 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10217 \begin_inset Flex URL
10220 \begin_layout Plain Layout
10222 http://www.copernicus.org/
10230 \begin_layout Subsection
10234 \begin_layout Standard
10271 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10275 ファイルを読み込む形に変えた方が便利になると思われます。
10278 \begin_layout Section
10282 \begin_layout Standard
10285 See the LyX template file
10290 It contains all infos you need.
10293 \begin_layout Section
10295 \begin_inset CommandInset label
10304 \begin_layout Standard
10312 \begin_layout Subsection
10316 \begin_layout Standard
10317 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10318 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10321 \begin_layout Standard
10322 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10325 \begin_layout Standard
10326 \begin_inset VSpace bigskip
10332 \begin_layout Standard
10338 presentation (FoilT
10344 \begin_layout Plain Layout
10362 \begin_layout Standard
10363 \begin_inset VSpace bigskip
10369 \begin_layout Standard
10372 transparencies (slides)
10375 \begin_inset CommandInset ref
10377 reference "sec:slitex"
10381 節をご覧ください。お使いのコンピュータに
10387 presentation (FoilT
10391 \begin_layout Plain Layout
10411 \begin_layout Standard
10416 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10420 の第2.1版とともに使われるように設計されています。
10423 \begin_layout Subsection
10427 \begin_layout Standard
10428 いうまでもなく、この文書クラスを使うには、
10430 文書\SpecialChar \menuseparator
10431 設定\SpecialChar \menuseparator
10440 presentation (FoilT
10444 \begin_layout Plain Layout
10457 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10460 \begin_layout Itemize
10473 オプションは変更しないでください。これらは
10480 \begin_layout Itemize
10481 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10484 \begin_layout Itemize
10493 ですが、数式ではすべて、通常のローマン体が使用されます。
10496 \begin_layout Itemize
10498 \begin_inset space \thinspace{}
10501 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10504 \begin_layout Itemize
10509 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10512 \begin_layout Itemize
10517 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10518 \begin_inset CommandInset ref
10520 reference "sec:foilfoot"
10524 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10528 付けられず、(ロゴが定義されていれば)ロゴは、
10532 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10536 \begin_layout Labeling
10537 \labelwidthstring MMMMMMM
10544 最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10547 \begin_layout Labeling
10548 \labelwidthstring MMMMMMM
10555 最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10558 \begin_layout Labeling
10559 \labelwidthstring MMMMMMM
10564 ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10567 \begin_layout Labeling
10568 \labelwidthstring MMMMMMM
10577 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10582 \begin_layout Subsubsection
10586 \begin_layout Standard
10591 ダイアログの任意設定クラスオプションボックスで使うことができます。
10594 \begin_layout Labeling
10595 \labelwidthstring MMMMMMx
10600 これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10601 \begin_inset space \space{}
10604 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10607 \begin_layout Labeling
10608 \labelwidthstring MMMMMMx
10613 タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10616 \begin_layout Labeling
10617 \labelwidthstring MMMMMMx
10622 タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10625 \begin_layout Labeling
10626 \labelwidthstring MMMMMMx
10635 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10638 \begin_layout Labeling
10639 \labelwidthstring MMMMMMx
10644 このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10645 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10653 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10656 \begin_layout Labeling
10657 \labelwidthstring MMMMMMx
10665 \begin_layout Labeling
10666 \labelwidthstring MMMMMMx
10674 \begin_layout Subsection
10678 \begin_layout Standard
10679 他のクラスで標準的にサポートされている環境は、
10683 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10686 \begin_layout Standard
10690 \begin_layout Plain Layout
10694 begin{multicols}{2}
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 Itemize
10810 \begin_layout Standard
10814 \begin_layout Plain Layout
10826 \begin_layout Standard
10827 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10831 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10834 \begin_layout Itemize
10840 \begin_layout Itemize
10843 横置きスライドタイトル(Rotatefoilhead)
10846 \begin_layout Standard
10847 LyXは、以下のような、これらを若干修正した環境も用意しています。
10850 \begin_layout Itemize
10853 スライドタイトル(小)(ShortFoilhead)
10856 \begin_layout Itemize
10859 横置きスライドタイトル(小)(ShortRotatefoilhead)
10862 \begin_layout Standard
10866 \begin_layout Standard
10867 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10871 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10874 \begin_layout Standard
10878 \begin_layout Plain Layout
10882 begin{multicols}{2}
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 Itemize
10956 \begin_layout Standard
10960 \begin_layout Plain Layout
10972 \begin_layout Standard
10973 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10976 \begin_layout Itemize
10982 \begin_layout Itemize
10988 \begin_layout Standard
10989 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10990 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10993 \begin_layout Standard
10994 この目的のためには、以下のコマンドスタイルがあります(
10999 \begin_layout Standard
11003 \begin_layout Plain Layout
11007 begin{multicols}{2}
11015 \begin_layout Itemize
11021 \begin_layout Itemize
11027 \begin_layout Itemize
11033 \begin_layout Itemize
11039 \begin_layout Itemize
11046 \begin_layout Standard
11047 \begin_inset space ~
11054 \begin_layout Standard
11058 \begin_layout Plain Layout
11070 \begin_layout Standard
11071 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11072 \begin_inset CommandInset ref
11074 reference "sec:unsuppfoils"
11081 \begin_layout Subsection
11085 \begin_layout Standard
11086 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
11097 \begin_layout Subsubsection
11101 \begin_layout Standard
11122 は独立したページにタイトルを作成します。
11126 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11129 \begin_layout Subsubsection
11133 \begin_layout Standard
11134 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11140 スライドタイトル(小)(ShortFoilhead)
11142 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11145 \begin_layout Standard
11148 横向きスライドタイトル(Rotatefoilhead)
11152 ShortRotatefoilhead)
11154 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11158 \begin_layout Standard
11159 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11163 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11167 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11170 \begin_layout Subsubsection
11174 \begin_layout Standard
11175 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11176 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11181 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11182 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11185 \begin_layout Subsubsection
11189 \begin_layout Standard
11190 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11191 他の箇条書き環境について詳しく知りたい場合には、
11195 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11196 \begin_inset CommandInset ref
11198 reference "sec:ブリット"
11206 の節も、読まれることが望ましいでしょう。
11209 \begin_layout Standard
11218 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11223 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11227 パッケージが導入済であることを要求します。
11230 \begin_layout Subsubsection
11234 \begin_layout Standard
11235 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11236 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11239 \begin_layout Subsubsection
11241 \begin_inset CommandInset label
11243 name "sec:foilfoot"
11250 \begin_layout Standard
11259 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by
11263 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11266 \begin_layout Standard
11279 (左上)を使って文字を入れることができます。
11282 \begin_layout Subsection
11288 \begin_inset CommandInset label
11290 name "sec:unsuppfoils"
11297 \begin_layout Standard
11309 \begin_layout Subsubsection
11313 \begin_layout Standard
11336 は、変更したい長さに付けられている名前で置き換え、
11340 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11346 のように文書比あるいはフォント基準の長さで指定する必要があります。
11349 \begin_layout Standard
11356 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11357 \begin_inset space \space{}
11360 inだけスライド本文に近づけるには、プリアンブルに
11366 foilheadskip}{-0.5in}
11371 \begin_layout Standard
11372 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11375 \begin_layout Labeling
11376 \labelwidthstring MMMMMMMMMMM
11386 \begin_layout Labeling
11387 \labelwidthstring MMMMMMMMMMM
11397 \begin_layout Labeling
11398 \labelwidthstring MMMMMMMMMMM
11408 \begin_layout Labeling
11409 \labelwidthstring MMMMMMMMMMM
11416 この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11422 に対する相対的な長さで調整するのが最も良いでしょう。
11425 \begin_layout Standard
11426 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11429 \begin_layout Labeling
11430 \labelwidthstring MMMMMMMMMMM
11440 \begin_layout Labeling
11441 \labelwidthstring MMMMMMMMMMM
11459 \begin_layout Labeling
11460 \labelwidthstring MMMMMMMMMMM
11474 \begin_layout Labeling
11475 \labelwidthstring MMMMMMMMMMM
11493 \begin_layout Labeling
11494 \labelwidthstring MMMMMMMMMMM
11512 \begin_layout Standard
11513 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11519 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11525 を使う必要がないことに注意してください。
11528 \begin_layout Subsubsection
11532 \begin_layout Standard
11549 で定義したロゴを特定のページに入れるかどうかを制御します。
11555 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11561 を置き、次のスライドタイトルの直後に直接
11570 \begin_layout Standard
11579 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11593 パッケージが提供するページレイアウトと
11597 クラスの提供するページレイアウトの間に衝突が発生するためです。
11600 \begin_layout Section
11601 Hollywood(Hollywoodスペック・スクリプト)
11604 \begin_layout Standard
11612 \begin_layout Subsection
11616 \begin_layout Standard
11617 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11618 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11620 \begin_inset space \space{}
11623 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11626 \begin_layout Subsection
11630 \begin_layout Standard
11635 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11639 名を再度書き、その後に(Cont'd)と加えます。
11642 \begin_layout Subsection
11646 \begin_layout Standard
11651 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11652 きに話者名を挿入するのにも使用することができます。
11655 \begin_layout Subsection
11659 \begin_layout Standard
11660 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11663 \begin_layout Subsection
11667 \begin_layout Standard
11668 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11671 \begin_layout Itemize
11675 \begin_inset Newline newline
11680 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11683 \begin_layout Itemize
11685 \begin_inset space \hfill{}
11693 \begin_inset Newline newline
11696 通常、この後には「Sallyは目を覚ますと」のように続きます。
11699 \begin_layout Itemize
11703 \begin_inset space \hfill{}
11707 \begin_inset Newline newline
11712 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11716 \begin_layout Itemize
11720 \begin_inset space \hfill{}
11724 \begin_inset Newline newline
11729 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11732 \begin_layout Itemize
11736 \begin_inset space \hfill{}
11740 \begin_inset Newline newline
11748 \begin_layout Itemize
11752 \begin_inset space \hfill{}
11756 \begin_inset Newline newline
11761 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11764 \begin_layout Itemize
11768 \begin_inset space \hfill{}
11772 \begin_inset Newline newline
11780 \begin_layout Itemize
11784 \begin_inset space \hfill{}
11788 \begin_inset Newline newline
11793 カメラの動きの指示。例:CUT TO:。
11796 \begin_layout Itemize
11800 \begin_inset space \hfill{}
11806 \begin_layout Itemize
11810 \begin_inset space \hfill{}
11816 \begin_layout Itemize
11820 \begin_inset space \hfill{}
11826 \begin_layout Itemize
11830 \begin_inset space \hfill{}
11836 \begin_layout Subsection
11840 \begin_layout Itemize
11844 \begin_layout Itemize
11848 \begin_layout Itemize
11853 \begin_layout Itemize
11858 \begin_layout Itemize
11859 PAN — camera movement
11862 \begin_layout Itemize
11863 INSERT — cut to close-up of
11866 \begin_layout Section
11870 \begin_layout Standard
11873 Panayotis Papasotiriou
11878 \begin_layout Subsection
11882 \begin_layout Standard
11885 International Journal of Modern Physics C
11887 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11889 International Journal of Modern Physics D
11891 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11899 です。これらのファイルは、著者のための指針とともに、
11900 \begin_inset Flex URL
11903 \begin_layout Plain Layout
11905 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11911 \begin_inset Flex URL
11914 \begin_layout Plain Layout
11916 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11921 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11922 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11925 \begin_layout Subsection
11929 \begin_layout Standard
11930 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11932 ファイル\SpecialChar \menuseparator
11943 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11947 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11950 \begin_layout Enumerate
11951 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11954 \begin_layout Enumerate
11955 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11957 ツール\SpecialChar \menuseparator
11972 をクリックすれば、設定することができます(この変更を固定するなら
11979 \begin_layout Enumerate
11980 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11983 \begin_layout Enumerate
11984 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11985 ートされていませんので、ご注意ください。
11988 \begin_layout Enumerate
11989 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11990 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11993 \begin_layout Enumerate
11994 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11995 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11996 \begin_inset space \space{}
12012 \begin_layout Enumerate
12013 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12016 \begin_layout Enumerate
12025 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
12026 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
12027 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
12031 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12034 \begin_layout Enumerate
12035 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12039 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
12040 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
12046 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
12050 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12055 ファイルに収め、このファイルをLyX文書に取り込んでください(
12057 挿入\SpecialChar \menuseparator
12058 ファイル\SpecialChar \menuseparator
12061 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12072 \begin_layout Subsection
12076 \begin_layout Standard
12077 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
12079 ファイル\SpecialChar \menuseparator
12080 書き出し\SpecialChar \menuseparator
12087 \begin_layout Plain Layout
12088 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
12089 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12098 ファイルに以下の変更を加える必要があります。
12101 \begin_layout Enumerate
12108 コマンドより前にあるコメント行を削除する。
12111 \begin_layout Enumerate
12112 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
12124 コマンドの間にあるものをすべて削除する。
12127 \begin_layout Standard
12132 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
12136 文書も確認された方がよろしいでしょう。
12139 \begin_layout Subsection
12143 \begin_layout Standard
12144 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12152 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12153 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12157 markboth{著者名}{論文の短縮タイトル}
12162 \begin_layout Section
12166 \begin_layout Standard
12174 \begin_layout Subsection
12178 \begin_layout Standard
12179 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12180 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12181 \begin_inset Flex URL
12184 \begin_layout Plain Layout
12186 ftp://ftp.iop.org/pub/journals/latex2e
12191 からiopartパッケージとともにダウンロード可能です。
12194 \begin_layout Subsection
12198 \begin_layout Standard
12199 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12203 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12204 な助言として、以下の点にご注意ください。
12207 \begin_layout Itemize
12208 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12216 関連オプションが有効になっていないことを確認してください!
12219 \begin_layout Itemize
12220 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12224 \begin_layout Itemize
12230 \begin_layout Itemize
12236 \begin_layout Itemize
12242 \begin_layout Itemize
12248 \begin_layout Itemize
12254 \begin_layout Itemize
12262 \begin_layout Itemize
12263 Preliminary communication用には
12268 \begin_layout Itemize
12269 Rapid communication用には
12274 \begin_layout Itemize
12281 \begin_layout Itemize
12286 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12289 \begin_layout Itemize
12290 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12294 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12297 \begin_layout Standard
12298 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12301 \begin_layout Section
12305 \begin_layout Standard
12308 Panayotis Papasotiriou
12313 \begin_layout Subsection
12317 \begin_layout Standard
12318 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12319 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12321 Astrophysics and Space Science
12327 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12328 \begin_inset Flex URL
12331 \begin_layout Plain Layout
12333 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12338 に全覧があります)。Kluwerパッケージは、
12339 \begin_inset Flex URL
12342 \begin_layout Plain Layout
12344 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12349 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12352 \begin_layout Standard
12353 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12355 \begin_inset CommandInset ref
12357 reference "subsec:kluwer_peculiarities"
12361 参照)。最近、私はLyXを使って書いた論文を
12363 Astrophysics and Space Science
12365 に投稿しましたが、何らの問題も発生しませんでした。
12368 \begin_layout Subsection
12372 \begin_layout Standard
12373 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12375 ファイル\SpecialChar \menuseparator
12382 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12387 を含む)正しい情報で上書きしてください。
12390 \begin_layout Subsection
12394 \begin_layout Standard
12395 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12398 \begin_layout Enumerate
12401 ファイル\SpecialChar \menuseparator
12402 書き出し\SpecialChar \menuseparator
12405 をクリックして、論文をLaTeXファイルに書き出す。
12408 \begin_layout Enumerate
12413 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12417 \begin_layout Enumerate
12424 コマンドより前にあるコメント行を削除する。
12427 \begin_layout Enumerate
12428 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12440 の間にあるものを、これらのコマンドも含め、すべて削除する。
12443 \begin_layout Standard
12452 \begin_layout Enumerate
12457 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12460 \begin_layout Enumerate
12469 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12472 \begin_layout Subsection
12473 Kluwerパッケージの「風変わり」な特徴
12474 \begin_inset CommandInset label
12476 name "subsec:kluwer_peculiarities"
12483 \begin_layout Standard
12484 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12487 \begin_layout Enumerate
12488 複数の論文を1つのLaTeXファイルへ入れることができます
12492 \begin_layout Plain Layout
12493 わざわざこんなことをする必要はないでしょう。
12498 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12510 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12522 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12525 \begin_layout Enumerate
12526 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12527 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12542 \begin_layout Enumerate
12543 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12566 \begin_layout Standard
12571 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12575 \begin_layout Enumerate
12576 ひな型にあるTeXコードを削除しないでください。
12579 \begin_layout Enumerate
12580 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12583 \begin_layout Section
12587 \begin_layout Standard
12595 \begin_layout Subsection
12599 \begin_layout Standard
12602 article (koma-script)
12606 report (koma-script)
12624 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12640 に対応しています。これらは、標準文書クラス
12656 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12659 \begin_layout Itemize
12662 article (koma-script)
12666 report (koma-script)
12674 letter (koma-script)
12679 \begin_layout Itemize
12680 見出しや箇条書き(記述)環境のラベル、および
12682 letter (koma-script)
12684 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12688 \begin_layout Plain Layout
12689 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12690 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12703 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12704 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12707 文書\SpecialChar \menuseparator
12714 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12721 \begin_layout Itemize
12722 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12730 オプションを使う方法です(LyXでは、
12732 文書\SpecialChar \menuseparator
12739 フィールドで指定します)。これらのオプションは
12741 文書\SpecialChar \menuseparator
12744 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12752 \begin_layout Itemize
12753 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12757 \begin_layout Standard
12758 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12766 \begin_layout Plain Layout
12776 。以下の各節では、LyXに関係する側面のみ説明致します。
12779 \begin_layout Subsection
12780 article (koma-script)・report (koma-script)・book (koma-script)
12783 \begin_layout Standard
12786 article (koma-script)
12790 report (koma-script)
12812 によって実装されています。これらは、対応する標準文書クラス
12824 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12828 環境は例外であり、同じ機能を持つ新しい
12836 環境以外にも、新しい段落環境が多く追加されています。これらは、
12838 letter (koma-script)
12840 には含まれていないのでご注意ください。
12843 \begin_layout Itemize
12868 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12878 article (koma-script)
12883 \begin_layout Itemize
12900 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12906 article (koma-script)
12912 \begin_layout Plain Layout
12919 report (koma-script)
12931 と同一なので、LyXでは実装されていません。
12939 \begin_layout Itemize
12944 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12947 \begin_layout Itemize
12956 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12957 ねに表の上に置くべきでしょう)。また、クラスオプション
12961 を用いれば、キャプションを指定すると、表には
12969 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12972 \begin_layout Itemize
12977 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12979 挿入\SpecialChar \menuseparator
12982 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12988 article (koma-script)
12993 \begin_layout Standard
13006 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13010 \begin_layout Plain Layout
13017 コマンドよりも前に現れなくてはなりません。
13022 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13034 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13037 \begin_layout Itemize
13054 )の上に、文書の主題用の中央揃えの段落を生成します。
13057 \begin_layout Itemize
13074 )の下に、出版社名用の中央揃えの段落を生成します。
13077 \begin_layout Itemize
13084 report (koma-script)
13090 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13092 article (koma-script)
13106 )の下に献辞用の中央揃えの段落を生成します。
13109 \begin_layout Itemize
13126 )の上に、文書頭書き用の左揃えの段落を生成します。
13129 \begin_layout Itemize
13136 report (koma-script)
13142 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13144 article (koma-script)
13149 \begin_layout Itemize
13156 report (koma-script)
13162 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13164 article (koma-script)
13169 \begin_layout Itemize
13174 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13177 \begin_layout Standard
13180 article (koma-script)
13184 report (koma-script)
13194 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13198 を、個人用レイアウトディレクトリにコピーして編集してください!
13201 \begin_layout Subsection
13202 letter (koma-script)
13205 \begin_layout Standard
13209 letter (koma-script)
13215 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13219 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13235 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13251 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13254 \begin_layout Standard
13255 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13259 \begin_layout Plain Layout
13260 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13264 \begin_layout LyX-Code
13274 \begin_layout LyX-Code
13290 \begin_layout LyX-Code
13300 \begin_layout LyX-Code
13316 \begin_layout LyX-Code
13324 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13328 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13331 \begin_layout Standard
13340 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13348 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13352 環境は、同じ受取人への書簡を新しく書き出すものであり、
13356 環境は、新しい受取人を生成するものです。
13372 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13375 \begin_layout Itemize
13380 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13383 \begin_layout Itemize
13388 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13391 \begin_layout Itemize
13399 \begin_layout Itemize
13407 \begin_layout Itemize
13415 \begin_layout Itemize
13423 \begin_layout Standard
13464 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13468 \begin_layout Plain Layout
13477 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13478 一文字をマークした通常の段落環境として実装しました。さらに、
13486 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13498 \begin_layout Standard
13499 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13504 環境で入力した署名は、標準的な挙動では、同じ書簡に
13508 環境も使用されているときのみ、書簡の出力に現れます。
13512 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13515 \begin_layout Standard
13516 入力環境は、空の段落として使うことができます。これは、たとえば
13524 環境を全く使用しない場合は、標準的な挙動では、
13528 環境の値が署名として使用されますが、空の
13532 環境を作成しておくと、署名の値は無定義となりません。
13535 \begin_layout Standard
13536 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13539 \begin_layout Itemize
13544 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13547 \begin_layout Itemize
13567 \begin_layout Itemize
13572 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13575 \begin_layout Itemize
13580 :送り主の電話番号。標準的な挙動では、LaTeX変数
13589 \begin_layout Itemize
13597 \begin_layout Itemize
13610 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13618 の値如何に関わらず、場所も日付も表示されません。
13622 環境を使用しない場合には、書簡を出力した日付が使用されます。
13625 \begin_layout Itemize
13630 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13633 \begin_layout Itemize
13638 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13641 \begin_layout Itemize
13646 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13649 \begin_layout Itemize
13654 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13657 \begin_layout Itemize
13669 \begin_layout Standard
13672 Yourref・Yourmail・Myref・顧客・インボイス
13678 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13679 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13683 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13687 の値は書簡には表示されなくなり、LaTeX変数
13693 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13701 \begin_layout Itemize
13709 \begin_layout Itemize
13717 \begin_layout Itemize
13725 \begin_layout Itemize
13733 \begin_layout Itemize
13741 \begin_layout Subsection
13742 新しいletterクラス:letter (koma-script v.2)
13745 \begin_layout Standard
13749 \begin_inset VSpace medskip
13755 \begin_layout Standard
13757 Koma-Script第2.8版では、新しいletterクラス
13765 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13766 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13769 \begin_layout Standard
13772 letter (koma-script)
13774 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13794 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13812 挿入\SpecialChar \menuseparator
13819 を入れることができるようになった点です。
13822 \begin_layout Standard
13823 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13824 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13832 \begin_layout Plain Layout
13837 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13851 文書\SpecialChar \menuseparator
13852 設定\SpecialChar \menuseparator
13853 文書クラス\SpecialChar \menuseparator
13860 を加えることで読み込むことができます。
13865 。用例としては、LyXに収録されているひな型
13869 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13876 \begin_layout Subsection
13880 \begin_layout Standard
13881 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13884 \begin_layout Itemize
13889 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13893 ラベル型に対するLyXの内部処理が原因です。
13896 \begin_layout Itemize
13905 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13912 \begin_layout Itemize
13917 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13920 文書\SpecialChar \menuseparator
13923 ダイアログでは、対応するラジオボタンは
13931 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13934 \begin_layout Section
13938 \begin_layout Standard
13946 \begin_layout Subsection
13950 \begin_layout Standard
13951 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13952 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13956 \begin_layout Standard
13957 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13958 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13959 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13963 \begin_layout Plain Layout
13965 \begin_inset Flex URL
13968 \begin_layout Plain Layout
13970 lyx-devel@lists.lyx.org
13980 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13985 \begin_layout Plain Layout
13987 \begin_inset CommandInset ref
13989 reference "sec:LaTeXコードを挿入する"
13998 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13999 ついては、Memoirクラスの詳しい取扱説明書
14003 \begin_layout Plain Layout
14005 \begin_inset Flex URL
14008 \begin_layout Plain Layout
14010 CTAN:/macros/latex/memoir/memman.pdf
14020 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14024 \begin_layout Subsection
14028 \begin_layout Standard
14029 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14032 \begin_layout Description
14033 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14036 \begin_layout Description
14037 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
14038 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14040 文書\SpecialChar \menuseparator
14041 設定\SpecialChar \menuseparator
14044 参照)。これらを章題ページに使用したい場合には、コマンド
14050 を、本文またはプリアンブルに記述する必要があります(例えば、
14054 chapterstyle{companion}
14059 \begin_layout Description
14060 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14061 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
14063 挿入\SpecialChar \menuseparator
14066 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14067 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14068 のものにヘッダ用短縮タイトルを入れてください。
14071 \begin_layout Description
14072 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14073 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14076 \begin_layout Description
14077 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
14078 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
14082 aliaspagestyle{title}{empty}
14087 \begin_layout Description
14094 文書\SpecialChar \menuseparator
14095 設定\SpecialChar \menuseparator
14098 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14099 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14102 \begin_layout Description
14103 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
14115 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
14120 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
14121 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14124 \begin_layout Subsection
14128 \begin_layout Standard
14129 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14133 \begin_layout Plain Layout
14134 \begin_inset Flex URL
14137 \begin_layout Plain Layout
14139 CTAN:/macros/latex/memoir/memman.pdf
14152 \begin_layout Description
14153 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14154 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14157 \begin_layout Description
14158 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14159 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14162 \begin_layout Description
14163 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14164 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14174 のように、(TeXモードで)波括弧を入れなくてはなりません。
14177 \begin_layout Description
14178 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14179 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14180 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14183 \begin_layout Description
14184 詩題*: 目次に現れない他は詩題と同じです。
14187 \begin_layout Section
14188 Article(mwart)・book(mwbk)・report(mwrep)
14189 \begin_inset Argument 1
14192 \begin_layout Plain Layout
14205 \begin_layout Standard
14213 \begin_layout Standard
14220 report (mwrep)・book
14250 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14253 \begin_layout Standard
14257 \begin_layout Itemize
14265 \begin_layout Itemize
14270 \begin_layout Description
14274 \begin_layout Description
14290 \begin_layout Description
14291 myuheadings 分離線付きカスタムヘッダ
14294 \begin_layout Description
14299 \begin_layout Itemize
14304 \begin_layout Description
14305 rmheadings セリフ体見出し --- 既定
14308 \begin_layout Description
14309 sfheadings サンセリフ体見出し
14312 \begin_layout Description
14313 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14316 \begin_layout Description
14317 titleauthor タイトルページは、タイトル・著者名の順で配置
14320 \begin_layout Description
14321 withmarginpar ページ上に余白のための場所を確保
14325 \begin_layout Section
14329 \begin_layout Standard
14342 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14345 \begin_layout Section
14349 \begin_layout Standard
14355 \begin_layout Standard
14356 \begin_inset VSpace bigskip
14362 \begin_layout Standard
14367 \begin_inset space ~
14372 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14373 \begin_inset Formula $\beta$
14379 \begin_layout Standard
14380 LyXには、RevTeX 3.1で動作する
14384 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14385 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14389 \begin_inset space ~
14394 テキストクラスの組で使用するのは、たいへん簡単です。
14397 \begin_layout Standard
14398 この取扱説明書は、RevTeX 4.0の説明書の
14402 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14406 \begin_layout Subsection
14410 \begin_layout Standard
14411 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14413 \begin_inset Flex URL
14416 \begin_layout Plain Layout
14418 http://publish.aps.org/revtex4/
14423 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14424 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14425 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14428 \begin_layout Standard
14433 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14436 \begin_inset space ~
14441 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14444 \begin_layout Subsection
14448 \begin_layout Standard
14455 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14457 文書\SpecialChar \menuseparator
14458 設定\SpecialChar \menuseparator
14465 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14468 \begin_layout Standard
14475 など他のプリアンブルは、他のクラス同様、
14477 文書\SpecialChar \menuseparator
14478 設定\SpecialChar \menuseparator
14484 \begin_layout Subsection
14488 \begin_layout Standard
14489 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14495 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14503 はまったく同じものなので、両方を使う必要はありません
14507 \begin_layout Plain Layout
14532 \begin_layout Subsection
14536 \begin_layout Standard
14537 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14540 \begin_layout Standard
14557 に来なくてはなりません。LyXでは、独立した
14565 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14568 \begin_layout Standard
14589 )レイアウトの間に置かなければなりません。
14597 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14600 \begin_layout Subsection
14604 \begin_layout Standard
14605 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14606 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14607 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14608 ならないということです。これらのレイアウトがないと、
14620 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14624 \begin_layout Plain Layout
14629 実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14637 \begin_layout Section
14643 \begin_layout Standard
14651 \begin_layout Subsection
14655 \begin_layout Standard
14656 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14657 \begin_inset Flex URL
14660 \begin_layout Plain Layout
14662 http://www.springer.de/author/tex/help-journals.html
14667 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14672 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14679 \begin_layout Standard
14680 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14695 \begin_layout Standard
14696 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14704 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14705 eXの場合は、必要に応じてroot権限で
14709 を実行します)、LyXを再初期設定すれば、動作するはずです。
14712 \begin_layout Subsection
14716 \begin_layout Standard
14725 ・\SpecialChar \ldots{}
14733 \begin_layout Standard
14744 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14747 。詳しくは Springerのクラスファイルの説明書を読んでください。
14750 \begin_layout Subsection
14754 \begin_layout Itemize
14766 \begin_layout Itemize
14769 Probability Theory and Related Fields
14775 --- Jean-Marc Lasgouttes
14778 \begin_layout Standard
14779 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14782 \begin_layout Subsection
14786 \begin_layout Standard
14795 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14796 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14799 \begin_layout Subsection
14803 \begin_layout Standard
14808 よりは少なくなっているとは思いますが。
14811 \begin_layout Standard
14812 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14815 \begin_layout Section
14824 \begin_layout Plain Layout
14825 (訳註)この節の内容は、全般的に古くなっています。
14831 \begin_inset CommandInset label
14840 \begin_layout Standard
14848 \begin_layout Subsection
14852 \begin_layout Standard
14853 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14857 スライドクラスの2つがあります。本節は前者について説明を行います。
14860 \begin_layout Standard
14861 誤解のないように、正しく明確に、もう一度言っておきます。
14864 \begin_layout Standard
14865 \begin_inset VSpace bigskip
14871 \begin_layout Standard
14876 \begin_inset Quotes eld
14881 transparencies (slides)
14884 \begin_inset Quotes erd
14894 \begin_layout Standard
14895 \begin_inset VSpace bigskip
14901 \begin_layout Standard
14907 \begin_inset CommandInset ref
14909 reference "sec:foiltex"
14929 \begin_layout Plain Layout
14930 \SpecialChar \ldots{}
14935 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14943 \begin_layout Standard
14944 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14948 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14952 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14957 ならばできることもあります。詳しくは以下をお読みください。
14960 \begin_layout Subsection
14962 \begin_inset CommandInset label
14964 name "sec:slidesetup"
14971 \begin_layout Standard
14972 当然ながら、この文書クラスを使用するには、
14974 文書\SpecialChar \menuseparator
14979 transparencies (slides)
14981 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14984 \begin_layout Itemize
14993 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14997 クラスではサポートされていないので、効果がありません。
15000 \begin_layout Itemize
15005 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15009 \begin_layout Description
15010 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15013 \begin_layout Description
15018 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15021 \begin_layout Description
15022 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15026 \begin_layout Itemize
15035 というオプションがあります。これを使用するには、
15047 \begin_layout Standard
15052 にタイムマーカーを加えることができます。詳細は、第
15053 \begin_inset CommandInset ref
15055 reference "sec:スライド注釈"
15063 \begin_layout Standard
15068 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15072 」を使用することもできます(新規ファイルを開く際に
15074 ファイル\SpecialChar \menuseparator
15077 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15080 \begin_layout Subsection
15084 \begin_layout Subsubsection
15090 \begin_layout Standard
15095 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
15103 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
15104 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
15107 \begin_layout Standard
15108 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
15113 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
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 Itemize
15182 \begin_layout Standard
15183 これ以外の標準的な環境、例えば節見出し用の環境などは
15190 \begin_layout Standard
15194 \begin_layout Itemize
15200 \begin_layout Itemize
15206 \begin_layout Itemize
15212 \begin_layout Itemize
15218 \begin_layout Itemize
15224 \begin_layout Standard
15225 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15226 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15230 \begin_layout Subsubsection
15232 \begin_inset CommandInset label
15241 \begin_layout Standard
15242 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15251 』で述べられているような段落環境ではなくなっています。
15254 \begin_layout Standard
15267 は「疑似環境」だとお考えください。これらは節見出しや「
15271 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15279 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15282 \begin_layout Standard
15303 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15323 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15326 \begin_layout Standard
15335 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15343 \begin_layout Standard
15344 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15345 きません。そこで以下のようにしてください。
15348 \begin_layout Itemize
15376 \begin_layout Itemize
15380 \begin_layout Itemize
15388 \begin_layout Itemize
15412 \begin_layout Standard
15413 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15418 \begin_layout Plain Layout
15419 (訳註)ここの記述は古くなっています。
15427 \begin_layout Subsection
15441 \begin_layout Subsubsection
15449 \begin_layout Standard
15450 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15455 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15458 \begin_layout Standard
15464 \begin_inset CommandInset ref
15466 reference "sec:スライドの癖"
15470 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15471 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15474 \begin_layout Standard
15475 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15479 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15480 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15488 \begin_layout Standard
15501 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15509 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15512 \begin_layout Standard
15525 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15533 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15536 \begin_layout Subsubsection
15542 \begin_layout Standard
15547 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15551 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15555 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15556 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15563 \begin_layout Standard
15580 \begin_layout Plain Layout
15581 想像できるように、複数のオーバーレイがあれば、「
15593 」などが親スライドのページ番号に付け加えられます。
15606 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15614 の「一部」であると考えるのがよいでしょう。LyXでは、
15622 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15630 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15633 \begin_layout Standard
15634 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15635 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15636 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15647 \begin_layout Standard
15656 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15657 \begin_inset CommandInset ref
15659 reference "sec:スライドの癖"
15671 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15679 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15682 \begin_layout Standard
15687 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15703 は自動的に終了されることに注意してください。したがって、
15714 \begin_layout Standard
15731 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15734 \begin_layout Enumerate
15739 かに関わらず、スライド上に現れるすべてを含んだ
15746 \begin_layout Enumerate
15751 のみに表示するすべての図や段落の前に、
15766 \begin_layout Enumerate
15778 \begin_layout Enumerate
15790 \begin_layout Enumerate
15814 \begin_layout Standard
15822 \begin_layout Standard
15827 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15828 実現するためには、LaTeXコードを埋め込む必要があります
15832 \begin_layout Plain Layout
15836 \begin_layout Itemize
15841 invisible \SpecialChar \ldots{}
15845 \begin_layout Itemize
15850 visible \SpecialChar \ldots{}
15854 \begin_layout Plain Layout
15855 \SpecialChar \ldots{}
15856 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15868 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15880 \begin_layout Subsubsection
15886 \begin_inset CommandInset label
15895 \begin_layout Standard
15908 に関連付けられています。ここでもLyX
15920 よりも短く(オーバーレイのラベルよりも長いですが)、
15924 のラベルと同様、派手な赤紫色です。加えて、印刷した
15940 3」等を付けたページ番号が付けられます。1つの
15956 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15959 \begin_layout Standard
15968 に関して付け加えたいことを書き留めておくことです。特定の
15972 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15980 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15983 \begin_layout Standard
15984 タイムマーカを使用するには、クラスオプション「
15989 \begin_inset CommandInset ref
15991 reference "sec:slidesetup"
15995 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15999 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
16011 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16017 」は、タイムマーカを特定の時間に設定し、「
16023 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16031 にどれだけの時間をかけるのか忘れないでいられます。
16034 \begin_layout Standard
16035 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16047 はすべて普通の紙に印刷したいはずです。しかしながら、
16055 。ユーザーはどうしたら良いのでしょうか。
16058 \begin_layout Standard
16059 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16075 のみが含まれるようにするものです。同様に、「
16087 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
16088 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
16097 のコメントを外して、現ファイル名に「*
16101 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
16113 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
16116 \begin_layout Standard
16129 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
16132 \begin_layout Subsection
16140 \begin_layout Standard
16149 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16151 ファイル\SpecialChar \menuseparator
16154 メニューを選択してください。すると新規ファイルには、
16182 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16185 \begin_layout LyX-Code
16186 % Uncomment to print out only slides and overlays
16189 \begin_layout LyX-Code
16193 \begin_layout LyX-Code
16199 \begin_inset Newline newline
16205 \begin_layout LyX-Code
16206 % Uncomment to print out only notes
16209 \begin_layout LyX-Code
16213 \begin_layout LyX-Code
16221 \begin_layout Standard
16222 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16226 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16227 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16232 \begin_inset CommandInset ref
16234 reference "sec:foiltex"
16242 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16246 \begin_layout Chapter
16247 ソフトウェアを追加する必要がある LyX機能
16250 \begin_layout Section
16254 \begin_layout Standard
16262 \begin_layout Subsection
16266 \begin_layout Standard
16275 \begin_layout Plain Layout
16276 LaTeX頒布版としてMiKTeXを使用している場合には、
16298 \begin_inset Newline newline
16302 \begin_inset CommandInset href
16304 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16311 \begin_layout Standard
16316 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16317 \begin_inset Flex Noun
16320 \begin_layout Plain Layout
16327 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16335 \begin_layout Standard
16336 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16344 をチェックするだけでなく、打ち間違いによる
16360 は、以下のような誤りを検出することができます。
16363 \begin_layout Itemize
16365 \begin_inset Newline newline
16368 ...ではなく\SpecialChar \ldots{}
16372 \begin_layout Itemize
16374 \begin_inset Newline newline
16377 ( wrong spacing ):誤った空白
16380 \begin_layout Itemize
16381 よく使われる省略形の後ろは通常スペースにする:
16382 \begin_inset Newline newline
16386 \begin_inset space \thinspace{}
16390 \begin_inset space \space{}
16393 is too wide spacing.:広すぎる空白
16396 \begin_layout Itemize
16397 直前の文章が大文字で終わっているときに、文末スペースに直す:
16398 \begin_inset Newline newline
16402 And this is wrong spacing.:誤った空白
16405 \begin_layout Itemize
16407 \begin_inset Newline newline
16410 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。
16411 \begin_inset CommandInset label
16421 \begin_layout Plain Layout
16422 この脚注は、正しくないページに行ってしまう恐れがあります。
16430 \begin_layout Itemize
16431 参照の前にハードスペースではなくスペース:
16432 \begin_inset Newline newline
16435 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16436 \begin_inset CommandInset ref
16438 reference "sec:chktex"
16445 \begin_layout Itemize
16447 \begin_inset Formula $\times$
16451 \begin_inset Newline newline
16455 \begin_inset Formula $2\times2$
16461 \begin_layout Standard
16462 などなど\SpecialChar \ldots{}
16467 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16470 \begin_layout Subsection
16474 \begin_layout Standard
16475 このプログラムを導入したならば、使うのは
16477 ツール\SpecialChar \menuseparator
16480 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16484 を起動し、当該ファイルを検査しますが、
16488 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16490 移動\SpecialChar \menuseparator
16501 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16517 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16521 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16525 \begin_layout Standard
16526 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16527 警告のほとんどは実際には警告に値しません。
16530 \begin_layout Subsection
16534 \begin_layout Standard
16539 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16543 を無効にするか、あなたにもう少し合うように
16550 \begin_layout Standard
16555 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16559 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16567 \begin_layout Plain Layout
16578 文書\SpecialChar \menuseparator
16586 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16587 に対処するためには、以下の2つの方法があります。
16590 \begin_layout Itemize
16607 起動コマンドラインを調整するか、グローバルな
16612 \begin_inset Flex Code
16615 \begin_layout Plain Layout
16621 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16624 \begin_layout Itemize
16627 ファイル\SpecialChar \menuseparator
16628 書き出し\SpecialChar \menuseparator
16631 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16635 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16638 \begin_layout Standard
16643 で有効化・無効化できる警告メッセージです。警告を無効にするには
16651 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16653 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16658 \begin_layout Standard
16663 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16666 \begin_layout Enumerate
16670 Command terminated with space.
16673 \begin_layout Enumerate
16676 Non-breaking space (
16677 \begin_inset Quotes eld
16685 \begin_inset Quotes erd
16688 ) should have been used.
16691 \begin_layout Enumerate
16695 You should enclose the previous parenthesis with
16696 \begin_inset Quotes eld
16704 \begin_inset Quotes erd
16710 \begin_layout Enumerate
16713 Italic correction (
16714 \begin_inset Quotes eld
16724 \begin_inset Quotes erd
16727 ) found in non-italic buffer.
16730 \begin_layout Enumerate
16733 Italic correction (
16734 \begin_inset Quotes eld
16744 \begin_inset Quotes erd
16747 ) found more than once.
16750 \begin_layout Enumerate
16754 No italic correction (
16755 \begin_inset Quotes eld
16765 \begin_inset Quotes erd
16771 \begin_layout Enumerate
16775 \begin_inset Quotes eld
16783 \begin_inset Quotes erd
16787 \begin_inset Quotes eld
16795 \begin_inset Quotes erd
16801 \begin_layout Enumerate
16804 Wrong length of dash may have been used.
16807 \begin_layout Enumerate
16811 \begin_inset Quotes eld
16819 \begin_inset Quotes erd
16823 \begin_inset Quotes eld
16831 \begin_inset Quotes erd
16837 \begin_layout Enumerate
16841 \begin_inset Quotes eld
16849 \begin_inset Quotes erd
16855 \begin_layout Enumerate
16859 \begin_inset Quotes eld
16867 \begin_inset Quotes erd
16870 to achieve an ellipsis.
16873 \begin_layout Enumerate
16876 Inter-word spacing (
16877 \begin_inset Quotes eld
16887 \begin_inset Quotes eld
16890 ) should perhaps be used.
16893 \begin_layout Enumerate
16896 Inter-sentence spacing (
16897 \begin_inset Quotes eld
16907 \begin_inset Quotes erd
16910 ) should perhaps be used.
16913 \begin_layout Enumerate
16916 Could not find argument for command.
16919 \begin_layout Enumerate
16923 \begin_inset Quotes eld
16931 \begin_inset Quotes erd
16937 \begin_layout Enumerate
16940 Math mode still on at end of LaTeX file.
16943 \begin_layout Enumerate
16947 \begin_inset Quotes eld
16955 \begin_inset Quotes erd
16958 doesn't match the number of
16959 \begin_inset Quotes eld
16967 \begin_inset Quotes erd
16973 \begin_layout Enumerate
16976 You should use either
16979 \begin_inset Quotes eld
16987 \begin_inset Quotes erd
16992 as an alternative to
16993 \begin_inset Quotes eld
17001 \begin_inset Quotes erd
17007 \begin_layout Enumerate
17014 " (ASCII 39) instead of "" (ASCII 180).
17017 \begin_layout Enumerate
17020 User-specified pattern found.
17023 \begin_layout Enumerate
17026 This command might not be intended.
17029 \begin_layout Enumerate
17036 \begin_layout Enumerate
17054 \begin_layout Enumerate
17057 Delete this space to maintain correct page references.
17060 \begin_layout Enumerate
17064 You might wish to put this between a pair of
17065 \begin_inset Quotes eld
17073 \begin_inset Quotes erd
17079 \begin_layout Enumerate
17082 You ought to remove spaces in front of punctuation.
17085 \begin_layout Enumerate
17088 Could not execute LaTeX command.
17091 \begin_layout Enumerate
17100 in front of small punctuation.
17103 \begin_layout Enumerate
17111 may look prettier here.
17114 \begin_layout Enumerate
17118 Multiple spaces detected in output.
17121 \begin_layout Enumerate
17124 This text may be ignored.
17127 \begin_layout Enumerate
17133 \begin_inset Quotes eld
17138 to begin quotation, not
17145 \begin_layout Enumerate
17152 to end quotation, not
17155 \begin_inset Quotes eld
17163 \begin_layout Enumerate
17169 \begin_layout Enumerate
17172 You should perhaps use
17173 \begin_inset Quotes eld
17181 \begin_inset Quotes erd
17187 \begin_layout Enumerate
17190 You should put a space in front of/after parenthesis.
17193 \begin_layout Enumerate
17196 You should avoid spaces in front of/after parenthesis.
17199 \begin_layout Enumerate
17203 You should not use punctuation in front of/after quotes.
17206 \begin_layout Enumerate
17209 Double space found.
17212 \begin_layout Enumerate
17215 You should put punctuation outside inner/inside display math mode.
17218 \begin_layout Enumerate
17221 You ought to not use primitive TeX in LaTeX code.
17224 \begin_layout Enumerate
17227 You should remove spaces in front of
17228 \begin_inset Quotes eld
17236 \begin_inset Quotes erd
17242 \begin_layout Enumerate
17245 \begin_inset Quotes eld
17253 \begin_inset Quotes erd
17256 is normally not followed by
17257 \begin_inset Quotes eld
17265 \begin_inset Quotes erd
17271 \begin_layout Standard
17272 LyXの将来の版では、このツール(およびその縮小版
17276 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17277 書に使用してみていただければ、きっと驚かれることでしょう。
17280 \begin_layout Section
17284 \begin_layout Standard
17287 Lars Bullik Bjønnes
17296 \begin_layout Subsection
17300 \begin_layout Standard
17301 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17302 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17303 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17307 \begin_layout Standard
17308 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17309 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17313 \begin_layout Plain Layout
17314 \begin_inset CommandInset href
17316 target "http://svnbook.red-bean.com/"
17325 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17329 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17333 で終わるファイルです)の概念に注意を払ってください。
17336 \begin_layout Standard
17337 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17338 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17341 \begin_layout Standard
17342 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17345 \begin_layout Subsection
17349 \begin_layout Standard
17350 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17352 ファイル\SpecialChar \menuseparator
17355 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17358 \begin_layout Subsubsection
17364 \begin_layout Standard
17365 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17372 \begin_layout Standard
17373 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17374 書は読み込み専用モードになるので、変更を加えるためには
17378 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17381 \begin_layout Standard
17384 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17387 \begin_layout Standard
17395 \begin_layout Subsubsection
17401 \begin_layout Standard
17402 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17403 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17406 \begin_layout Standard
17409 ci -q -u -m"<説明文>" <ファイル名>
17412 \begin_layout Subsubsection
17418 \begin_layout Standard
17419 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17420 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17423 \begin_layout Standard
17429 \begin_layout Subsubsection
17435 \begin_layout Standard
17436 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17439 \begin_layout Standard
17442 co -f -u<バージョン> <ファイル名>
17445 \begin_layout Subsubsection
17451 \begin_layout Standard
17452 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17456 \begin_layout Standard
17459 rcs -o<バージョン> <ファイル名>
17462 \begin_layout Subsubsection
17468 \begin_layout Standard
17469 RCS文書の完全な履歴を表示します。ブラウザ中に、
17480 \begin_layout Subsubsection
17484 \begin_layout Standard
17485 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17486 \begin_inset CommandInset ref
17488 reference "sub:VCS改訂情報"
17495 \begin_layout Subsection
17499 \begin_layout Standard
17500 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17502 ファイル\SpecialChar \menuseparator
17505 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17508 \begin_layout Subsubsection
17512 \begin_layout Standard
17513 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17514 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17517 \begin_layout Standard
17518 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17519 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17520 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17521 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17522 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17523 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17524 \begin_inset Flex Code
17527 \begin_layout Plain Layout
17534 \begin_inset Flex Code
17537 \begin_layout Plain Layout
17543 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17544 コピーを書き込み可能にしているとは限りません。
17547 \begin_layout Standard
17548 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17549 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17550 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17552 \begin_inset Flex MenuItem
17555 \begin_layout Plain Layout
17561 メニューを使用しなくてはなりません。その後、
17562 \begin_inset Flex MenuItem
17565 \begin_layout Plain Layout
17571 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17574 \begin_layout Standard
17576 \begin_inset Flex URL
17579 \begin_layout Plain Layout
17581 http://www.nongnu.org/cvs
17587 \begin_inset Flex URL
17590 \begin_layout Plain Layout
17592 http://ximbiot.com/cvs
17600 \begin_layout Standard
17601 以下に言及するサブコマンドとスイッチを理解するには、
17608 \begin_layout Subsubsection
17612 \begin_layout Standard
17613 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17620 \begin_layout Standard
17621 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17628 \begin_inset Flex Code
17631 \begin_layout Plain Layout
17637 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17638 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17641 \begin_layout Standard
17642 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17645 \begin_layout Standard
17648 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17653 \begin_layout Standard
17654 上記および他のすべてのCVSコマンドにおける
17658 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17661 \begin_layout Subsubsection
17665 \begin_layout Standard
17666 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17667 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17668 \begin_inset Flex MenuItem
17671 \begin_layout Plain Layout
17680 \begin_layout Labeling
17681 \labelwidthstring 00.00.0000
17683 \begin_inset space ~
17687 \begin_inset Newline newline
17691 \begin_inset Flex Code
17694 \begin_layout Plain Layout
17695 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17701 \begin_inset Newline newline
17705 \begin_inset Flex Code
17708 \begin_layout Plain Layout
17709 cvs -q unedit "<ファイル名>"
17717 \begin_layout Subsubsection
17721 \begin_layout Standard
17722 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17725 \begin_layout Standard
17728 cvs -q update "<ファイル名>"
17731 \begin_layout Standard
17732 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17735 \begin_layout Standard
17738 cvs -q edit "<ファイル名>"
17741 \begin_layout Subsubsection
17745 \begin_layout Standard
17746 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17750 \begin_layout Standard
17753 cvs -q update "<ファイル名>"
17756 \begin_layout Standard
17757 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17760 \begin_layout Standard
17763 cvs -q unedit "<ファイル名>"
17766 \begin_layout Subsubsection
17767 ローカルディレクトリチェックアウトのレポジトリからの更新
17770 \begin_layout Standard
17772 \begin_inset Flex Code
17775 \begin_layout Plain Layout
17781 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17782 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17783 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17787 \begin_layout Standard
17789 \begin_inset Flex Code
17792 \begin_layout Plain Layout
17798 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17799 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17800 \begin_inset Flex Code
17803 \begin_layout Plain Layout
17810 \begin_inset Flex Code
17813 \begin_layout Plain Layout
17820 \begin_inset Flex Code
17823 \begin_layout Plain Layout
17829 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17830 \begin_inset Flex Code
17833 \begin_layout Plain Layout
17839 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17842 \begin_layout Labeling
17843 \labelwidthstring 00.00.0000
17845 \begin_inset space ~
17849 \begin_inset Newline newline
17853 \begin_inset Flex Code
17856 \begin_layout Plain Layout
17857 cd $path; cvs diff "."
17863 \begin_inset Newline newline
17867 \begin_inset Flex Code
17870 \begin_layout Plain Layout
17871 cd $path; cvs -q update "."
17879 \begin_layout Standard
17881 \begin_inset Flex Code
17884 \begin_layout Plain Layout
17893 \begin_layout Subsubsection
17897 \begin_layout Standard
17898 これは、CVS文書の全履歴を表示します。
17899 \begin_inset Flex Code
17902 \begin_layout Plain Layout
17904 \begin_inset Quotes eld
17908 \begin_inset Quotes erd
17919 \begin_layout Subsection
17923 \begin_layout Standard
17924 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17925 \begin_inset Flex MenuItem
17928 \begin_layout Plain Layout
17929 ファイル\SpecialChar \menuseparator
17935 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17936 1.5および1.6に対して試験されています
17940 \begin_layout Plain Layout
17941 ほとんどのコマンドは、1.4でも動作します。第
17942 \begin_inset CommandInset ref
17944 reference "sub:レポジトリからSVN同期"
17956 \begin_layout Subsubsection
17960 \begin_layout Standard
17961 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17968 \begin_layout Standard
17969 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17974 \begin_inset Flex Code
17977 \begin_layout Plain Layout
17983 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
17986 \begin_layout Standard
17987 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
17990 \begin_layout Standard
17992 \begin_inset Flex Code
17995 \begin_layout Plain Layout
17997 \begin_inset Quotes eld
18001 \begin_inset Quotes erd
18012 \begin_layout Standard
18014 \begin_inset Flex Code
18017 \begin_layout Plain Layout
18026 \begin_layout Subsubsection
18030 \begin_layout Standard
18031 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
18034 \begin_layout Standard
18039 \begin_layout Plain Layout
18040 ロックが有効になっていない場合です。第
18041 \begin_inset CommandInset ref
18043 reference "sub:SVNファイルロック"
18053 \begin_inset Flex Code
18056 \begin_layout Plain Layout
18058 \begin_inset Quotes erd
18062 \begin_inset Quotes erd
18066 \begin_inset Quotes eld
18070 \begin_inset Quotes erd
18081 \begin_layout Subsubsection
18085 \begin_layout Standard
18086 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
18090 \begin_layout Standard
18095 \begin_layout Plain Layout
18102 \begin_inset Flex Code
18105 \begin_layout Plain Layout
18106 svn update --non-interactive
18107 \begin_inset Quotes eld
18111 \begin_inset Quotes erd
18122 \begin_layout Subsubsection
18126 \begin_layout Standard
18127 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
18130 \begin_layout Standard
18132 \begin_inset Flex Code
18135 \begin_layout Plain Layout
18137 \begin_inset Quotes eld
18141 \begin_inset Quotes erd
18152 \begin_layout Subsubsection
18153 \begin_inset CommandInset label
18155 name "sub:レポジトリからSVN同期"
18159 レポジトリを使ったローカルディレクトリの同期
18163 \begin_layout Plain Layout
18165 \begin_inset Formula $\geqq1.5$
18168 でのみ動作することに注意してください。
18176 \begin_layout Standard
18177 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18178 \begin_inset Flex Code
18181 \begin_layout Plain Layout
18187 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18191 \begin_layout Plain Layout
18192 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18197 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18201 \begin_layout Standard
18202 \begin_inset Flex Code
18205 \begin_layout Plain Layout
18211 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18212 場合には、更新が開始される前にユーザに警告が与えられます。
18215 \begin_layout Labeling
18216 \labelwidthstring 00.00.0000
18218 \begin_inset space ~
18222 \begin_inset Newline newline
18226 \begin_inset Flex Code
18229 \begin_layout Plain Layout
18230 svn diff $path(変更が発見された場合には通知します)
18231 \begin_inset Newline newline
18234 svn update --accept mine-full $path
18242 \begin_layout Standard
18244 \begin_inset Flex Code
18247 \begin_layout Plain Layout
18256 \begin_layout Subsubsection
18260 \begin_layout Standard
18261 これは、SVN文書の全履歴を表示します。
18262 \begin_inset Flex Code
18265 \begin_layout Plain Layout
18267 \begin_inset Quotes eld
18271 \begin_inset Quotes erd
18282 \begin_layout Subsubsection
18284 \begin_inset CommandInset label
18286 name "sub:SVNファイルロック"
18293 \begin_layout Standard
18294 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18295 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18296 するための、何らかのロック機構を導入することが考えられます。
18299 \begin_layout Standard
18300 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18301 \begin_inset Flex Code
18304 \begin_layout Plain Layout
18310 svnファイル特性に依拠した書き込み権限の自動設定(第
18311 \begin_inset CommandInset ref
18313 reference "sub:自動ロック特性"
18321 \begin_layout Plain Layout
18322 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18327 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18328 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18331 \begin_layout Itemize
18332 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18336 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18339 \begin_layout Itemize
18340 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18344 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18348 \begin_layout Plain Layout
18349 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18354 、書き込みロックの解放のみが行われます。
18357 \begin_layout Standard
18361 \begin_layout Labeling
18362 \labelwidthstring 00.00.0000
18364 \begin_inset Flex Code
18367 \begin_layout Plain Layout
18369 \begin_inset Quotes erd
18373 \begin_inset Quotes erd
18377 \begin_inset Quotes eld
18381 \begin_inset Quotes erd
18390 \begin_inset Newline newline
18394 \begin_inset Flex Code
18397 \begin_layout Plain Layout
18399 \begin_inset Quotes eld
18403 \begin_inset Quotes erd
18414 \begin_layout Labeling
18415 \labelwidthstring 00.00.0000
18417 \begin_inset Flex Code
18420 \begin_layout Plain Layout
18422 \begin_inset Quotes eld
18426 \begin_inset Quotes erd
18435 \begin_inset Newline newline
18439 \begin_inset Flex Code
18442 \begin_layout Plain Layout
18444 \begin_inset Quotes eld
18448 \begin_inset Quotes erd
18459 \begin_layout Subsubsection
18461 \begin_inset CommandInset label
18470 \begin_layout Standard
18472 \begin_inset Flex Code
18475 \begin_layout Plain Layout
18481 ファイルに対する書き込み権限の自動設定は、
18482 \begin_inset Flex MenuItem
18485 \begin_layout Plain Layout
18486 ファイル\SpecialChar \menuseparator
18487 バージョン管理\SpecialChar \menuseparator
18493 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18496 \begin_layout Standard
18500 \begin_layout Labeling
18501 \labelwidthstring 00.00.0000
18503 \begin_inset Flex Code
18506 \begin_layout Plain Layout
18507 svn propset svn:needs-lock ON
18508 \begin_inset Quotes eld
18512 \begin_inset Quotes erd
18523 \begin_layout Labeling
18524 \labelwidthstring 00.00.0000
18526 \begin_inset Flex Code
18529 \begin_layout Plain Layout
18530 svn propdel svn:needs-lock
18531 \begin_inset Quotes eld
18535 \begin_inset Quotes erd
18546 \begin_layout Subsubsection
18547 \begin_inset CommandInset label
18556 \begin_layout Standard
18557 文書中で改訂情報を有効化するにはいくつかの方法があります。
18560 \begin_layout Itemize
18565 \begin_layout Itemize
18567 \begin_inset Flex Code
18570 \begin_layout Plain Layout
18577 \begin_inset Flex Code
18580 \begin_layout Plain Layout
18586 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18589 \begin_layout Standard
18591 \begin_inset Tabular
18592 <lyxtabular version="3" rows="6" columns="2">
18593 <features rotate="0" tabularvalignment="middle">
18594 <column alignment="center" valignment="top" width="0">
18595 <column alignment="center" valignment="top" width="0">
18597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18600 \begin_layout Plain Layout
18606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18609 \begin_layout Plain Layout
18617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18620 \begin_layout Plain Layout
18626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18629 \begin_layout Plain Layout
18637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18640 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18649 \begin_layout Plain Layout
18657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18660 \begin_layout Plain Layout
18666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18669 \begin_layout Plain Layout
18677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18680 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18689 \begin_layout Plain Layout
18690 チェックアウト頻度が低かったことによる不完全な作業コピー
18697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18700 \begin_layout Plain Layout
18706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18709 \begin_layout Plain Layout
18710 改訂版が混合し、修正され、スイッチされた作業コピー
18723 \begin_layout Itemize
18725 \begin_inset Flex Code
18728 \begin_layout Plain Layout
18730 \begin_inset space ~
18734 \begin_inset space ~
18738 \begin_inset space ~
18746 の出力を解析したものが返されます。サポートされるフラグは
18750 \begin_layout Itemize
18752 \begin_inset Flex Code
18755 \begin_layout Plain Layout
18764 \begin_layout Itemize
18766 \begin_inset Flex Code
18769 \begin_layout Plain Layout
18778 \begin_layout Itemize
18780 \begin_inset Flex Code
18783 \begin_layout Plain Layout
18792 \begin_layout Itemize
18794 \begin_inset Flex Code
18797 \begin_layout Plain Layout
18807 \begin_layout Standard
18808 これらの情報は、情報差込枠で得ることができます(例:
18809 \begin_inset Flex Code
18812 \begin_layout Plain Layout
18813 info-insert buffer vcs-date
18818 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18819 \begin_inset Flex Code
18822 \begin_layout Plain Layout
18828 ディレクトリがあるときのみ)利用可能です。
18832 \begin_layout Itemize
18833 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18837 \begin_layout Plain Layout
18838 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18843 。簡単に言えば、ファイルキーワード特性を設定して(例:
18845 svn propset svn:keywords 'Rev' file.lyx
18851 \begin_layout Plain Layout
18852 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18861 \begin_layout Plain Layout
18868 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18872 \begin_layout Plain Layout
18879 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18880 \begin_inset Formula $Rev$
18884 \begin_inset Formula $Rev:59$
18887 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18888 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18889 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18892 \begin_layout Subsection
18896 \begin_layout Quote
18897 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18902 \begin_layout Subsubsection
18906 \begin_layout Standard
18907 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18908 イアントプログラムのWindows用インストーラは
18909 \begin_inset CommandInset href
18912 target "http://www.collab.net/nonav/downloads/subversion/"
18917 \begin_inset CommandInset href
18920 target "http://tortoisesvn.tigris.org/"
18924 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18925 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18929 \begin_layout Subsubsection
18930 文書をSubversion管理下に置くには
18933 \begin_layout Standard
18934 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18935 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18936 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18937 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18938 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18939 レポジトリは既に存在し、新規プロジェクトを
18940 \begin_inset Flex Code
18943 \begin_layout Plain Layout
18951 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18952 \begin_inset Flex Code
18955 \begin_layout Plain Layout
18964 \begin_layout Enumerate
18966 \begin_inset Flex Code
18969 \begin_layout Plain Layout
18978 \begin_inset Flex MenuItem
18981 \begin_layout Plain Layout
18982 TortoiseSVN\SpecialChar \menuseparator
18988 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18991 \begin_layout Enumerate
18992 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18993 \begin_inset Flex MenuItem
18996 \begin_layout Plain Layout
18997 Create folder\SpecialChar \ldots{}
19003 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
19004 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
19007 \begin_layout Enumerate
19009 \begin_inset Flex Code
19012 \begin_layout Plain Layout
19021 \begin_inset Flex MenuItem
19024 \begin_layout Plain Layout
19025 SVN Checkout\SpecialChar \ldots{}
19031 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
19032 \begin_inset Flex Code
19035 \begin_layout Plain Layout
19043 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
19044 \begin_inset Flex Code
19047 \begin_layout Plain Layout
19056 \begin_inset Flex Code
19059 \begin_layout Plain Layout
19068 \begin_layout Enumerate
19069 LyXで文書を新規作成するか開くかして、
19070 \begin_inset Flex MenuItem
19073 \begin_layout Plain Layout
19074 ファイル\SpecialChar \menuseparator
19075 バージョン管理\SpecialChar \menuseparator
19081 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
19084 \begin_layout Standard
19086 \begin_inset Flex MenuItem
19089 \begin_layout Plain Layout
19090 ファイル\SpecialChar \menuseparator
19096 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
19097 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
19100 \begin_layout Subsubsection
19101 Windows下でSVNと共にSSHトンネルを使うには
19104 \begin_layout Standard
19105 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
19106 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
19110 \begin_layout Enumerate
19111 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
19112 \begin_inset Flex Code
19115 \begin_layout Plain Layout
19121 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
19124 \begin_layout Enumerate
19125 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
19129 \begin_layout Plain Layout
19130 \begin_inset Flex URL
19133 \begin_layout Plain Layout
19135 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
19145 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
19146 護などを加えないキーのみを使用することとします。
19150 \begin_layout Enumerate
19151 \begin_inset Flex Code
19154 \begin_layout Plain Layout
19160 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19161 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19162 _keys file:」編集フィールドから、直接サーバの
19163 \begin_inset Flex Code
19166 \begin_layout Plain Layout
19167 ~/.ssh/authorized_keys
19173 \begin_inset Flex Code
19176 \begin_layout Plain Layout
19182 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19185 \begin_layout Enumerate
19186 Puttyのplinkを入手してください。SVNのconfigファイル
19190 \begin_layout Plain Layout
19191 正確なパスはWindowsのバージョンに依りますが、通常は
19192 \begin_inset Flex Code
19195 \begin_layout Plain Layout
19198 Documents and Settings
19212 \begin_inset Flex Code
19215 \begin_layout Plain Layout
19231 \begin_inset Flex Code
19234 \begin_layout Plain Layout
19240 セクションにsshコマンドを設定してください。例:
19241 \begin_inset Flex Code
19244 \begin_layout Plain Layout
19245 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19254 \begin_layout Plain Layout
19255 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19256 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19265 \begin_layout Enumerate
19266 SVNアーカイブをチェックアウトしてください。例:
19267 \begin_inset Newline newline
19271 \begin_inset Flex Code
19274 \begin_layout Plain Layout
19275 svn co svn+ssh://user@server/repository_path
19283 \begin_layout Subsubsection
19287 \begin_layout Standard
19288 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19289 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19290 \begin_inset Flex Code
19293 \begin_layout Plain Layout
19303 \begin_layout Plain Layout
19305 \begin_inset Flex Code
19308 \begin_layout Plain Layout
19309 svn propset svn:eol-style native FILE_NAME
19319 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19323 \begin_layout Plain Layout
19324 \begin_inset Flex URL
19327 \begin_layout Plain Layout
19329 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19342 \begin_layout Subsection
19346 \begin_layout Standard
19347 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19350 \begin_layout Standard
19351 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19354 \begin_layout Description
19356 \begin_inset Flex Code
19359 \begin_layout Plain Layout
19360 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19368 \begin_layout Description
19370 \begin_inset Flex Code
19373 \begin_layout Plain Layout
19374 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19382 \begin_layout Subsection
19386 \begin_layout Standard
19388 \begin_inset Flex Code
19391 \begin_layout Plain Layout
19397 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19398 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19399 \begin_inset Flex Code
19402 \begin_layout Plain Layout
19408 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19409 \begin_inset Flex MenuItem
19412 \begin_layout Plain Layout
19413 旧改訂と比較\SpecialChar \ldots{}
19419 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19421 \begin_inset Flex MenuItem
19424 \begin_layout Plain Layout
19430 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19433 \begin_layout Standard
19434 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19435 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19438 \begin_layout Section
19442 \begin_layout Standard
19447 (kayvan@sylvan.com)改訂
19449 Edmar Wienskoski Jr.
19451 (edmar-w-jr@technologist.com)原文
19454 \begin_layout Subsection
19458 \begin_layout Standard
19459 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19460 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19461 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19464 \begin_layout Standard
19465 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19466 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19469 \begin_layout Subsection
19473 \begin_layout Standard
19474 以下は、文芸的プログラミング FAQからの抜粋です。
19477 \begin_layout Quotation
19478 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19479 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19480 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19482 \begin_inset space \thinspace{}
19486 Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19489 \begin_layout Standard
19493 \begin_layout Quotation
19496 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19499 \begin_layout Quotation
19500 3つの際立った特徴があります。重要な順に列挙すれば、
19504 \begin_layout Itemize
19508 \begin_layout Itemize
19512 \begin_layout Itemize
19513 特に図式と数式を含んだドキュメンテーションの組版
19517 \begin_layout Quotation
19521 \begin_layout Standard
19522 あなたの興味に火を付けたところで参考文献を見てみましょう。
19525 \begin_layout Subsubsection
19529 \begin_layout Standard
19533 \begin_layout Quote
19534 Literate Programming FAQ
19535 \begin_inset Flex URL
19538 \begin_layout Plain Layout
19540 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19548 \begin_layout Standard
19552 \begin_layout Standard
19553 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19554 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19561 \begin_layout Itemize
19562 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19565 \begin_layout Itemize
19566 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19569 \begin_layout Itemize
19570 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19573 \begin_layout Itemize
19577 \begin_layout Standard
19581 \begin_layout Quote
19583 \begin_inset Flex URL
19586 \begin_layout Plain Layout
19588 http://www.cs.virginia.edu/~nr/noweb/
19596 \begin_layout Standard
19597 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19600 \begin_layout Subsection
19604 \begin_layout Standard
19605 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19606 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19609 \begin_layout Subsubsection
19610 ドキュメントとコードの生成(weavingおよびtangling)
19613 \begin_layout Paragraph
19617 \begin_layout Standard
19618 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19621 \begin_layout Itemize
19625 \begin_layout Itemize
19629 \begin_layout Itemize
19633 \begin_layout Standard
19634 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19637 \begin_layout Standard
19638 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19639 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19640 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19645 \begin_layout Plain Layout
19646 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19651 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19654 \begin_layout Paragraph
19658 \begin_layout Standard
19660 \begin_inset Flex Noun
19663 \begin_layout Plain Layout
19669 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
19672 \begin_layout LyX-Code
19676 \begin_layout LyX-Code
19680 \begin_layout LyX-Code
19684 \begin_layout LyX-Code
19688 \begin_layout LyX-Code
19692 \begin_layout Standard
19693 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19695 \begin_inset Flex Noun
19698 \begin_layout Plain Layout
19704 と呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19707 \begin_layout Standard
19708 また、chunkの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19712 \begin_layout LyX-Code
19716 \begin_layout LyX-Code
19717 def some_function(args):
19720 \begin_layout LyX-Code
19721 "This is the doc string for this function."
19724 \begin_layout LyX-Code
19725 print "My args: ", args
19728 \begin_layout LyX-Code
19729 @ %def some_function
19732 \begin_layout Standard
19733 これをどのように使って、その結果相互参照がどうなるかは
19735 LIBDIR/examples/listerrors.lyx
19737 の中の文芸pythonプログラムを見るとよくわかります。
19740 \begin_layout Paragraph
19744 \begin_layout Standard
19745 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19746 \begin_inset Flex MenuItem
19749 \begin_layout Plain Layout
19750 表示\SpecialChar \menuseparator
19756 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19759 \begin_layout Standard
19760 LyXの内部で何が起っているかを説明しておきましょう。
19763 \begin_layout Enumerate
19764 \begin_inset Flex MenuItem
19767 \begin_layout Plain Layout
19768 表示\SpecialChar \menuseparator
19774 が選ばれると、LaTeXファイルがつくられます。
19778 \begin_layout Standard
19779 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19780 \begin_inset Flex MenuItem
19783 \begin_layout Plain Layout
19789 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19793 \begin_layout Enumerate
19794 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。
19795 \begin_inset Flex Noun
19798 \begin_layout Plain Layout
19804 環境でコードを入力するのだけがポイントです。
19807 \begin_layout Enumerate
19808 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19812 \begin_layout Plain Layout
19818 dit\SpecialChar \menuseparator
19825 パネルの Conversion タブで設定できます。
19830 を使ってLaTeXファイルを生成します。
19834 \begin_layout Standard
19835 それ以外の場合はこのステップを飛ばします。
19839 \begin_layout Enumerate
19840 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19843 \begin_layout Standard
19844 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19847 \begin_layout Paragraph
19851 \begin_layout Standard
19852 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19856 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19859 \begin_layout Enumerate
19860 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19864 \begin_layout Enumerate
19865 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19869 \begin_layout Standard
19870 はじめのパートのために、「変換子」設定で、
19871 \begin_inset Quotes eld
19879 \begin_inset Quotes erd
19882 と指定します。これは基本的に、LyXが
19886 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19889 \begin_layout Standard
19890 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19893 \begin_layout Standard
19894 \begin_inset VSpace defskip
19900 \begin_layout Standard
19906 \begin_layout Standard
19912 \begin_layout Standard
19915 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
19918 \begin_layout Standard
19919 \begin_inset VSpace defskip
19925 \begin_layout Standard
19928 The next part of the converter setting is the
19929 \begin_inset Quotes eld
19933 \begin_inset Quotes erd
19936 which is to be set to
19937 \begin_inset Newline newline
19941 \begin_inset Quotes eld
19946 parselog=$$s/scripts/listerrors
19949 \begin_inset Quotes erd
19953 \begin_inset Newline newline
19956 This will run any errors that are generated by the
19957 \begin_inset Quotes eld
19961 \begin_inset Quotes erd
19964 process through the
19965 \begin_inset Quotes eld
19969 \begin_inset Quotes erd
19975 \begin_layout Standard
19978 The build will normally take place in LyX's temporary directory, so the
19979 files produced by the conversion will be in that directory.
19980 LyX will copy out what it regards as the `main' file, but the
19984 conversion may produce several files, and so most of these would then be
19985 deleted when LyX was closed.
19986 This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
19987 the build-script chunk can place the generated files in that location.
19990 \begin_layout Paragraph
19994 \begin_layout Standard
19995 LyXとNowebの統合の最後の部分は、
19996 \begin_inset Quotes eld
20000 \begin_inset Quotes erd
20003 chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
20004 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
20007 \begin_layout Standard
20008 以下に典型的なschunkがどのようなものかを書いておきます。
20011 \begin_layout LyX-Code
20015 \begin_layout LyX-Code
20017 \begin_inset Newline newline
20020 if [ -z "${NOWEB_SOURCE}" ]
20021 \begin_inset Newline newline
20027 \begin_layout LyX-Code
20028 NOWEB_SOURCE=myfile.nw
20029 \begin_inset Newline newline
20033 \begin_inset Newline newline
20037 code to extract files ...
20038 use NOWEB_OUTPUT_DIR here ...]
20039 \begin_inset Newline newline
20043 code to compile files ...]
20044 \begin_inset Newline newline
20050 \begin_layout Standard
20053 LIBDIR/examples/listerrors.lyx
20057 LIBDIR/examples/Literate.lyx
20059 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
20062 LIBDIR/examples/noweb2lyx.lyx
20064 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
20068 \begin_layout Subsubsection
20072 \begin_layout Standard
20073 すべての文芸プログラムのための設定は、
20074 \begin_inset Flex MenuItem
20077 \begin_layout Plain Layout
20078 ツール\SpecialChar \menuseparator
20084 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
20087 \begin_layout Description
20089 \begin_inset space ~
20093 \begin_inset Quotes eld
20097 \begin_inset Quotes erd
20101 \begin_inset space ~
20104 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
20116 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
20120 という拡張子をつけることを指示します。
20123 \begin_layout Description
20125 \begin_inset space ~
20133 \begin_inset space ~
20136 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
20140 \begin_layout Description
20149 このコンバータは、weavingの段階を行います。Nowebの場合は、
20150 \begin_inset Quotes eld
20155 noweave -delay -index $$i > $$o
20158 \begin_inset Quotes erd
20164 \begin_layout Description
20173 これは、tanglingを行います。以前に説明したように、
20178 \begin_inset Quotes eld
20183 originaldir,parselog=listerrors
20186 \begin_inset Quotes erd
20192 \begin_layout Subsubsection
20196 \begin_layout Standard
20197 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20200 \begin_layout Standard
20201 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20203 \begin_inset Flex MenuItem
20206 \begin_layout Plain Layout
20207 ツール\SpecialChar \menuseparator
20208 設定\SpecialChar \menuseparator
20215 \begin_inset Flex MenuItem
20218 \begin_layout Plain Layout
20224 エントリを変えると変えることができます。
20227 \begin_layout Standard
20228 新しいLyXサーバの関数と、このdddの機能を使うために
20229 \begin_inset Flex MenuItem
20232 \begin_layout Plain Layout
20241 \begin_layout Standard
20242 \begin_inset VSpace defskip
20248 \begin_layout Standard
20251 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20254 \begin_layout Standard
20255 \begin_inset VSpace defskip
20261 \begin_layout Standard
20262 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20263 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20267 \begin_layout Standard
20268 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20271 \begin_inset Flex MenuItem
20274 \begin_layout Plain Layout
20287 \begin_inset Flex MenuItem
20290 \begin_layout Plain Layout
20303 \begin_inset Flex MenuItem
20306 \begin_layout Plain Layout
20319 \begin_inset Quotes eld
20324 /home/<your-home-directory>/.lyx/lyxpipe
20327 \begin_inset Quotes erd
20333 \begin_layout Standard
20338 』のLyXサーバの説明を読んでください。
20341 \begin_layout Subsubsection
20345 \begin_layout Standard
20346 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20366 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20369 \begin_layout Standard
20370 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20371 \begin_inset Flex MenuItem
20374 \begin_layout Plain Layout
20375 表示\SpecialChar \menuseparator
20376 更新\SpecialChar \menuseparator
20383 \begin_inset Flex MenuItem
20386 \begin_layout Plain Layout
20387 表示\SpecialChar \menuseparator
20396 \begin_layout LyX-Code
20400 \begin_layout LyX-Code
20404 \begin_layout LyX-Code
20405 Icon "layout Standard"
20408 \begin_layout LyX-Code
20409 Icon "layout Section"
20412 \begin_layout LyX-Code
20413 Icon "layout LaTeX"
20416 \begin_layout LyX-Code
20417 Icon "layout LyX-Code"
20420 \begin_layout LyX-Code
20421 Icon "layout Chunk"
20424 \begin_layout LyX-Code
20428 \begin_layout LyX-Code
20432 \begin_layout LyX-Code
20433 Icon "buffer-typeset"
20436 \begin_layout LyX-Code
20437 Icon "build-program"
20440 \begin_layout LyX-Code
20444 \begin_layout LyX-Code
20448 \begin_layout LyX-Code
20452 \begin_layout LyX-Code
20456 \begin_layout LyX-Code
20460 \begin_layout Subsubsection
20464 \begin_layout Standard
20466 \begin_inset Flex MenuItem
20469 \begin_layout Plain Layout
20475 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ChunkはLaTeXフォントを使い、文芸的プログラ
20476 ミングでは多くのChunkがあるためにそれらがすべて赤では疲れてしまいます。
20477 \begin_inset Flex MenuItem
20480 \begin_layout Plain Layout
20481 操作性\SpecialChar \menuseparator
20490 \begin_layout Standard
20491 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20492 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20495 \begin_layout Subsection
20498 LyX and knitr/Sweave
20501 \begin_layout Standard
20512 is documented in the
20516 example file and in the Sweave manual (menu
20518 Help\SpecialChar \menuseparator
20524 \begin_layout Chapter
20530 \begin_inset CommandInset label
20532 name "chap:Special-features"
20539 \begin_layout Standard
20542 You can do everything with LyX that you can do with LaTeX.
20543 However, LyX cannot support every LaTeX feature directly.
20544 But you can always use TeX Code.
20545 This chapter shows you some more special things you might want to use.
20546 For other special things you can do with figures, tables, floats, boxes
20547 and notes, have a look at the
20554 \begin_layout Section
20557 Multiple Text Columns
20560 \begin_layout Standard
20563 This feature is independent of the option
20565 Two-column document
20567 in the document settings under
20572 If you want to have 2
20573 \begin_inset space ~
20576 columns for the whole document, it is recommended to use the
20578 Two-column document
20581 For all other cases use this feature.
20584 \begin_layout Standard
20587 To use multiple text columns in your document, you have to load the module
20594 Document\SpecialChar \menuseparator
20595 Settings\SpecialChar \menuseparator
20598 ) and must have the LaTeX-package
20605 \begin_layout Standard
20608 Footnotes within multiple columns will be placed at the bottom of the page
20609 and not under each column.
20610 Within the different columns you can use everything, with the limitation
20611 that for floats you need to use the float option
20618 \begin_layout Subsection
20624 \begin_layout Standard
20627 If you want to have 2
20628 \begin_inset space ~
20631 columns in your text, use the style
20633 Begin Multiple Columns
20635 where the columns should start.
20636 The content of the style is the number of the columns, so in this case
20638 \begin_inset Quotes eld
20642 \begin_inset Quotes erd
20646 At the point where the columns should end use the style
20648 End Multiple Columns
20653 \begin_layout Standard
20656 Here is an example:
20659 \begin_layout Begin Multiple Columns
20663 \begin_layout Standard
20669 The Adventure of the Empty House
20672 \begin_inset Newline newline
20677 Sir Arthur Conan Doyle
20680 \begin_layout Standard
20684 It was in the spring of the year 1894 that all London was interested, and
20685 the fashionable world dismayed, by the murder of the Honourable Ronald
20686 Adair under most unusual and inexplicable circumstances.
20687 The public has already learned those particulars of the crime which came
20688 out in the police investigation, but a good deal was suppressed upon that
20689 occasion, since the case for the prosecution was so overwhelmingly strong
20690 that it was not necessary to bring forward all the facts.
20691 Only now, at the end of nearly ten years, am I allowed to supply those
20692 missing links which make up the whole of that remarkable chain.
20693 The crime was of interest in itself, but that interest was as nothing to
20694 me compared to the inconceivable sequel, which afforded me the greatest
20695 shock and surprise of any event in my adventurous life.
20696 Even now, after this long interval, I find myself thrilling as I think
20697 of it, and feeling once more that sudden flood of joy, amazement, and increduli
20698 ty which utterly submerged my mind.
20699 Let me say to that public, which has shown some interest in those glimpses
20700 which I have occasionally given them of the thoughts and actions of a very
20701 remarkable man, that they are not to blame me if I have not shared my knowledge
20702 with them, for I should have considered it my first duty to do so, had
20703 I not been barred by a positive prohibition from his own lips, which was
20704 only withdrawn upon the third of last month.
20707 \begin_layout End Multiple Columns
20711 \begin_layout Standard
20714 Here is an example with 3
20715 \begin_inset space ~
20721 \begin_layout Begin Multiple Columns
20725 \begin_layout Standard
20729 It can be imagined that my close intimacy with Sherlock Holmes had interested
20730 me deeply in crime, and that after his disappearance I never failed to
20731 read with care the various problems which came before the public.
20732 And I even attempted, more than once, for my own private satisfaction,
20733 to employ his methods in their solution, though with indifferent success.
20734 There was none, however, which appealed to me like this tragedy of Ronald
20736 As I read the evidence at the inquest, which led up to a verdict of willful
20737 murder against some person or persons unknown, I realized more clearly
20738 than I had ever done the loss which the community had sustained by the
20739 death of Sherlock Holmes.
20740 There were points about this strange business which would, I was sure,
20741 have specially appealed to him, and the efforts of the police would have
20742 been supplemented, or more probably anticipated, by the trained observation
20743 and the alert mind of the first criminal agent in Europe.
20744 All day, as I drove upon my round, I turned over the case in my mind and
20745 found no explanation which appeared to me to be adequate.
20746 At the risk of telling a twice-told tale, I will recapitulate the facts
20747 as they were known to the public at the conclusion of the inquest.
20750 \begin_layout End Multiple Columns
20754 \begin_layout Standard
20757 You can have up to 10
20758 \begin_inset space ~
20761 columns if you want to, but that might not be very pleasant for the readers
20765 \begin_layout Standard
20766 \begin_inset Newpage newpage
20772 \begin_layout Subsection
20775 Columns inside Columns
20778 \begin_layout Standard
20781 You can also have columns inside columns:
20784 \begin_layout Begin Multiple Columns
20788 \begin_layout Standard
20792 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20793 at that time governor of one of the Australian colonies.
20794 Adair's mother had returned from Australia to undergo the operation for
20795 cataract, and she, her son Ronald, and her daughter Hilda were living together
20799 \begin_layout Begin Multiple Columns
20803 \begin_layout Standard
20807 The youth moved in the best society–had, so far as was known, no enemies
20808 and no particular vices.
20809 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20810 had been broken off by mutual consent some months before, and there was
20811 no sign that it had left any very profound feeling behind it.
20812 For the rest {sic} the man's life moved in a narrow and conventional circle,
20813 for his habits were quiet and his nature unemotional.
20814 Yet it was upon this easy-going young aristocrat that death came, in most
20815 strange and unexpected form, between the hours of ten and eleven-twenty
20816 on the night of March 30, 1894.
20819 \begin_layout End Multiple Columns
20823 \begin_layout Standard
20827 Ronald Adair was fond of cards–playing continually, but never for such stakes
20829 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20830 It was shown that, after dinner on the day of his death, he had played
20831 a rubber of whist at the latter club.
20832 He had also played there in the afternoon.
20837 The evidence of those who had played with him– Mr.
20838 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20839 and that there was a fairly equal fall of the cards.
20840 Adair might have lost five pounds, but not more.
20841 His fortune was a considerable one, and such a loss could not in any way
20843 He had played nearly every day at one club or other, but he was a cautious
20844 player, and usually rose a winner.
20845 It came out in evidence that, in partnership with Colonel Moran, he had
20846 actually won as much as four hundred and twenty pounds in a sitting, some
20847 weeks before, from Godfrey Milner and Lord Balmoral.
20848 So much for his recent history as it came out at the inquest.
20851 \begin_layout End Multiple Columns
20855 \begin_layout Subsection
20861 \begin_layout Standard
20864 The examples in this section show some more special features of multiple
20868 \begin_layout Standard
20871 For more features of multiple columns, have a look at the documentation
20872 of the LaTeX-package
20878 \begin_inset CommandInset citation
20887 \begin_layout Subsubsection
20893 \begin_layout Standard
20896 To add a preface text for multiple columns, add the optional parameter
20900 behind the number of columns in the
20902 Begin Multiple Columns
20905 Write in there your preface.
20906 An example with some preface text:
20909 \begin_layout Standard
20910 \begin_inset VSpace bigskip
20916 \begin_layout Begin Multiple Columns
20918 \begin_inset Argument post:1
20921 \begin_layout Plain Layout
20924 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20933 \begin_layout Standard
20937 On the evening of the crime, he returned from the club exactly at ten.
20938 His mother and sister were out spending the evening with a relation.
20939 The servant deposed that she heard him enter the front room on the second
20940 floor, generally used as his sitting-room.
20941 She had lit a fire there, and as it smoked she had opened the window.
20942 No sound was heard from the room until eleven-twenty, the hour of the return
20943 of Lady Maynooth and her daughter.
20944 Desiring to say good-night, she attempted to enter her son's room.
20945 The door was locked on the inside, and no answer could be got to their
20946 cries and knocking.
20947 Help was obtained, and the door forced.
20948 The unfortunate young man was found lying near the table.
20949 His head had been horribly mutilated by an expanding revolver bullet, but
20950 no weapon of any sort was to be found in the room.
20953 \begin_layout End Multiple Columns
20957 \begin_layout Standard
20960 You can also use a section heading as the preface if you use a section command
20962 For example the command
20965 \begin_layout Standard
20971 subsection{subsection title}
20974 \begin_layout Standard
20977 creates a subsection.
20978 In this example the preface is a subsubsection:
20981 \begin_layout Begin Multiple Columns
20983 \begin_inset Argument post:1
20986 \begin_layout Plain Layout
20992 \begin_layout Plain Layout
21001 This is a subsubsection heading as a preface
21005 \begin_layout Plain Layout
21020 \begin_layout Standard
21024 A minute examination of the circumstances served only to make the case more
21026 In the first place, no reason could be given why the young man should have
21027 fastened the door upon the inside.
21028 There was the possibility that the murderer had done this, and had afterwards
21029 escaped by the window.
21030 The drop was at least twenty feet, however, and a bed of crocuses in full
21032 Neither the flowers nor the earth showed any sign of having been disturbed,
21033 nor were there any marks upon the narrow strip of grass which separated
21034 the house from the road.
21035 Apparently, therefore, it was the young man himself who had fastened the
21037 But how did he come by his death? No one could have climbed up to the window
21038 without leaving traces.
21039 Suppose a man had fired through the window, he would indeed be a remarkable
21040 shot who could with a revolver inflict so deadly a wound.
21041 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
21042 a hundred yards of the house.
21043 No one had heard a shot.
21046 \begin_layout End Multiple Columns
21050 \begin_layout Standard
21053 If there is less vertical space than 6
21054 \begin_inset space ~
21057 text lines is left on the page at the beginning of the multiple columns,
21058 a page break will be inserted before the multiple columns.
21059 Depending on the number of lines of the preface text, you might want to
21061 This is done by inserting the optional parameter
21063 Space before page break
21065 behind the preface.
21066 There insert the amount of space like e.
21067 \begin_inset space \thinspace{}
21071 \begin_inset space \space{}
21075 \begin_inset Quotes eld
21079 \begin_inset Quotes erd
21083 In this example the space is set to 7
21084 \begin_inset space ~
21087 text lines by using
21088 \begin_inset Quotes eld
21094 \begin_inset Quotes erd
21103 needs to be inserted as TeX code):
21106 \begin_layout Begin Multiple Columns
21108 \begin_inset Argument post:1
21111 \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
21151 \begin_inset Argument post:2
21154 \begin_layout Plain Layout
21159 \begin_layout Plain Layout
21176 \begin_layout Standard
21180 On the evening of the crime, he returned from the club exactly at ten.
21181 His mother and sister were out spending the evening with a relation.
21182 The servant deposed that she heard him enter the front room on the second
21183 floor, generally used as his sitting-room.
21184 She had lit a fire there, and as it smoked she had opened the window.
21185 No sound was heard from the room until eleven-twenty, the hour of the return
21186 of Lady Maynooth and her daughter.
21187 Desiring to say good-night, she attempted to enter her son's room.
21188 The door was locked on the inside, and no answer could be got to their
21189 cries and knocking.
21190 Help was obtained, and the door forced.
21191 The unfortunate young man was found lying near the table.
21192 His head had been horribly mutilated by an expanding revolver bullet, but
21193 no weapon of any sort was to be found in the room.
21196 \begin_layout End Multiple Columns
21200 \begin_layout Subsubsection
21206 \begin_layout Standard
21209 The amount of space before and after multiple columns can be changed by
21210 changing the length
21217 For example the command
21220 \begin_layout Standard
21231 \begin_layout Standard
21234 in TeX Code changes its value to 3
21235 \begin_inset space \thinspace{}
21239 The change must be made before the multiple columns' start.
21240 The predefined value is 13
21241 \begin_inset space \thinspace{}
21247 \begin_layout Standard
21257 \begin_inset space \thinspace{}
21263 \begin_layout Standard
21269 \begin_layout Plain Layout
21275 multicolsep}{2.5cm}
21283 \begin_layout Begin Multiple Columns
21287 \begin_layout Standard
21291 All day I turned these facts over in my mind, endeavouring to hit upon some
21292 theory which could reconcile them all, and to find that line of least resistanc
21293 e which my poor friend had declared to be the starting-point of every investigat
21295 I confess that I made little progress.
21296 In the evening I strolled across the Park, and found myself about six o'clock
21297 at the Oxford Street end of Park Lane.
21298 A group of loafers upon the pavements, all staring up at a particular window,
21299 directed me to the house which I had come to see.
21300 A tall, thin man with coloured glasses, whom I strongly suspected of being
21301 a plain-clothes detective, was pointing out some theory of his own, while
21302 the others crowded round to listen to what he said.
21303 I got as near him as I could, but his observations seemed to me to be absurd,
21304 so I withdrew again in some disgust.
21305 As I did so I struck against an elderly, deformed man, who had been behind
21306 me, and I knocked down several books which he was carrying.
21309 \begin_layout End Multiple Columns
21313 \begin_layout Standard
21316 \begin_inset Note Greyedout
21319 \begin_layout Plain Layout
21325 The values you set with
21331 will be used for all following multiple columns until to change them again.
21339 \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
21409 \begin_layout Plain Layout
21423 \begin_layout Begin Multiple Columns
21427 \begin_layout Standard
21431 My observations of No.
21432 \begin_inset space \space{}
21435 427 Park Lane did little to clear up the problem in which I was interested.
21436 The house was separated from the street by a low wall and railing, the
21437 whole not more than five feet high.
21438 It was perfectly easy, therefore, for anyone to get into the garden, but
21439 the window was entirely inaccessible, since there was no water pipe or
21440 anything which could help the most active man to climb it.
21441 More puzzled than ever, I retraced my steps to Kensington.
21442 I had not been in my study five minutes when the maid entered to say that
21443 a person desired to see me.
21444 To my astonishment it was none other than my strange old book collector,
21445 his sharp, wizened face peering out from a frame of white hair, and his
21446 precious volumes, a dozen of them at least, wedged under his right arm.
21449 \begin_layout End Multiple Columns
21453 \begin_layout Standard
21457 \begin_layout Plain Layout
21469 \begin_inset Note Note
21472 \begin_layout Plain Layout
21475 go back to the default
21483 \begin_layout Subsubsection
21489 \begin_layout Standard
21492 Between the columns a rule with a width of the length
21499 If this rule width is set to 0
21500 \begin_inset space \thinspace{}
21503 pt (this is the default), the rule is suppressed.
21504 In the following example, the line separating the columns is 2
21505 \begin_inset space \thinspace{}
21511 \begin_layout Standard
21515 \begin_layout Plain Layout
21521 columnseprule}{2pt}
21529 \begin_layout Begin Multiple Columns
21533 \begin_layout Standard
21537 \begin_inset Quotes eld
21540 You're surprised to see me, sir,
21541 \begin_inset Quotes erd
21544 said he, in a strange, croaking voice.
21547 \begin_layout Standard
21551 I acknowledged that I was.
21554 \begin_layout Standard
21558 \begin_inset Quotes eld
21561 Well, I've a conscience, sir, and when I chanced to see you go into this
21562 house, as I came hobbling after you, I thought to myself, I'll just step
21563 in and see that kind gentleman, and tell him that if I was a bit gruff
21564 in my manner there was not any harm meant, and that I am much obliged to
21565 him for picking up my books.
21566 \begin_inset Quotes erd
21572 \begin_layout Standard
21576 \begin_inset Quotes eld
21579 You make too much of a trifle,
21580 \begin_inset Quotes erd
21585 \begin_inset Quotes eld
21588 May I ask how you knew who I was?
21589 \begin_inset Quotes erd
21595 \begin_layout Standard
21599 \begin_inset Quotes eld
21602 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21603 you'll find my little bookshop at the corner of Church Street, and very
21604 happy to see you, I am sure.
21605 Maybe you collect yourself, sir.
21609 \begin_inset space ~
21622 --a bargain, every one of them.
21623 With five volumes you could just fill that gap on that second shelf.
21624 It looks untidy, does it not, sir?
21625 \begin_inset Quotes erd
21631 \begin_layout End Multiple Columns
21635 \begin_layout Standard
21639 \begin_layout Plain Layout
21645 columnseprule}{0pt}
21651 \begin_inset Note Note
21654 \begin_layout Plain Layout
21657 go back to the default
21665 \begin_layout Standard
21666 \begin_inset Newpage newpage
21672 \begin_layout Section
21676 \begin_layout Standard
21680 LaTeX as well as any other text processor uses by default rectangular paragraphs.
21681 For special cases like for example posters, invitation cards or poems you
21682 can modify the paragraph shape to one of your choice.
21683 This can be done by using the LaTeX-package
21687 which is loaded by using in the document settings the module
21689 Custom paragraph shapes
21694 \begin_layout Subsection
21700 \begin_layout Standard
21706 provides the following shapes:
21709 \begin_layout Standard
21712 \begin_inset Tabular
21713 <lyxtabular version="3" rows="13" columns="3">
21714 <features rotate="0" booktabs="true" islongtable="true" longtabularalignment="center">
21715 <column alignment="center" valignment="middle" width="16col%">
21716 <column alignment="center" valignment="middle" width="40col%">
21717 <column alignment="center" valignment="middle" width="35col%">
21718 <row endhead="true">
21719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21722 \begin_layout Plain Layout
21730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21733 \begin_layout Plain Layout
21741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21744 \begin_layout Plain Layout
21754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21757 \begin_layout Plain Layout
21765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21768 \begin_layout Plain Layout
21771 Circle with circular hole (in the size of a CD/DVD)
21776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21779 \begin_layout Plain Layout
21782 Cannot be scaled, take care there is not too much text
21789 <cell alignment="center" valignment="top" topline="true" usebox="none">
21792 \begin_layout Plain Layout
21800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21803 \begin_layout Plain Layout
21811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21814 \begin_layout Plain Layout
21817 Fragile, calculation might fail
21824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21827 \begin_layout Plain Layout
21835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21838 \begin_layout Plain Layout
21841 Rhomboid (symbolizing a
21842 \begin_inset Quotes eld
21846 \begin_inset Quotes erd
21854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21857 \begin_layout Plain Layout
21867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21870 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21881 \begin_layout Plain Layout
21889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21892 \begin_layout Plain Layout
21902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21905 \begin_layout Plain Layout
21913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21916 \begin_layout Plain Layout
21924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21927 \begin_layout Plain Layout
21937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21940 \begin_layout Plain Layout
21948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21951 \begin_layout Plain Layout
21954 Nut for bolt (hexagon with circular hole)
21959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21962 \begin_layout Plain Layout
21972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21975 \begin_layout Plain Layout
21983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21986 \begin_layout Plain Layout
21994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21997 \begin_layout Plain Layout
22007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22010 \begin_layout Plain Layout
22018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22021 \begin_layout Plain Layout
22029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22032 \begin_layout Plain Layout
22042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22045 \begin_layout Plain Layout
22053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22056 \begin_layout Plain Layout
22064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22067 \begin_layout Plain Layout
22077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22080 \begin_layout Plain Layout
22088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22091 \begin_layout Plain Layout
22094 Normal/reversed rain drop
22099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22102 \begin_layout Plain Layout
22105 Fragile, calculation might fail
22112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22115 \begin_layout Plain Layout
22123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22126 \begin_layout Plain Layout
22134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22137 \begin_layout Plain Layout
22147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22150 \begin_layout Plain Layout
22154 \begin_inset Newline newline
22162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22165 \begin_layout Plain Layout
22168 Triangles in different orientations
22173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22176 \begin_layout Plain Layout
22192 \begin_layout Standard
22195 To use a shape for your paragraph, simply select it in LyX's pull-down box
22196 for environments in the toolbar.
22199 \begin_layout Standard
22200 \begin_inset Newpage newpage
22206 \begin_layout Standard
22209 Here is an example paragraph in the shape of a nut:
22212 \begin_layout Standard
22213 \begin_inset VSpace bigskip
22222 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22223 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22225 At vero eos et accusam et justo duo dolores et ea rebum.
22226 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22228 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22229 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22233 \begin_layout Standard
22234 \begin_inset VSpace bigskip
22240 \begin_layout Standard
22243 \begin_inset Note Greyedout
22246 \begin_layout Plain Layout
22252 : shapepar paragraphs cannot run over a page break.
22260 \begin_layout Standard
22261 \begin_inset VSpace bigskip
22267 \begin_layout Standard
22273 takes care that the shape will always be preserved, no matter how much
22274 text is in the paragraph.
22275 Therefore the paragraph size changes with the amount of contained text.
22276 This can lead to paragraph sizes exceeding the page margins.
22277 To demonstrate the size scaling, here is the same example paragraph but
22278 with twice as much text:
22281 \begin_layout Standard
22282 \begin_inset Newpage newpage
22291 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22292 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22294 At vero eos et accusam et justo duo dolores et ea rebum.
22295 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22297 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22298 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22300 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22301 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22303 At vero eos et accusam et justo duo dolores et ea rebum.
22304 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22306 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22307 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22311 \begin_layout Standard
22312 \begin_inset VSpace bigskip
22318 \begin_layout Standard
22321 An exception is the shape
22326 It cannot be scaled because it must fit the size of a CD/DVD.
22327 Therefore the amount of text that fits into the shape is limited.
22328 \begin_inset Newline newline
22339 shape are fragile, meaning that the calculation of their size can fail,
22340 depending on the amount of text.
22341 You will then get the LaTeX error
22342 \begin_inset Quotes eld
22345 Arithmetic overflow
22346 \begin_inset Quotes erd
22350 In this case one can try to remove or add some text; if nothing works one
22351 has to use another shape.
22354 \begin_layout Standard
22355 \begin_inset VSpace bigskip
22361 \begin_layout Standard
22364 For shapes with tips you will maybe see that LaTeX's hyphenation routine
22365 fails for text in the tips.
22366 Therefore it is often necessary to add hyphenation points
22371 arg "specialchar-insert hyphenation"
22376 ) to the corresponding text parts.
22379 \begin_layout Standard
22380 \begin_inset VSpace bigskip
22386 \begin_layout Standard
22389 Shapepar paragraphs are always placed on the page that their left border
22390 touches the left page margin.
22391 You can therefore not use the paragraph dialog to align such paragraphs.
22392 A solution is to put the paragraph into a minipage or parbox and align
22394 The problem is hereby to find the right width for the box.
22395 Because if it is too wide and you center the box, the paragraph is not
22396 centered too because it sticks at the left side of the box.
22397 So you might have to play a bit with the width until it fits.
22398 Here are two triangular paragraphs, the first one is not aligned, the second
22402 \begin_layout Standard
22403 \begin_inset Newpage newpage
22409 \begin_layout Triangle up
22413 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22414 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22416 At vero eos et accusam et justo duo dolores et ea rebum.
22417 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22421 \begin_layout Standard
22422 \begin_inset VSpace bigskip
22428 \begin_layout Standard
22430 \begin_inset Box Frameless
22440 height_special "totalheight"
22443 \begin_layout Triangle up
22447 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22448 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22450 At vero eos et accusam et justo duo dolores et ea rebum.
22451 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22460 \begin_layout Subsection
22466 \begin_layout Standard
22469 You can define any shape you want.
22470 Doing this manually is a lot of work because every coordinate must be specified.
22471 But there is a way to let the computer calculate the coordinates:
22474 \begin_layout Enumerate
22477 Install the program
22480 \begin_inset CommandInset href
22483 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
22490 \begin_layout Enumerate
22503 \begin_layout Plain Layout
22514 \begin_layout Plain Layout
22521 eX\SpecialChar \menuseparator
22522 Settings\SpecialChar \menuseparator
22525 and select the font size you are using in your document.
22526 For example this document uses the size 12
22527 \begin_inset space \thinspace{}
22533 \begin_layout Enumerate
22539 \begin_layout Enumerate
22548 \begin_layout Plain Layout
22559 \begin_layout Plain Layout
22566 eX\SpecialChar \menuseparator
22569 to export the shape to coordinates.
22570 In the appearing dialog use either the outline of your shape for the coordinate
22571 s or the path itself.
22575 \begin_layout Plain Layout
22578 For more information see
22579 \begin_inset CommandInset href
22581 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
22593 \begin_layout Standard
22596 The coordinates are written into a TeX-file.
22597 To use it for your LyX document
22600 \begin_layout Enumerate
22603 Place the cursor before the first character of your paragraph (or into a
22607 \begin_layout Enumerate
22610 Open in LyX the menu
22612 Insert\SpecialChar \menuseparator
22613 File\SpecialChar \menuseparator
22615 \begin_inset space ~
22620 , select the file and use
22629 \begin_layout Standard
22630 \begin_inset VSpace defskip
22636 \begin_layout Standard
22639 \begin_inset Note Greyedout
22642 \begin_layout Plain Layout
22648 : The changed shape only applies to the current paragraph; everything is
22649 reset to normal for the next paragraph.
22650 Therefore the shape definition file must be input into every paragraph
22651 with the desired shape.
22659 \begin_layout Standard
22660 \begin_inset VSpace bigskip
22666 \begin_layout Standard
22669 Here is an example:
22672 \begin_layout Standard
22673 \begin_inset VSpace bigskip
22679 \begin_layout Standard
22680 \begin_inset CommandInset include
22682 filename "../SpecialParagraphShape.tex"
22688 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22689 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22691 At vero eos et accusam et justo duo dolores et ea rebum.
22692 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22694 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22695 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22699 \begin_layout Standard
22702 \begin_inset VSpace bigskip
22708 \begin_layout Standard
22714 to draw complexer shapes in
22718 you can draw the shape in a program of your choice and import the resulting
22724 Then you only need to draw a line or spline along the outline of the image.
22727 \begin_layout Standard
22730 \begin_inset VSpace bigskip
22736 \begin_layout Standard
22741 Custom paragraph shapes
22743 also provides the two commands
22751 which can be used to define custom shapes coordinate by coordinate.
22755 \begin_layout Plain Layout
22758 These commands are internally used for all shapes described here.
22763 For information how these styles are used and about further customization
22764 possibilities, have a look at the documentation of the package
22771 \begin_inset CommandInset citation
22780 \begin_layout Bibliography
22781 \begin_inset CommandInset bibitem
22782 LatexCommand bibitem
22788 \begin_inset CommandInset href
22791 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22798 \begin_layout Bibliography
22799 \begin_inset CommandInset bibitem
22800 LatexCommand bibitem
22806 \begin_inset CommandInset href
22809 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"