1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
8 % DO NOT ALTER THIS PREAMBLE!!!
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected. If you
13 % have problems LaTeXing this file, please contact
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
17 \IfFileExists{pxjahyper.sty}
18 {\usepackage{pxjahyper}}
24 % set fonts for nicer pdf view
25 \IfFileExists{lmodern.sty}
26 {\usepackage{lmodern}}{}
28 \fi % end if pdflatex is used
30 % the pages of the TOC are numbered roman
31 % and a PDF-bookmark for the TOC is added
33 \let\myTOC\tableofcontents
34 \renewcommand{\tableofcontents}{%
35 \pdfbookmark[1]{\contentsname}{}
38 \pagenumbering{arabic}}
40 % extra space for tables
41 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
45 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
46 \use_default_options false
54 \maintain_unincluded_children false
56 InsetLayout Flex:MenuItem
65 \newcommand*{\menuitem}[1]{{\sffamily #1}}
74 Decoration Conglomerate
78 Decoration Conglomerate
88 \IfFileExists{okumacro.sty}
89 {\usepackage{okumacro}}
90 {\newcommand{\ruby}[2]{#2}}
95 \language_package default
98 \font_roman "default" "default"
99 \font_sans "default" "default"
100 \font_typewriter "default" "default"
101 \font_math "auto" "auto"
102 \font_default_family default
103 \use_non_tex_fonts false
106 \font_sf_scale 100 100
107 \font_tt_scale 100 100
109 \default_output_format pdf
111 \bibtex_command default
112 \index_command default
116 \pdf_title "LyX's Additional Features manual"
117 \pdf_author "LyX Team"
118 \pdf_subject "LyX's additional features documentation"
119 \pdf_keywords "LyX, Documentation, Additional"
121 \pdf_bookmarksnumbered true
122 \pdf_bookmarksopen false
123 \pdf_bookmarksopenlevel 1
124 \pdf_breaklinks false
128 \pdf_pdfusetitle false
129 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
132 \use_package amsmath 1
133 \use_package amssymb 1
134 \use_package cancel 0
136 \use_package mathdots 1
137 \use_package mathtools 0
138 \use_package mhchem 1
139 \use_package stackrel 0
140 \use_package stmaryrd 0
141 \use_package undertilde 0
143 \cite_engine_type default
147 \paperorientation portrait
151 \notefontcolor #0000ff
158 \paragraph_separation indent
159 \paragraph_indentation default
160 \quotes_language english
163 \paperpagestyle headings
164 \tracking_changes false
165 \output_changes false
176 \begin_inset Newline newline
190 \begin_layout Plain Layout
191 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX
193 \begin_inset Flex Code
196 \begin_layout Plain Layout
200 <lyx-docs@lists.lyx.org>
205 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
222 \begin_layout Chapter
226 \begin_layout Standard
236 』の第二部です。これらの文書を別部とした理由は、単純に『
244 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialChar LyX
245 プロジェクトチームは、\SpecialChar LyX
246 を各設定ファイルと外部パッケージによって拡張
247 可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialChar LaTeX
248 パッケージをサポートしたい場合に、\SpecialChar LyX
249 自身に変更を加えることなく、当該パッケージ用のレイアウトファイ
250 ル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています。この取扱説明書は、そのよう
251 な形での貢献を文書化する冊子として位置付けられています。
254 \begin_layout Standard
255 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
256 しています。さらに、\SpecialChar LaTeX
257 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialChar LaTeX
258 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialChar LyX
260 ることを企図しているため、\SpecialChar LaTeX
261 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
264 \begin_layout Standard
269 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
273 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
277 』をよくお読みになって、\SpecialChar LyX
281 \begin_layout Standard
282 この取扱説明書の取り上げられている話題は、\SpecialChar LyX
284 にどう関わっているかに強く関係していますので、まず次章では、\SpecialChar LyX
285 の内部動作がどうなっているか、LyXに希望する\SpecialChar LaTeX
287 確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialChar LyX
291 \begin_layout Chapter
297 \begin_layout Section
303 \begin_layout Standard
314 熟練者と\SpecialChar LaTeX
315 に興味のある方向けの章です。ここでは、\SpecialChar LyX
317 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全取扱説明書中で本章だけは、\SpecialChar LaTeX
319 を多少なりともご存知であることを前提とします。
322 \begin_layout Standard
333 は、「\SpecialChar LaTeX
352 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialChar LaTeX
353 のフロントエンドは、いくつも出回っています
357 \begin_layout Plain Layout
367 有名なものとしては、Linux上の\SpecialChar TeX
368 makerとkile、OSX上の\SpecialChar TeX
369 shopなどがあります。もちろんviとemacsの\SpecialChar LaTeX
375 。これらは、基本的に\SpecialChar LaTeX
376 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialChar LyX
377 も、エディタであり、\SpecialChar LaTeX
379 中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
398 を効果的に使うのに、\SpecialChar LaTeX
399 の知識が必要とされないことが挙げられます。また\SpecialChar LyX
400 は、それ自身、いくつかの拡張を\SpecialChar LaTeX
401 に加えています。時間のあるときにでも、いちど以下の手順を試してみ
412 \begin_inset Flex MenuItem
415 \begin_layout Plain Layout
442 \begin_inset Flex MenuItem
445 \begin_layout Plain Layout
448 エクスポート\SpecialChar menuseparator
474 \begin_inset Flex MenuItem
477 \begin_layout Plain Layout
480 表示\SpecialChar menuseparator
496 \begin_inset Flex Code
499 \begin_layout Plain Layout
507 ファイルのプリアンブルをご覧ください。\SpecialChar LyX
508 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
517 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
520 \begin_layout Standard
530 自動的に\SpecialChar LaTeX
531 を実行するコマンドが、以下のようにいくつかあります。
534 \begin_layout Itemize
535 \begin_inset Flex MenuItem
538 \begin_layout Plain Layout
539 表示\SpecialChar menuseparator
550 \begin_layout Itemize
553 \begin_inset Flex MenuItem
556 \begin_layout Plain Layout
559 表示\SpecialChar menuseparator
560 更新\SpecialChar menuseparator
571 \begin_layout Itemize
574 \begin_inset Flex MenuItem
577 \begin_layout Plain Layout
578 ファイル\SpecialChar menuseparator
587 \begin_layout Itemize
590 \begin_inset Flex MenuItem
593 \begin_layout Plain Layout
594 ファイル\SpecialChar menuseparator
603 \begin_layout Standard
613 これらは、最後に\SpecialChar LaTeX
614 を実行してからファイルに変更が加えられた場合のみ、\SpecialChar LaTeX
618 \begin_layout Standard
629 が編集中のファイルを\SpecialChar LaTeX
630 にかけるとき、\SpecialChar LyX
634 \begin_layout Enumerate
644 文書を\SpecialChar LaTeX
646 \begin_inset Flex Code
649 \begin_layout Plain Layout
665 \begin_inset Flex Code
668 \begin_layout Plain Layout
686 \begin_layout Enumerate
697 \begin_inset Flex Code
700 \begin_layout Plain Layout
715 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
716 を実行し、\SpecialChar LaTeX
717 ファイルをコンパイルするのに必要な他のコマンド(
718 \begin_inset Flex Code
721 \begin_layout Plain Layout
737 \begin_inset Flex Code
740 \begin_layout Plain Layout
758 \begin_layout Enumerate
771 \begin_layout Standard
792 \begin_inset Flex MenuItem
795 \begin_layout Plain Layout
798 表示\SpecialChar menuseparator
813 を使用して実行した場合には、\SpecialChar LyX
814 はこの後、DVIビューアを実行してDVIファイルを表示します。
815 \begin_inset Flex MenuItem
818 \begin_layout Plain Layout
828 表示\SpecialChar menuseparator
834 を使用した場合には、\SpecialChar LyX
838 \begin_layout Itemize
848 \begin_inset Flex Code
851 \begin_layout Plain Layout
889 \begin_layout Itemize
899 \begin_inset Flex Code
902 \begin_layout Plain Layout
910 などのPostScript®ビューアを実行して、PostScript®
922 \begin_layout Standard
924 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
927 \begin_layout Section
929 ファイルを\SpecialChar LyX
933 \begin_layout Standard
938 \begin_inset Flex MenuItem
941 \begin_layout Plain Layout
944 ファイル\SpecialChar menuseparator
945 インポート\SpecialChar menuseparator
961 コマンドを使用すると、\SpecialChar LaTeX
979 にインポートすることができます。このコマンドは、
989 \begin_inset Flex Code
992 \begin_layout Plain Layout
1019 \begin_inset Flex Code
1022 \begin_layout Plain Layout
1033 \begin_inset Flex Code
1036 \begin_layout Plain Layout
1044 を生成します。\SpecialChar LyX
1049 \begin_layout Plain Layout
1050 \begin_inset Flex Code
1053 \begin_layout Plain Layout
1059 は、もちろんコマンドラインから実行することもできます。
1067 \begin_layout Standard
1070 \begin_inset Flex Code
1073 \begin_layout Plain Layout
1090 は、文法的に正しい\SpecialChar LaTeX
1091 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1101 \begin_inset Flex Code
1104 \begin_layout Plain Layout
1121 は、理解不能な部分は\SpecialChar TeX
1122 コードボックスの形で残しますので、ファイルを
1132 \begin_inset Flex Code
1135 \begin_layout Plain Layout
1152 で変換したのち、\SpecialChar TeX
1153 コードボックスを探して、手動で正しく編集してください。
1156 \begin_layout Standard
1167 コードボックスがなにかご存じなければ、次節をお読みください。
1170 \begin_layout Section
1173 \begin_inset CommandInset label
1175 name "sec:LaTeXコードを挿入する"
1182 \begin_layout Standard
1193 文書にもつねに\SpecialChar TeX
1194 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialChar LaTeX
1195 にできることは、つねに\SpecialChar LyX
1196 でも行うことができます。一方、\SpecialChar LyX
1197 は、すべての\SpecialChar LaTeX
1198 構成物を\SpecialChar LyX
1200 表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialChar LaTeX
1201 コマンドを\SpecialChar LyX
1203 \begin_inset Flex Code
1206 \begin_layout Plain Layout
1232 \begin_inset Flex MenuItem
1235 \begin_layout Plain Layout
1238 挿入\SpecialChar menuseparator
1264 \begin_inset Flex Ruby
1267 \begin_layout Plain Layout
1287 \begin_inset Argument post:1
1290 \begin_layout Plain Layout
1302 \begin_inset Flex Ruby
1305 \begin_layout Plain Layout
1316 \begin_inset Argument post:1
1319 \begin_layout Plain Layout
1348 \begin_layout Standard
1349 以下は、\SpecialChar LaTeX
1350 コマンドを\SpecialChar LyX
1351 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1354 \begin_layout LyX-Code
1358 \begin_inset Newline newline
1363 begin{minipage}{5cm}
1364 \begin_inset Newline newline
1368 \begin_inset Newline newline
1372 \begin_inset Newline newline
1376 \begin_inset Newline newline
1380 \begin_inset Newline newline
1384 \begin_inset Newline newline
1390 \begin_inset Newline newline
1394 \begin_inset Newline newline
1399 begin{minipage}{5cm}
1400 \begin_inset Newline newline
1406 \begin_inset Newline newline
1411 begin{minipage}{5cm}
1412 \begin_inset Newline newline
1417 \begin_inset Newline newline
1423 \begin_inset Newline newline
1429 \begin_inset Newline newline
1435 \begin_inset Newline newline
1443 \begin_layout LyX-Code
1447 \begin_layout Standard
1449 \begin_inset Flex Code
1452 \begin_layout Plain Layout
1459 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialChar LyX
1460 上でご覧になっていれば、\SpecialChar TeX
1461 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実際の結果が見
1465 \begin_layout Standard
1466 \begin_inset VSpace bigskip
1473 \begin_layout Plain Layout
1480 \begin_layout Plain Layout
1484 begin{minipage}{5cm}
1487 \begin_layout Plain Layout
1489 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。
1494 \begin_layout Plain Layout
1499 \begin_layout Plain Layout
1503 begin{minipage}{5cm}
1506 \begin_layout Plain Layout
1513 \begin_layout Plain Layout
1517 begin{minipage}{5cm}
1520 \begin_layout Plain Layout
1528 \begin_layout Plain Layout
1535 \begin_layout Plain Layout
1542 \begin_layout Plain Layout
1552 \begin_inset VSpace bigskip
1558 \begin_layout Standard
1569 コードを使用する方法に加えて、複雑な\SpecialChar LaTeX
1570 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1571 \begin_inset Flex MenuItem
1574 \begin_layout Plain Layout
1584 挿入\SpecialChar menuseparator
1585 ファイル\SpecialChar menuseparator
1591 を使用する方法もあります(取り込みの型として
1592 \begin_inset Flex Code
1595 \begin_layout Plain Layout
1610 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1628 場合のみに限った方がよいでしょう。さもないと、\SpecialChar LaTeX
1629 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1632 \begin_layout Standard
1642 最後に、いくつか強調しておくべきことがあります。
1645 \begin_layout Itemize
1656 は、あなたの\SpecialChar LaTeX
1678 \begin_layout Itemize
1688 車輪の再発明をしないようにご注意ください。
1691 \begin_layout Standard
1701 二番目の点に関して、\SpecialChar LyX
1702 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialChar LaTeX
1703 コードを書かなくてはならないと思い込む前に、LyXがこれこれの
1704 機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありとあらゆることを行
1705 う膨大な数の\SpecialChar LaTeX
1716 \begin_inset CommandInset href
1719 target "http://www.ctan.org/"
1733 \begin_inset CommandInset ref
1735 reference "chap:Special-features"
1742 \begin_layout Standard
1752 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialChar LaTeX
1753 関連書籍を参考とするようにしてください。『
1771 』の書誌情報に多くの\SpecialChar LaTeX
1775 \begin_layout Section
1781 \begin_layout Subsection
1786 \begin_layout Standard
1796 すでに\SpecialChar LaTeX
1797 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は得られるは
1798 ずです。詳しくは\SpecialChar LaTeX
1799 関連書籍をご参照ください。いずれにしても、以下で\SpecialChar LyX
1800 文書の\SpecialChar LaTeX
1801 プリアンブルで何ができるか、または何をする必要がないか説明をしますので、以下の各要点はお読
1805 \begin_layout Standard
1816 プリアンブルは、\SpecialChar LaTeX
1835 の部分に来ます。ここでは以下のことを行います。
1838 \begin_layout Itemize
1848 文書クラス(ドキュメントクラス)の宣言。
1849 \begin_inset Newline newline
1853 がすでに行ってくれています。もしあなたが熟達した\SpecialChar LaTeX
1854 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1872 』をご覧になれば、\SpecialChar LyX
1873 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1876 \begin_layout Itemize
1887 \begin_inset Newline newline
1891 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別なコマンドが
1892 提供されることに加え、文書に変更を加えることができます。例えば
1911 \begin_inset Flex Code
1914 \begin_layout Plain Layout
1922 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1925 \begin_layout Itemize
1936 \begin_inset Newline newline
1940 のカウンタと変数の中には、プリアンブルでグローバルに
1960 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1961 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1964 \begin_layout Itemize
1975 \begin_inset Flex Code
1978 \begin_layout Plain Layout
1996 \begin_inset Flex Code
1999 \begin_layout Plain Layout
2017 \begin_inset Newline newline
2020 ユーザー定義コマンドは、文書中で頻出する\SpecialChar LaTeX
2021 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2039 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialChar LaTeX
2040 コードがあふれている場合には便利でしょう。
2043 \begin_layout Standard
2055 \begin_inset Flex Code
2058 \begin_layout Plain Layout
2073 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialChar LyX
2074 の生成する\SpecialChar LaTeX
2078 \begin_layout Subsection
2082 \begin_layout Standard
2094 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialChar LyX
2095 自体にパッチを当てないかぎり変更できないようになっています。しかしながら、
2096 \begin_inset Flex MenuItem
2099 \begin_layout Plain Layout
2109 文書\SpecialChar menuseparator
2116 \begin_inset Flex MenuItem
2119 \begin_layout Plain Layout
2135 の項から、プリアンブルに追加をすることはできます。\SpecialChar LyX
2146 \begin_inset Flex MenuItem
2149 \begin_layout Plain Layout
2166 ダイアログ内のすべてのものを、\SpecialChar LyX
2167 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialChar LyX
2169 ないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2180 プリアンブルコードが正しいことを確認してください。
2193 \begin_inset Flex Code
2196 \begin_layout Plain Layout
2213 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2216 \begin_layout Subsection
2220 \begin_layout Standard
2230 以下は、プリアンブルに追加できるものとその効果を示す例です。
2233 \begin_layout Subsubsection
2237 \begin_layout Standard
2267 \begin_inset Flex Code
2270 \begin_layout Plain Layout
2290 \begin_inset Flex Code
2293 \begin_layout Plain Layout
2312 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2313 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2314 \begin_inset Flex Code
2317 \begin_layout Plain Layout
2337 \begin_inset Flex Code
2340 \begin_layout Plain Layout
2355 \begin_layout Standard
2365 \begin_inset Flex Code
2368 \begin_layout Plain Layout
2388 \begin_inset Flex Code
2391 \begin_layout Plain Layout
2410 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2411 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialChar LyX
2412 を使用していて、シスアドがお馬鹿さんである
2414 \begin_inset Flex Code
2417 \begin_layout Plain Layout
2437 \begin_inset Flex Code
2440 \begin_layout Plain Layout
2459 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2462 \begin_layout LyX-Code
2470 \begin_layout LyX-Code
2478 \begin_layout Standard
2491 \begin_layout Subsubsection
2495 \begin_layout Standard
2505 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2506 \begin_inset Flex Code
2509 \begin_layout Plain Layout
2517 という\SpecialChar LaTeX
2518 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお確かめくだ
2519 さい。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だけお見せす
2523 \begin_layout Standard
2534 \begin_inset Flex Code
2537 \begin_layout Plain Layout
2545 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2548 \begin_layout LyX-Code
2554 \begin_layout LyX-Code
2560 \begin_layout LyX-Code
2566 \begin_layout LyX-Code
2572 \begin_layout LyX-Code
2578 \begin_layout LyX-Code
2584 \begin_layout LyX-Code
2590 \begin_layout Standard
2609 Avery®ラベルシートのストック5360
2618 番を使用する場合の設定です。これで、各宛名を
2619 \begin_inset Flex Code
2622 \begin_layout Plain Layout
2642 \begin_inset Flex Code
2645 \begin_layout Plain Layout
2664 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2665 \begin_inset Flex Code
2668 \begin_layout Plain Layout
2679 \begin_layout Standard
2689 そのうち誰かが、このパッケージを直接サポートする\SpecialChar LyX
2690 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2693 \begin_layout Subsubsection
2697 \begin_layout Standard
2727 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2744 \begin_layout Standard
2754 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2772 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2776 \begin_layout Standard
2786 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2790 \begin_layout LyX-Code
2793 usepackage{indentfirst}
2796 \begin_layout Standard
2806 もしお使いの\SpecialChar TeX
2807 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2810 \begin_layout Subsubsection
2814 \begin_layout Standard
2824 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2834 \begin_inset CommandInset ref
2836 reference "chap:Special-features"
2849 章には、他の例や、\SpecialChar LaTeX
2853 \begin_layout Section
2855 および\SpecialChar LaTeX
2859 \begin_layout Standard
2871 を呼び出す際、\SpecialChar LyX
2873 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialChar LyX
2874 は、\SpecialChar LaTeX
2875 の実行ログファイルを事後処理用に使います。ログファイルを分
2876 析したのち、\SpecialChar LyX
2877 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialChar LyX
2878 ファイル中、そのエラーの発生した場所に表示を移動します
2882 \begin_layout Plain Layout
2892 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialChar LyX
2893 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialChar LaTeX
2895 たとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されますが、実際にエラ
2896 ーのある場所よりも後ろでエラーが報告されるのです。
2913 \begin_layout Standard
2923 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2924 \begin_inset Flex MenuItem
2927 \begin_layout Plain Layout
2937 文書\SpecialChar menuseparator
2944 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La\SpecialChar TeX
2949 \begin_layout Itemize
2952 \begin_inset Flex Code
2955 \begin_layout Plain Layout
2962 \begin_layout Plain Layout
2984 \begin_inset Newline newline
2987 これで始まるメッセージは、\SpecialChar LaTeX
2988 コード自体を「デバッグ」するための警告メッセージです。相互参照や書誌情報を追加したり変更した場合に、もう一度\SpecialChar LaTeX
2990 知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2993 \begin_layout Itemize
2996 \begin_inset Flex Code
2999 \begin_layout Plain Layout
3006 \begin_layout Plain Layout
3028 \begin_inset Newline newline
3032 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialChar LaTeX
3033 が使用した代替フォントに関する情報が続きます。これも無視して構いません
3037 \begin_layout Itemize
3047 \begin_inset Flex Code
3050 \begin_layout Plain Layout
3061 \begin_inset Newline newline
3083 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3084 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialChar LaTeX
3085 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3086 \begin_inset Newline newline
3089 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3093 \begin_layout Plain Layout
3095 \begin_inset Flex MenuItem
3098 \begin_layout Plain Layout
3099 文書\SpecialChar menuseparator
3105 で「draft」オプションを指定する方法もあります。こうすると、\SpecialChar LaTeX
3106 は、overfullの発生した行の余白に黒い四角を描画します。
3114 \begin_layout Itemize
3117 \begin_inset Flex Code
3120 \begin_layout Plain Layout
3131 \begin_inset Newline newline
3143 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialChar LaTeX
3144 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3147 \begin_layout Itemize
3148 \begin_inset Flex Code
3151 \begin_layout Plain Layout
3164 \begin_inset Flex Code
3167 \begin_layout Plain Layout
3180 \begin_inset Newline newline
3192 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3195 \begin_layout Itemize
3198 \begin_inset Flex Code
3201 \begin_layout Plain Layout
3208 \begin_layout Plain Layout
3216 \begin_inset Quotes els
3220 \begin_inset Quotes ers
3238 \begin_inset Newline newline
3241 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialChar LaTeX
3242 パッケージに、導入済でないものがある場合に現れます。プリアンブルに変更を加
3244 \begin_inset Flex Code
3247 \begin_layout Plain Layout
3257 コマンドも使用していないとすれば、\SpecialChar LyX
3258 が読み込もうしているパッケージに存在しないものがあるということです。
3268 \begin_inset Flex MenuItem
3271 \begin_layout Plain Layout
3272 ヘルプ\SpecialChar menuseparator
3288 を使用して、\SpecialChar LyX
3289 が認識しているパッケージの一覧を得てください。このファイルは、(
3290 \begin_inset Flex MenuItem
3293 \begin_layout Plain Layout
3303 ツール\SpecialChar menuseparator
3309 を使用して)\SpecialChar LyX
3310 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3311 \begin_inset Newline newline
3324 \begin_inset Flex Code
3327 \begin_layout Plain Layout
3346 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3349 \begin_layout Itemize
3352 \begin_inset Flex Code
3355 \begin_layout Plain Layout
3362 \begin_layout Plain Layout
3369 X Error: Unknown option
3384 \begin_inset Newline newline
3387 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3391 \begin_layout Itemize
3394 \begin_inset Flex Code
3397 \begin_layout Plain Layout
3400 Undefined control sequence
3415 \begin_inset Newline newline
3418 お使いの文書に\SpecialChar LaTeX
3419 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれません。い
3420 ずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3423 \begin_layout Standard
3433 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialChar LaTeX
3434 のメッセージです。何を言っているのかさっぱりわからないものもあ
3435 りますが、通常これらは、\SpecialChar TeX
3436 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3454 手がかりがありません。誰もわからないのです。
3457 \begin_layout Standard
3467 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3470 \begin_layout Enumerate
3480 ご自分で挿入した\SpecialChar LaTeX
3481 コードに打ち間違いがないかどうか確かめる。
3484 \begin_layout Enumerate
3494 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3497 \begin_layout Enumerate
3507 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3508 \begin_inset Flex Code
3511 \begin_layout Plain Layout
3528 が表示されているならば—、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3531 \begin_layout Enumerate
3541 プリアンブルに何も追加せず、文書に\SpecialChar LaTeX
3542 コードをまったく挿入しなかった場合には、\SpecialChar LaTeX
3543 頒布版自体をまず疑ってください。導入されていないパッケージを探しだして、導入してくださ
3547 \begin_layout Enumerate
3557 導入されていないパッケージはなかったものとしましょう。\SpecialChar LyX
3558 を微調整するオプションを使用していますか。特に、手動で
3559 \begin_inset Flex Code
3562 \begin_layout Plain Layout
3566 \begin_inset space ~
3575 \begin_inset Flex Code
3578 \begin_layout Plain Layout
3596 \begin_inset Flex Code
3599 \begin_layout Plain Layout
3616 などをたくさん挿入するなど、微調整オプションを
3634 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3637 \begin_layout Enumerate
3647 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3648 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3651 \begin_layout Enumerate
3653 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialChar LaTeX
3654 はかなり嫌います。可能であれば、問題が生じな
3655 いように段落を修正するのが望ましいでしょう。それが難しければ、\SpecialChar LaTeX
3656 が改行しやすく(sloppy)なるように、その部分を
3659 \begin_inset Flex Code
3662 \begin_layout Plain Layout
3677 \begin_layout Enumerate
3687 入れ子の階層を深くしすぎていませんか。\SpecialChar LyX
3688 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら、それ
3689 が原因です(\SpecialChar LaTeX
3693 \begin_layout Enumerate
3703 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3711 \begin_inset Separator parbreak
3718 \begin_layout Enumerate
3731 \begin_layout Enumerate
3744 \begin_layout Standard
3758 \begin_layout Enumerate
3759 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3762 \begin_layout Standard
3794 \begin_layout Chapter
3798 \begin_layout Section
3803 \begin_layout Standard
3811 文献データベース(Bib\SpecialChar TeX
3814 」の節に説明があります。以下の各小節では、\SpecialChar LyX
3815 でサポートされている書誌情報の特別な機能について説明することとします。
3818 \begin_layout Subsection
3822 \begin_layout Standard
3823 標準のBib\SpecialChar TeX
3824 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。もっとも
3825 よく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialChar LyX
3827 \begin_inset Flex Code
3830 \begin_layout Plain Layout
3837 \begin_inset Flex Code
3840 \begin_layout Plain Layout
3846 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3848 \begin_inset Flex Code
3851 \begin_layout Plain Layout
3857 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3858 \begin_inset Flex Code
3861 \begin_layout Plain Layout
3867 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3872 \begin_inset Flex Code
3875 \begin_layout Plain Layout
3881 パッケージの利用を考えるとよいかもしれません。
3884 \begin_layout Standard
3886 での両パッケージの取扱い方は、ほぼ同じです。
3887 \begin_inset Flex MenuItem
3890 \begin_layout Plain Layout
3891 文書\SpecialChar menuseparator
3898 \begin_inset Flex MenuItem
3901 \begin_layout Plain Layout
3908 \begin_inset Flex MenuItem
3911 \begin_layout Plain Layout
3918 \begin_inset Flex MenuItem
3921 \begin_layout Plain Layout
3927 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3928 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3929 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3930 \begin_inset Flex Code
3933 \begin_layout Plain Layout
3939 に至っては、対話的なスタイルファイルビルダーさえ存在します
3943 \begin_layout Plain Layout
3944 \begin_inset Flex URL
3947 \begin_layout Plain Layout
3949 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3962 \begin_layout Subsection
3966 \begin_layout Standard
3967 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3968 でさえあります。残念ながら、Bib\SpecialChar TeX
3969 自身ではこのようなことができません。しかし、適切な\SpecialChar LaTeX
3970 パッケージの助けを借りると、Bib\SpecialChar TeX
3971 をこのような必要性を満たすように拡張するこ
3975 \begin_layout Standard
3978 \begin_inset Flex Code
3981 \begin_layout Plain Layout
3991 \begin_layout Plain Layout
3992 \begin_inset Flex URL
3995 \begin_layout Plain Layout
3997 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4007 をそのままでサポートします。このパッケージの長所は、(
4008 \begin_inset Flex Code
4011 \begin_layout Plain Layout
4017 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
4018 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
4019 \begin_inset Flex Code
4022 \begin_layout Plain Layout
4029 \begin_inset Flex Code
4032 \begin_layout Plain Layout
4041 \begin_layout Standard
4042 \begin_inset Flex MenuItem
4045 \begin_layout Plain Layout
4046 文書\SpecialChar menuseparator
4053 \begin_inset Flex MenuItem
4056 \begin_layout Plain Layout
4063 \begin_inset Flex MenuItem
4066 \begin_layout Plain Layout
4072 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialChar TeX
4074 \begin_inset Flex Code
4077 \begin_layout Plain Layout
4084 \begin_inset Flex Code
4087 \begin_layout Plain Layout
4093 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4094 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4095 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4097 \begin_inset Flex Code
4100 \begin_layout Plain Layout
4106 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4109 \begin_layout Subsection
4113 \begin_layout Standard
4114 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialChar TeX
4115 自身ではサポートされていません。しかしながら、もし若干の
4116 \begin_inset Flex Code
4119 \begin_layout Plain Layout
4127 \begin_inset CommandInset ref
4129 reference "sec:LaTeXコードを挿入する"
4133 節を参照)を利用することを厭わなければ、\SpecialChar LyX
4134 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4135 \begin_inset Flex Code
4138 \begin_layout Plain Layout
4144 パッケージが、この課題を解決する簡単な方法を提供します
4148 \begin_layout Plain Layout
4150 \begin_inset Flex Code
4153 \begin_layout Plain Layout
4160 \begin_inset Flex Code
4163 \begin_layout Plain Layout
4177 \begin_layout Standard
4179 \begin_inset Flex MenuItem
4182 \begin_layout Plain Layout
4183 文書\SpecialChar menuseparator
4190 \begin_inset Flex MenuItem
4193 \begin_layout Plain Layout
4200 \begin_inset Flex MenuItem
4203 \begin_layout Plain Layout
4209 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialChar TeX
4211 \begin_inset Flex Code
4214 \begin_layout Plain Layout
4223 \begin_inset Flex Code
4226 \begin_layout Plain Layout
4234 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4235 コードとして挿入する必要があります)。書誌情報には、現在位置の
4236 \begin_inset Flex Code
4239 \begin_layout Plain Layout
4245 において引用されたすべての参照が含まれることになります。
4249 この方法を用いる場合には、すべての参照はいずれかの
4250 \begin_inset Flex Code
4253 \begin_layout Plain Layout
4260 \begin_inset Flex Code
4263 \begin_layout Plain Layout
4272 \begin_layout Section
4276 \begin_layout Subsection
4280 \begin_layout Standard
4281 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4282 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4283 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialChar LyX
4284 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4288 \begin_layout Plain Layout
4293 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4299 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4300 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4301 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりません。a
4302 rticleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialChar LaTeX
4303 ファイルをインクルードすることもできますが、このファイルにはプリアンブルがあって
4305 \begin_inset Flex Code
4308 \begin_layout Plain Layout
4317 \begin_inset Flex Code
4320 \begin_layout Plain Layout
4328 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4331 \begin_layout Standard
4335 挿入\SpecialChar menuseparator
4336 ファイル\SpecialChar menuseparator
4339 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4340 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4343 \begin_layout Standard
4344 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4345 「input」の違いは、正確には\SpecialChar LaTeX
4346 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁から組版さ
4347 れるのに対し、「input」されたファイルは現在のページから組版される点です。
4350 \begin_layout Standard
4351 一般に、マスターファイルは、組版前に完全な\SpecialChar LaTeX
4352 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialChar LaTeX
4356 \begin_layout Standard
4357 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4358 \begin_inset Flex Code
4361 \begin_layout Plain Layout
4367 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialChar LyX
4368 での空白の取扱いとは違って、連続した複数の空白がそのまま出力されるものの
4372 \begin_inset Flex MenuItem
4375 \begin_layout Plain Layout
4385 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4388 \begin_layout Subsection
4392 \begin_layout Standard
4393 \begin_inset Box Shadowbox
4403 height_special "totalheight"
4408 backgroundcolor "none"
4411 \begin_layout Plain Layout
4412 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4420 \begin_layout Standard
4421 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4422 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4426 \begin_layout Subsection
4430 \begin_layout Standard
4431 \begin_inset Box Shadowbox
4441 height_special "totalheight"
4446 backgroundcolor "none"
4449 \begin_layout Plain Layout
4450 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4458 \begin_layout Standard
4459 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialChar LyX
4460 は.bibファイルを見つけることができ、書誌情報
4461 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4464 \begin_layout Standard
4465 書誌情報一覧がコメントにあるために、\SpecialChar LaTeX
4466 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメントをイン
4467 クルードする\SpecialChar LaTeX
4469 \begin_inset Flex Code
4472 \begin_layout Plain Layout
4478 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4481 \begin_layout LyX-Code
4487 \begin_layout LyX-Code
4490 includecomment{comment}
4493 \begin_layout Standard
4494 \begin_inset Flex URL
4497 \begin_layout Plain Layout
4499 http://wiki.lyx.org/FAQ/Unsorted#toc31
4507 \begin_layout Section
4512 \begin_layout Standard
4513 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialChar LyX
4514 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります。\SpecialChar LyX
4516 2.0には、この過程を自動化するPythonスクリプト(
4517 \begin_inset Flex Code
4520 \begin_layout Plain Layout
4527 \begin_inset Flex Code
4530 \begin_layout Plain Layout
4537 \begin_inset Flex Code
4540 \begin_layout Plain Layout
4546 pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4547 \begin_inset Flex Code
4550 \begin_layout Plain Layout
4557 \begin_inset Flex Code
4560 \begin_layout Plain Layout
4566 ファイル形式が優先され、Windowsでは
4567 \begin_inset Flex Code
4570 \begin_layout Plain Layout
4579 \begin_layout Standard
4581 の環境構成時には、「\SpecialChar LyX
4582 書庫」を書き出すことができるようにスクリプトが準備され、
4583 \begin_inset Flex MenuItem
4586 \begin_layout Plain Layout
4587 ファイル\SpecialChar menuseparator
4596 \begin_layout Standard
4597 \begin_inset Flex MenuItem
4600 \begin_layout Plain Layout
4601 ツール\SpecialChar menuseparator
4602 設定\SpecialChar menuseparator
4603 ファイル処理\SpecialChar menuseparator
4610 \begin_inset Flex MenuItem
4613 \begin_layout Plain Layout
4615 \SpecialChar menuseparator
4623 \begin_inset Flex Code
4626 \begin_layout Plain Layout
4633 \begin_inset Flex Code
4636 \begin_layout Plain Layout
4642 スイッチを加えることで、プラットホームとは独立に、
4643 \begin_inset Flex Code
4646 \begin_layout Plain Layout
4653 \begin_inset Flex Code
4656 \begin_layout Plain Layout
4662 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4665 \begin_layout Section
4669 \begin_layout Standard
4670 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4671 \begin_inset Flex Code
4674 \begin_layout Plain Layout
4680 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4685 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialChar LaTeX
4687 る必要のある\SpecialChar LaTeX
4691 \begin_layout Standard
4692 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4693 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4697 \begin_inset Flex Code
4700 \begin_layout Plain Layout
4715 \begin_inset Flex Code
4718 \begin_layout Plain Layout
4733 \begin_inset Flex Code
4736 \begin_layout Plain Layout
4749 \begin_inset Flex Code
4752 \begin_layout Plain Layout
4760 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4763 \begin_layout Standard
4771 \begin_layout Standard
4772 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4776 \begin_layout Standard
4782 \begin_inset Newline newline
4790 \begin_layout Standard
4791 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4792 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4795 \begin_layout Standard
4805 \begin_layout Standard
4813 \begin_layout Standard
4823 \begin_layout Standard
4831 \begin_layout Standard
4839 \begin_layout Standard
4849 \begin_layout Standard
4853 \begin_inset Flex Code
4856 \begin_layout Plain Layout
4873 \begin_inset Flex Code
4876 \begin_layout Plain Layout
4888 は、それぞれ\SpecialChar LaTeX
4889 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4890 \begin_inset Flex Code
4893 \begin_layout Plain Layout
4908 \begin_layout Standard
4909 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4910 フッタ罫線は0ptです。太さを変更するには、
4913 \begin_inset Flex Code
4916 \begin_layout Plain Layout
4923 headrulewidth}{0.4pt}
4933 \begin_inset Flex Code
4936 \begin_layout Plain Layout
4943 footrulewidth}{0.4pt}
4953 \begin_layout Standard
4954 \begin_inset Flex Code
4957 \begin_layout Plain Layout
4962 thispagestyle{empty}
4968 \begin_inset Flex Code
4971 \begin_layout Plain Layout
4976 thispagestyle{plain}
4982 \begin_inset Flex Code
4985 \begin_layout Plain Layout
4990 thispagestyle{fancy}
4995 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialChar TeX
4997 挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプレーン
4998 (plain)になるように設定されているのです。
5001 \begin_layout Standard
5002 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
5003 \begin_inset Flex Code
5006 \begin_layout Plain Layout
5014 パッケージの取扱説明書をご参照ください(
5015 \begin_inset Flex Code
5018 \begin_layout Plain Layout
5027 \begin_layout Standard
5028 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5031 \begin_layout Standard
5040 includegraphics{logo.eps}}}
5043 \begin_layout Standard
5045 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5046 \begin_inset Newline newline
5050 \begin_inset Flex Code
5053 \begin_layout Plain Layout
5059 usepackage{graphics}
5064 をプリアンブルに宣言する必要があります)。
5067 \begin_layout Section
5069 \begin_inset CommandInset label
5078 \begin_layout Standard
5084 \begin_layout Subsection
5088 \begin_layout Standard
5090 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形を変更
5091 することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5095 \begin_layout Plain Layout
5096 正確には可能ですが、手動で行う必要があります。
5104 \begin_layout Subsection
5108 \begin_layout Standard
5110 \begin_inset Flex MenuItem
5113 \begin_layout Plain Layout
5114 文書\SpecialChar menuseparator
5121 \begin_inset Flex MenuItem
5124 \begin_layout Plain Layout
5133 \begin_layout Standard
5134 このダイアログは、ブリット形の一覧表を提示します。
5135 \begin_inset Flex MenuItem
5138 \begin_layout Plain Layout
5144 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5145 \begin_inset Flex MenuItem
5148 \begin_layout Plain Layout
5154 パネルは、変更したい階層を選択するものです。
5155 \begin_inset Flex MenuItem
5158 \begin_layout Plain Layout
5164 では、指定したい\SpecialChar LaTeX
5165 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5169 \begin_layout Standard
5170 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialChar LaTeX
5172 \begin_inset Separator parbreak
5178 \begin_layout Standard
5180 \begin_inset Tabular
5181 <lyxtabular version="3" rows="7" columns="2">
5182 <features tabularvalignment="middle">
5183 <column alignment="center" valignment="top" width="0pt">
5184 <column alignment="center" valignment="top" width="0pt">
5186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5189 \begin_layout Plain Layout
5195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5198 \begin_layout Plain Layout
5215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5218 \begin_layout Plain Layout
5226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5229 \begin_layout Plain Layout
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Plain Layout
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5269 \begin_layout Plain Layout
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5289 \begin_layout Plain Layout
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Plain Layout
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5327 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5345 \begin_layout Plain Layout
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5365 \begin_layout Plain Layout
5380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5383 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5421 \begin_layout Plain Layout
5444 \begin_layout Standard
5446 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5448 パッケージが導入されていない可能性が大です
5452 \begin_layout Plain Layout
5454 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5462 \begin_layout Subsection
5466 \begin_layout Standard
5467 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialChar LyX
5468 上には反映されませんが、文書の表示を行えば確認されます。
5471 \begin_layout Standard
5472 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5476 \begin_layout Plain Layout
5481 段落ごとに異なるブリットの形を使いたいならば、\SpecialChar TeX
5482 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTeXコー
5483 ドを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5486 \begin_layout Plain Layout
5490 \begin_layout Plain Layout
5506 \begin_layout Plain Layout
5510 \begin_layout Plain Layout
5532 \begin_layout Itemize
5533 特定の階層の新しいブリット形を指定するには、\SpecialChar LaTeX
5535 \begin_inset Flex Code
5538 \begin_layout Plain Layout
5548 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5549 更するために、以下の\SpecialChar LaTeX
5551 \begin_inset Separator parbreak
5558 \begin_layout LyX-Code
5570 \begin_layout LyX-Code
5589 \begin_layout Itemize
5591 \begin_inset Flex Code
5594 \begin_layout Plain Layout
5602 コマンドの一部にローマ数字で指定されていることに注意してください。
5605 \begin_layout Itemize
5609 \begin_layout Plain Layout
5622 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5623 \begin_inset Flex Code
5626 \begin_layout Plain Layout
5633 として挿入してください。たとえば、この項目の行頭には
5636 \begin_inset Flex Code
5639 \begin_layout Plain Layout
5658 \begin_layout Plain Layout
5662 \begin_layout Plain Layout
5678 \begin_layout Plain Layout
5679 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5682 \begin_layout LyX-Code
5699 \begin_layout Chapter
5704 \begin_layout Standard
5706 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書き出し
5707 は、常に外部変換子を用いることで実現されていました
5711 \begin_layout Plain Layout
5713 で外部変換子を使うことについての詳細は、取扱説明書『
5726 。これらは2つのグループに大別できます。1つは、
5727 \begin_inset Flex Code
5730 \begin_layout Plain Layout
5737 \begin_inset Flex Code
5740 \begin_layout Plain Layout
5747 \begin_inset Flex Code
5750 \begin_layout Plain Layout
5756 のように、\SpecialChar LaTeX
5757 を中間形式として用い、その\SpecialChar LaTeX
5758 を生成するのに\SpecialChar LyX
5760 \begin_inset Flex Code
5763 \begin_layout Plain Layout
5770 のように、直接\SpecialChar LyX
5771 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5774 \begin_layout Standard
5776 ベースの変換子は、原則として、\SpecialChar LaTeX
5777 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだりが、\SpecialChar LyX
5779 たのか、\SpecialChar TeX
5780 コードで書かれたのかについては気にしません。これらの変換子は、
5781 \begin_inset Flex Code
5784 \begin_layout Plain Layout
5790 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialChar TeX
5792 \begin_inset Flex Code
5795 \begin_layout Plain Layout
5801 ファイルも利用することがよくあります。一方で、\SpecialChar LaTeX
5802 は解析の非常に難しい言語であり—\SpecialChar TeX
5803 自身だけが\SpecialChar TeX
5804 を理解することができると言われたりすることがあります—、\SpecialChar LaTeX
5806 、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書いている時点では、取扱説明書『
5810 』は、他の変換子では書き出しができるのに、
5811 \begin_inset Flex Code
5814 \begin_layout Plain Layout
5820 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5821 画像へのリンクを張ります。これらの画像は、実は\SpecialChar LaTeX
5822 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現されるよう
5823 に—フォント寸が凡そ正しくなるように—見せようとすると、大変な苦労を伴います。
5826 \begin_layout Standard
5828 \begin_inset Flex Code
5831 \begin_layout Plain Layout
5839 \begin_inset CommandInset href
5841 name "http://elyxer.nongnu.org/"
5842 target "http://elyxer.nongnu.org/"
5846 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5847 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5848 \begin_inset Flex Code
5851 \begin_layout Plain Layout
5857 よりも質が落ちます。これはHTMLの限界を示しています
5861 \begin_layout Plain Layout
5863 \begin_inset Flex Code
5866 \begin_layout Plain Layout
5873 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5879 。さらに重要なことは(少なくとも第1.1.1版においては)、
5880 \begin_inset Flex Code
5883 \begin_layout Plain Layout
5890 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialChar LyX
5892 \begin_inset Flex Code
5895 \begin_layout Plain Layout
5902 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialChar LyX
5903 開発陣は別の方法を採ることとし、\SpecialChar LyX
5906 ことができるのと同様に、\SpecialChar LyX
5907 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5910 \begin_layout Standard
5911 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5915 \begin_layout Plain Layout
5918 \begin_inset CommandInset href
5921 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5926 \begin_inset Flex Code
5929 \begin_layout Plain Layout
5930 development/HTML.notes
5935 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5936 \begin_inset CommandInset href
5939 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"
5943 にあるXHTML関連バグ一覧も参照のこと。
5948 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5951 \begin_layout Standard
5952 これらの利点は、主に、XHTML出力ルーチンが\SpecialChar LyX
5953 の一部となっているため、\SpecialChar LyX
5954 が出力する文書について\SpecialChar LyX
5955 が関知しているところのものは、すべて知り得るというところから来ていま
5960 \begin_layout Plain Layout
5961 他には、これらのルーチンが\SpecialChar LyX
5962 内部にあるため、\SpecialChar LyX
5963 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5968 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5969 るのです。XHTML出力ルーチンは、国際化について\SpecialChar LyX
5970 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5971 1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5974 \begin_layout Standard
5975 汎く一般的に、出力ルーチンは、\SpecialChar LyX
5976 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書をXHT
5977 MLに出力するときには、この情報を利用します。特に、\SpecialChar LyX
5978 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5982 生成します。もし節見出しが、\SpecialChar LyX
5983 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これは、節
5984 のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialChar LyX
5986 式とを区別しません。どちらの場合も、\SpecialChar LyX
5987 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義済み差込枠や、各種
5991 \begin_layout Standard
5992 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialChar LaTeX
5993 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細については、
6001 \begin_layout Standard
6002 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
6005 \begin_layout Section
6009 \begin_layout Standard
6011 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
6014 \begin_layout Itemize
6016 \begin_inset Newline newline
6019 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
6020 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
6022 \begin_inset Newline newline
6026 \begin_inset Flex Code
6029 \begin_layout Plain Layout
6035 パッケージを使用していたり、\SpecialChar TeX
6036 コードを使用しているなどで、もし\SpecialChar LyX
6037 が数式をMathMLとして描画できないとすると、\SpecialChar LyX
6042 \begin_layout Itemize
6044 \begin_inset Newline newline
6048 \begin_inset Flex Code
6051 \begin_layout Plain Layout
6057 は、数式をCSSで装飾したHTMLとして出力します
6061 \begin_layout Plain Layout
6064 \begin_inset Flex Code
6067 \begin_layout Plain Layout
6073 からのHTML出力のために、CSSの一部を拝借しています。
6078 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6079 \begin_inset Flex Code
6082 \begin_layout Plain Layout
6088 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6089 \begin_inset Newline newline
6093 \begin_inset Flex Code
6096 \begin_layout Plain Layout
6102 パッケージを使用していたり、\SpecialChar TeX
6103 コードを使用しているなどで、もし\SpecialChar LyX
6104 が数式をHTMLとして描画できないとすると、\SpecialChar LyX
6109 \begin_layout Itemize
6111 \begin_inset Newline newline
6115 \begin_inset Flex Code
6118 \begin_layout Plain Layout
6124 のように、\SpecialChar LyX
6125 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6129 \begin_layout Plain Layout
6130 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6139 。この方法の利点は、画像が他ならぬ\SpecialChar LaTeX
6140 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くうまく行かな
6141 かったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6142 \begin_inset CommandInset href
6145 target "http://www.lyx.org/trac/ticket/6894"
6150 \begin_inset Newline newline
6154 \begin_inset Flex MenuItem
6157 \begin_layout Plain Layout
6158 文書\SpecialChar menuseparator
6159 設定\SpecialChar menuseparator
6165 の「数式画像の伸縮」パラメータを変更することで制御できます
6169 \begin_layout Plain Layout
6170 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6176 \begin_inset Newline newline
6180 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialChar LaTeX
6181 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialChar LaTeX
6185 \begin_layout Itemize
6188 \begin_inset Newline newline
6191 最後に、\SpecialChar LyX
6192 は、数式を\SpecialChar LaTeX
6193 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialChar LaTeX
6196 \begin_inset CommandInset href
6199 target "http://www.math.union.edu/~dpvc/jsMath/"
6203 のようなツールとともに使用することもできます。\SpecialChar LyX
6204 は、jsMathで必要とされているのと同じように、\SpecialChar LaTeX
6206 \begin_inset Flex Code
6209 \begin_layout Plain Layout
6216 \begin_inset Flex Code
6219 \begin_layout Plain Layout
6226 \begin_inset Flex Code
6229 \begin_layout Plain Layout
6238 \begin_layout Standard
6240 \begin_inset Flex MenuItem
6243 \begin_layout Plain Layout
6244 文書\SpecialChar menuseparator
6245 設定\SpecialChar menuseparator
6251 で選択しなくてはなりません。既定では、\SpecialChar LyX
6252 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6255 \begin_layout Standard
6256 最後に、\SpecialChar LyX
6257 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6261 \begin_layout Plain Layout
6262 その他にも、\SpecialChar LyX
6263 は、差込枠に\SpecialChar TeX
6264 コードが含まれていると画像出力に回帰するので、数式中に
6265 \begin_inset Formula $a=b\relax$
6268 のような無害な\SpecialChar TeX
6269 コードを挿入することによって、画像出力を強制することができます。
6277 \begin_layout Section
6281 \begin_layout Standard
6282 XHTML出力は、書誌情報と引用を完全にサポートしています。
6285 \begin_layout Standard
6286 引用ラベルは、\SpecialChar LyX
6287 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialChar LyX
6288 中の外見と同質またはそれよりも上質な仕上がりとなっています。連番引用を
6289 使用している場合には、\SpecialChar LyX
6290 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力します。著者-出版年
6291 形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialChar LyX
6292 は、Bib\SpecialChar TeX
6293 が行うように出版年に小文字を付します。ラベルは、書誌情報項目とともに印字さ
6294 れます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6297 \begin_layout Standard
6298 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6299 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6303 \begin_layout Standard
6304 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6309 \begin_inset Quotes eld
6312 Context and Logical Form
6313 \begin_inset Quotes erd
6318 Language in Context: Selected Essays
6320 (Oxford: Oxford University Press, 2007), pp.
6326 \begin_inset Quotes eld
6329 Semantics in Context
6330 \begin_inset Quotes erd
6335 Language in Context: Selected Essays
6337 (Oxford: Oxford University Press, 2007), pp.
6341 \begin_layout Standard
6342 これは、遠くないうちに修正されるでしょう。
6345 \begin_layout Standard
6346 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialChar LyX
6347 は同じ情報を繰り返し出力してしまいます。
6350 \begin_layout Section
6354 \begin_layout Standard
6356 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6359 \begin_layout Standard
6364 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6368 \begin_layout Plain Layout
6369 ここでの主な問題は、これらの操作の際に、\SpecialChar LyX
6370 自身は何もしていないという点です。つまり、生の\SpecialChar LaTeX
6371 で入力しなくてはならないようなものをそのまま入力しているのです。
6376 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6379 \begin_layout Itemize
6380 索引項目のグループ化(下層項目): \SpecialChar LyX
6381 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そうしな
6382 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6385 \begin_layout Itemize
6386 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6390 \begin_layout Itemize
6391 相互参照: 相互参照のサポートはありません。\SpecialChar LyX
6392 が「|see\SpecialChar ldots
6393 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみなされま
6397 \begin_layout Itemize
6398 索引項目の整序: \SpecialChar LyX
6399 は整序順の変更をサポートします。\SpecialChar LyX
6400 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項目として取り
6401 出します。現在のところ、\SpecialChar LyX
6402 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6405 \begin_layout Itemize
6406 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialChar LyX
6407 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf」のよ
6408 うな文法はサポートされません。\SpecialChar LyX
6409 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6412 \begin_layout Itemize
6413 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6414 を印字しますので、その索引は必ず置くようにしてください。
6417 \begin_layout Section
6421 \begin_layout Standard
6422 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6425 \begin_layout Chapter
6428 \begin_inset CommandInset label
6437 \begin_layout Section
6441 \begin_layout Standard
6443 サーバー」を使用すると、他のプログラムが、\SpecialChar LyX
6444 と通信したり、\SpecialChar LyX
6445 コマンドを実行させたり、\SpecialChar LyX
6446 の内部状態に関する情報を取得したりすることができるようになります。これは熟練し
6447 たユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialChar LyX
6448 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、LyXに文献引用を「押し込む」こ
6452 \begin_layout Section
6457 \begin_layout Standard
6459 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6460 \begin_inset Flex Code
6463 \begin_layout Plain Layout
6469 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6474 \begin_inset Flex Code
6477 \begin_layout Plain Layout
6489 に特別なオブジェクトとして置かれます)、「
6490 \begin_inset Flex Code
6493 \begin_layout Plain Layout
6500 \begin_inset Flex Code
6503 \begin_layout Plain Layout
6509 」という名前がついています。外部プログラムは、
6510 \begin_inset Flex Code
6513 \begin_layout Plain Layout
6520 \begin_inset Flex Code
6523 \begin_layout Plain Layout
6530 \begin_inset Flex MenuItem
6533 \begin_layout Plain Layout
6534 ツール\SpecialChar menuseparator
6541 \begin_inset Flex Code
6544 \begin_layout Plain Layout
6545 /home/myhome/lyxpipe
6551 \begin_inset Flex Code
6554 \begin_layout Plain Layout
6570 (where any working path instead of lyxpipe can be used, for example
6571 \begin_inset Flex Code
6574 \begin_layout Plain Layout
6603 \begin_layout Standard
6606 \begin_inset Flex Code
6609 \begin_layout Plain Layout
6616 \begin_inset Flex Code
6619 \begin_layout Plain Layout
6625 」を付け加えます。パイプがすでに存在していれば、\SpecialChar LyX
6627 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システムでは、なん
6628 らかの理由で、\SpecialChar LyX
6629 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialChar LyX
6630 はこれを削除しようとします。何らかの理由でこれが失敗した場合、手動でパイ
6631 プを削除したのちに、\SpecialChar LyX
6632 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削除するので、「古い」パイプが残
6636 \begin_layout Standard
6637 サーバーを使用する\SpecialChar LyX
6638 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6639 \begin_inset Flex Code
6642 \begin_layout Plain Layout
6648 ファイルを使用させるなど、別々の設定を使用する必要があります。
6651 \begin_layout Standard
6652 クライアントプログラムを開発しようとされているのであれば、\SpecialChar LyX
6653 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6654 \begin_inset Flex Code
6657 \begin_layout Plain Layout
6666 \begin_layout Standard
6667 C++言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6668 \begin_inset Newline newline
6672 \begin_inset Flex Code
6675 \begin_layout Plain Layout
6676 development/lyxserver/server_monitor.cpp
6684 \begin_layout Standard
6686 \begin_inset Flex Code
6689 \begin_layout Plain Layout
6690 src/client/lyxclient
6695 にあるコマンドラインベースのクライアントがあります。
6698 \begin_layout Section
6702 \begin_layout Standard
6704 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6721 \begin_layout Description
6722 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialChar LyX
6724 る際、クライアント名をエコーするときだけです。
6727 \begin_layout Description
6728 関数 は、\SpecialChar LyX
6729 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6732 \begin_layout Description
6733 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6736 \begin_layout Standard
6755 \begin_layout Standard
6764 は、コマンド要求からそのままエコーされますが、
6768 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialChar LyX
6769 の内部状態に関する情報を返しますが、空のデータ応答
6770 を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6773 \begin_layout Standard
6774 エラーが発生した場合の\SpecialChar LyX
6792 \begin_layout Standard
6797 には、なぜコマンドが失敗したかの説明が入っているはずです。
6800 \begin_layout Standard
6804 \begin_layout LyX-Code
6805 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6806 \begin_inset Newline newline
6809 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6810 \begin_inset Newline newline
6813 read a <~/.lyxpipe.out
6814 \begin_inset Newline newline
6820 \begin_layout Section
6824 \begin_layout Standard
6826 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6827 \begin_inset Flex Ruby
6830 \begin_layout Plain Layout
6832 \begin_inset Argument post:1
6835 \begin_layout Plain Layout
6846 列を関数「notify」に割り当てているときのみ、\SpecialChar LyX
6847 はこの通知を行います。\SpecialChar LyX
6852 \begin_inset Flex Code
6855 \begin_layout Plain Layout
6866 \begin_layout Standard
6871 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6874 \begin_layout Standard
6875 この機構は、\SpecialChar LyX
6876 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待機する
6877 クライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialChar LyX
6878 コマンドを発行する\SpecialChar LyX
6883 \begin_layout Section
6888 \begin_layout Standard
6890 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6903 \begin_layout Standard
6908 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialChar LyX
6909 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialChar LyX
6911 とをクライアントに伝えるのには、\SpecialChar LyX
6915 \begin_layout Section
6919 \begin_layout Standard
6924 \begin_layout Plain Layout
6925 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularと
6929 とMac OS X上のSkim、Windows上のSumatraPDFがあります。
6934 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6935 特定の場所をクリックすることによって、\SpecialChar LyX
6936 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialChar LyX
6942 )を使用するか、\SpecialChar LyX
6943 が作業ディレクトリに生成するUNIXドメインソケット(
6948 \begin_inset Flex Code
6951 \begin_layout Plain Layout
6957 プログラムが\SpecialChar LyX
6958 と通信するのに使用している方法です)ことで、\SpecialChar LyX
6959 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialChar LyX
6961 ことがあるかもしれませんが、それ以外は、ビューアは\SpecialChar LyX
6962 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必要とされるビューアの設定
6963 法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その前に、DVI/PDF出力
6964 で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6967 \begin_layout Subsection
6968 \begin_inset CommandInset label
6977 \begin_layout Standard
6978 \begin_inset Flex MenuItem
6981 \begin_layout Plain Layout
6982 文書\SpecialChar menuseparator
6983 設定\SpecialChar menuseparator
6990 \begin_inset Flex MenuItem
6993 \begin_layout Plain Layout
6999 オプションを有効にすれば、ほとんどの場合、\SpecialChar LyX
7000 がすべてをうまくこなしてくれます。その場合、\SpecialChar LyX
7001 は、自動的に、必要なSync\SpecialChar TeX
7002 マクロ(PDFの場合)や、srcltxパッケー
7003 ジ(DVIの場合)を挿入してくれます。このオプションは、
7004 \begin_inset Flex MenuItem
7007 \begin_layout Plain Layout
7013 ツールバーからも容易にアクセスすることができます。
7016 \begin_layout Standard
7017 もし、これとは別の設定が必要な場合には、
7018 \begin_inset Flex MenuItem
7021 \begin_layout Plain Layout
7022 文書\SpecialChar menuseparator
7023 設定\SpecialChar menuseparator
7024 出力\SpecialChar menuseparator
7030 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7033 \begin_layout Standard
7035 \begin_inset Flex Code
7038 \begin_layout Plain Layout
7046 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7047 \begin_inset Flex Code
7050 \begin_layout Plain Layout
7061 \begin_layout Standard
7063 \begin_inset Flex Code
7066 \begin_layout Plain Layout
7073 \begin_inset Flex Code
7076 \begin_layout Plain Layout
7082 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7083 \begin_inset Flex Code
7086 \begin_layout Plain Layout
7093 \begin_inset Flex Code
7096 \begin_layout Plain Layout
7102 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7105 \begin_layout Standard
7106 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7107 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7108 \begin_inset CommandInset ref
7110 reference "subsec:特定のビューアを設定して使うには"
7117 \begin_layout Subsection
7121 \begin_layout Standard
7123 は、遡及検索のために複数の方法を提供しています。ある方法は
7124 \begin_inset Flex Code
7127 \begin_layout Plain Layout
7133 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialChar LaTeX
7134 頒布版が既に特定の方法を提供しているか(組み込みによ
7135 る方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7138 \begin_layout Subsubsection*
7139 src-special経由のDVI組み込み検索(DVIのみ)
7142 \begin_layout Standard
7143 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialChar LaTeX
7144 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7147 \begin_inset Flex MenuItem
7150 \begin_layout Plain Layout
7151 設定\SpecialChar menuseparator
7152 ファイル処理\SpecialChar menuseparator
7159 \begin_inset Flex MenuItem
7162 \begin_layout Plain Layout
7169 \begin_inset Flex MenuItem
7172 \begin_layout Plain Layout
7173 LaTeX (plain)->DraftDVI
7179 \begin_inset Flex Code
7182 \begin_layout Plain Layout
7183 latex -src-specials $$i
7188 に変更します。もしこれが動作しないときは、お使いの\SpecialChar LaTeX
7189 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります)。
7192 \begin_layout Subsubsection*
7193 外部パッケージ(PDFSyncおよびsrcltx)
7196 \begin_layout Standard
7205 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialChar LyX
7206 プリアンブルで以下のようにパッケージを読み込んで
7210 \begin_layout Itemize
7212 \begin_inset Flex Code
7215 \begin_layout Plain Layout
7226 \begin_layout Itemize
7228 \begin_inset Flex Code
7231 \begin_layout Plain Layout
7234 usepackage[active]{srcltx}
7242 \begin_layout Standard
7243 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7246 \begin_layout LyX-Code
7250 \begin_inset Newline newline
7256 \begin_inset Newline newline
7262 \begin_inset Newline newline
7268 \begin_inset Newline newline
7273 usepackage[active]{srcltx}
7274 \begin_inset Newline newline
7282 \begin_layout Standard
7283 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7286 \begin_layout Standard
7287 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7291 \begin_layout Subsubsection*
7292 Sync\SpecialChar TeX
7293 を使った組み込み遡及検索(DVIおよびPDF)
7296 \begin_layout Standard
7297 \begin_inset Flex Code
7300 \begin_layout Plain Layout
7306 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7308 Sync\SpecialChar TeX
7311 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7312 るためには、少なくとも\SpecialChar TeX
7313 Live 2008か最近のMik\SpecialChar TeX
7314 頒布版が必要です。また、既にSync\SpecialChar TeX
7315 サポートを提供しているPDFビューアは少ししかありません(
7317 Okular and Qpdfview on Unix,
7319 Mac上のSkimとWindows上のSumatraPDF)。
7322 \begin_layout Standard
7323 DVI出力でSync\SpecialChar TeX
7325 \begin_inset Flex MenuItem
7328 \begin_layout Plain Layout
7329 設定\SpecialChar menuseparator
7330 ファイル処理\SpecialChar menuseparator
7337 \begin_inset Flex MenuItem
7340 \begin_layout Plain Layout
7347 \begin_inset Flex MenuItem
7350 \begin_layout Plain Layout
7351 LaTeX (plain)->DraftDVI
7357 \begin_inset Flex Code
7360 \begin_layout Plain Layout
7361 latex -synctex=1 $$i
7367 \begin_inset Flex MenuItem
7370 \begin_layout Plain Layout
7371 LaTeX (pdflatex)->PDF (pdflatex)
7377 \begin_inset Flex Code
7380 \begin_layout Plain Layout
7381 pdflatex -synctex=1 $$i
7386 に変更してください。また、ビューアをSync\SpecialChar TeX
7387 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7391 \begin_layout Plain Layout
7392 \begin_inset Flex Code
7395 \begin_layout Plain Layout
7401 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
7402 \begin_inset Flex Code
7405 \begin_layout Plain Layout
7419 \begin_layout Subsection
7421 \begin_inset CommandInset label
7423 name "subsec:特定のビューアを設定して使うには"
7430 \begin_layout Subsubsection*
7434 \begin_layout Standard
7437 \begin_inset Flex Code
7440 \begin_layout Plain Layout
7446 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7447 \begin_inset Flex Code
7450 \begin_layout Plain Layout
7456 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7457 、Mac OS X上ではAlt-クリックで始動します)。
7460 \begin_layout Standard
7461 しかし、何らかの理由で、\SpecialChar LyX
7462 と通信するのにソケットではなく命名パイプを使用したい場合には、
7463 \begin_inset Flex MenuItem
7466 \begin_layout Plain Layout
7467 設定\SpecialChar menuseparator
7468 ファイル処理\SpecialChar menuseparator
7480 \begin_layout Plain Layout
7483 On Mac OSX you have to use
7484 \begin_inset Flex Code
7487 \begin_layout Plain Layout
7490 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7503 \begin_inset Flex Code
7506 \begin_layout Plain Layout
7507 xdvi -editor "lyxeditor.sh %f %l"
7513 \begin_inset Flex Code
7516 \begin_layout Plain Layout
7522 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7525 \begin_layout LyX-Code
7527 \begin_inset Newline newline
7530 LYXPIPE="/path/to/lyxpipe"
7531 \begin_inset Newline newline
7534 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7535 \begin_inset Newline newline
7538 echo "$COMMAND" > "${LYXPIPE}".in || exit
7539 \begin_inset Newline newline
7542 read TMP < "${LYXPIPE}".out || exit
7545 \begin_layout Standard
7547 \begin_inset Flex Code
7550 \begin_layout Plain Layout
7557 \begin_inset Flex MenuItem
7560 \begin_layout Plain Layout
7561 設定\SpecialChar menuseparator
7567 で指定したLyXServerパイプのパスを指定してください。
7571 \begin_layout Plain Layout
7573 \begin_inset Flex Code
7576 \begin_layout Plain Layout
7587 \begin_inset Flex Code
7590 \begin_layout Plain Layout
7604 \begin_layout Subsubsection*
7608 \begin_layout Standard
7609 \begin_inset Flex Code
7612 \begin_layout Plain Layout
7613 /Applications/MacDviX_Folder/calleditor.script
7621 \begin_layout LyX-Code
7622 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7623 \begin_inset Newline newline
7629 \begin_layout Standard
7630 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialChar LyX
7631 を導入した場合には、それに従って上記の行を修正してください。
7634 \begin_layout Standard
7635 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7638 \begin_layout Subsubsection*
7642 \begin_layout Standard
7643 \begin_inset Flex MenuItem
7646 \begin_layout Plain Layout
7647 設定\SpecialChar menuseparator
7648 ファイル処理\SpecialChar menuseparator
7649 ファイル書式\SpecialChar menuseparator
7656 \begin_inset Flex Code
7659 \begin_layout Plain Layout
7660 open -a Skim.app $$i
7666 \begin_inset Flex MenuItem
7669 \begin_layout Plain Layout
7670 Skim\SpecialChar menuseparator
7671 設定\SpecialChar menuseparator
7680 \begin_layout Standard
7681 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7684 \begin_layout Subsubsection*
7688 \begin_layout Standard
7689 \begin_inset Flex MenuItem
7692 \begin_layout Plain Layout
7693 設定\SpecialChar menuseparator
7694 Okularを設定\SpecialChar ldots
7695 \SpecialChar menuseparator
7701 で「カスタムテキストエディタ」を選択し、コマンドに
7702 \begin_inset Flex Code
7705 \begin_layout Plain Layout
7714 \begin_layout Standard
7715 遡及検索は、SHIFT-クリックで始動します。
7718 \begin_layout Subsubsection*
7724 \begin_layout Standard
7727 Qpdfview supports Sync\SpecialChar TeX
7728 since version 0.3.5.
7730 \begin_inset Flex MenuItem
7733 \begin_layout Plain Layout
7736 Edit\SpecialChar menuseparator
7737 Settings\SpecialChar menuseparator
7743 , click on the input field of the
7744 \begin_inset Quotes eld
7748 \begin_inset Quotes erd
7751 item and add the command
7752 \begin_inset Flex Code
7755 \begin_layout Plain Layout
7766 \begin_layout Standard
7769 Reverse search is triggered by double-click.
7772 \begin_layout Subsubsection*
7776 \begin_layout Standard
7778 \begin_inset Flex MenuItem
7781 \begin_layout Plain Layout
7782 View\SpecialChar menuseparator
7788 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7789 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7791 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7792 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7793 \begin_inset Flex Code
7796 \begin_layout Plain Layout
7802 (以下参照)のあるディレクトリを見つけます。
7803 \begin_inset Flex Code
7806 \begin_layout Plain Layout
7813 \begin_inset Flex Code
7816 \begin_layout Plain Layout
7823 \begin_inset Flex Code
7826 \begin_layout Plain Layout
7836 を通じて\SpecialChar LyX
7837 と通信するためのラッパとして使用され、以下のようになっています。
7840 \begin_layout LyX-Code
7842 \begin_inset Newline newline
7845 echo LYXCMD:revdvi:server-goto-file-row:%1 %2>
7854 \begin_inset Newline newline
7868 \begin_layout Standard
7870 で指定した\SpecialChar LyX
7872 \begin_inset Flex Code
7875 \begin_layout Plain Layout
7890 \begin_inset Flex Code
7893 \begin_layout Plain Layout
7902 \begin_layout Standard
7903 yapでは、遡及検索はダブルクリックで始動します。
7906 \begin_layout Subsubsection*
7910 \begin_layout Standard
7911 SumatraPDFを遡及検索で使用するためには、
7912 \begin_inset Flex MenuItem
7915 \begin_layout Plain Layout
7916 設定\SpecialChar menuseparator
7917 ファイル処理\SpecialChar menuseparator
7918 ファイル書式\SpecialChar menuseparator
7925 \begin_inset Flex Code
7928 \begin_layout Plain Layout
7929 SumatraPDF -inverse-search
7930 \begin_inset Quotes eld
7934 \begin_inset Quotes erd
7943 \begin_inset Flex Code
7946 \begin_layout Plain Layout
7952 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7955 \begin_layout Standard
7959 \begin_layout Subsubsection*
7963 \begin_layout Standard
7964 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7965 \begin_inset Flex MenuItem
7968 \begin_layout Plain Layout
7969 View\SpecialChar menuseparator
7975 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7976 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7978 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7979 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7980 \begin_inset Flex Code
7983 \begin_layout Plain Layout
7989 プログラム(これは、Cygwinでは既定で\SpecialChar LyX
7990 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7991 \begin_inset Flex Code
7994 \begin_layout Plain Layout
8001 \begin_inset Flex Code
8004 \begin_layout Plain Layout
8010 と指定してください。これによって、\SpecialChar LyX
8015 が使用されるようになります。何らかの理由で
8020 \begin_inset Flex Code
8023 \begin_layout Plain Layout
8029 オプションを削除して、\SpecialChar LyX
8031 Serverパイプパスを指定することを忘れないでください。
8034 \begin_layout Standard
8035 yapでは、遡及検索はダブルクリックで始動します。
8038 \begin_layout Subsubsection*
8042 \begin_layout Standard
8043 SumatraPDFを遡及検索で使用するためには、
8044 \begin_inset Flex MenuItem
8047 \begin_layout Plain Layout
8048 設定\SpecialChar menuseparator
8049 ファイル処理\SpecialChar menuseparator
8050 ファイル書式\SpecialChar menuseparator
8057 \begin_inset Flex Code
8060 \begin_layout Plain Layout
8067 \begin_inset Flex Code
8070 \begin_layout Plain Layout
8076 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
8077 \begin_inset Flex Code
8080 \begin_layout Plain Layout
8089 \begin_layout LyX-Code
8091 \begin_inset Newline newline
8095 \begin_inset Newline newline
8098 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8101 \begin_layout Standard
8102 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialChar LyX
8103 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが必要と
8104 なります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8105 \begin_inset Flex Code
8108 \begin_layout Plain Layout
8123 \begin_inset Flex Code
8126 \begin_layout Plain Layout
8132 オプションを削除して、\SpecialChar LyX
8134 Serverパイプパスを指定することを忘れないでください。
8137 \begin_layout Standard
8141 \begin_layout Section
8145 \begin_layout Standard
8146 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialChar LyX
8147 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明するように
8148 )もし順検索の準備ができていれば、カーソルを\SpecialChar LyX
8150 \begin_inset Flex MenuItem
8153 \begin_layout Plain Layout
8154 移動\SpecialChar menuseparator
8160 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8161 \begin_inset Flex MenuItem
8164 \begin_layout Plain Layout
8170 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8173 \begin_layout Standard
8174 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialChar TeX
8175 ソースに関する情報を追加する必要があります。これは、第
8176 \begin_inset CommandInset ref
8178 reference "subsec:遡及検索"
8182 節に述べられている方法で実行することができます。
8185 \begin_layout Standard
8187 \begin_inset Flex MenuItem
8190 \begin_layout Plain Layout
8191 ツール\SpecialChar menuseparator
8192 設定\SpecialChar menuseparator
8193 出力\SpecialChar menuseparator
8199 で自分の使うビューアを利用するように、\SpecialChar LyX
8200 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリストから選
8201 択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用します。
8204 \begin_layout Itemize
8205 \begin_inset Flex Code
8208 \begin_layout Plain Layout
8217 \begin_layout Itemize
8218 \begin_inset Flex Code
8221 \begin_layout Plain Layout
8227 :書き出された(一時).texファイル名(パスを除く)
8230 \begin_layout Itemize
8231 \begin_inset Flex Code
8234 \begin_layout Plain Layout
8240 :書き出された(一時).texファイル名(パスを含む)
8243 \begin_layout Itemize
8244 \begin_inset Flex Code
8247 \begin_layout Plain Layout
8253 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8256 \begin_layout Standard
8261 \begin_layout Plain Layout
8262 \begin_inset Flex MenuItem
8265 \begin_layout Plain Layout
8266 ツール\SpecialChar menuseparator
8267 設定\SpecialChar menuseparator
8268 ファイル処理\SpecialChar menuseparator
8275 \begin_inset Flex Code
8278 \begin_layout Plain Layout
8289 ・qpdfview・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8295 \begin_layout Plain Layout
8298 SumatraPDF can also use DDE commands through the external program CMCDDE
8300 \begin_inset CommandInset href
8302 target "ftp://ftp2.commence.com/pub/freebies/"
8313 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8314 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8315 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8318 \begin_layout Standard
8319 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialChar LyX
8320 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在するかを
8321 チェックして)、その形式に適切な設定を選択します。
8324 \begin_layout Chapter
8328 \begin_layout Section
8332 \begin_layout Standard
8338 \begin_layout Subsection
8342 \begin_layout Standard
8349 Astronomy and Astrophysics
8352 \begin_inset Flex URL
8355 \begin_layout Plain Layout
8357 http://www.edpsciences.fr/aa/
8362 )に投稿する論文を執筆するための\SpecialChar LyX
8363 の使用法を説明します。このパッケージは、FTPサイト
8364 \begin_inset Separator parbreak
8370 \begin_layout Standard
8372 \begin_inset VSpace medskip
8376 \begin_inset Flex URL
8379 \begin_layout Plain Layout
8381 ftp://ftp.edpsciences.org/pub/aa/readme.html
8387 \begin_inset VSpace medskip
8393 \begin_layout Standard
8398 \begin_layout Standard
8399 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8403 \begin_layout Standard
8404 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8405 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialChar LyX
8406 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています。もし
8407 古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8414 Dir/layouts/aapaper.layout
8419 \begin_layout Subsection
8423 \begin_layout Standard
8425 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8428 \begin_layout Itemize
8431 文書\SpecialChar menuseparator
8438 を選択してください(まぁ、これは自明ですね)。
8441 \begin_layout Itemize
8446 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8449 \begin_layout Subsection
8453 \begin_layout Standard
8454 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8457 \begin_layout Itemize
8465 \begin_layout Itemize
8473 \begin_layout Itemize
8481 \begin_layout Itemize
8489 \begin_layout Itemize
8494 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8497 \begin_layout Itemize
8502 :[非必須]連絡用の電子メールアドレス。
8505 \begin_layout Itemize
8512 Received: <日付>; Accepted <日付>
8517 \begin_layout Standard
8524 コマンドは、へッダが終了した場所に、\SpecialChar LyX
8525 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書のレイ
8526 アウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8529 \begin_layout Standard
8530 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8532 挿入\SpecialChar menuseparator
8535 を使用して標準の脚注を挿入してください。この場合には、\SpecialChar LyX
8545 \begin_layout Standard
8546 これらのトピックの他に、このマクロは、\SpecialChar LyX
8547 が対応していない、以下の3つの\SpecialChar LaTeX
8551 \begin_layout Itemize
8552 複数の著者名あるいは所属名を区切るための
8559 \begin_layout Itemize
8570 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8573 \begin_layout Itemize
8580 は、至急連絡用に電子メールアドレスを付記します。
8583 \begin_layout Standard
8584 いずれの場合にも、\SpecialChar LyX
8585 中に対応したコマンドを入力し、\SpecialChar LaTeX
8587 \begin_inset Flex Code
8590 \begin_layout Plain Layout
8600 \begin_layout Subsection
8604 \begin_layout Standard
8605 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8606 れなくてはなりません。これは、まだ\SpecialChar LyX
8607 では実装されていないため、\SpecialChar LaTeX
8614 を手動で入力し、\SpecialChar LaTeX
8615 コードとしてマークする必要があります。用例にある論文を参照してください。
8618 \begin_layout Subsection
8622 \begin_layout Standard
8623 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8626 \begin_layout Itemize
8632 \begin_layout Itemize
8638 \begin_layout Itemize
8644 \begin_layout Itemize
8650 \begin_layout Itemize
8656 \begin_layout Itemize
8662 \begin_layout Itemize
8668 \begin_layout Itemize
8674 \begin_layout Itemize
8680 \begin_layout Itemize
8686 \begin_layout Itemize
8692 \begin_layout Itemize
8699 \begin_layout Subsection
8704 \begin_layout Standard
8710 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8713 \begin_layout Itemize
8721 \begin_layout Itemize
8729 \begin_layout Itemize
8737 \begin_layout Itemize
8745 \begin_layout Itemize
8753 \begin_layout Itemize
8761 \begin_layout Itemize
8769 \begin_layout Itemize
8777 \begin_layout Standard
8778 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8780 これを\SpecialChar LaTeX
8781 コマンドとしてマークすることを忘れないで下さい。
8784 \begin_layout Subsection
8788 \begin_layout Standard
8806 をサポートしていますので、ここでは詳しい説明はしません。
8810 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8812 編集\SpecialChar menuseparator
8818 \begin_layout Standard
8819 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8822 \begin_layout Enumerate
8825 挿入\SpecialChar menuseparator
8826 フロート\SpecialChar menuseparator
8829 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8830 \begin_inset Flex MenuItem
8833 \begin_layout Plain Layout
8834 設定\SpecialChar ldots
8855 \begin_layout Enumerate
8859 \begin_layout Enumerate
8864 を押して、カーソルをキャプションの上に移動します。
8867 \begin_layout Enumerate
8871 \begin_layout Enumerate
8874 挿入\SpecialChar menuseparator
8877 \SpecialChar menuseparator
8897 \begin_layout Enumerate
8900 挿入\SpecialChar menuseparator
8904 を選択して、\SpecialChar TeX
8908 \begin_layout Enumerate
8921 \begin_layout Enumerate
8922 カーソルをキャプション文の後ろに移動し、
8924 挿入\SpecialChar menuseparator
8928 を選択して、別の\SpecialChar TeX
8929 差込枠を挿入し、その中に閉じ括弧を入力します 。
8932 \begin_layout Standard
8936 \begin_layout Subsection
8940 \begin_layout Standard
8941 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8945 オプションを与える必要があります。これは、
8947 文書\SpecialChar menuseparator
8954 クラスオプションフィールドを使って行うことができます。この欄に
8961 \begin_layout Subsection
8965 \begin_layout Standard
8970 ディレクトリには、\SpecialChar LyX
8971 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8972 用に直したものです。これはヒントを得るために使用したり、元の
8974 コードと\SpecialChar LyX
8975 での書き方の比較に使ったりしてください。
8978 \begin_layout Section
8983 \begin_layout Standard
8991 \begin_layout Subsection
8995 \begin_layout Standard
8997 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8998 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8999 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
9001 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
9002 は、同マクロ第5.0版以降を必要としており、でき
9003 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
9004 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
9005 とは互換性がありません。AAS\SpecialChar TeX
9007 、以下のAAS\SpecialChar TeX
9008 ウェブサイトからダウンロードできるでしょう。
9009 \begin_inset Separator parbreak
9015 \begin_layout Standard
9017 \begin_inset VSpace medskip
9021 \begin_inset Flex URL
9024 \begin_layout Plain Layout
9026 http://www.journals.uchicago.edu/AAS/AASTeX
9032 \begin_inset VSpace medskip
9038 \begin_layout Standard
9039 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9040 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9042 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9043 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9044 いることを確認するのは、あなたの責任です。
9047 \begin_layout Subsection
9051 \begin_layout Standard
9052 論文を書き始めるには、AAS\SpecialChar TeX
9053 ひな型ファイルを土台に始めることを強くお勧めします。
9054 \begin_inset Flex MenuItem
9057 \begin_layout Plain Layout
9058 ファイル\SpecialChar menuseparator
9064 をクリックして、新しいファイル名を入力し、ひな型
9068 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9072 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9073 コマンド・AAS\SpecialChar TeX
9074 環境の多くは、\SpecialChar LyX
9087 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9089 コードを入力して、それを\SpecialChar TeX
9090 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9091 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9093 文書に必要とされる \SpecialChar TeX
9094 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9097 \begin_layout Subsection
9101 \begin_layout Standard
9102 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9105 \begin_layout Enumerate
9106 論文を \SpecialChar LaTeX
9109 ファイル\SpecialChar menuseparator
9110 書き出し\SpecialChar menuseparator
9116 \begin_layout Enumerate
9122 \begin_inset Separator parbreak
9129 \begin_layout Enumerate
9136 コマンドよりも前のコメント行を削除します。
9139 \begin_layout Enumerate
9144 usepackage...{fontenc}
9161 \begin_layout Enumerate
9163 プリアンブル中に意図的に置いたコマンド(
9167 ファイル中、「User specified \SpecialChar LaTeX
9168 commands」というコメントの直後にあります)を除いて、
9180 の間のもの(これらのコマンドを含む)をすべて削除します。
9184 \begin_layout Enumerate
9185 編集後のファイルを \SpecialChar LaTeX
9186 にかけて、正しく処理されることを確認します。
9189 \begin_layout Enumerate
9190 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9193 \begin_layout Enumerate
9197 \begin_layout Subsection
9201 \begin_layout Standard
9207 )に、各AAS\SpecialChar TeX
9208 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9209 て、必要なところだけコメントを加えることにしましょう。
9212 \begin_layout Subsubsection
9216 \begin_layout Standard
9217 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9317 begin{thebibliography}
9325 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9376 \begin_layout Standard
9377 以下のスタイルオプションも正しく動作します。
9398 \begin_inset Flex MenuItem
9401 \begin_layout Plain Layout
9402 文書\SpecialChar menuseparator
9419 \begin_layout Subsubsection
9423 \begin_layout Standard
9424 以下のコマンドは動作しますが、若干の説明が必要です。
9427 \begin_layout Itemize
9428 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9460 \begin_layout Itemize
9461 以下の項目は、\SpecialChar LaTeX
9462 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9483 \begin_layout Itemize
9490 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9494 \begin_layout Itemize
9501 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9504 \begin_layout Itemize
9511 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9515 \begin_layout Itemize
9522 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9525 \begin_layout Itemize
9541 \begin_layout Itemize
9548 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9551 \begin_layout Itemize
9558 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9561 \begin_layout Itemize
9568 (2.14.2)―文章のはじめにカーソルを置いて
9569 \begin_inset Flex MenuItem
9572 \begin_layout Plain Layout
9573 挿入\SpecialChar menuseparator
9579 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9585 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9588 \begin_layout Itemize
9595 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9604 \begin_layout Itemize
9611 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9620 \begin_layout Subsubsection
9621 実装されていないため、\SpecialChar TeX
9625 \begin_layout Standard
9648 setcounter{equation}
9650 (2.12)・学術誌名略語(2.12.4)・
9686 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9699 (2.15.5)・補遺(2.17)の大半(
9750 \begin_layout Subsubsection
9754 \begin_layout Standard
9755 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9756 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9757 \begin_inset Flex MenuItem
9760 \begin_layout Plain Layout
9761 挿入\SpecialChar menuseparator
9763 \begin_inset Formula $\text{\textipa{}}$
9766 \SpecialChar menuseparator
9772 を使用して、\SpecialChar LyX
9773 ファイルに読み込むことを推奨します。この実例は、
9780 \begin_layout Subsection
9784 \begin_layout Subsubsection
9786 をAAS\SpecialChar TeX
9790 \begin_layout Standard
9792 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9795 \begin_layout Enumerate
9797 が、AAS\SpecialChar TeX
9798 を検出できることを確認してください。AAS\SpecialChar TeX
9807 でも可)を、\SpecialChar LaTeX
9808 やAAS\SpecialChar TeX
9809 とまったく関係のないディレクトリにコピーして、
9817 \begin_layout Enumerate
9830 \begin_layout Enumerate
9834 ツール\SpecialChar menuseparator
9837 を再度実行し、\SpecialChar LyX
9841 \begin_layout Enumerate
9842 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9845 文書\SpecialChar menuseparator
9851 \begin_layout Standard
9852 既存のAAS\SpecialChar TeX
9853 文書を処理する際に、AAS\SpecialChar TeX
9854 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9858 \begin_layout Subsubsection
9859 表を処理する際の\SpecialChar LaTeX
9863 \begin_layout Standard
9864 既定では、\SpecialChar LyX
9865 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9866 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9869 編集\SpecialChar menuseparator
9880 に設定してください。私のところではこれで解決しました。
9883 \begin_layout Subsubsection
9887 \begin_layout Standard
9888 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9901 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9905 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9906 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9909 \begin_layout Subsubsection
9913 \begin_layout Standard
9921 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9922 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9929 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9934 usepackage{graphics}
9936 コマンドを\SpecialChar LaTeX
9937 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9938 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9939 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9942 \begin_layout Subsubsection
9946 \begin_layout Standard
9947 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9949 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9950 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9953 \begin_layout Subsection
9957 \begin_layout Standard
9958 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9959 \begin_inset space \thinspace{}
9964 \begin_inset space \thinspace{}
9967 %が、\SpecialChar LaTeX
9968 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9972 \begin_layout Section
9973 AMS \SpecialChar LaTeX
9977 \begin_layout Standard
9987 \begin_inset VSpace bigskip
9993 \begin_layout Standard
9994 AMS \SpecialChar LaTeX
9995 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9996 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9998 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9999 \begin_inset Flex URL
10002 \begin_layout Plain Layout
10010 \begin_inset Flex URL
10013 \begin_layout Plain Layout
10015 ftp://ftp.ams.org/pub/tex/amslatex/
10020 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
10023 \begin_layout Standard
10024 基本となるAMS \SpecialChar LaTeX
10025 レイアウトには、以下の二つがあります。
10028 \begin_layout Itemize
10029 amsart:標準のAMS article書式。
10032 \begin_layout Itemize
10033 amsbook:標準のAMS book(実際はモノグラフ)書式。
10036 \begin_layout Standard
10037 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10038 m」環境は、何一つ含まれていません。これらは、代わりに
10039 \begin_inset Flex Code
10042 \begin_layout Plain Layout
10048 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10049 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10050 \begin_inset Flex Code
10053 \begin_layout Plain Layout
10059 モジュールがあり、これは手動で読み込む必要があります。
10062 \begin_layout Standard
10063 既定では、定理類は、文書を通して連番が振られますが、これは
10064 \begin_inset Flex Code
10067 \begin_layout Plain Layout
10073 モジュールを読み込めば変更することができ、
10074 \begin_inset Flex Code
10077 \begin_layout Plain Layout
10084 \begin_inset Flex Code
10087 \begin_layout Plain Layout
10093 を用いても変更することができます。これらを用いると、出力は
10094 \begin_inset Formula $n.m$
10097 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10098 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10103 \begin_inset Flex Code
10106 \begin_layout Plain Layout
10115 \begin_layout Standard
10116 これらのモジュールは、AMSクラスで使用する
10121 \begin_inset Flex Code
10124 \begin_layout Plain Layout
10130 モジュールや上述の他のモジュールは、他のクラス、たとえば
10131 \begin_inset Flex Code
10134 \begin_layout Plain Layout
10141 \begin_inset Flex Code
10144 \begin_layout Plain Layout
10151 \begin_inset Flex Code
10154 \begin_layout Plain Layout
10160 などで問題なく使用することができます。
10163 \begin_layout Subsection
10167 \begin_layout Standard
10168 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10169 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10170 す。しかし、AMSは、\SpecialChar LyX
10171 で利用可能になっている環境のみを使用することを推奨しています。
10174 \begin_layout Standard
10175 \begin_inset Flex Code
10178 \begin_layout Plain Layout
10185 \begin_inset Flex Code
10188 \begin_layout Plain Layout
10195 \begin_inset space ~
10199 \begin_inset Flex Noun
10202 \begin_layout Plain Layout
10209 \begin_inset Flex Noun
10212 \begin_layout Plain Layout
10219 \begin_inset Flex Noun
10222 \begin_layout Plain Layout
10229 \begin_inset Flex Noun
10232 \begin_layout Plain Layout
10239 \begin_inset Flex Noun
10242 \begin_layout Plain Layout
10249 \begin_inset space ~
10253 \begin_inset space ~
10259 \begin_layout Description
10263 \begin_layout Description
10264 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10267 \begin_layout Description
10271 \begin_layout Description
10275 \begin_layout Description
10276 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10279 \begin_layout Description
10282 Mathematical Reviews
10284 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10288 \begin_layout Description
10292 \begin_layout Description
10296 \begin_layout Description
10300 \begin_layout Standard
10302 \begin_inset Flex Code
10305 \begin_layout Plain Layout
10312 \begin_inset Flex Code
10315 \begin_layout Plain Layout
10321 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10322 \begin_inset Flex Code
10325 \begin_layout Plain Layout
10331 モジュールでは、同環境の星付き版だけが提供されます。
10334 \begin_layout Theorem
10335 これは、通常、得られた主要な結果を叙述するのに使用されます。
10338 \begin_layout Corollary*
10339 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10342 \begin_layout Lemma
10343 他の叙述を証明するために必要とされる、比較的小さな結果です。
10346 \begin_layout Proposition
10347 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10350 \begin_layout Conjecture
10351 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10354 \begin_layout Definition*
10355 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10358 \begin_layout Problem
10359 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10362 \begin_layout Exercise*
10367 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10370 \begin_layout Claim*
10371 より大きな結果の証明を与える途中で、しばしば用いられます。
10375 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10379 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10382 \begin_layout Proof
10383 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10384 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10395 \begin_layout Standard
10397 \begin_inset Flex Code
10400 \begin_layout Plain Layout
10409 \begin_layout Criterion*
10413 \begin_layout Algorithm*
10417 \begin_layout Axiom*
10418 議論されている系内部で真と仮定される性質や命題です。
10421 \begin_layout Condition*
10422 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10425 \begin_layout Note*
10429 \begin_layout Notation*
10433 \begin_layout Summary
10437 \begin_layout Acknowledgement*
10438 謝辞(acknowledgement)です。
10441 \begin_layout Conclusion*
10446 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10449 \begin_layout Standard
10450 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10451 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10455 \begin_layout Section
10461 \begin_layout Standard
10469 \begin_layout Subsection
10473 \begin_layout Standard
10474 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10476 \begin_inset Flex URL
10479 \begin_layout Plain Layout
10481 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10486 にあります)が導入されていることが必要です。
10489 \begin_layout Subsection
10493 \begin_layout Standard
10502 は、定義し直されています。\SpecialChar LyX
10511 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10523 \begin_layout Standard
10560 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10563 \begin_layout Standard
10564 おそらく、これはまだ恐ろしく不完全です。
10567 \begin_layout Subsection
10571 \begin_layout Standard
10580 (Plate)が新しいフロートです。また、
10587 \begin_layout Subsection
10591 \begin_layout Itemize
10594 Journal of Geophysical Research
10603 \begin_layout Standard
10604 ここにあなたの作ったものを加えてください。難しくはありません。
10615 \begin_layout Subsection
10619 \begin_layout Standard
10620 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10623 \begin_layout Enumerate
10630 ツール\SpecialChar menuseparator
10633 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10640 \begin_layout Enumerate
10645 と入力してください(すみません、これはバグです)。
10648 \begin_layout Enumerate
10649 Bib\SpecialChar TeX
10658 を使用していることを確認してください。標準スタイルはうまく動作しません。
10661 \begin_layout Section
10665 \begin_layout Standard
10673 \begin_layout Subsection
10677 \begin_layout Standard
10678 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10681 \begin_layout Subsection
10685 \begin_layout Standard
10689 \begin_layout Subsection
10693 \begin_layout Standard
10698 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10701 \begin_layout Subsection
10705 \begin_layout Standard
10706 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10709 \begin_layout Subsection
10713 \begin_layout Standard
10714 以下の環境を使うことができます。右に記してある
10715 \begin_inset Flex Ruby
10718 \begin_layout Plain Layout
10720 \begin_inset Argument post:1
10723 \begin_layout Plain Layout
10734 割当ては、broadway.bindを使った場合のものです。
10737 \begin_layout Itemize
10741 \begin_inset Newline newline
10746 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10749 \begin_layout Itemize
10753 \begin_inset space \hfill{}
10757 \begin_inset Newline newline
10762 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10765 \begin_layout Itemize
10769 \begin_inset space \hfill{}
10773 \begin_inset Newline newline
10778 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10781 \begin_layout Itemize
10785 \begin_inset space \hfill{}
10789 \begin_inset Newline newline
10794 幕の副題です。単に中央揃えの文になります。
10797 \begin_layout Itemize
10801 \begin_inset space \hfill{}
10805 \begin_inset Newline newline
10810 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10813 \begin_layout Itemize
10817 \begin_inset space \hfill{}
10821 \begin_inset Newline newline
10826 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10829 \begin_layout Itemize
10833 \begin_inset space \hfill{}
10837 \begin_inset Newline newline
10842 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10845 \begin_layout Itemize
10849 \begin_inset space \hfill{}
10853 \begin_inset Newline newline
10858 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10865 \begin_layout Itemize
10869 \begin_inset space \hfill{}
10873 \begin_inset Newline newline
10881 \begin_layout Itemize
10885 \begin_inset space \hfill{}
10889 \begin_inset Newline newline
10897 \begin_layout Itemize
10901 \begin_inset space \hfill{}
10907 \begin_layout Itemize
10911 \begin_inset space \hfill{}
10917 \begin_layout Itemize
10921 \begin_inset space \hfill{}
10927 \begin_layout Section
10931 \begin_layout Standard
10936 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10938 .../lyx/share/templates
10940 にあるので、それを土台として使用してください。
10943 \begin_layout Section
10949 \begin_layout Standard
10957 \begin_layout Subsection
10961 \begin_layout Standard
10962 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10967 \begin_inset Flex URL
10970 \begin_layout Plain Layout
10972 http://www.copernicus.org/
10980 \begin_layout Subsection
10984 \begin_layout Standard
11022 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
11026 ファイルを読み込む形に変えた方が便利になると思われます。
11029 \begin_layout Section
11033 \begin_layout Standard
11039 を参照してください。必要な情報は全てそこにあります。
11042 \begin_layout Section
11043 Foils (別名Foil\SpecialChar TeX
11045 \begin_inset CommandInset label
11054 \begin_layout Standard
11062 \begin_layout Subsection
11066 \begin_layout Standard
11067 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11068 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11070 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11073 \begin_layout Standard
11074 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11077 \begin_layout Standard
11078 \begin_inset VSpace bigskip
11084 \begin_layout Standard
11090 presentation (FoilT
11096 \begin_layout Plain Layout
11114 \begin_layout Standard
11115 \begin_inset VSpace bigskip
11121 \begin_layout Standard
11124 transparencies (slides)
11127 \begin_inset CommandInset ref
11129 reference "sec:slitex"
11133 節をご覧ください。お使いのコンピュータに
11139 presentation (FoilT
11143 \begin_layout Plain Layout
11163 \begin_layout Standard
11168 クラスは、\SpecialChar LaTeX2e
11169 の一部として含まれている\SpecialChar LaTeX
11174 の第2.1版とともに使われるように設計されています。
11177 \begin_layout Subsection
11181 \begin_layout Standard
11182 いうまでもなく、この文書クラスを使うには、
11184 文書\SpecialChar menuseparator
11185 設定\SpecialChar menuseparator
11194 presentation (FoilT
11198 \begin_layout Plain Layout
11211 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11214 \begin_layout Itemize
11227 オプションは変更しないでください。これらは
11234 \begin_layout Itemize
11235 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11238 \begin_layout Itemize
11247 ですが、数式ではすべて、通常のローマン体が使用されます。
11250 \begin_layout Itemize
11251 Foil\SpecialChar TeX
11253 \begin_inset space \thinspace{}
11256 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11259 \begin_layout Itemize
11264 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11267 \begin_layout Itemize
11272 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11273 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11274 \begin_inset CommandInset ref
11276 reference "sec:foilfoot"
11280 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11284 付けられず、(ロゴが定義されていれば)ロゴは、
11288 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11289 \begin_inset Separator parbreak
11296 \begin_layout Labeling
11297 \labelwidthstring MMMMMMM
11304 最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11307 \begin_layout Labeling
11308 \labelwidthstring MMMMMMM
11315 最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11318 \begin_layout Labeling
11319 \labelwidthstring MMMMMMM
11324 ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11327 \begin_layout Labeling
11328 \labelwidthstring MMMMMMM
11337 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11338 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11342 \begin_layout Subsubsection
11346 \begin_layout Standard
11351 ダイアログの任意設定クラスオプションボックスで使うことができます。
11354 \begin_layout Labeling
11355 \labelwidthstring MMMMMMx
11360 これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11361 \begin_inset space \space{}
11364 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11367 \begin_layout Labeling
11368 \labelwidthstring MMMMMMx
11373 タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11376 \begin_layout Labeling
11377 \labelwidthstring MMMMMMx
11382 タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11385 \begin_layout Labeling
11386 \labelwidthstring MMMMMMx
11395 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11399 \begin_layout Labeling
11400 \labelwidthstring MMMMMMx
11405 このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11406 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11414 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11417 \begin_layout Labeling
11418 \labelwidthstring MMMMMMx
11426 \begin_layout Labeling
11427 \labelwidthstring MMMMMMx
11435 \begin_layout Subsection
11439 \begin_layout Standard
11440 他のクラスで標準的にサポートされている環境は、
11444 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11445 が提供している環境と、\SpecialChar LyX
11446 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11449 \begin_layout Standard
11452 \begin_inset Flex Multiple Columns
11455 \begin_layout Itemize
11461 \begin_layout Itemize
11467 \begin_layout Itemize
11473 \begin_layout Itemize
11479 \begin_layout Itemize
11485 \begin_layout Itemize
11492 \begin_layout Itemize
11498 \begin_layout Itemize
11504 \begin_layout Itemize
11510 \begin_layout Itemize
11516 \begin_layout Itemize
11522 \begin_layout Itemize
11528 \begin_layout Itemize
11534 \begin_layout Itemize
11540 \begin_layout Itemize
11546 \begin_layout Itemize
11552 \begin_layout Itemize
11558 \begin_layout Itemize
11569 \begin_layout Standard
11570 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11575 は新しいスライドを始める以下のようなコマンドを備えています。
11578 \begin_layout Itemize
11584 \begin_layout Itemize
11587 横置きスライドタイトル(Rotatefoilhead)
11590 \begin_layout Standard
11592 は、以下のような、これらを若干修正した環境も用意しています。
11595 \begin_layout Itemize
11598 スライドタイトル(小)(ShortFoilhead)
11601 \begin_layout Itemize
11604 横置きスライドタイトル(小)(ShortRotatefoilhead)
11607 \begin_layout Standard
11611 \begin_layout Standard
11612 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11617 はそれらを説明するのに便利な環境を幅広く用意しています。
11620 \begin_layout Standard
11623 \begin_inset Flex Multiple Columns
11626 \begin_layout Itemize
11632 \begin_layout Itemize
11638 \begin_layout Itemize
11644 \begin_layout Itemize
11650 \begin_layout Itemize
11656 \begin_layout Itemize
11662 \begin_layout Itemize
11668 \begin_layout Itemize
11674 \begin_layout Itemize
11680 \begin_layout Itemize
11686 \begin_layout Itemize
11697 \begin_layout Standard
11698 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11699 で追加された以下の2つの箇条書き環境があります。
11702 \begin_layout Itemize
11708 \begin_layout Itemize
11714 \begin_layout Standard
11715 Foil\SpecialChar TeX
11716 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11717 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11720 \begin_layout Standard
11721 この目的のためには、以下のコマンドスタイルがあります(
11726 \begin_layout Standard
11727 \begin_inset Flex Multiple Columns
11730 \begin_layout Itemize
11736 \begin_layout Itemize
11742 \begin_layout Itemize
11748 \begin_layout Itemize
11754 \begin_layout Itemize
11760 \begin_inset Separator parbreak
11767 \begin_layout Plain Layout
11768 \begin_inset space ~
11780 \begin_layout Standard
11781 Foil\SpecialChar TeX
11782 が提供しているコマンドで、\SpecialChar LyX
11783 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11784 \begin_inset CommandInset ref
11786 reference "sec:unsuppfoils"
11793 \begin_layout Subsection
11797 \begin_layout Standard
11798 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11810 \begin_layout Subsubsection
11814 \begin_layout Standard
11835 は独立したページにタイトルを作成します。
11839 環境を使用しなかった場合には、\SpecialChar LaTeX
11840 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11843 \begin_layout Subsubsection
11847 \begin_layout Standard
11848 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11854 スライドタイトル(小)(ShortFoilhead)
11856 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11859 \begin_layout Standard
11862 横向きスライドタイトル(Rotatefoilhead)
11866 ShortRotatefoilhead)
11868 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11872 \begin_layout Standard
11873 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11877 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11881 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11884 \begin_layout Subsubsection
11888 \begin_layout Standard
11890 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11891 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11896 」だけから成る\SpecialChar LaTeX
11897 環境を置くことです。これによって、\SpecialChar LyX
11898 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11899 出力を得ることができます。\SpecialChar LyX
11901 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11904 \begin_layout Subsubsection
11908 \begin_layout Standard
11909 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11910 他の箇条書き環境について詳しく知りたい場合には、
11914 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11915 \begin_inset CommandInset ref
11917 reference "sec:ブリット"
11925 の節も、読まれることが望ましいでしょう。
11928 \begin_layout Standard
11938 \begin_inset Formula $\times$
11941 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11945 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11949 パッケージが導入済であることを要求します。
11952 \begin_layout Subsubsection
11956 \begin_layout Standard
11957 Foil\SpecialChar TeX
11958 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11959 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11962 \begin_layout Subsubsection
11964 \begin_inset CommandInset label
11966 name "sec:foilfoot"
11973 \begin_layout Standard
11982 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by
11987 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11990 \begin_layout Standard
12003 (左上)を使って文字を入れることができます。
12006 \begin_layout Subsection
12013 \begin_inset CommandInset label
12015 name "sec:unsuppfoils"
12022 \begin_layout Standard
12036 \begin_layout Subsubsection
12040 \begin_layout Standard
12063 は、変更したい長さに付けられている名前で置き換え、
12067 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12073 のように文書比あるいはフォント基準の長さで指定する必要があります。
12076 \begin_layout Standard
12083 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12084 \begin_inset space \space{}
12087 inだけスライド本文に近づけるには、プリアンブルに
12093 foilheadskip}{-0.5in}
12098 \begin_layout Standard
12099 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12102 \begin_layout Labeling
12103 \labelwidthstring MMMMMMMMMMM
12113 \begin_layout Labeling
12114 \labelwidthstring MMMMMMMMMMM
12124 \begin_layout Labeling
12125 \labelwidthstring MMMMMMMMMMM
12135 \begin_layout Labeling
12136 \labelwidthstring MMMMMMMMMMM
12143 この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12149 に対する相対的な長さで調整するのが最も良いでしょう。
12152 \begin_layout Standard
12153 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12156 \begin_layout Labeling
12157 \labelwidthstring MMMMMMMMMMM
12167 \begin_layout Labeling
12168 \labelwidthstring MMMMMMMMMMM
12186 \begin_layout Labeling
12187 \labelwidthstring MMMMMMMMMMM
12201 \begin_layout Labeling
12202 \labelwidthstring MMMMMMMMMMM
12220 \begin_layout Labeling
12221 \labelwidthstring MMMMMMMMMMM
12239 \begin_layout Standard
12240 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12246 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12252 を使う必要がないことに注意してください。
12255 \begin_layout Subsubsection
12259 \begin_layout Standard
12276 で定義したロゴを特定のページに入れるかどうかを制御します。
12282 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12288 を置き、次のスライドタイトルの直後に直接
12297 \begin_layout Standard
12306 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12320 パッケージが提供するページレイアウトと
12324 クラスの提供するページレイアウトの間に衝突が発生するためです。
12327 \begin_layout Section
12328 Hollywood(Hollywoodスペック・スクリプト)
12331 \begin_layout Standard
12339 \begin_layout Subsection
12343 \begin_layout Standard
12344 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12345 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12347 \begin_inset space \space{}
12350 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12353 \begin_layout Subsection
12357 \begin_layout Standard
12362 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12366 名を再度書き、その後に(Cont'd)と加えます。
12369 \begin_layout Subsection
12373 \begin_layout Standard
12378 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12379 きに話者名を挿入するのにも使用することができます。
12382 \begin_layout Subsection
12386 \begin_layout Standard
12387 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12390 \begin_layout Subsection
12394 \begin_layout Standard
12395 以下の環境が利用可能です。右に示されている
12396 \begin_inset Flex Ruby
12399 \begin_layout Plain Layout
12401 \begin_inset Argument post:1
12404 \begin_layout Plain Layout
12415 割当てを使用するには、hollywood.bindを使用してください。
12418 \begin_layout Itemize
12422 \begin_inset Newline newline
12427 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12430 \begin_layout Itemize
12432 \begin_inset space \hfill{}
12440 \begin_inset Newline newline
12443 通常、この後には「Sallyは目を覚ますと」のように続きます。
12446 \begin_layout Itemize
12450 \begin_inset space \hfill{}
12454 \begin_inset Newline newline
12459 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12463 \begin_layout Itemize
12467 \begin_inset space \hfill{}
12471 \begin_inset Newline newline
12476 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12479 \begin_layout Itemize
12483 \begin_inset space \hfill{}
12487 \begin_inset Newline newline
12495 \begin_layout Itemize
12499 \begin_inset space \hfill{}
12503 \begin_inset Newline newline
12508 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12509 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12512 \begin_layout Itemize
12516 \begin_inset space \hfill{}
12520 \begin_inset Newline newline
12528 \begin_layout Itemize
12532 \begin_inset space \hfill{}
12536 \begin_inset Newline newline
12541 カメラの動きの指示。例:CUT TO:。
12544 \begin_layout Itemize
12548 \begin_inset space \hfill{}
12554 \begin_layout Itemize
12558 \begin_inset space \hfill{}
12564 \begin_layout Itemize
12568 \begin_inset space \hfill{}
12574 \begin_layout Itemize
12578 \begin_inset space \hfill{}
12584 \begin_layout Subsection
12588 \begin_layout Itemize
12592 \begin_layout Itemize
12596 \begin_layout Itemize
12601 \begin_layout Itemize
12606 \begin_layout Itemize
12607 PAN — camera movement
12610 \begin_layout Itemize
12611 INSERT — cut to close-up of
12614 \begin_layout Section
12618 \begin_layout Standard
12621 Panayotis Papasotiriou
12626 \begin_layout Subsection
12630 \begin_layout Standard
12633 International Journal of Modern Physics C
12635 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12637 International Journal of Modern Physics D
12639 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12647 です。これらのファイルは、著者のための指針とともに、
12648 \begin_inset Flex URL
12651 \begin_layout Plain Layout
12653 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12659 \begin_inset Flex URL
12662 \begin_layout Plain Layout
12664 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12669 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12671 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12672 で書き上げましたが、何らの問題も生じませんでした。
12675 \begin_layout Subsection
12679 \begin_layout Standard
12680 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12682 ファイル\SpecialChar menuseparator
12693 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12697 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12700 \begin_layout Enumerate
12701 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12702 中でこれらを変更することはできません。
12705 \begin_layout Enumerate
12706 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12708 ツール\SpecialChar menuseparator
12723 をクリックすれば、設定することができます(この変更を固定するなら
12730 \begin_layout Enumerate
12731 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12734 \begin_layout Enumerate
12735 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12736 ートされていませんので、ご注意ください。
12739 \begin_layout Enumerate
12740 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12741 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12742 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12745 \begin_layout Enumerate
12746 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12747 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12748 されます。引用に通常の本文を使用したい場合には、「See Ref.
12749 \begin_inset space \space{}
12759 \begin_inset Flex Ruby
12762 \begin_layout Plain Layout
12768 \begin_inset Argument post:1
12771 \begin_layout Plain Layout
12793 \begin_layout Enumerate
12794 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12797 \begin_layout Enumerate
12806 であれば、入れることができます。\SpecialChar LyX
12807 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12808 てはなりません。この環境は、\SpecialChar LaTeX
12809 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12810 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12811 付録であることを明示します。「付録領域」は、最初の付録の前に
12815 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12818 \begin_layout Enumerate
12819 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12823 コマンドを使用します。そのため、\SpecialChar LyX
12824 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12825 コードを少し使えば、この問題を回避して、キャプション
12826 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12833 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12838 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12843 ファイルに収め、このファイルを\SpecialChar LyX
12846 挿入\SpecialChar menuseparator
12847 ファイル\SpecialChar menuseparator
12850 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12861 \begin_layout Subsection
12865 \begin_layout Standard
12866 論文を投稿する前には、\SpecialChar LyX
12867 文書を\SpecialChar LaTeX
12870 ファイル\SpecialChar menuseparator
12871 書き出し\SpecialChar menuseparator
12879 \begin_layout Plain Layout
12880 実は、\SpecialChar LaTeX
12881 (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12882 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12891 ファイルに以下の変更を加える必要があります。
12894 \begin_layout Enumerate
12901 コマンドより前にあるコメント行を削除する。
12904 \begin_layout Enumerate
12905 自身で明示的に\SpecialChar LaTeX
12918 コマンドの間にあるものをすべて削除する。
12921 \begin_layout Standard
12926 ファイルを保存し、必要な回数\SpecialChar LaTeX
12927 で処理してください。それによって得られた
12931 文書も確認された方がよろしいでしょう。
12934 \begin_layout Subsection
12939 \begin_layout Standard
12941 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12949 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12950 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12952 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12957 markboth{著者名}{論文の短縮タイトル}
12962 \begin_layout Section
12966 \begin_layout Standard
12974 \begin_layout Subsection
12978 \begin_layout Standard
12979 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12980 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12981 \begin_inset Flex URL
12984 \begin_layout Plain Layout
12986 ftp://ftp.iop.org/pub/journals/latex2e
12991 からiopartパッケージとともにダウンロード可能です。
12994 \begin_layout Subsection
12998 \begin_layout Standard
12999 論文を書くもっとも簡単な方法は、\SpecialChar LyX
13004 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
13005 な助言として、以下の点にご注意ください。
13008 \begin_layout Itemize
13009 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
13017 関連オプションが有効になっていないことを確認してください!
13020 \begin_layout Itemize
13021 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
13022 \begin_inset Separator parbreak
13029 \begin_layout Itemize
13035 \begin_layout Itemize
13041 \begin_layout Itemize
13047 \begin_layout Itemize
13053 \begin_layout Itemize
13059 \begin_layout Itemize
13067 \begin_layout Itemize
13068 Preliminary communication用には
13073 \begin_layout Itemize
13074 Rapid communication用には
13079 \begin_layout Itemize
13086 \begin_layout Itemize
13091 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13094 \begin_layout Itemize
13096 では直接にサポートされていませんが、一般的なタイトル環境として
13100 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13101 コードでこれを指定することができます。
13104 \begin_layout Standard
13105 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13108 \begin_layout Section
13112 \begin_layout Standard
13115 Panayotis Papasotiriou
13120 \begin_layout Subsection
13124 \begin_layout Standard
13125 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13126 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13128 Astrophysics and Space Science
13134 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13135 \begin_inset Flex URL
13138 \begin_layout Plain Layout
13140 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13145 に全覧があります)。Kluwerパッケージは、
13146 \begin_inset Flex URL
13149 \begin_layout Plain Layout
13151 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13156 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13159 \begin_layout Standard
13161 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13162 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13164 \begin_inset CommandInset ref
13166 reference "subsec:kluwer_peculiarities"
13170 参照)。最近、私は\SpecialChar LyX
13173 Astrophysics and Space Science
13175 に投稿しましたが、何らの問題も発生しませんでした。
13178 \begin_layout Subsection
13182 \begin_layout Standard
13183 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13185 ファイル\SpecialChar menuseparator
13192 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13197 を含む)正しい情報で上書きしてください。
13200 \begin_layout Subsection
13204 \begin_layout Standard
13205 AAS\SpecialChar TeX
13206 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13209 \begin_layout Enumerate
13212 ファイル\SpecialChar menuseparator
13213 書き出し\SpecialChar menuseparator
13216 をクリックして、論文を\SpecialChar LaTeX
13220 \begin_layout Enumerate
13225 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13226 \begin_inset Separator parbreak
13233 \begin_layout Enumerate
13240 コマンドより前にあるコメント行を削除する。
13243 \begin_layout Enumerate
13244 意図的に\SpecialChar LaTeX
13257 の間にあるものを、これらのコマンドも含め、すべて削除する。
13260 \begin_layout Standard
13269 \begin_layout Enumerate
13274 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13278 \begin_layout Enumerate
13287 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13290 \begin_layout Subsection
13291 Kluwerパッケージの「風変わり」な特徴
13292 \begin_inset CommandInset label
13294 name "subsec:kluwer_peculiarities"
13301 \begin_layout Standard
13302 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13305 \begin_layout Enumerate
13306 複数の論文を1つの\SpecialChar LaTeX
13311 \begin_layout Plain Layout
13312 わざわざこんなことをする必要はないでしょう。
13317 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13329 で終わります。この環境を\SpecialChar LyX
13330 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13342 )は、直接本文中に入力して、\SpecialChar LaTeX
13343 コード(「\SpecialChar TeX
13344 コード」のことです)としてマークする必要があります。
13347 \begin_layout Enumerate
13348 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13349 はなりません。これは\SpecialChar LyX
13350 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13366 \begin_layout Enumerate
13367 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13370 \begin_inset Newline newline
13394 \begin_layout Standard
13399 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13403 \begin_layout Enumerate
13404 ひな型にある\SpecialChar TeX
13408 \begin_layout Enumerate
13409 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13412 \begin_layout Section
13416 \begin_layout Standard
13424 \begin_layout Subsection
13428 \begin_layout Standard
13432 article (koma-script)
13436 report (koma-script)
13454 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13471 に対応しています。これらは、標準文書クラス
13487 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13490 \begin_layout Itemize
13493 article (koma-script)
13497 report (koma-script)
13505 letter (koma-script)
13510 \begin_layout Itemize
13511 見出しや箇条書き(記述)環境のラベル、および
13513 letter (koma-script)
13515 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13519 \begin_layout Plain Layout
13520 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13521 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13525 作の\SpecialChar LaTeX
13535 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13536 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13537 とができます(\SpecialChar LyX
13540 文書\SpecialChar menuseparator
13547 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13554 \begin_layout Itemize
13555 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13563 オプションを使う方法です(\SpecialChar LyX
13566 文書\SpecialChar menuseparator
13573 フィールドで指定します)。これらのオプションは
13575 文書\SpecialChar menuseparator
13578 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13586 \begin_layout Itemize
13587 Koma-Scriptファミリーの\SpecialChar LaTeX
13588 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13589 で意味を持つものは、対応する段落環境として実装されています
13593 \begin_layout Standard
13594 Koma-Scriptファミリーの\SpecialChar LaTeX
13595 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13603 \begin_layout Plain Layout
13613 。以下の各節では、\SpecialChar LyX
13617 \begin_layout Subsection
13618 article (koma-script)・report (koma-script)・book (koma-script)
13621 \begin_layout Standard
13624 article (koma-script)
13628 report (koma-script)
13650 によって実装されています。これらは、対応する標準文書クラス
13662 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13667 環境は例外であり、同じ機能を持つ新しい
13675 環境以外にも、新しい段落環境が多く追加されています。これらは、
13677 letter (koma-script)
13679 には含まれていないのでご注意ください。
13682 \begin_layout Itemize
13707 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13717 article (koma-script)
13722 \begin_layout Itemize
13739 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13745 article (koma-script)
13751 \begin_layout Plain Layout
13758 report (koma-script)
13770 と同一なので、\SpecialChar LyX
13779 \begin_layout Itemize
13784 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13787 \begin_layout Itemize
13796 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13797 ねに表の上に置くべきでしょう)。また、クラスオプション
13801 を用いれば、キャプションを指定すると、表には
13809 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13812 \begin_layout Itemize
13817 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13819 挿入\SpecialChar menuseparator
13822 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13828 article (koma-script)
13833 \begin_layout Standard
13846 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13850 \begin_layout Plain Layout
13851 つまり、対応する\SpecialChar LaTeX
13858 コマンドよりも前に現れなくてはなりません。
13863 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13875 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13878 \begin_layout Itemize
13895 )の上に、文書の主題用の中央揃えの段落を生成します。
13898 \begin_layout Itemize
13915 )の下に、出版社名用の中央揃えの段落を生成します。
13918 \begin_layout Itemize
13925 report (koma-script)
13931 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13933 article (koma-script)
13947 )の下に献辞用の中央揃えの段落を生成します。
13950 \begin_layout Itemize
13967 )の上に、文書頭書き用の左揃えの段落を生成します。
13970 \begin_layout Itemize
13977 report (koma-script)
13983 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13985 article (koma-script)
13990 \begin_layout Itemize
13997 report (koma-script)
14003 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
14005 article (koma-script)
14010 \begin_layout Itemize
14015 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
14018 \begin_layout Standard
14021 article (koma-script)
14025 report (koma-script)
14035 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14039 を、個人用レイアウトディレクトリにコピーして編集してください!
14042 \begin_layout Subsection
14043 letter (koma-script)
14046 \begin_layout Standard
14050 letter (koma-script)
14056 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14060 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14078 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14095 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14098 \begin_layout Standard
14099 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14100 コマンドを\SpecialChar LaTeX
14101 プリアンブルに置くことで制御することができます
14105 \begin_layout Plain Layout
14106 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14110 \begin_layout LyX-Code
14120 \begin_layout LyX-Code
14136 \begin_layout LyX-Code
14146 \begin_layout LyX-Code
14162 \begin_layout LyX-Code
14170 。これらの\SpecialChar LaTeX
14171 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14175 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14178 \begin_layout Standard
14187 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14188 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14196 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14200 環境は、同じ受取人への書簡を新しく書き出すものであり、
14204 環境は、新しい受取人を生成するものです。
14220 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14223 \begin_layout Itemize
14228 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14231 \begin_layout Itemize
14236 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14239 \begin_layout Itemize
14247 \begin_layout Itemize
14255 \begin_layout Itemize
14263 \begin_layout Itemize
14271 \begin_layout Standard
14312 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14316 \begin_layout Plain Layout
14325 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14326 一文字をマークした通常の段落環境として実装しました。さらに、
14334 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14346 \begin_layout Standard
14347 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14352 環境で入力した署名は、標準的な挙動では、同じ書簡に
14356 環境も使用されているときのみ、書簡の出力に現れます。
14360 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14363 \begin_layout Standard
14364 入力環境は、空の段落として使うことができます。これは、たとえば
14372 環境を全く使用しない場合は、標準的な挙動では、
14376 環境の値が署名として使用されますが、空の
14380 環境を作成しておくと、署名の値は無定義となりません。
14383 \begin_layout Standard
14384 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14387 \begin_layout Itemize
14392 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14395 \begin_layout Itemize
14415 \begin_layout Itemize
14420 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14423 \begin_layout Itemize
14428 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14438 \begin_layout Itemize
14446 \begin_layout Itemize
14459 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14467 の値如何に関わらず、場所も日付も表示されません。
14471 環境を使用しない場合には、書簡を出力した日付が使用されます。
14474 \begin_layout Itemize
14479 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14482 \begin_layout Itemize
14487 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14490 \begin_layout Itemize
14495 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14498 \begin_layout Itemize
14503 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14506 \begin_layout Itemize
14518 \begin_layout Standard
14521 Yourref・Yourmail・Myref・顧客・インボイス
14527 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14528 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14532 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14536 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14543 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14551 \begin_layout Itemize
14559 \begin_layout Itemize
14567 \begin_layout Itemize
14575 \begin_layout Itemize
14583 \begin_layout Itemize
14591 \begin_layout Subsection
14592 新しいletterクラス:letter (koma-script v.2)
14595 \begin_layout Standard
14599 \begin_inset VSpace medskip
14605 \begin_layout Standard
14607 Koma-Script第2.8版では、新しいletterクラス
14615 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14616 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14618 ますが、新しい方のクラスを使用することを推奨します。
14621 \begin_layout Standard
14624 letter (koma-script)
14626 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14646 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14664 挿入\SpecialChar menuseparator
14671 を入れることができるようになった点です。
14674 \begin_layout Standard
14675 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14676 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14684 \begin_layout Plain Layout
14689 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14703 文書\SpecialChar menuseparator
14704 設定\SpecialChar menuseparator
14705 文書クラス\SpecialChar menuseparator
14712 を加えることで読み込むことができます。
14717 。用例としては、\SpecialChar LyX
14722 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14729 \begin_layout Subsection
14733 \begin_layout Standard
14734 Koma-Script文書クラスを\SpecialChar LyX
14735 上に表示する上で、\SpecialChar LyX
14739 \begin_layout Itemize
14744 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14748 ラベル型に対する\SpecialChar LyX
14752 \begin_layout Itemize
14761 環境の見出しは、「本当の」\SpecialChar LaTeX
14762 の目次には追加されますが、\SpecialChar LyX
14770 \begin_layout Itemize
14775 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14778 文書\SpecialChar menuseparator
14781 ダイアログでは、対応するラジオボタンは
14789 は、隙間を空けるために、文書に\SpecialChar LaTeX
14790 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14793 \begin_layout Section
14797 \begin_layout Standard
14805 \begin_layout Subsection
14809 \begin_layout Standard
14810 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14811 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14815 \begin_layout Standard
14816 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14817 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14818 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14819 は、これらすべての素晴らしい機能をネイティブでサポ
14820 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14824 \begin_layout Plain Layout
14826 \begin_inset Flex URL
14829 \begin_layout Plain Layout
14831 lyx-devel@lists.lyx.org
14842 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14843 コマンド(\SpecialChar TeX
14848 \begin_layout Plain Layout
14850 \begin_inset CommandInset ref
14852 reference "sec:LaTeXコードを挿入する"
14861 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14862 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14863 は、Memoirクラスの詳しい取扱説明書
14867 \begin_layout Plain Layout
14869 \begin_inset Flex URL
14872 \begin_layout Plain Layout
14874 CTAN:/macros/latex/memoir/memman.pdf
14884 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14888 \begin_layout Subsection
14892 \begin_layout Standard
14893 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14896 \begin_layout Description
14897 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14900 \begin_layout Description
14901 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14903 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14905 文書\SpecialChar menuseparator
14906 設定\SpecialChar menuseparator
14909 参照)。これらを章題ページに使用したい場合には、コマンド
14915 を、本文またはプリアンブルに記述する必要があります(例えば、
14919 chapterstyle{companion}
14924 \begin_layout Description
14925 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14926 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14929 挿入\SpecialChar menuseparator
14932 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14933 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14934 のものにヘッダ用短縮タイトルを入れてください。
14937 \begin_layout Description
14938 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14939 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14942 \begin_layout Description
14943 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14948 aliaspagestyle{title}{empty}
14953 \begin_layout Description
14960 文書\SpecialChar menuseparator
14961 設定\SpecialChar menuseparator
14964 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14965 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14968 \begin_layout Description
14969 Oldfontcommands: \SpecialChar LaTeX
14970 旧2.09版で使用されていた旧いフォントコマンド(
14982 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14988 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14989 は停止しなくなります)。まだ、多くのパッケージと、
14990 就中多くのBib\SpecialChar TeX
14991 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14994 \begin_layout Subsection
14998 \begin_layout Standard
15000 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
15004 \begin_layout Plain Layout
15005 \begin_inset Flex URL
15008 \begin_layout Plain Layout
15010 CTAN:/macros/latex/memoir/memman.pdf
15023 \begin_layout Description
15024 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
15025 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
15028 \begin_layout Description
15029 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15030 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15033 \begin_layout Description
15034 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15035 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15036 を少しだます必要があります。ここでは、2つの引数の間に、
15046 のように、(\SpecialChar TeX
15047 モードで)波括弧を入れなくてはなりません。
15050 \begin_layout Description
15051 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15052 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15053 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15055 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15059 \begin_layout Description
15060 詩題*: 目次に現れない他は詩題と同じです。
15063 \begin_layout Section
15064 Article (mwart)・book (mwbk)・report (mwrep)
15065 \begin_inset Argument status
15068 \begin_layout Plain Layout
15081 \begin_layout Standard
15089 \begin_layout Standard
15097 report (mwrep)・book
15103 は、それぞれ\SpecialChar LaTeX
15128 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15131 \begin_layout Standard
15135 \begin_layout Itemize
15143 \begin_layout Itemize
15145 \begin_inset Separator parbreak
15152 \begin_layout Description
15156 \begin_layout Description
15172 \begin_layout Description
15173 myuheadings 分離線付きカスタムヘッダ
15176 \begin_layout Description
15181 \begin_layout Itemize
15183 \begin_inset Separator parbreak
15190 \begin_layout Description
15191 rmheadings セリフ体見出し — 既定
15194 \begin_layout Description
15195 sfheadings サンセリフ体見出し
15198 \begin_layout Description
15199 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15202 \begin_layout Description
15203 titleauthor タイトルページは、タイトル・著者名の順で配置
15206 \begin_layout Description
15207 withmarginpar ページ上に余白のための場所を確保
15211 \begin_layout Section
15215 \begin_layout Standard
15228 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15231 \begin_layout Section
15232 Rev\SpecialChar TeX
15236 \begin_layout Standard
15242 \begin_layout Standard
15243 \begin_inset VSpace bigskip
15249 \begin_layout Standard
15254 \begin_inset space ~
15259 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15261 \begin_inset Formula $\beta$
15267 \begin_layout Standard
15269 には、Rev\SpecialChar TeX
15274 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15275 2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15276 は\SpecialChar LaTeX2e
15277 を必要とすることから、第3.1版は\SpecialChar LyX
15279 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15280 4.0は、\SpecialChar LaTeX2e
15281 で素直に動作するようにデザインされているので、\SpecialChar LyX
15284 Rev\SpecialChar TeX
15286 \begin_inset space ~
15291 テキストクラスの組で使用するのは、たいへん簡単です。
15294 \begin_layout Standard
15295 この取扱説明書は、Rev\SpecialChar TeX
15300 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15301 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15305 \begin_layout Subsection
15309 \begin_layout Standard
15310 Rev\SpecialChar TeX
15311 4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15312 4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15315 \begin_inset Flex URL
15318 \begin_layout Plain Layout
15320 http://publish.aps.org/revtex4/
15325 から入手することができます。これを\SpecialChar LaTeX
15326 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15327 ィレクトリ)で簡単なRev\SpecialChar TeX
15328 4文書を \SpecialChar LaTeX
15329 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15330 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15335 \begin_layout Standard
15340 を使ってRev\SpecialChar TeX
15341 4文書を読み込むか、またはひな型ディレクトリにある
15344 \begin_inset space ~
15349 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15352 \begin_layout Subsection
15356 \begin_layout Standard
15363 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15365 文書\SpecialChar menuseparator
15366 設定\SpecialChar menuseparator
15373 フィールドに入れます。Rev\SpecialChar TeX
15374 では、少なくとも一つの非必須引数が必要なことに注意してください。
15377 \begin_layout Standard
15384 など他のプリアンブルは、他のクラス同様、
15386 文書\SpecialChar menuseparator
15387 設定\SpecialChar menuseparator
15394 \begin_layout Subsection
15398 \begin_layout Standard
15399 レイアウトは、基本的にRev\SpecialChar TeX
15400 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15406 に対応しています。(少なくともRev\SpecialChar TeX
15415 はまったく同じものなので、両方を使う必要はありません
15419 \begin_layout Plain Layout
15444 \begin_layout Subsection
15448 \begin_layout Standard
15449 Rev\SpecialChar TeX
15450 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15451 ではさらに気をつけなくてはなりません。
15454 \begin_layout Standard
15455 Rev\SpecialChar TeX
15472 に来なくてはなりません。\SpecialChar LyX
15481 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15485 \begin_layout Standard
15506 )レイアウトの間に置かなければなりません。
15514 の後に置いてしまうと、\SpecialChar LaTeX
15518 \begin_layout Subsection
15522 \begin_layout Standard
15523 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15524 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15526 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15527 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15540 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15544 \begin_layout Plain Layout
15549 実は、\SpecialChar LyX
15550 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15558 \begin_layout Section
15564 \begin_layout Standard
15572 \begin_layout Subsection
15576 \begin_layout Standard
15577 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15578 \begin_inset Flex URL
15581 \begin_layout Plain Layout
15583 http://www.springer.de/author/tex/help-journals.html
15588 に必要なクラスファイル(\SpecialChar LaTeX2e
15589 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15593 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15600 \begin_layout Standard
15601 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15616 \begin_layout Standard
15617 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15625 は、標準\SpecialChar LyX
15626 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15627 を再設定した後(teTeXの場合は、必
15632 を実行します)、\SpecialChar LyX
15636 \begin_layout Subsection
15640 \begin_layout Standard
15649 ・\SpecialChar ldots
15657 \begin_layout Standard
15668 サブタイトル・ヘッダ用\SpecialChar LaTeX
15669 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15672 。詳しくは Springerのクラスファイルの説明書を読んでください。
15675 \begin_layout Subsection
15679 \begin_layout Itemize
15691 \begin_layout Itemize
15694 Probability Theory and Related Fields
15700 — Jean-Marc Lasgouttes
15703 \begin_layout Standard
15704 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15707 \begin_layout Subsection
15711 \begin_layout Standard
15720 は Springerの\SpecialChar LaTeX
15721 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15722 Lasgouttesのおかげで \SpecialChar LyX
15723 のレイアウトファイルのメカニズムをよりよく理解することができました。
15726 \begin_layout Subsection
15730 \begin_layout Standard
15735 よりは少なくなっているとは思いますが。
15738 \begin_layout Standard
15739 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15742 \begin_layout Section
15745 Sli\SpecialChar TeX
15752 \begin_layout Plain Layout
15753 (訳註)この節の内容は、全般的に古くなっています。
15759 \begin_inset CommandInset label
15768 \begin_layout Standard
15776 \begin_layout Subsection
15780 \begin_layout Standard
15781 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15782 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15784 Foil\SpecialChar TeX
15787 スライドクラスの2つがあります。本節は前者について説明を行います。
15790 \begin_layout Standard
15791 誤解のないように、正しく明確に、もう一度言っておきます。
15794 \begin_layout Standard
15795 \begin_inset VSpace bigskip
15801 \begin_layout Standard
15806 \begin_inset Quotes eld
15811 transparencies (slides)
15814 \begin_inset Quotes erd
15824 \begin_layout Standard
15825 \begin_inset VSpace bigskip
15831 \begin_layout Standard
15834 「slides (Foil\SpecialChar TeX
15838 \begin_inset CommandInset ref
15840 reference "sec:foiltex"
15850 slides (Foil\SpecialChar TeX
15861 \begin_layout Plain Layout
15865 Foil\SpecialChar TeX
15868 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15876 \begin_layout Standard
15877 このクラスは、旧SLI\SpecialChar TeX
15878 パッケージを\SpecialChar LaTeX2e
15879 用に改良したものです。\SpecialChar LaTeX2e
15880 頒布版すべてが、このクラス(以下では単に「
15884 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15888 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15893 ならばできることもあります。詳しくは以下をお読みください。
15896 \begin_layout Subsection
15898 \begin_inset CommandInset label
15900 name "sec:slidesetup"
15907 \begin_layout Standard
15908 当然ながら、この文書クラスを使用するには、
15910 文書\SpecialChar menuseparator
15915 transparencies (slides)
15917 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15920 \begin_layout Itemize
15929 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15933 クラスではサポートされていないので、効果がありません。
15936 \begin_layout Itemize
15941 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15942 \begin_inset Separator parbreak
15949 \begin_layout Description
15950 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15953 \begin_layout Description
15958 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15961 \begin_layout Description
15962 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15966 \begin_layout Itemize
15975 というオプションがあります。これを使用するには、
15984 \begin_inset Separator parbreak
15991 \begin_layout Standard
15996 にタイムマーカーを加えることができます。詳細は、第
15997 \begin_inset CommandInset ref
15999 reference "sec:スライド注釈"
16007 \begin_layout Standard
16012 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
16016 」を使用することもできます(新規ファイルを開く際に
16018 ファイル\SpecialChar menuseparator
16021 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
16024 \begin_layout Subsection
16028 \begin_layout Subsubsection
16034 \begin_layout Standard
16039 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16047 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16048 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16051 \begin_layout Standard
16052 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16057 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16060 \begin_layout Itemize
16066 \begin_layout Itemize
16072 \begin_layout Itemize
16078 \begin_layout Itemize
16084 \begin_layout Itemize
16090 \begin_layout Itemize
16096 \begin_layout Itemize
16102 \begin_layout Itemize
16108 \begin_layout Itemize
16114 \begin_layout Itemize
16121 \begin_layout Itemize
16127 \begin_layout Standard
16128 これ以外の標準的な環境、例えば節見出し用の環境などは
16135 \begin_layout Standard
16139 \begin_layout Itemize
16145 \begin_layout Itemize
16151 \begin_layout Itemize
16157 \begin_layout Itemize
16163 \begin_layout Itemize
16169 \begin_layout Standard
16170 これら5つの環境は、\SpecialChar LyX
16171 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16172 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16173 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16177 \begin_layout Subsubsection
16179 \begin_inset CommandInset label
16188 \begin_layout Standard
16189 5つの新しい環境にはすべて、\SpecialChar LyX
16190 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16191 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16199 』で述べられているような段落環境ではなくなっています。
16202 \begin_layout Standard
16215 は「疑似環境」だとお考えください。これらは節見出しや「
16219 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16227 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16230 \begin_layout Standard
16251 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16271 では、まったく意味がなく、\SpecialChar LyX
16272 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16275 \begin_layout Standard
16284 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16292 \begin_layout Standard
16293 一方、説明文を入れたくない場合には、\SpecialChar LyX
16294 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16295 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16299 \begin_layout Itemize
16327 \begin_layout Itemize
16331 \begin_layout Itemize
16339 \begin_layout Itemize
16363 \begin_layout Standard
16364 将来の\SpecialChar LyX
16365 では、このような癖が解決されることを祈っています\SpecialChar ldots
16370 \begin_layout Plain Layout
16371 (訳註)ここの記述は古くなっています。
16379 \begin_layout Subsection
16393 \begin_layout Subsubsection
16401 \begin_layout Standard
16402 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16407 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16411 \begin_layout Standard
16417 \begin_inset CommandInset ref
16419 reference "sec:スライドの癖"
16423 節参照のこと)、\SpecialChar LyX
16424 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16425 環境は、すべて新規スライドに入ります。簡単ですよね。
16428 \begin_layout Standard
16429 Slidesは、おそらく\SpecialChar LyX
16430 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16434 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16435 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16443 \begin_layout Standard
16456 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16464 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16467 \begin_layout Standard
16480 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16488 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16491 \begin_layout Subsubsection
16497 \begin_layout Standard
16502 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16506 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16510 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16511 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16518 \begin_layout Standard
16535 \begin_layout Plain Layout
16536 想像できるように、複数のオーバーレイがあれば、「
16548 」などが親スライドのページ番号に付け加えられます。
16561 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16569 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16578 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16586 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16589 \begin_layout Standard
16590 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16591 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16592 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16603 \begin_layout Standard
16612 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16613 \begin_inset CommandInset ref
16615 reference "sec:スライドの癖"
16627 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16635 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16638 \begin_layout Standard
16643 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16659 は自動的に終了されることに注意してください。したがって、
16670 \begin_layout Standard
16687 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16690 \begin_layout Enumerate
16695 かに関わらず、スライド上に現れるすべてを含んだ
16702 \begin_layout Enumerate
16707 のみに表示するすべての図や段落の前に、
16722 \begin_layout Enumerate
16734 \begin_layout Enumerate
16746 \begin_layout Enumerate
16770 \begin_layout Standard
16778 \begin_layout Standard
16784 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16785 実現するためには、\SpecialChar LaTeX
16790 \begin_layout Plain Layout
16794 \begin_layout Itemize
16799 invisible \SpecialChar ldots
16803 \begin_layout Itemize
16808 visible \SpecialChar ldots
16812 \begin_layout Plain Layout
16814 のような形となり、\SpecialChar TeX
16815 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16827 コマンドの後ろ)に入れます。\SpecialChar TeX
16828 としてマークする方法がわからない場合は、
16840 \begin_layout Subsubsection
16846 \begin_inset CommandInset label
16855 \begin_layout Standard
16868 に関連付けられています。ここでも\SpecialChar LyX
16881 よりも短く(オーバーレイのラベルよりも長いですが)、
16885 のラベルと同様、派手な赤紫色です。加えて、印刷した
16901 3」等を付けたページ番号が付けられます。1つの
16917 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16920 \begin_layout Standard
16929 に関して付け加えたいことを書き留めておくことです。特定の
16933 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16943 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16944 コードを使用することに頼らなくてはなりません。
16947 \begin_layout Standard
16948 タイムマーカを使用するには、クラスオプション「
16953 \begin_inset CommandInset ref
16955 reference "sec:slidesetup"
16959 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16963 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16976 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16982 」は、タイムマーカを特定の時間に設定し、「
16988 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16996 にどれだけの時間をかけるのか忘れないでいられます。
16999 \begin_layout Standard
17000 最後に、説明しておくべき機能がもう一つあります。当然ながら、
17012 はすべて普通の紙に印刷したいはずです。しかしながら、
17020 。ユーザーはどうしたら良いのでしょうか。
17023 \begin_layout Standard
17024 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17025 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
17041 のみが含まれるようにするものです。同様に、「
17053 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17054 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17063 のコメントを外して、現ファイル名に「*
17067 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17079 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17082 \begin_layout Standard
17095 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17099 \begin_layout Subsection
17107 \begin_layout Standard
17116 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17118 ファイル\SpecialChar menuseparator
17121 メニューを選択してください。すると新規ファイルには、
17149 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17152 \begin_layout LyX-Code
17153 % Uncomment to print out only slides and overlays
17156 \begin_layout LyX-Code
17160 \begin_layout LyX-Code
17166 \begin_inset Newline newline
17172 \begin_layout LyX-Code
17173 % Uncomment to print out only notes
17176 \begin_layout LyX-Code
17180 \begin_layout LyX-Code
17188 \begin_layout Standard
17189 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17192 Sli\SpecialChar TeX
17195 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17196 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17197 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17202 \begin_inset CommandInset ref
17204 reference "sec:foiltex"
17212 」パッケージ(一部の\SpecialChar TeX
17213 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17214 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17218 \begin_layout Chapter
17219 ソフトウェアを追加する必要がある \SpecialChar LyX
17223 \begin_layout Section
17228 \begin_layout Standard
17236 \begin_layout Subsection
17240 \begin_layout Standard
17249 \begin_layout Plain Layout
17251 頒布版としてMiK\SpecialChar TeX
17275 \begin_inset Newline newline
17279 \begin_inset CommandInset href
17281 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17288 \begin_layout Standard
17291 Chk\SpecialChar TeX
17294 パッケージは、\SpecialChar LaTeX
17295 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17296 \begin_inset Flex Noun
17299 \begin_layout Plain Layout
17306 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17307 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17314 \begin_layout Standard
17315 さて、\SpecialChar LyX
17316 はつねに正しい\SpecialChar LaTeX
17317 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17318 で何をするというのでしょうか。答えは簡単です。
17326 をチェックするだけでなく、打ち間違いによる
17332 Chk\SpecialChar TeX
17341 Chk\SpecialChar TeX
17344 は、以下のような誤りを検出することができます。
17347 \begin_layout Itemize
17349 \begin_inset Newline newline
17352 ...ではなく\SpecialChar ldots
17356 \begin_layout Itemize
17358 \begin_inset Newline newline
17361 ( wrong spacing ):誤った空白
17364 \begin_layout Itemize
17365 よく使われる省略形の後ろは通常スペースにする:
17366 \begin_inset Newline newline
17370 \begin_inset space \thinspace{}
17374 \begin_inset space \space{}
17377 is too wide spacing.:広すぎる空白
17380 \begin_layout Itemize
17381 直前の文章が大文字で終わっているときに、文末スペースに直す:
17382 \begin_inset Newline newline
17386 And this is wrong spacing.:誤った空白
17389 \begin_layout Itemize
17391 \begin_inset Newline newline
17394 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。
17395 \begin_inset CommandInset label
17405 \begin_layout Plain Layout
17406 この脚注は、正しくないページに行ってしまう恐れがあります。
17414 \begin_layout Itemize
17415 参照の前にハードスペースではなくスペース:
17416 \begin_inset Newline newline
17419 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17420 \begin_inset CommandInset ref
17422 reference "sec:chktex"
17429 \begin_layout Itemize
17431 \begin_inset Formula $\times$
17435 \begin_inset Newline newline
17439 \begin_inset Formula $2\times2$
17445 \begin_layout Standard
17446 などなど\SpecialChar ldots
17449 Chk\SpecialChar TeX
17452 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17455 \begin_layout Subsection
17459 \begin_layout Standard
17460 このプログラムを導入したならば、使うのは
17462 ツール\SpecialChar menuseparator
17466 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17467 は使用中の文書の\SpecialChar LaTeX
17470 Chk\SpecialChar TeX
17473 を起動し、当該ファイルを検査しますが、
17475 Chk\SpecialChar TeX
17478 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17479 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17481 移動\SpecialChar menuseparator
17489 \begin_inset Flex Ruby
17492 \begin_layout Plain Layout
17494 \begin_inset Argument post:1
17497 \begin_layout Plain Layout
17509 \begin_inset Flex Ruby
17512 \begin_layout Plain Layout
17532 \begin_inset Argument post:1
17535 \begin_layout Plain Layout
17550 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17566 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17568 Chk\SpecialChar TeX
17571 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17575 \begin_layout Standard
17576 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17577 警告のほとんどは実際には警告に値しません。
17580 \begin_layout Subsection
17584 \begin_layout Standard
17587 Chk\SpecialChar TeX
17590 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17592 Chk\SpecialChar TeX
17595 を無効にするか、あなたにもう少し合うように
17597 Chk\SpecialChar TeX
17603 \begin_layout Standard
17606 Chk\SpecialChar TeX
17609 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
17612 Chk\SpecialChar TeX
17615 関連の問題が、それですべて解決すると思うべきではありません。\SpecialChar LyX
17618 Chk\SpecialChar TeX
17625 \begin_layout Plain Layout
17636 文書\SpecialChar menuseparator
17645 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17646 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17647 ためには、以下の2つの方法があります。
17650 \begin_layout Itemize
17653 \begin_inset Flex MenuItem
17656 \begin_layout Plain Layout
17659 ツール\SpecialChar menuseparator
17660 設定\SpecialChar menuseparator
17661 出力\SpecialChar menuseparator
17663 \SpecialChar menuseparator
17664 Check\SpecialChar TeX
17674 Chk\SpecialChar TeX
17677 起動コマンドラインを調整するか、グローバルな
17679 Chk\SpecialChar TeX
17683 \begin_inset Flex Code
17686 \begin_layout Plain Layout
17692 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17695 \begin_layout Itemize
17698 ファイル\SpecialChar menuseparator
17699 書き出し\SpecialChar menuseparator
17703 を使って文書を\SpecialChar LaTeX
17704 ファイルに変換し、そのファイルに対して
17708 を手動で実行します。このようにすると、\SpecialChar LyX
17709 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17712 \begin_layout Standard
17717 で有効化・無効化できる警告メッセージです。警告を無効にするには
17725 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17727 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17732 \begin_layout Standard
17738 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17741 \begin_layout Enumerate
17745 Command terminated with space.
17748 \begin_layout Enumerate
17751 Non-breaking space (
17752 \begin_inset Quotes eld
17760 \begin_inset Quotes erd
17763 ) should have been used.
17766 \begin_layout Enumerate
17770 You should enclose the previous parenthesis with
17771 \begin_inset Quotes eld
17779 \begin_inset Quotes erd
17785 \begin_layout Enumerate
17788 Italic correction (
17789 \begin_inset Quotes eld
17799 \begin_inset Quotes erd
17802 ) found in non-italic buffer.
17805 \begin_layout Enumerate
17808 Italic correction (
17809 \begin_inset Quotes eld
17819 \begin_inset Quotes erd
17822 ) found more than once.
17825 \begin_layout Enumerate
17829 No italic correction (
17830 \begin_inset Quotes eld
17840 \begin_inset Quotes erd
17846 \begin_layout Enumerate
17850 \begin_inset Quotes eld
17858 \begin_inset Quotes erd
17862 \begin_inset Quotes eld
17870 \begin_inset Quotes erd
17876 \begin_layout Enumerate
17879 Wrong length of dash may have been used.
17882 \begin_layout Enumerate
17886 \begin_inset Quotes eld
17894 \begin_inset Quotes erd
17898 \begin_inset Quotes eld
17906 \begin_inset Quotes erd
17912 \begin_layout Enumerate
17916 \begin_inset Quotes eld
17924 \begin_inset Quotes erd
17930 \begin_layout Enumerate
17934 \begin_inset Quotes eld
17942 \begin_inset Quotes erd
17945 to achieve an ellipsis.
17948 \begin_layout Enumerate
17951 Inter-word spacing (
17952 \begin_inset Quotes eld
17962 \begin_inset Quotes eld
17965 ) should perhaps be used.
17968 \begin_layout Enumerate
17971 Inter-sentence spacing (
17972 \begin_inset Quotes eld
17982 \begin_inset Quotes erd
17985 ) should perhaps be used.
17988 \begin_layout Enumerate
17991 Could not find argument for command.
17994 \begin_layout Enumerate
17998 \begin_inset Quotes eld
18006 \begin_inset Quotes erd
18012 \begin_layout Enumerate
18015 Math mode still on at end of \SpecialChar LaTeX
18019 \begin_layout Enumerate
18023 \begin_inset Quotes eld
18031 \begin_inset Quotes erd
18034 doesn't match the number of
18035 \begin_inset Quotes eld
18043 \begin_inset Quotes erd
18049 \begin_layout Enumerate
18052 You should use either
18055 \begin_inset Quotes eld
18063 \begin_inset Quotes erd
18068 as an alternative to
18069 \begin_inset Quotes eld
18077 \begin_inset Quotes erd
18083 \begin_layout Enumerate
18090 " (ASCII 39) instead of "" (ASCII 180).
18093 \begin_layout Enumerate
18096 User-specified pattern found.
18099 \begin_layout Enumerate
18102 This command might not be intended.
18105 \begin_layout Enumerate
18112 \begin_layout Enumerate
18130 \begin_layout Enumerate
18133 Delete this space to maintain correct page references.
18136 \begin_layout Enumerate
18140 You might wish to put this between a pair of
18141 \begin_inset Quotes eld
18149 \begin_inset Quotes erd
18155 \begin_layout Enumerate
18158 You ought to remove spaces in front of punctuation.
18161 \begin_layout Enumerate
18164 Could not execute \SpecialChar LaTeX
18168 \begin_layout Enumerate
18177 in front of small punctuation.
18180 \begin_layout Enumerate
18188 may look prettier here.
18191 \begin_layout Enumerate
18195 Multiple spaces detected in output.
18198 \begin_layout Enumerate
18201 This text may be ignored.
18204 \begin_layout Enumerate
18210 \begin_inset Quotes eld
18215 to begin quotation, not
18222 \begin_layout Enumerate
18229 to end quotation, not
18232 \begin_inset Quotes eld
18240 \begin_layout Enumerate
18246 \begin_layout Enumerate
18249 You should perhaps use
18250 \begin_inset Quotes eld
18258 \begin_inset Quotes erd
18264 \begin_layout Enumerate
18267 You should put a space in front of/after parenthesis.
18270 \begin_layout Enumerate
18273 You should avoid spaces in front of/after parenthesis.
18276 \begin_layout Enumerate
18280 You should not use punctuation in front of/after quotes.
18283 \begin_layout Enumerate
18286 Double space found.
18289 \begin_layout Enumerate
18292 You should put punctuation outside inner/inside display math mode.
18295 \begin_layout Enumerate
18298 You ought to not use primitive \SpecialChar TeX
18299 in \SpecialChar LaTeX
18303 \begin_layout Enumerate
18306 You should remove spaces in front of
18307 \begin_inset Quotes eld
18315 \begin_inset Quotes erd
18321 \begin_layout Enumerate
18324 \begin_inset Quotes eld
18332 \begin_inset Quotes erd
18335 is normally not followed by
18336 \begin_inset Quotes eld
18344 \begin_inset Quotes erd
18350 \begin_layout Standard
18352 の将来の版では、このツール(およびその縮小版
18356 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18357 書に使用してみていただければ、きっと驚かれることでしょう。
18360 \begin_layout Section
18365 \begin_layout Standard
18368 Lars Bullik Bjønnes
18377 \begin_layout Subsection
18381 \begin_layout Standard
18383 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18387 \begin_layout Standard
18388 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18393 \begin_layout Plain Layout
18394 \begin_inset CommandInset href
18396 target "http://svnbook.red-bean.com/"
18405 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18409 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18413 で終わるファイルです)の概念に注意を払ってください。
18416 \begin_layout Standard
18418 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18421 RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18422 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18424 表示\SpecialChar menuseparator
18425 ツールバー\SpecialChar menuseparator
18431 \begin_layout Standard
18432 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18433 関数説明書のvcコマンドを確認してください。
18436 \begin_layout Standard
18439 It is strongly recommended to store documents in uncompressed format if
18440 using version control (uncheck
18442 Document\SpecialChar menuseparator
18445 if it is checked): Uncompressed LyX documents are text files and therefore
18446 for merging two different versions by version control systems.
18447 Compressed LyX documents are binary files, which cannot be merged by version
18451 \begin_layout Subsection
18456 \begin_layout Standard
18457 以下の節では\SpecialChar LyX
18458 でサポートされているRCSコマンドを説明します。それらのコマンドは
18460 ファイル\SpecialChar menuseparator
18463 のサブメニューにあります。\SpecialChar LyX
18464 は、RCS 5.7/5.8に対して試験されています。
18467 \begin_layout Subsubsection
18473 \begin_layout Standard
18474 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18481 \begin_layout Standard
18482 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18483 書は読み込み専用モードになるので、変更を加えるためには
18487 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18490 \begin_layout Standard
18494 \begin_inset Newline newline
18497 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18500 \begin_layout Standard
18508 \begin_layout Subsubsection
18514 \begin_layout Standard
18515 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18516 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18519 \begin_layout Standard
18522 ci -q -u -m"<説明文>" <ファイル名>
18525 \begin_layout Subsubsection
18531 \begin_layout Standard
18532 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18533 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18536 \begin_layout Standard
18542 \begin_layout Subsubsection
18548 \begin_layout Standard
18549 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18552 \begin_layout Standard
18555 co -f -u<バージョン> <ファイル名>
18558 \begin_layout Subsubsection
18564 \begin_layout Standard
18565 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18566 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18567 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18569 ファイル\SpecialChar menuseparator
18570 名前をつけて保存\SpecialChar ldots
18573 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18576 \begin_layout Labeling
18577 \labelwidthstring 00.00.0000
18579 \begin_inset Flex Code
18582 \begin_layout Plain Layout
18595 \begin_layout Labeling
18596 \labelwidthstring 00.00.0000
18597 \begin_inset Flex Code
18600 \begin_layout Plain Layout
18601 ci -q -u -i "<新ファイル名>"
18609 \begin_layout Subsubsection
18615 \begin_layout Standard
18616 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18617 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18621 \begin_layout Standard
18624 rcs -o<バージョン> <ファイル名>
18627 \begin_layout Subsubsection
18633 \begin_layout Standard
18634 RCS文書の完全な履歴を表示します。ブラウザ中に、
18645 \begin_layout Subsubsection
18649 \begin_layout Standard
18651 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18652 \begin_inset CommandInset ref
18654 reference "subsec:VCS改訂情報"
18661 \begin_layout Subsection
18666 \begin_layout Standard
18668 は、現在CVSを一部サポートしています。そのコマンドは、
18670 ファイル\SpecialChar menuseparator
18673 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18676 \begin_layout Subsubsection
18680 \begin_layout Standard
18681 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18682 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18685 \begin_layout Standard
18686 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18687 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18688 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18689 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18690 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18691 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18692 で予備付きチェックアウトを利用したい場合には、
18693 \begin_inset Flex Code
18696 \begin_layout Plain Layout
18703 \begin_inset Flex Code
18706 \begin_layout Plain Layout
18712 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18713 コピーを書き込み可能にしているとは限りません。
18716 \begin_layout Standard
18718 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18719 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18720 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18722 \begin_inset Flex MenuItem
18725 \begin_layout Plain Layout
18731 メニューを使用しなくてはなりません。その後、
18732 \begin_inset Flex MenuItem
18735 \begin_layout Plain Layout
18741 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18744 \begin_layout Standard
18746 \begin_inset Flex URL
18749 \begin_layout Plain Layout
18751 http://www.nongnu.org/cvs
18757 \begin_inset Flex URL
18760 \begin_layout Plain Layout
18762 http://ximbiot.com/cvs
18770 \begin_layout Standard
18771 以下に言及するサブコマンドとスイッチを理解するには、
18778 \begin_layout Subsubsection
18782 \begin_layout Standard
18783 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18790 \begin_layout Standard
18791 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18798 \begin_inset Flex Code
18801 \begin_layout Plain Layout
18807 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18808 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18812 \begin_layout Standard
18813 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18816 \begin_layout Standard
18819 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18824 \begin_layout Standard
18825 上記および他のすべてのCVSコマンドにおける
18829 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18832 \begin_layout Subsubsection
18836 \begin_layout Standard
18837 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18838 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18839 \begin_inset Flex MenuItem
18842 \begin_layout Plain Layout
18851 \begin_layout Labeling
18852 \labelwidthstring 00.00.0000
18854 \begin_inset space ~
18858 \begin_inset Newline newline
18862 \begin_inset Flex Code
18865 \begin_layout Plain Layout
18866 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18872 \begin_inset Newline newline
18876 \begin_inset Flex Code
18879 \begin_layout Plain Layout
18880 cvs -q unedit "<ファイル名>"
18888 \begin_layout Subsubsection
18892 \begin_layout Standard
18893 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18896 \begin_layout Standard
18899 cvs -q update "<ファイル名>"
18902 \begin_layout Standard
18903 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18906 \begin_layout Standard
18909 cvs -q edit "<ファイル名>"
18912 \begin_layout Subsubsection
18916 \begin_layout Standard
18917 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18921 \begin_layout Standard
18924 cvs -q update "<ファイル名>"
18927 \begin_layout Standard
18928 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18931 \begin_layout Standard
18934 cvs -q unedit "<ファイル名>"
18937 \begin_layout Subsubsection
18943 \begin_layout Standard
18944 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18945 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18946 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18948 ファイル\SpecialChar menuseparator
18949 名前をつけて保存\SpecialChar ldots
18952 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18955 \begin_layout Labeling
18956 \labelwidthstring 00.00.0000
18960 \begin_layout Labeling
18961 \labelwidthstring 00.00.0000
18962 \begin_inset Flex Code
18965 \begin_layout Plain Layout
18972 \begin_inset Flex Code
18975 \begin_layout Plain Layout
18984 \begin_layout Labeling
18985 \labelwidthstring 00.00.0000
18986 \begin_inset Flex Code
18989 \begin_layout Plain Layout
18990 cvs -q add "<新ファイル名>"
18998 \begin_layout Subsubsection
19002 \begin_layout Standard
19003 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
19004 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
19005 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
19008 ファイル\SpecialChar menuseparator
19009 名前をつけて保存\SpecialChar ldots
19012 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19015 \begin_layout Labeling
19016 \labelwidthstring 00.00.0000
19020 \begin_layout Labeling
19021 \labelwidthstring 00.00.0000
19022 \begin_inset Flex Code
19025 \begin_layout Plain Layout
19032 \begin_inset Flex Code
19035 \begin_layout Plain Layout
19044 \begin_layout Labeling
19045 \labelwidthstring 00.00.0000
19046 \begin_inset Flex Code
19049 \begin_layout Plain Layout
19050 cvs -q add "<新ファイル名>"
19058 \begin_layout Labeling
19059 \labelwidthstring 00.00.0000
19060 \begin_inset Flex Code
19063 \begin_layout Plain Layout
19064 cvs -q remove "<ファイル名>"
19072 \begin_layout Subsubsection
19073 ローカルディレクトリチェックアウトのレポジトリからの更新
19076 \begin_layout Standard
19078 \begin_inset Flex Code
19081 \begin_layout Plain Layout
19087 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19088 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19089 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19090 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19094 \begin_layout Standard
19096 \begin_inset Flex Code
19099 \begin_layout Plain Layout
19105 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19106 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19107 \begin_inset Flex Code
19110 \begin_layout Plain Layout
19117 \begin_inset Flex Code
19120 \begin_layout Plain Layout
19127 \begin_inset Flex Code
19130 \begin_layout Plain Layout
19136 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19137 \begin_inset Flex Code
19140 \begin_layout Plain Layout
19146 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19149 \begin_layout Labeling
19150 \labelwidthstring 00.00.0000
19152 \begin_inset space ~
19156 \begin_inset Newline newline
19160 \begin_inset Flex Code
19163 \begin_layout Plain Layout
19164 cd $path; cvs diff "."
19170 \begin_inset Newline newline
19174 \begin_inset Flex Code
19177 \begin_layout Plain Layout
19178 cd $path; cvs -q update "."
19186 \begin_layout Standard
19188 \begin_inset Flex Code
19191 \begin_layout Plain Layout
19200 \begin_layout Subsubsection
19204 \begin_layout Standard
19205 これは、CVS文書の全履歴を表示します。
19206 \begin_inset Flex Code
19209 \begin_layout Plain Layout
19211 \begin_inset Quotes eld
19215 \begin_inset Quotes erd
19226 \begin_layout Subsubsection
19230 \begin_layout Standard
19232 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19236 によって抽出されます。詳細については、第
19237 \begin_inset CommandInset ref
19239 reference "subsec:VCS改訂情報"
19246 \begin_layout Subsection
19251 \begin_layout Standard
19253 は、現在SVNを一部サポートしています。そのコマンドは、
19254 \begin_inset Flex MenuItem
19257 \begin_layout Plain Layout
19258 ファイル\SpecialChar menuseparator
19264 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19266 1.5および1.6に対して試験されています。
19269 \begin_layout Subsubsection
19273 \begin_layout Standard
19274 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19281 \begin_layout Standard
19282 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19287 \begin_inset Flex Code
19290 \begin_layout Plain Layout
19296 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19299 \begin_layout Standard
19300 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19303 \begin_layout Standard
19305 \begin_inset Flex Code
19308 \begin_layout Plain Layout
19310 \begin_inset Quotes eld
19314 \begin_inset Quotes erd
19325 \begin_layout Standard
19327 \begin_inset Flex Code
19330 \begin_layout Plain Layout
19339 \begin_layout Subsubsection
19343 \begin_layout Standard
19344 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19347 \begin_layout Standard
19352 \begin_layout Plain Layout
19353 ロックが有効になっていない場合です。第
19354 \begin_inset CommandInset ref
19356 reference "subsec:SVNファイルロック"
19366 \begin_inset Flex Code
19369 \begin_layout Plain Layout
19371 \begin_inset Quotes erd
19375 \begin_inset Quotes erd
19379 \begin_inset Quotes eld
19383 \begin_inset Quotes erd
19394 \begin_layout Subsubsection
19398 \begin_layout Standard
19399 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19403 \begin_layout Standard
19408 \begin_layout Plain Layout
19415 \begin_inset Flex Code
19418 \begin_layout Plain Layout
19419 svn update –non-interactive
19420 \begin_inset Quotes eld
19424 \begin_inset Quotes erd
19435 \begin_layout Subsubsection
19439 \begin_layout Standard
19440 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19443 \begin_layout Standard
19445 \begin_inset Flex Code
19448 \begin_layout Plain Layout
19450 \begin_inset Quotes eld
19454 \begin_inset Quotes erd
19465 \begin_layout Subsubsection
19471 \begin_layout Standard
19472 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19473 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19476 ファイル\SpecialChar menuseparator
19477 名前をつけて保存\SpecialChar ldots
19480 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19483 \begin_layout Labeling
19484 \labelwidthstring 00.00.0000
19488 \begin_layout Labeling
19489 \labelwidthstring 00.00.0000
19490 \begin_inset Flex Code
19493 \begin_layout Plain Layout
19494 svn copy -q "<ファイル名>" "<新ファイル名>"
19502 \begin_layout Labeling
19503 \labelwidthstring 00.00.0000
19504 \begin_inset Flex Code
19507 \begin_layout Plain Layout
19516 \begin_layout Subsubsection
19520 \begin_layout Standard
19521 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19522 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19525 ファイル\SpecialChar menuseparator
19526 名前をつけて保存\SpecialChar ldots
19529 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19532 \begin_layout Labeling
19533 \labelwidthstring 00.00.0000
19537 \begin_layout Labeling
19538 \labelwidthstring 00.00.0000
19539 \begin_inset Flex Code
19542 \begin_layout Plain Layout
19543 svn move -q add "<ファイル名>" "<新ファイル名>"
19551 \begin_layout Labeling
19552 \labelwidthstring 00.00.0000
19553 \begin_inset Flex Code
19556 \begin_layout Plain Layout
19565 \begin_layout Subsubsection
19566 \begin_inset CommandInset label
19568 name "subsec:レポジトリからSVN同期"
19572 レポジトリを使ったローカルディレクトリの同期
19576 \begin_layout Plain Layout
19578 \begin_inset Formula $\geqq1.5$
19581 でのみ動作することに注意してください。
19589 \begin_layout Standard
19590 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19591 \begin_inset Flex Code
19594 \begin_layout Plain Layout
19600 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19601 は、文書のおいてあるツリー全体の更新をサポートします
19605 \begin_layout Plain Layout
19606 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19611 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19615 \begin_layout Standard
19616 \begin_inset Flex Code
19619 \begin_layout Plain Layout
19625 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19626 場合には、更新が開始される前にユーザに警告が与えられます。
19629 \begin_layout Labeling
19630 \labelwidthstring 00.00.0000
19632 \begin_inset space ~
19636 \begin_inset Newline newline
19640 \begin_inset Flex Code
19643 \begin_layout Plain Layout
19644 svn diff $path(変更が発見された場合には通知します)
19645 \begin_inset Newline newline
19648 svn update –accept mine-full $path
19656 \begin_layout Standard
19658 \begin_inset Flex Code
19661 \begin_layout Plain Layout
19670 \begin_layout Subsubsection
19674 \begin_layout Standard
19675 これは、SVN文書の全履歴を表示します。
19676 \begin_inset Flex Code
19679 \begin_layout Plain Layout
19681 \begin_inset Quotes eld
19685 \begin_inset Quotes erd
19696 \begin_layout Subsubsection
19698 \begin_inset CommandInset label
19700 name "subsec:SVNファイルロック"
19707 \begin_layout Standard
19708 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19709 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19710 するための、何らかのロック機構を導入することが考えられます。
19713 \begin_layout Standard
19714 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19715 \begin_inset Flex Code
19718 \begin_layout Plain Layout
19724 svnファイル特性に依拠した書き込み権限の自動設定(第
19725 \begin_inset CommandInset ref
19727 reference "subsec:自動ロック特性"
19735 \begin_layout Plain Layout
19736 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19741 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19742 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19743 り替わります。これは特に、\SpecialChar LyX
19744 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19747 \begin_layout Itemize
19748 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19752 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19755 \begin_layout Itemize
19756 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19760 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19764 \begin_layout Plain Layout
19765 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19770 、書き込みロックの解放のみが行われます。
19773 \begin_layout Standard
19777 \begin_layout Labeling
19778 \labelwidthstring 00.00.0000
19780 \begin_inset Flex Code
19783 \begin_layout Plain Layout
19785 \begin_inset Quotes erd
19789 \begin_inset Quotes erd
19793 \begin_inset Quotes eld
19797 \begin_inset Quotes erd
19806 \begin_inset Newline newline
19810 \begin_inset Flex Code
19813 \begin_layout Plain Layout
19815 \begin_inset Quotes eld
19819 \begin_inset Quotes erd
19830 \begin_layout Labeling
19831 \labelwidthstring 00.00.0000
19833 \begin_inset Flex Code
19836 \begin_layout Plain Layout
19838 \begin_inset Quotes eld
19842 \begin_inset Quotes erd
19851 \begin_inset Newline newline
19855 \begin_inset Flex Code
19858 \begin_layout Plain Layout
19860 \begin_inset Quotes eld
19864 \begin_inset Quotes erd
19875 \begin_layout Subsubsection
19877 \begin_inset CommandInset label
19879 name "subsec:自動ロック特性"
19886 \begin_layout Standard
19888 \begin_inset Flex Code
19891 \begin_layout Plain Layout
19897 ファイルに対する書き込み権限の自動設定は、
19898 \begin_inset Flex MenuItem
19901 \begin_layout Plain Layout
19902 ファイル\SpecialChar menuseparator
19903 バージョン管理\SpecialChar menuseparator
19909 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19912 \begin_layout Standard
19916 \begin_layout Labeling
19917 \labelwidthstring 00.00.0000
19919 \begin_inset Flex Code
19922 \begin_layout Plain Layout
19923 svn propset svn:needs-lock ON
19924 \begin_inset Quotes eld
19928 \begin_inset Quotes erd
19939 \begin_layout Labeling
19940 \labelwidthstring 00.00.0000
19942 \begin_inset Flex Code
19945 \begin_layout Plain Layout
19946 svn propdel svn:needs-lock
19947 \begin_inset Quotes eld
19951 \begin_inset Quotes erd
19962 \begin_layout Subsubsection
19963 \begin_inset CommandInset label
19965 name "subsec:VCS改訂情報"
19972 \begin_layout Standard
19973 文書中で改訂情報を有効化するにはいくつかの方法があります。
19976 \begin_layout Itemize
19979 \begin_inset Separator parbreak
19986 \begin_layout Itemize
19988 \begin_inset Flex Code
19991 \begin_layout Plain Layout
19998 \begin_inset Flex Code
20001 \begin_layout Plain Layout
20007 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
20010 \begin_layout Standard
20012 \begin_inset Tabular
20013 <lyxtabular version="3" rows="6" columns="2">
20014 <features tabularvalignment="middle">
20015 <column alignment="center" valignment="top">
20016 <column alignment="center" valignment="top">
20018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20021 \begin_layout Plain Layout
20027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20030 \begin_layout Plain Layout
20038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20041 \begin_layout Plain Layout
20047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20050 \begin_layout Plain Layout
20058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20061 \begin_layout Plain Layout
20067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20070 \begin_layout Plain Layout
20078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20081 \begin_layout Plain Layout
20087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20090 \begin_layout Plain Layout
20098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20101 \begin_layout Plain Layout
20107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20110 \begin_layout Plain Layout
20111 チェックアウト頻度が低かったことによる不完全な作業コピー
20118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20121 \begin_layout Plain Layout
20127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20130 \begin_layout Plain Layout
20131 改訂版が混合し、修正され、スイッチされた作業コピー
20144 \begin_layout Itemize
20146 \begin_inset Flex Code
20149 \begin_layout Plain Layout
20151 \begin_inset space ~
20155 \begin_inset space ~
20159 \begin_inset space ~
20167 の出力を解析したものが返されます。サポートされるフラグは
20168 \begin_inset Separator parbreak
20175 \begin_layout Itemize
20177 \begin_inset Flex Code
20180 \begin_layout Plain Layout
20189 \begin_layout Itemize
20191 \begin_inset Flex Code
20194 \begin_layout Plain Layout
20203 \begin_layout Itemize
20205 \begin_inset Flex Code
20208 \begin_layout Plain Layout
20217 \begin_layout Itemize
20219 \begin_inset Flex Code
20222 \begin_layout Plain Layout
20232 \begin_layout Standard
20233 これらの情報は、情報差込枠で得ることができます(例:
20234 \begin_inset Flex Code
20237 \begin_layout Plain Layout
20238 info-insert buffer vcs-date
20243 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20244 \begin_inset Flex Code
20247 \begin_layout Plain Layout
20253 ディレクトリがあるときのみ)利用可能です。
20257 \begin_layout Itemize
20258 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20262 \begin_layout Plain Layout
20263 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20268 。簡単に言えば、ファイルキーワード特性を設定して(例:
20270 svn propset svn:keywords 'Rev' file.lyx
20272 )、文書中にキーワード\SpecialChar TeX
20277 \begin_layout Plain Layout
20278 これは、\SpecialChar LyX
20279 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20288 \begin_layout Plain Layout
20295 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20299 \begin_layout Plain Layout
20306 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20307 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20309 \begin_inset Formula $Rev$
20313 \begin_inset Formula $Rev:59$
20316 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20317 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20318 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20319 がこれを直接サポートすることは、難しそうです。
20322 \begin_layout Subsection
20326 \begin_layout Quote
20327 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20332 \begin_layout Subsubsection
20336 \begin_layout Standard
20338 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20339 トプログラムのWindows用インストーラは
20340 \begin_inset CommandInset href
20343 target "http://www.collab.net/nonav/downloads/subversion/"
20348 \begin_inset CommandInset href
20351 target "http://tortoisesvn.tigris.org/"
20355 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20357 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20358 自身が使用するクライアントプログラムの代わりとは成りませんので
20362 \begin_layout Subsubsection
20363 文書をSubversion管理下に置くには
20366 \begin_layout Standard
20368 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20369 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20370 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20372 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20373 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20375 \begin_inset Flex Code
20378 \begin_layout Plain Layout
20386 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20387 \begin_inset Flex Code
20390 \begin_layout Plain Layout
20399 \begin_layout Enumerate
20401 \begin_inset Flex Code
20404 \begin_layout Plain Layout
20413 \begin_inset Flex MenuItem
20416 \begin_layout Plain Layout
20417 TortoiseSVN\SpecialChar menuseparator
20423 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20426 \begin_layout Enumerate
20427 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20428 \begin_inset Flex MenuItem
20431 \begin_layout Plain Layout
20432 Create folder\SpecialChar ldots
20438 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20439 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20442 \begin_layout Enumerate
20444 \begin_inset Flex Code
20447 \begin_layout Plain Layout
20456 \begin_inset Flex MenuItem
20459 \begin_layout Plain Layout
20460 SVN Checkout\SpecialChar ldots
20466 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20467 \begin_inset Flex Code
20470 \begin_layout Plain Layout
20478 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20479 \begin_inset Flex Code
20482 \begin_layout Plain Layout
20491 \begin_inset Flex Code
20494 \begin_layout Plain Layout
20503 \begin_layout Enumerate
20506 \begin_inset Flex MenuItem
20509 \begin_layout Plain Layout
20510 ファイル\SpecialChar menuseparator
20511 バージョン管理\SpecialChar menuseparator
20517 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20520 \begin_layout Standard
20522 \begin_inset Flex MenuItem
20525 \begin_layout Plain Layout
20526 ファイル\SpecialChar menuseparator
20532 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20533 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20536 \begin_layout Subsubsection
20537 Windows下でSVNと共にSSHトンネルを使うには
20540 \begin_layout Standard
20541 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20542 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20546 \begin_layout Enumerate
20547 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20548 \begin_inset Flex Code
20551 \begin_layout Plain Layout
20557 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20560 \begin_layout Enumerate
20561 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20565 \begin_layout Plain Layout
20566 \begin_inset Flex URL
20569 \begin_layout Plain Layout
20571 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20581 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20583 \begin_inset Flex Ruby
20586 \begin_layout Plain Layout
20588 \begin_inset Argument post:1
20591 \begin_layout Plain Layout
20603 \begin_inset Separator parbreak
20610 \begin_layout Enumerate
20611 \begin_inset Flex Code
20614 \begin_layout Plain Layout
20620 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20621 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20622 s file:」編集フィールドから、直接サーバの
20623 \begin_inset Flex Code
20626 \begin_layout Plain Layout
20627 ~/.ssh/authorized_keys
20633 \begin_inset Flex Code
20636 \begin_layout Plain Layout
20642 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20645 \begin_layout Enumerate
20646 Puttyのplinkを入手してください。SVNのconfigファイル
20650 \begin_layout Plain Layout
20651 正確なパスはWindowsのバージョンに依りますが、通常は
20652 \begin_inset Flex Code
20655 \begin_layout Plain Layout
20658 Documents and Settings
20672 \begin_inset Flex Code
20675 \begin_layout Plain Layout
20691 \begin_inset Flex Code
20694 \begin_layout Plain Layout
20700 セクションにsshコマンドを設定してください。例:
20701 \begin_inset Flex Code
20704 \begin_layout Plain Layout
20705 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20714 \begin_layout Plain Layout
20715 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20716 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20725 \begin_layout Enumerate
20726 SVNアーカイブをチェックアウトしてください。例:
20727 \begin_inset Newline newline
20731 \begin_inset Flex Code
20734 \begin_layout Plain Layout
20735 svn co svn+ssh://user@server/repository_path
20743 \begin_layout Subsubsection
20747 \begin_layout Standard
20748 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20749 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20751 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20752 \begin_inset Flex Code
20755 \begin_layout Plain Layout
20765 \begin_layout Plain Layout
20767 \begin_inset Flex Code
20770 \begin_layout Plain Layout
20771 svn propset svn:eol-style native FILE_NAME
20781 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20785 \begin_layout Plain Layout
20786 \begin_inset Flex URL
20789 \begin_layout Plain Layout
20791 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20804 \begin_layout Subsection
20809 \begin_layout Standard
20811 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20813 ファイル\SpecialChar menuseparator
20816 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20821 \begin_layout Standard
20822 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20823 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20824 ミットを行います。ローカルリポジトリは、GITコマンドの
20825 \begin_inset Flex Code
20828 \begin_layout Plain Layout
20835 \begin_inset Flex Code
20838 \begin_layout Plain Layout
20844 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20845 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20846 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20847 \begin_inset Flex Code
20850 \begin_layout Plain Layout
20857 \begin_inset Flex Code
20860 \begin_layout Plain Layout
20869 \begin_layout Subsubsection
20873 \begin_layout Standard
20874 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20881 \begin_layout Standard
20882 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20887 \begin_inset Flex Code
20890 \begin_layout Plain Layout
20896 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20899 \begin_layout Standard
20900 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20903 \begin_layout Standard
20905 \begin_inset Flex Code
20908 \begin_layout Plain Layout
20917 \begin_layout Standard
20919 \begin_inset Flex Code
20922 \begin_layout Plain Layout
20931 \begin_layout Subsubsection
20935 \begin_layout Standard
20936 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20939 \begin_layout Standard
20941 \begin_inset Flex Code
20944 \begin_layout Plain Layout
20946 \begin_inset Quotes erd
20950 \begin_inset Quotes erd
20961 \begin_layout Subsubsection
20965 \begin_layout Standard
20966 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20969 \begin_layout Standard
20971 \begin_inset Flex Code
20974 \begin_layout Plain Layout
20976 \begin_inset Quotes eld
20980 \begin_inset Quotes erd
20991 \begin_layout Subsubsection
20995 \begin_layout Standard
20996 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20997 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
21000 ファイル\SpecialChar menuseparator
21001 名前をつけて保存\SpecialChar ldots
21004 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
21007 \begin_layout Labeling
21008 \labelwidthstring 00.00.0000
21012 \begin_layout Labeling
21013 \labelwidthstring 00.00.0000
21014 \begin_inset Flex Code
21017 \begin_layout Plain Layout
21018 git mv "<ファイル名>" "<新ファイル名>"
21026 \begin_layout Labeling
21027 \labelwidthstring 00.00.0000
21028 \begin_inset Flex Code
21031 \begin_layout Plain Layout
21040 \begin_layout Subsubsection
21044 \begin_layout Standard
21045 これは、GIT文書の全履歴を表示します。
21046 \begin_inset Flex Code
21049 \begin_layout Plain Layout
21051 \begin_inset Quotes eld
21055 \begin_inset Quotes erd
21066 \begin_layout Subsubsection
21070 \begin_layout Standard
21072 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21074 git log -n 1 --pretty=format:%H%n%an%n%ai
21076 によって抽出されます。ツリーバージョン情報は、
21078 git describe --abbrev --dirty --long
21081 \begin_inset CommandInset ref
21083 reference "subsec:VCS改訂情報"
21090 \begin_layout Subsection
21094 \begin_layout Standard
21095 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21096 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21099 \begin_layout Standard
21100 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21103 \begin_layout Description
21105 \begin_inset Flex Code
21108 \begin_layout Plain Layout
21109 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21117 \begin_layout Description
21119 \begin_inset Flex Code
21122 \begin_layout Plain Layout
21123 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21131 \begin_layout Subsection
21135 \begin_layout Standard
21137 \begin_inset Flex Code
21140 \begin_layout Plain Layout
21146 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21148 まり便利ではありません。そこで、\SpecialChar LyX
21149 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21151 \begin_inset Flex Code
21154 \begin_layout Plain Layout
21160 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21162 \begin_inset Flex MenuItem
21165 \begin_layout Plain Layout
21166 旧改訂と比較\SpecialChar ldots
21172 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21174 \begin_inset Flex MenuItem
21177 \begin_layout Plain Layout
21183 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21186 \begin_layout Standard
21187 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21188 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21189 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21192 \begin_layout Section
21196 \begin_layout Standard
21201 (kayvan@sylvan.com)改訂
21203 Edmar Wienskoski Jr.
21205 (edmar-w-jr@technologist.com)原文
21208 \begin_layout Subsection
21212 \begin_layout Standard
21213 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21214 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21215 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21216 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21219 \begin_layout Standard
21220 また、あなたが、\SpecialChar LyX
21221 の設定を変更することを厭わない程度まで\SpecialChar LyX
21222 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21223 するトピックを扱っている、\SpecialChar LyX
21227 \begin_layout Subsection
21231 \begin_layout Standard
21232 以下は、文芸プログラミング FAQからの抜粋です。
21235 \begin_layout Quotation
21236 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21237 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21238 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21240 \begin_inset space \thinspace{}
21244 Knuthが、\SpecialChar TeX
21245 組版ソフトウエアを開発中に作り出したものです。
21248 \begin_layout Standard
21252 \begin_layout Quotation
21255 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21258 \begin_layout Quotation
21259 3つの際立った特徴があります。重要な順に列挙すれば、
21260 \begin_inset Separator parbreak
21267 \begin_layout Itemize
21271 \begin_layout Itemize
21275 \begin_layout Itemize
21276 特に図式と数式を含んだドキュメンテーションの組版
21280 \begin_layout Quotation
21284 \begin_layout Standard
21285 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21288 \begin_layout Subsubsection
21292 \begin_layout Standard
21296 \begin_layout Quote
21297 Literate Programming FAQ
21298 \begin_inset Flex URL
21301 \begin_layout Plain Layout
21303 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21311 \begin_layout Standard
21315 \begin_layout Standard
21316 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21317 を持つものもあります。私は自分で使うのに、いくつかの理由から
21324 \begin_layout Itemize
21325 説明文書を\SpecialChar LaTeX
21329 \begin_layout Itemize
21330 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21333 \begin_layout Itemize
21334 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21337 \begin_layout Itemize
21341 \begin_layout Standard
21345 \begin_layout Quote
21347 \begin_inset Flex URL
21350 \begin_layout Plain Layout
21352 http://www.cs.virginia.edu/~nr/noweb/
21360 \begin_layout Standard
21361 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21364 \begin_layout Subsection
21366 とNowebを使った文芸プログラミング
21369 \begin_layout Standard
21371 における文芸プログラミングのサポートは、\SpecialChar LyX
21372 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21373 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21377 \begin_layout Subsubsection
21378 ドキュメントとコードの生成(weavingおよびtangling)
21381 \begin_layout Paragraph
21385 \begin_layout Standard
21386 Nowebと\SpecialChar LyX
21387 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21389 文書\SpecialChar menuseparator
21392 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21393 web」モジュールが表示され、文書に追加できるようになっています。
21396 \begin_layout Paragraph
21400 \begin_layout Standard
21403 \begin_inset Flex Noun
21406 \begin_layout Plain Layout
21412 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21415 \begin_layout LyX-Code
21419 \begin_layout LyX-Code
21423 \begin_layout LyX-Code
21427 \begin_layout LyX-Code
21431 \begin_layout LyX-Code
21435 \begin_layout Standard
21436 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21437 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21439 \begin_inset Flex Noun
21442 \begin_layout Plain Layout
21448 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21451 \begin_layout Standard
21452 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21455 \begin_layout LyX-Code
21459 \begin_layout LyX-Code
21460 def some_function(args):
21463 \begin_layout LyX-Code
21464 "This is the doc string for this function."
21467 \begin_layout LyX-Code
21468 print "My args: ", args
21471 \begin_layout LyX-Code
21472 @ %def some_function
21475 \begin_layout Standard
21476 これをどのように使って、その結果相互参照がどうなるかは
21478 LIBDIR/examples/listerrors.lyx
21480 の中の文芸pythonプログラムを見るとよくわかります。
21483 \begin_layout Paragraph
21487 \begin_layout Standard
21488 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21491 文書\SpecialChar menuseparator
21494 等を選ぶだけです。特別な手続きは必要ありません。
21497 \begin_layout Standard
21498 理解を助けるために、\SpecialChar LyX
21499 の内部で何が起っているかを説明しておきましょう。
21502 \begin_layout Enumerate
21505 文書\SpecialChar menuseparator
21508 が選択されると、\SpecialChar LaTeX
21510 \begin_inset Separator parbreak
21517 \begin_layout Standard
21518 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21519 \begin_inset Flex MenuItem
21522 \begin_layout Plain Layout
21528 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21532 \begin_layout Enumerate
21533 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21535 \begin_inset Flex Noun
21538 \begin_layout Plain Layout
21544 環境でコードを入力するのだけがポイントです。
21547 \begin_layout Enumerate
21548 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21550 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21555 \begin_layout Plain Layout
21558 ツール\SpecialChar menuseparator
21561 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21574 を使って\SpecialChar LaTeX
21576 \begin_inset Separator parbreak
21583 \begin_layout Standard
21584 それ以外の場合はこのステップを飛ばします。
21588 \begin_layout Enumerate
21589 最後に\SpecialChar LaTeX
21590 が実行され、通常の文書と同じ後処理が行われます。
21593 \begin_layout Standard
21594 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21597 \begin_layout Paragraph
21601 \begin_layout Standard
21602 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21603 ファイルが生成されます。それから\SpecialChar LyX
21608 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21611 \begin_layout Enumerate
21612 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21616 \begin_layout Enumerate
21617 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21618 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21619 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21622 \begin_layout Standard
21624 \begin_inset Newline newline
21628 \begin_inset Quotes eld
21633 build-script $$i $$r
21636 \begin_inset Quotes erd
21640 \begin_inset Newline newline
21643 と指定します。これは基本的に、\SpecialChar LyX
21645 \begin_inset Quotes erd
21653 \begin_inset Quotes erd
21656 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21657 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21658 ファイルのディレクトリパスを使って呼び出すこ
21662 \begin_layout Standard
21663 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21666 \begin_layout Standard
21667 \begin_inset VSpace defskip
21671 \begin_inset Newpage pagebreak
21677 \begin_layout Standard
21683 \begin_layout Standard
21689 \begin_layout Standard
21692 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21695 \begin_layout Standard
21696 \begin_inset VSpace defskip
21702 \begin_layout Standard
21703 変換子設定の次の部分は「フラグ」で、これは
21704 \begin_inset Quotes erd
21709 parselog=$$s/scripts/listerrors
21712 \begin_inset Quotes erd
21716 \begin_inset Newline newline
21720 \begin_inset Quotes erd
21724 \begin_inset Quotes erd
21728 \begin_inset Quotes erd
21732 \begin_inset Quotes erd
21738 \begin_layout Standard
21739 ビルドは、通常\SpecialChar LyX
21740 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21741 は、主要ファイルとみなされるものをコピーして取り出
21746 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21747 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21748 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21751 \begin_layout Paragraph
21755 \begin_layout Standard
21758 \begin_inset Quotes eld
21762 \begin_inset Quotes erd
21765 chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21766 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21769 \begin_layout Standard
21770 以下に典型的なchunkがどのようなものかを書いておきます。
21773 \begin_layout LyX-Code
21775 \begin_inset Newline newline
21781 \begin_layout LyX-Code
21783 \begin_inset Newline newline
21787 \begin_inset Newline newline
21790 if [ -z "${NOWEB_SOURCE}" ]
21791 \begin_inset Newline newline
21797 \begin_layout LyX-Code
21798 NOWEB_SOURCE=myfile.nw
21799 \begin_inset Newline newline
21803 \begin_inset Newline newline
21807 code to extract files ...
21808 use NOWEB_OUTPUT_DIR here ...]
21809 \begin_inset Newline newline
21813 code to compile files ...]
21814 \begin_inset Newline newline
21820 \begin_layout Standard
21823 LIBDIR/examples/listerrors.lyx
21827 LIBDIR/examples/Literate.lyx
21829 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21832 LIBDIR/examples/noweb2lyx.lyx
21834 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21835 の文芸プログラミングのサポートがプログラム言語に依存しない
21839 \begin_layout Subsubsection
21844 \begin_layout Standard
21845 すべての文芸プログラムのための設定は、
21847 ツール\SpecialChar menuseparator
21850 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21853 \begin_layout Description
21854 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21866 に設定してください。これによって、\SpecialChar LyX
21867 に変換プロセスの第一段階でつくられるファイルに
21871 という拡張子をつけることを指示します。
21874 \begin_layout Description
21875 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21878 \begin_layout Description
21888 この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21890 noweave -delay -index $$i > $$o
21895 \begin_layout Description
21904 これは「tangling」を行います。上述のように、変換子は「
21906 build-script $$i $$r
21910 parselog=$$s/scripts/listerrors
21915 \begin_layout Subsubsection
21919 \begin_layout Standard
21920 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21924 \begin_layout Standard
21925 ddd/gdbでデバッグしているとき、一つの
21926 \begin_inset Flex Ruby
21929 \begin_layout Plain Layout
21931 \begin_inset Argument post:1
21934 \begin_layout Plain Layout
21945 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21946 \begin_inset Flex MenuItem
21949 \begin_layout Plain Layout
21950 ツール\SpecialChar menuseparator
21951 設定\SpecialChar menuseparator
21958 \begin_inset Flex MenuItem
21961 \begin_layout Plain Layout
21967 エントリを変えると変えることができます。
21970 \begin_layout Standard
21971 新しい\SpecialChar LyX
21972 サーバの関数と、このdddの機能を使うために
21973 \begin_inset Flex MenuItem
21976 \begin_layout Plain Layout
21985 \begin_layout Standard
21986 \begin_inset VSpace defskip
21992 \begin_layout Standard
21995 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21998 \begin_layout Standard
21999 \begin_inset VSpace defskip
22005 \begin_layout Standard
22006 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22007 サーバに情報を送り、\SpecialChar LyX
22009 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
22012 \begin_layout Standard
22013 この機能が動くには\SpecialChar LyX
22014 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22015 サーバーは使えないようになっています)。\SpecialChar LyX
22019 \begin_inset Flex MenuItem
22022 \begin_layout Plain Layout
22035 \begin_inset Flex MenuItem
22038 \begin_layout Plain Layout
22051 \begin_inset Flex MenuItem
22054 \begin_layout Plain Layout
22068 \begin_inset Quotes eld
22073 /home/<your-home-directory>/.lyx/lyxpipe
22076 \begin_inset Quotes erd
22082 \begin_layout Standard
22084 \begin_inset CommandInset ref
22086 reference "chap:LyXサーバー"
22093 \begin_layout Subsubsection
22097 \begin_layout Standard
22098 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22116 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22117 \begin_inset Flex Ruby
22120 \begin_layout Plain Layout
22140 \begin_inset Argument post:1
22143 \begin_layout Plain Layout
22157 \begin_layout Standard
22159 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22160 \begin_inset Flex MenuItem
22163 \begin_layout Plain Layout
22164 文書\SpecialChar menuseparator
22165 更新\SpecialChar menuseparator
22172 \begin_inset Flex MenuItem
22175 \begin_layout Plain Layout
22176 文書\SpecialChar menuseparator
22177 表示\SpecialChar menuseparator
22186 \begin_layout LyX-Code
22190 \begin_layout LyX-Code
22194 \begin_layout LyX-Code
22195 Icon "layout Standard"
22198 \begin_layout LyX-Code
22199 Icon "layout Section"
22202 \begin_layout LyX-Code
22203 Icon "layout \SpecialChar LaTeX
22207 \begin_layout LyX-Code
22208 Icon "layout \SpecialChar LyX
22212 \begin_layout LyX-Code
22213 Icon "layout Chunk"
22216 \begin_layout LyX-Code
22220 \begin_layout LyX-Code
22224 \begin_layout LyX-Code
22225 Icon "buffer-typeset"
22228 \begin_layout LyX-Code
22229 Icon "build-program"
22232 \begin_layout LyX-Code
22236 \begin_layout LyX-Code
22240 \begin_layout LyX-Code
22244 \begin_layout LyX-Code
22248 \begin_layout LyX-Code
22252 \begin_layout Subsubsection
22256 \begin_layout Standard
22259 \begin_inset Flex MenuItem
22262 \begin_layout Plain Layout
22268 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22269 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22270 フォントを使うことになっていて、文芸プログラミ
22271 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22272 \begin_inset Flex MenuItem
22275 \begin_layout Plain Layout
22276 操作性\SpecialChar menuseparator
22285 \begin_layout Standard
22286 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22287 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22290 \begin_layout Subsection
22295 \begin_layout Standard
22296 knitrとSweaveへのサポートについては、用例ファイル
22302 ヘルプ\SpecialChar menuseparator
22308 \begin_layout Chapter
22310 \begin_inset CommandInset label
22312 name "chap:Special-features"
22319 \begin_layout Standard
22321 では、\SpecialChar LaTeX
22322 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22323 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22324 コードを使用することはできます。本章は、ユーザの興味が
22325 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22332 \begin_layout Section
22336 \begin_layout Standard
22345 とは別の機能です。文書全体に二段組を行いたい場合には、
22349 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22352 \begin_layout Standard
22353 文書中で多段組を行うには、\SpecialChar LaTeX
22359 \begin_inset Index idx
22362 \begin_layout Plain Layout
22364 ぱっけーじ @ \SpecialChar LaTeX
22372 文書\SpecialChar menuseparator
22373 設定\SpecialChar menuseparator
22383 \begin_layout Standard
22384 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22388 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22391 \begin_layout Subsection
22395 \begin_layout Standard
22396 文章中で二段組を使用したい場合には、段組を始める場所で
22398 挿入\SpecialChar menuseparator
22399 任意設定差込枠\SpecialChar menuseparator
22402 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22405 \begin_layout Standard
22409 \begin_layout Standard
22411 \begin_inset Flex Multiple Columns
22414 \begin_layout Plain Layout
22419 The Adventure of the Empty House
22422 \begin_inset Newline newline
22425 by Sir Arthur Conan Doyle
22428 \begin_layout Plain Layout
22431 It was in the spring of the year 1894 that all London was interested, and
22432 the fashionable world dismayed, by the murder of the Honourable Ronald
22433 Adair under most unusual and inexplicable circumstances.
22434 The public has already learned those particulars of the crime which came
22435 out in the police investigation, but a good deal was suppressed upon that
22436 occasion, since the case for the prosecution was so overwhelmingly strong
22437 that it was not necessary to bring forward all the facts.
22438 Only now, at the end of nearly ten years, am I allowed to supply those
22439 missing links which make up the whole of that remarkable chain.
22440 The crime was of interest in itself, but that interest was as nothing to
22441 me compared to the inconceivable sequel, which afforded me the greatest
22442 shock and surprise of any event in my adventurous life.
22443 Even now, after this long interval, I find myself thrilling as I think
22444 of it, and feeling once more that sudden flood of joy, amazement, and increduli
22445 ty which utterly submerged my mind.
22446 Let me say to that public, which has shown some interest in those glimpses
22447 which I have occasionally given them of the thoughts and actions of a very
22448 remarkable man, that they are not to blame me if I have not shared my knowledge
22449 with them, for I should have considered it my first duty to do so, had
22450 I not been barred by a positive prohibition from his own lips, which was
22451 only withdrawn upon the third of last month.
22459 \begin_layout Standard
22460 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22461 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22463 \begin_inset Newline newline
22469 \begin_layout Standard
22470 \begin_inset Flex Multiple Columns
22473 \begin_layout Plain Layout
22476 \begin_inset Argument 1
22479 \begin_layout Plain Layout
22485 It can be imagined that my close intimacy with Sherlock Holmes had interested
22486 me deeply in crime, and that after his disappearance I never failed to
22487 read with care the various problems which came before the public.
22488 And I even attempted, more than once, for my own private satisfaction,
22489 to employ his methods in their solution, though with indifferent success.
22490 There was none, however, which appealed to me like this tragedy of Ronald
22492 As I read the evidence at the inquest, which led up to a verdict of willful
22493 murder against some person or persons unknown, I realized more clearly
22494 than I had ever done the loss which the community had sustained by the
22495 death of Sherlock Holmes.
22496 There were points about this strange business which would, I was sure,
22497 have specially appealed to him, and the efforts of the police would have
22498 been supplemented, or more probably anticipated, by the trained observation
22499 and the alert mind of the first criminal agent in Europe.
22500 All day, as I drove upon my round, I turned over the case in my mind and
22501 found no explanation which appeared to me to be adequate.
22502 At the risk of telling a twice-told tale, I will recapitulate the facts
22503 as they were known to the public at the conclusion of the inquest.
22511 \begin_layout Standard
22512 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22515 \begin_layout Standard
22516 \begin_inset Newpage newpage
22522 \begin_layout Subsection
22526 \begin_layout Standard
22530 \begin_layout Standard
22531 \begin_inset Flex Multiple Columns
22534 \begin_layout Plain Layout
22537 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22538 at that time governor of one of the Australian colonies.
22539 Adair's mother had returned from Australia to undergo the operation for
22540 cataract, and she, her son Ronald, and her daughter Hilda were living together
22544 \begin_layout Plain Layout
22545 \begin_inset Flex Multiple Columns
22548 \begin_layout Plain Layout
22551 The youth moved in the best society–had, so far as was known, no enemies
22552 and no particular vices.
22553 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22554 had been broken off by mutual consent some months before, and there was
22555 no sign that it had left any very profound feeling behind it.
22556 For the rest {sic} the man's life moved in a narrow and conventional circle,
22557 for his habits were quiet and his nature unemotional.
22558 Yet it was upon this easy-going young aristocrat that death came, in most
22559 strange and unexpected form, between the hours of ten and eleven-twenty
22560 on the night of March 30, 1894.
22568 \begin_layout Plain Layout
22571 Ronald Adair was fond of cards–playing continually, but never for such stakes
22573 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22574 It was shown that, after dinner on the day of his death, he had played
22575 a rubber of whist at the latter club.
22576 He had also played there in the afternoon.
22581 The evidence of those who had played with him– Mr.
22582 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22583 and that there was a fairly equal fall of the cards.
22584 Adair might have lost five pounds, but not more.
22585 His fortune was a considerable one, and such a loss could not in any way
22587 He had played nearly every day at one club or other, but he was a cautious
22588 player, and usually rose a winner.
22589 It came out in evidence that, in partnership with Colonel Moran, he had
22590 actually won as much as four hundred and twenty pounds in a sitting, some
22591 weeks before, from Godfrey Milner and Lord Balmoral.
22592 So much for his recent history as it came out at the inquest.
22600 \begin_layout Subsection
22604 \begin_layout Standard
22605 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22608 \begin_layout Standard
22609 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22615 \begin_inset CommandInset citation
22624 \begin_layout Subsubsection
22628 \begin_layout Standard
22629 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22631 挿入\SpecialChar menuseparator
22634 メニューを使用してください。序文は、この差込枠内に書いてください。
22635 \begin_inset Newline newline
22641 \begin_layout Standard
22642 \begin_inset VSpace bigskip
22648 \begin_layout Standard
22649 \begin_inset Flex Multiple Columns
22652 \begin_layout Plain Layout
22653 \begin_inset Argument 2
22656 \begin_layout Plain Layout
22657 And the story continues and continues and continues and continues\SpecialChar ldots
22665 On the evening of the crime, he returned from the club exactly at ten.
22666 His mother and sister were out spending the evening with a relation.
22667 The servant deposed that she heard him enter the front room on the second
22668 floor, generally used as his sitting-room.
22669 She had lit a fire there, and as it smoked she had opened the window.
22670 No sound was heard from the room until eleven-twenty, the hour of the return
22671 of Lady Maynooth and her daughter.
22672 Desiring to say good-night, she attempted to enter her son's room.
22673 The door was locked on the inside, and no answer could be got to their
22674 cries and knocking.
22675 Help was obtained, and the door forced.
22676 The unfortunate young man was found lying near the table.
22677 His head had been horribly mutilated by an expanding revolver bullet, but
22678 no weapon of any sort was to be found in the room.
22686 \begin_layout Standard
22687 最初の\SpecialChar TeX
22688 コードの後に、節宣言コマンドを\SpecialChar TeX
22689 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22692 \begin_layout Standard
22700 \begin_layout Standard
22701 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22704 \begin_layout Standard
22705 \begin_inset Flex Multiple Columns
22708 \begin_layout Plain Layout
22709 \begin_inset Argument 2
22712 \begin_layout Plain Layout
22716 \begin_layout Plain Layout
22729 \begin_layout Plain Layout
22743 A minute examination of the circumstances served only to make the case more
22745 In the first place, no reason could be given why the young man should have
22746 fastened the door upon the inside.
22747 There was the possibility that the murderer had done this, and had afterwards
22748 escaped by the window.
22749 The drop was at least twenty feet, however, and a bed of crocuses in full
22751 Neither the flowers nor the earth showed any sign of having been disturbed,
22752 nor were there any marks upon the narrow strip of grass which separated
22753 the house from the road.
22754 Apparently, therefore, it was the young man himself who had fastened the
22756 But how did he come by his death? No one could have climbed up to the window
22757 without leaving traces.
22758 Suppose a man had fired through the window, he would indeed be a remarkable
22759 shot who could with a revolver inflict so deadly a wound.
22760 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22761 a hundred yards of the house.
22762 No one had heard a shot.
22770 \begin_layout Standard
22771 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22772 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22774 挿入\SpecialChar menuseparator
22777 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22780 \begin_layout Standard
22783 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22790 コードとして入力する必要があります)。
22793 \begin_layout Standard
22794 \begin_inset Flex Multiple Columns
22797 \begin_layout Plain Layout
22798 \begin_inset Argument 3
22801 \begin_layout Plain Layout
22806 \begin_layout Plain Layout
22822 On the evening of the crime, he returned from the club exactly at ten.
22823 His mother and sister were out spending the evening with a relation.
22824 The servant deposed that she heard him enter the front room on the second
22825 floor, generally used as his sitting-room.
22826 She had lit a fire there, and as it smoked she had opened the window.
22827 No sound was heard from the room until eleven-twenty, the hour of the return
22828 of Lady Maynooth and her daughter.
22829 Desiring to say good-night, she attempted to enter her son's room.
22830 The door was locked on the inside, and no answer could be got to their
22831 cries and knocking.
22832 Help was obtained, and the door forced.
22833 The unfortunate young man was found lying near the table.
22834 His head had been horribly mutilated by an expanding revolver bullet, but
22835 no weapon of any sort was to be found in the room.
22843 \begin_layout Subsubsection
22847 \begin_layout Standard
22854 を変えることで変更することができます。例えば、\SpecialChar TeX
22858 \begin_layout Standard
22868 \begin_layout Standard
22870 \begin_inset space \thinspace{}
22873 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22874 \begin_inset space \thinspace{}
22880 \begin_layout Standard
22888 \begin_inset space \thinspace{}
22894 \begin_layout Standard
22898 \begin_layout Plain Layout
22904 multicolsep}{2.5cm}
22912 \begin_layout Standard
22913 \begin_inset Flex Multiple Columns
22916 \begin_layout Plain Layout
22919 All day I turned these facts over in my mind, endeavouring to hit upon some
22920 theory which could reconcile them all, and to find that line of least resistanc
22921 e which my poor friend had declared to be the starting-point of every investigat
22923 I confess that I made little progress.
22924 In the evening I strolled across the Park, and found myself about six o'clock
22925 at the Oxford Street end of Park Lane.
22926 A group of loafers upon the pavements, all staring up at a particular window,
22927 directed me to the house which I had come to see.
22928 A tall, thin man with coloured glasses, whom I strongly suspected of being
22929 a plain-clothes detective, was pointing out some theory of his own, while
22930 the others crowded round to listen to what he said.
22931 I got as near him as I could, but his observations seemed to me to be absurd,
22932 so I withdrew again in some disgust.
22933 As I did so I struck against an elderly, deformed man, who had been behind
22934 me, and I knocked down several books which he was carrying.
22942 \begin_layout Standard
22943 \begin_inset Note Greyedout
22946 \begin_layout Plain Layout
22953 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22961 \begin_layout Standard
22965 \begin_layout Plain Layout
22977 \begin_inset Note Note
22980 \begin_layout Plain Layout
22983 go back to the default
22991 \begin_layout Standard
22992 \begin_inset Newpage newpage
22998 \begin_layout Subsubsection
23002 \begin_layout Standard
23003 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
23010 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
23011 \begin_inset Newline newline
23017 \begin_layout Standard
23018 \begin_inset Flex Multiple Columns
23021 \begin_layout Plain Layout
23024 \begin_inset Quotes eld
23027 You're surprised to see me, sir,
23028 \begin_inset Quotes erd
23031 said he, in a strange, croaking voice.
23034 \begin_layout Plain Layout
23037 I acknowledged that I was.
23040 \begin_layout Plain Layout
23043 \begin_inset Quotes eld
23046 Well, I've a conscience, sir, and when I chanced to see you go into this
23047 house, as I came hobbling after you, I thought to myself, I'll just step
23048 in and see that kind gentleman, and tell him that if I was a bit gruff
23049 in my manner there was not any harm meant, and that I am much obliged to
23050 him for picking up my books.
23051 \begin_inset Quotes erd
23057 \begin_layout Plain Layout
23060 \begin_inset Quotes eld
23063 You make too much of a trifle,
23064 \begin_inset Quotes erd
23069 \begin_inset Quotes eld
23072 May I ask how you knew who I was?
23073 \begin_inset Quotes erd
23076 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23080 \begin_layout Plain Layout
23092 \begin_layout Plain Layout
23095 \begin_inset Quotes eld
23098 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23099 you'll find my little bookshop at the corner of Church Street, and very
23100 happy to see you, I am sure.
23101 Maybe you collect yourself, sir.
23105 \begin_inset space ~
23118 –a bargain, every one of them.
23119 With five volumes you could just fill that gap on that second shelf.
23120 It looks untidy, does it not, sir?
23121 \begin_inset Quotes erd
23132 \begin_layout Subsubsection
23136 \begin_layout Standard
23137 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23143 を変更することで実現できます。既定値は10
23144 \begin_inset space \thinspace{}
23154 \begin_inset space \thinspace{}
23160 \begin_layout Standard
23164 \begin_layout Plain Layout
23178 \begin_layout Standard
23179 \begin_inset Flex Multiple Columns
23182 \begin_layout Plain Layout
23185 My observations of No.
23186 \begin_inset space \space{}
23189 427 Park Lane did little to clear up the problem in which I was interested.
23190 The house was separated from the street by a low wall and railing, the
23191 whole not more than five feet high.
23192 It was perfectly easy, therefore, for anyone to get into the garden, but
23193 the window was entirely inaccessible, since there was no water pipe or
23194 anything which could help the most active man to climb it.
23195 More puzzled than ever, I retraced my steps to Kensington.
23196 I had not been in my study five minutes when the maid entered to say that
23197 a person desired to see me.
23198 To my astonishment it was none other than my strange old book collector,
23199 his sharp, wizened face peering out from a frame of white hair, and his
23200 precious volumes, a dozen of them at least, wedged under his right arm.
23208 \begin_layout Standard
23212 \begin_layout Plain Layout
23224 \begin_inset Note Note
23227 \begin_layout Plain Layout
23230 go back to the default
23238 \begin_layout Subsubsection
23242 \begin_layout Standard
23249 の幅を持つ罫線が描かれます。罫線幅を0
23250 \begin_inset space \thinspace{}
23253 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23254 \begin_inset space \thinspace{}
23260 \begin_layout Standard
23264 \begin_layout Plain Layout
23270 columnseprule}{2pt}
23278 \begin_layout Standard
23279 \begin_inset Flex Multiple Columns
23282 \begin_layout Plain Layout
23285 \begin_inset Quotes eld
23288 You're surprised to see me, sir,
23289 \begin_inset Quotes erd
23292 said he, in a strange, croaking voice.
23295 \begin_layout Plain Layout
23298 I acknowledged that I was.
23301 \begin_layout Plain Layout
23304 \begin_inset Quotes eld
23307 Well, I've a conscience, sir, and when I chanced to see you go into this
23308 house, as I came hobbling after you, I thought to myself, I'll just step
23309 in and see that kind gentleman, and tell him that if I was a bit gruff
23310 in my manner there was not any harm meant, and that I am much obliged to
23311 him for picking up my books.
23312 \begin_inset Quotes erd
23318 \begin_layout Plain Layout
23321 \begin_inset Quotes eld
23324 You make too much of a trifle,
23325 \begin_inset Quotes erd
23330 \begin_inset Quotes eld
23333 May I ask how you knew who I was?
23334 \begin_inset Quotes erd
23340 \begin_layout Plain Layout
23343 \begin_inset Quotes eld
23346 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23347 you'll find my little bookshop at the corner of Church Street, and very
23348 happy to see you, I am sure.
23349 Maybe you collect yourself, sir.
23353 \begin_inset space ~
23366 –a bargain, every one of them.
23367 With five volumes you could just fill that gap on that second shelf.
23368 It looks untidy, does it not, sir?
23369 \begin_inset Quotes erd
23380 \begin_layout Standard
23381 \begin_inset VSpace defskip
23387 \begin_layout Standard
23394 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23395 コードで以下のコマンドを挿入すれば、実現できます。
23396 \begin_inset Newline newline
23405 columnseprulecolor}{
23410 \begin_inset Newline newline
23417 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23425 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23426 \begin_inset Newline newline
23435 columnseprulecolor}{
23440 \begin_inset Newline newline
23444 \begin_inset space \thinspace{}
23450 \begin_layout Standard
23454 \begin_layout Plain Layout
23463 \begin_layout Plain Layout
23469 columnseprulecolor}{
23479 \begin_layout Standard
23480 \begin_inset Flex Multiple Columns
23483 \begin_layout Plain Layout
23486 \begin_inset Quotes eld
23489 You're surprised to see me, sir,
23490 \begin_inset Quotes erd
23493 said he, in a strange, croaking voice.
23496 \begin_layout Plain Layout
23499 I acknowledged that I was.
23502 \begin_layout Plain Layout
23505 \begin_inset Quotes eld
23508 Well, I've a conscience, sir, and when I chanced to see you go into this
23509 house, as I came hobbling after you, I thought to myself, I'll just step
23510 in and see that kind gentleman, and tell him that if I was a bit gruff
23511 in my manner there was not any harm meant, and that I am much obliged to
23512 him for picking up my books.
23513 \begin_inset Quotes erd
23519 \begin_layout Plain Layout
23522 \begin_inset Quotes eld
23525 You make too much of a trifle,
23526 \begin_inset Quotes erd
23531 \begin_inset Quotes eld
23534 May I ask how you knew who I was?
23535 \begin_inset Quotes erd
23541 \begin_layout Plain Layout
23544 \begin_inset Quotes eld
23547 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23548 you'll find my little bookshop at the corner of Church Street, and very
23549 happy to see you, I am sure.
23550 Maybe you collect yourself, sir.
23554 \begin_inset space ~
23567 –a bargain, every one of them.
23568 With five volumes you could just fill that gap on that second shelf.
23569 It looks untidy, does it not, sir?
23570 \begin_inset Quotes erd
23581 \begin_layout Standard
23585 \begin_layout Plain Layout
23591 columnseprule}{0pt}
23594 \begin_layout Plain Layout
23600 columnseprulecolor}{
23608 \begin_inset Note Note
23611 \begin_layout Plain Layout
23614 go back to the default
23622 \begin_layout Standard
23623 \begin_inset Newpage newpage
23629 \begin_layout Section
23633 \begin_layout Standard
23636 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23641 モジュールを読み込んで、\SpecialChar LaTeX
23646 を使用させるようにすれば、実現できます。
23649 \begin_layout Subsection
23653 \begin_layout Standard
23661 \begin_layout Standard
23662 \begin_inset Tabular
23663 <lyxtabular version="3" rows="13" columns="3">
23664 <features booktabs="true" islongtable="true" longtabularalignment="center">
23665 <column alignment="center" valignment="middle" width="16col%">
23666 <column alignment="center" valignment="middle" width="40col%">
23667 <column alignment="center" valignment="middle" width="35col%">
23668 <row endhead="true">
23669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23672 \begin_layout Plain Layout
23678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23681 \begin_layout Plain Layout
23687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23690 \begin_layout Plain Layout
23698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23701 \begin_layout Plain Layout
23707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23710 \begin_layout Plain Layout
23711 丸い穴の開いたドーナツ型(CD/DVD大)
23716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23719 \begin_layout Plain Layout
23720 伸縮不可。多くの文字を入れられないことに注意。
23727 <cell alignment="center" valignment="top" topline="true" usebox="none">
23730 \begin_layout Plain Layout
23736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23739 \begin_layout Plain Layout
23745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23748 \begin_layout Plain Layout
23756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23759 \begin_layout Plain Layout
23765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23768 \begin_layout Plain Layout
23770 \begin_inset Quotes eld
23774 \begin_inset Quotes erd
23782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23785 \begin_layout Plain Layout
23793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23796 \begin_layout Plain Layout
23802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23805 \begin_layout Plain Layout
23811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23814 \begin_layout Plain Layout
23822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23825 \begin_layout Plain Layout
23831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23834 \begin_layout Plain Layout
23840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23843 \begin_layout Plain Layout
23851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23854 \begin_layout Plain Layout
23860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23863 \begin_layout Plain Layout
23869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23872 \begin_layout Plain Layout
23880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23883 \begin_layout Plain Layout
23889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23892 \begin_layout Plain Layout
23898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23901 \begin_layout Plain Layout
23909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23912 \begin_layout Plain Layout
23918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23921 \begin_layout Plain Layout
23927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23930 \begin_layout Plain Layout
23938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23941 \begin_layout Plain Layout
23947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23950 \begin_layout Plain Layout
23956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23959 \begin_layout Plain Layout
23967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23970 \begin_layout Plain Layout
23976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23979 \begin_layout Plain Layout
23985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23988 \begin_layout Plain Layout
23996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23999 \begin_layout Plain Layout
24006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24009 \begin_layout Plain Layout
24016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24019 \begin_layout Plain Layout
24027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24030 \begin_layout Plain Layout
24032 \begin_inset Newline newline
24040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24043 \begin_layout Plain Layout
24049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24052 \begin_layout Plain Layout
24066 \begin_layout Standard
24067 段落に形を適用するには、\SpecialChar LyX
24068 ツールバー中の環境プルダウンボックスから形を選んでください。
24071 \begin_layout Standard
24072 \begin_inset Newpage newpage
24078 \begin_layout Standard
24082 \begin_layout Standard
24083 \begin_inset VSpace bigskip
24092 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24093 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24095 At vero eos et accusam et justo duo dolores et ea rebum.
24096 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24098 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24099 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24103 \begin_layout Standard
24104 \begin_inset VSpace bigskip
24110 \begin_layout Standard
24111 \begin_inset Note Greyedout
24114 \begin_layout Plain Layout
24119 shapepar段落は改頁にまたがることはできません。
24127 \begin_layout Standard
24128 \begin_inset VSpace bigskip
24134 \begin_layout Standard
24139 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24140 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24143 \begin_layout Standard
24144 \begin_inset Newpage newpage
24153 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24154 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24156 At vero eos et accusam et justo duo dolores et ea rebum.
24157 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24159 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24160 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24162 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24163 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24165 At vero eos et accusam et justo duo dolores et ea rebum.
24166 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24168 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24169 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24173 \begin_layout Standard
24174 \begin_inset VSpace bigskip
24180 \begin_layout Standard
24185 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24186 \begin_inset Newline newline
24197 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24198 \begin_inset Quotes eld
24201 Arithmetic overflow
24202 \begin_inset Quotes erd
24205 という\SpecialChar LaTeX
24206 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24209 \begin_layout Standard
24210 \begin_inset VSpace bigskip
24216 \begin_layout Standard
24217 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24218 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24223 arg "specialchar-insert hyphenation"
24228 )を指定することが往々にして必要になります。
24231 \begin_layout Standard
24232 \begin_inset VSpace bigskip
24238 \begin_layout Standard
24239 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24240 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24241 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24242 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24245 \begin_layout Standard
24246 \begin_inset Newpage newpage
24252 \begin_layout Heart
24256 Lo\SpecialChar softhyphen
24257 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24258 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24260 At vero eos et accusam et justo duo dolores et ea rebum.
24261 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24265 \begin_layout Standard
24266 \begin_inset VSpace bigskip
24272 \begin_layout Standard
24275 \begin_inset Box Frameless
24285 height_special "totalheight"
24290 backgroundcolor "none"
24293 \begin_layout Heart
24297 Lo\SpecialChar softhyphen
24298 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24299 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24301 At vero eos et accusam et justo duo dolores et ea rebum.
24302 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24311 \begin_layout Subsection
24315 \begin_layout Standard
24316 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24317 ように、コンピューターに座標を計算させる方法もあります。
24320 \begin_layout Enumerate
24322 \begin_inset CommandInset href
24325 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24332 \begin_layout Enumerate
24343 \begin_layout Plain Layout
24354 \begin_layout Plain Layout
24361 eX\SpecialChar menuseparator
24362 Settings\SpecialChar menuseparator
24365 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24366 \begin_inset space \thinspace{}
24372 \begin_layout Enumerate
24376 \begin_layout Enumerate
24383 \begin_layout Plain Layout
24394 \begin_layout Plain Layout
24401 eX\SpecialChar menuseparator
24404 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24408 \begin_layout Plain Layout
24410 \begin_inset CommandInset href
24412 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24424 \begin_layout Standard
24425 座標は\SpecialChar TeX
24426 ファイルに書き込まれます。これを\SpecialChar LyX
24430 \begin_layout Enumerate
24431 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24434 \begin_layout Enumerate
24438 挿入\SpecialChar menuseparator
24439 ファイル\SpecialChar menuseparator
24453 \begin_layout Standard
24454 \begin_inset VSpace defskip
24460 \begin_layout Standard
24461 \begin_inset Note Greyedout
24464 \begin_layout Plain Layout
24469 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24477 \begin_layout Standard
24478 \begin_inset VSpace bigskip
24484 \begin_layout Standard
24488 \begin_layout Standard
24489 \begin_inset VSpace bigskip
24495 \begin_layout Standard
24496 \begin_inset CommandInset include
24498 filename "../SpecialParagraphShape.tex"
24504 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24505 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24507 At vero eos et accusam et justo duo dolores et ea rebum.
24508 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24510 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24511 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24515 \begin_layout Standard
24516 \begin_inset VSpace bigskip
24522 \begin_layout Standard
24530 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24534 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24537 \begin_layout Standard
24538 \begin_inset VSpace bigskip
24544 \begin_layout Standard
24557 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24561 \begin_layout Plain Layout
24562 これらのコマンドは、上述の全ての形で内部的に使用されています。
24567 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24572 \begin_inset CommandInset citation
24581 \begin_layout Bibliography
24582 \begin_inset CommandInset bibitem
24583 LatexCommand bibitem
24590 \begin_inset CommandInset href
24593 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24600 \begin_layout Bibliography
24601 \begin_inset CommandInset bibitem
24602 LatexCommand bibitem
24609 \begin_inset CommandInset href
24612 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"