1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties false
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23 \pdfbookmark[1]{\contentsname}{}
26 \pagenumbering{arabic}}
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
31 % Improve line breaking
34 \emergencystretch 1.5em
37 % additional setting for Japanese manual
38 \IfFileExists{pxjahyper.sty}
39 {\usepackage{pxjahyper}}
43 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
44 \use_default_options false
52 \maintain_unincluded_children false
55 InsetLayout Flex:MenuItem
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
73 Decoration Conglomerate
77 Decoration Conglomerate
87 \IfFileExists{okumacro.sty}
88 {\usepackage{okumacro}}
89 {\newcommand{\ruby}[2]{#2}}
94 \language_package default
97 \font_roman "default" "default"
98 \font_sans "default" "default"
99 \font_typewriter "default" "default"
100 \font_math "auto" "auto"
101 \font_default_family default
102 \use_non_tex_fonts false
105 \font_sf_scale 100 100
106 \font_tt_scale 100 100
108 \use_dash_ligatures false
110 \default_output_format pdf3
112 \bibtex_command default
113 \index_command default
117 \pdf_title "LyX's Additional Features manual"
118 \pdf_author "LyX Team"
119 \pdf_subject "LyX's additional features documentation"
120 \pdf_keywords "LyX, Documentation, Additional"
122 \pdf_bookmarksnumbered true
123 \pdf_bookmarksopen false
124 \pdf_bookmarksopenlevel 1
125 \pdf_breaklinks false
129 \pdf_pdfusetitle false
130 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
133 \use_package amsmath 1
134 \use_package amssymb 1
135 \use_package cancel 0
137 \use_package mathdots 1
138 \use_package mathtools 0
139 \use_package mhchem 1
140 \use_package stackrel 0
141 \use_package stmaryrd 0
142 \use_package undertilde 0
144 \cite_engine_type default
148 \paperorientation portrait
153 \notefontcolor #0000ff
160 \paragraph_separation indent
161 \paragraph_indentation default
163 \math_indentation default
164 \math_numbering_side default
165 \quotes_style english
169 \paperpagestyle headings
170 \tracking_changes false
171 \output_changes false
175 \author -1196488707 "横田 宏治"
183 \begin_inset Newline newline
197 \begin_layout Plain Layout
198 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
200 \begin_inset Flex Code
203 \begin_layout Plain Layout
207 <lyx-docs@lists.lyx.org>
212 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
220 \begin_layout Standard
221 \begin_inset CommandInset toc
222 LatexCommand tableofcontents
229 \begin_layout Chapter
233 \begin_layout Standard
243 』の第二部です.これらの文書を別部とした理由は,単純に『
251 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
252 プロジェクトチームは,\SpecialChar LyX
253 を各設定ファイルと外部パッケージによって拡張
254 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
255 パッケージをサポートしたい場合に,\SpecialChar LyX
256 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
257 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
258 な形での貢献を文書化する冊子として位置付けられています.
261 \begin_layout Standard
262 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
263 しています.さらに,\SpecialChar LaTeX
264 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
265 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
267 ることを企図しているため,\SpecialChar LaTeX
268 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
271 \begin_layout Standard
276 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
280 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
284 』をよくお読みになって,\SpecialChar LyX
288 \begin_layout Standard
289 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
291 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
292 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
294 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
298 \begin_layout Chapter
304 \begin_layout Section
310 \begin_layout Standard
321 熟練者と\SpecialChar LaTeX
322 に興味のある方向けの章です.ここでは,\SpecialChar LyX
324 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
326 を多少なりともご存知であることを前提とします.
329 \begin_layout Standard
340 は,「\SpecialChar LaTeX
359 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
360 のフロントエンドは,いくつも出回っています
364 \begin_layout Plain Layout
374 有名なものとしては,Linux上の\SpecialChar TeX
375 makerとkile,OSX上の\SpecialChar TeX
376 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
382 .これらは,基本的に\SpecialChar LaTeX
383 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
384 も,エディタであり,\SpecialChar LaTeX
386 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
405 を効果的に使うのに,\SpecialChar LaTeX
406 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
407 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
408 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
419 \begin_inset Flex MenuItem
422 \begin_layout Plain Layout
449 \begin_inset Flex MenuItem
452 \begin_layout Plain Layout
455 エクスポート\SpecialChar menuseparator
480 \begin_inset Flex MenuItem
483 \begin_layout Plain Layout
486 表示\SpecialChar menuseparator
502 \begin_inset Flex Code
505 \begin_layout Plain Layout
513 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
514 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
523 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
526 \begin_layout Standard
536 自動的に\SpecialChar LaTeX
537 を実行するコマンドが,以下のようにいくつかあります.
540 \begin_layout Itemize
541 \begin_inset Flex MenuItem
544 \begin_layout Plain Layout
545 表示\SpecialChar menuseparator
554 \begin_layout Itemize
557 \begin_inset Flex MenuItem
560 \begin_layout Plain Layout
563 表示\SpecialChar menuseparator
564 更新\SpecialChar menuseparator
575 \begin_layout Standard
585 これらは,最後に\SpecialChar LaTeX
586 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
590 \begin_layout Standard
601 が編集中のファイルを\SpecialChar LaTeX
602 にかけるとき,\SpecialChar LyX
606 \begin_layout Enumerate
616 文書を\SpecialChar LaTeX
618 \begin_inset Flex Code
621 \begin_layout Plain Layout
637 \begin_inset Flex Code
640 \begin_layout Plain Layout
658 \begin_layout Enumerate
669 \begin_inset Flex Code
672 \begin_layout Plain Layout
687 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
688 を実行し,\SpecialChar LaTeX
689 ファイルをコンパイルするのに必要な他のコマンド(
690 \begin_inset Flex Code
693 \begin_layout Plain Layout
709 \begin_inset Flex Code
712 \begin_layout Plain Layout
730 \begin_layout Enumerate
743 \begin_layout Standard
764 \begin_inset Flex MenuItem
767 \begin_layout Plain Layout
770 表示\SpecialChar menuseparator
785 を使用して実行した場合には,\SpecialChar LyX
786 はこの後,DVIビューアを実行してDVIファイルを表示します.
787 \begin_inset Flex MenuItem
790 \begin_layout Plain Layout
800 表示\SpecialChar menuseparator
806 を使用した場合には,\SpecialChar LyX
810 \begin_layout Itemize
820 \begin_inset Flex Code
823 \begin_layout Plain Layout
861 \begin_layout Itemize
871 \begin_inset Flex Code
874 \begin_layout Plain Layout
882 などのPostScriptビューアを実行して,PostScript
894 \begin_layout Standard
896 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
899 \begin_layout Section
901 ファイルを\SpecialChar LyX
905 \begin_layout Standard
910 \begin_inset Flex MenuItem
913 \begin_layout Plain Layout
916 ファイル\SpecialChar menuseparator
917 インポート\SpecialChar menuseparator
932 コマンドを使用すると,\SpecialChar LaTeX
950 にインポートすることができます.このコマンドは,
960 \begin_inset Flex Code
963 \begin_layout Plain Layout
990 \begin_inset Flex Code
993 \begin_layout Plain Layout
1004 \begin_inset Flex Code
1007 \begin_layout Plain Layout
1015 を生成します.\SpecialChar LyX
1020 \begin_layout Plain Layout
1021 \begin_inset Flex Code
1024 \begin_layout Plain Layout
1030 は,もちろんコマンドラインから実行することもできます.
1038 \begin_layout Standard
1041 \begin_inset Flex Code
1044 \begin_layout Plain Layout
1061 は,文法的に正しい\SpecialChar LaTeX
1062 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1072 \begin_inset Flex Code
1075 \begin_layout Plain Layout
1092 は,理解不能な部分は\SpecialChar TeX
1093 コードボックスの形で残しますので,ファイルを
1103 \begin_inset Flex Code
1106 \begin_layout Plain Layout
1123 で変換したのち,\SpecialChar TeX
1124 コードボックスを探して,手動で正しく編集してください.
1127 \begin_layout Standard
1138 コードボックスがなにかご存じなければ,次節をお読みください.
1141 \begin_layout Section
1145 \begin_inset CommandInset label
1147 name "sec:TeXコードを挿入する"
1154 \begin_layout Standard
1165 文書にもつねに\SpecialChar TeX
1166 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1167 にできることは,つねに\SpecialChar LyX
1168 でも行うことができます.一方,\SpecialChar LyX
1169 は,すべての\SpecialChar LaTeX
1170 構成物を\SpecialChar LyX
1172 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1173 コマンドを\SpecialChar LyX
1175 \begin_inset Flex Code
1178 \begin_layout Plain Layout
1204 \begin_inset Flex MenuItem
1207 \begin_layout Plain Layout
1210 挿入\SpecialChar menuseparator
1235 \begin_inset Flex Ruby
1238 \begin_layout Plain Layout
1258 \begin_inset Argument post:1
1261 \begin_layout Plain Layout
1273 \begin_inset Flex Ruby
1276 \begin_layout Plain Layout
1287 \begin_inset Argument post:1
1290 \begin_layout Plain Layout
1319 \begin_layout Standard
1320 以下は,\SpecialChar LaTeX
1321 コマンドを\SpecialChar LyX
1322 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1325 \begin_layout LyX-Code
1329 \begin_inset Newline newline
1334 begin{minipage}{5cm}
1335 \begin_inset Newline newline
1339 \begin_inset Newline newline
1343 \begin_inset Newline newline
1347 \begin_inset Newline newline
1351 \begin_inset Newline newline
1355 \begin_inset Newline newline
1361 \begin_inset Newline newline
1365 \begin_inset Newline newline
1370 begin{minipage}{5cm}
1371 \begin_inset Newline newline
1377 \begin_inset Newline newline
1382 begin{minipage}{5cm}
1383 \begin_inset Newline newline
1388 \begin_inset Newline newline
1394 \begin_inset Newline newline
1400 \begin_inset Newline newline
1406 \begin_inset Newline newline
1414 \begin_layout LyX-Code
1418 \begin_layout Standard
1420 \begin_inset Flex Code
1423 \begin_layout Plain Layout
1430 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1431 上でご覧になっていれば,\SpecialChar TeX
1432 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1436 \begin_layout Standard
1437 \begin_inset VSpace bigskip
1444 \begin_layout Plain Layout
1451 \begin_layout Plain Layout
1455 begin{minipage}{5cm}
1458 \begin_layout Plain Layout
1460 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます.
1465 \begin_layout Plain Layout
1470 \begin_layout Plain Layout
1474 begin{minipage}{5cm}
1477 \begin_layout Plain Layout
1484 \begin_layout Plain Layout
1488 begin{minipage}{5cm}
1491 \begin_layout Plain Layout
1499 \begin_layout Plain Layout
1506 \begin_layout Plain Layout
1513 \begin_layout Plain Layout
1523 \begin_inset VSpace bigskip
1529 \begin_layout Standard
1540 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1541 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1542 \begin_inset Flex MenuItem
1545 \begin_layout Plain Layout
1555 挿入\SpecialChar menuseparator
1556 ファイル\SpecialChar menuseparator
1562 を使用する方法もあります(取り込みの型として
1563 \begin_inset Flex Code
1566 \begin_layout Plain Layout
1581 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1599 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1600 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1603 \begin_layout Standard
1613 最後に,いくつか強調しておくべきことがあります.
1616 \begin_layout Itemize
1627 は,あなたの\SpecialChar LaTeX
1649 \begin_layout Itemize
1659 車輪の再発明をしないようにご注意ください.
1662 \begin_layout Standard
1672 二番目の点に関して,\SpecialChar LyX
1673 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1674 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1675 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1676 う膨大な数の\SpecialChar LaTeX
1687 \begin_inset CommandInset href
1690 target "http://www.ctan.org/"
1705 \begin_inset CommandInset ref
1707 reference "chap:Special-features"
1714 \begin_layout Standard
1724 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1725 関連書籍を参考とするようにしてください.『
1743 』の書誌情報に多くの\SpecialChar LaTeX
1747 \begin_layout Section
1753 \begin_layout Subsection
1758 \begin_layout Standard
1768 すでに\SpecialChar LaTeX
1769 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1770 ずです.詳しくは\SpecialChar LaTeX
1771 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1772 文書の\SpecialChar LaTeX
1773 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1777 \begin_layout Standard
1788 プリアンブルは,\SpecialChar LaTeX
1807 の部分に来ます.ここでは以下のことを行います.
1810 \begin_layout Itemize
1820 文書クラス(ドキュメントクラス)の宣言.
1821 \begin_inset Newline newline
1825 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1826 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1844 』をご覧になれば,\SpecialChar LyX
1845 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1848 \begin_layout Itemize
1859 \begin_inset Newline newline
1863 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1864 提供されることに加え,文書に変更を加えることができます.例えば
1883 \begin_inset Flex Code
1886 \begin_layout Plain Layout
1894 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1897 \begin_layout Itemize
1908 \begin_inset Newline newline
1912 のカウンタと変数の中には,プリアンブルでグローバルに
1932 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1933 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1936 \begin_layout Itemize
1947 \begin_inset Flex Code
1950 \begin_layout Plain Layout
1968 \begin_inset Flex Code
1971 \begin_layout Plain Layout
1989 \begin_inset Newline newline
1992 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1993 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
2011 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2012 コードがあふれている場合には便利でしょう.
2015 \begin_layout Standard
2027 \begin_inset Flex Code
2030 \begin_layout Plain Layout
2045 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2046 の生成する\SpecialChar LaTeX
2050 \begin_layout Subsection
2054 \begin_layout Standard
2066 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2067 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2068 \begin_inset Flex MenuItem
2071 \begin_layout Plain Layout
2081 文書\SpecialChar menuseparator
2088 \begin_inset Flex MenuItem
2091 \begin_layout Plain Layout
2107 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2118 \begin_inset Flex MenuItem
2121 \begin_layout Plain Layout
2138 ダイアログ内のすべてのものを,\SpecialChar LyX
2139 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2141 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2152 プリアンブルコードが正しいことを確認してください.
2165 \begin_inset Flex Code
2168 \begin_layout Plain Layout
2185 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2188 \begin_layout Subsection
2192 \begin_layout Standard
2202 以下は,プリアンブルに追加できるものとその効果を示す例です.
2205 \begin_layout Subsubsection
2209 \begin_layout Standard
2239 \begin_inset Flex Code
2242 \begin_layout Plain Layout
2262 \begin_inset Flex Code
2265 \begin_layout Plain Layout
2284 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2285 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2286 \begin_inset Flex Code
2289 \begin_layout Plain Layout
2309 \begin_inset Flex Code
2312 \begin_layout Plain Layout
2327 \begin_layout Standard
2337 \begin_inset Flex Code
2340 \begin_layout Plain Layout
2360 \begin_inset Flex Code
2363 \begin_layout Plain Layout
2382 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2383 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2384 を使用していて,シスアドがお馬鹿さんである
2386 \begin_inset Flex Code
2389 \begin_layout Plain Layout
2409 \begin_inset Flex Code
2412 \begin_layout Plain Layout
2431 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2434 \begin_layout LyX-Code
2442 \begin_layout LyX-Code
2450 \begin_layout Standard
2463 \begin_layout Subsubsection
2467 \begin_layout Standard
2477 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2478 \begin_inset Flex Code
2481 \begin_layout Plain Layout
2489 という\SpecialChar LaTeX
2490 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2491 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2495 \begin_layout Standard
2506 \begin_inset Flex Code
2509 \begin_layout Plain Layout
2517 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2520 \begin_layout LyX-Code
2526 \begin_layout LyX-Code
2532 \begin_layout LyX-Code
2538 \begin_layout LyX-Code
2544 \begin_layout LyX-Code
2550 \begin_layout LyX-Code
2556 \begin_layout LyX-Code
2562 \begin_layout Standard
2581 Averyラベルシートのストック5360
2590 番を使用する場合の設定です.これで,各宛名を
2591 \begin_inset Flex Code
2594 \begin_layout Plain Layout
2614 \begin_inset Flex Code
2617 \begin_layout Plain Layout
2636 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2637 \begin_inset Flex Code
2640 \begin_layout Plain Layout
2651 \begin_layout Standard
2661 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2662 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2665 \begin_layout Subsubsection
2669 \begin_layout Standard
2699 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2716 \begin_layout Standard
2726 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2744 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2748 \begin_layout Standard
2758 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2762 \begin_layout LyX-Code
2765 usepackage{indentfirst}
2768 \begin_layout Standard
2778 もしお使いの\SpecialChar TeX
2779 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2782 \begin_layout Subsubsection
2786 \begin_layout Standard
2796 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2806 \begin_inset CommandInset ref
2808 reference "chap:Special-features"
2821 章には,他の例や,\SpecialChar LaTeX
2825 \begin_layout Section
2827 および\SpecialChar LaTeX
2831 \begin_layout Standard
2843 を呼び出す際,\SpecialChar LyX
2845 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2846 は,\SpecialChar LaTeX
2847 の実行ログファイルを事後処理用に使います.ログファイルを分
2848 析したのち,\SpecialChar LyX
2849 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2850 ファイル中,そのエラーの発生した場所に表示を移動します
2854 \begin_layout Plain Layout
2864 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2865 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2867 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2868 ーのある場所よりも後ろでエラーが報告されるのです.
2885 \begin_layout Standard
2895 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2896 \begin_inset Flex MenuItem
2899 \begin_layout Plain Layout
2909 文書\SpecialChar menuseparator
2915 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2920 \begin_layout Itemize
2923 \begin_inset Flex Code
2926 \begin_layout Plain Layout
2944 \begin_inset Newline newline
2947 これで始まるメッセージは,\SpecialChar LaTeX
2948 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2950 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2953 \begin_layout Itemize
2956 \begin_inset Flex Code
2959 \begin_layout Plain Layout
2977 \begin_inset Newline newline
2981 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2982 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2986 \begin_layout Itemize
2996 \begin_inset Flex Code
2999 \begin_layout Plain Layout
3010 \begin_inset Newline newline
3032 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3052 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3053 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3055 \begin_inset Newline newline
3058 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3067 文書\SpecialChar menuseparator
3068 設定\SpecialChar menuseparator
3096 をクリックすると,大幅な改善が見込めます.さらに,
3105 文書\SpecialChar menuseparator
3106 設定\SpecialChar menuseparator
3135 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3139 \begin_layout LyX-Code
3143 \begin_inset Newline newline
3149 \begin_inset Newline newline
3154 emergencystretch 1.5em
3155 \begin_inset Newline newline
3163 \begin_layout Standard
3164 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3168 \begin_layout Plain Layout
3170 \begin_inset Flex URL
3173 \begin_layout Plain Layout
3175 http://www.tex.ac.uk/FAQ-overfull.html
3188 \begin_layout Standard
3189 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3193 \begin_layout Plain Layout
3196 文書\SpecialChar menuseparator
3199 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3209 \begin_layout Itemize
3212 \begin_inset Flex Code
3215 \begin_layout Plain Layout
3226 \begin_inset Newline newline
3238 これは上の警告と違ってあまり出てきません.これも,
3257 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3260 \begin_layout Itemize
3261 \begin_inset Flex Code
3264 \begin_layout Plain Layout
3277 \begin_inset Flex Code
3280 \begin_layout Plain Layout
3293 \begin_inset Newline newline
3305 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3308 \begin_layout Itemize
3311 \begin_inset Flex Code
3314 \begin_layout Plain Layout
3318 \begin_inset Quotes els
3322 \begin_inset Quotes ers
3340 \begin_inset Newline newline
3343 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3344 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3346 \begin_inset Flex Code
3349 \begin_layout Plain Layout
3359 コマンドも使用していないとすれば,\SpecialChar LyX
3360 が読み込もうしているパッケージに存在しないものがあるということです.
3370 \begin_inset Flex MenuItem
3373 \begin_layout Plain Layout
3374 ヘルプ\SpecialChar menuseparator
3390 を使用して,\SpecialChar LyX
3391 が認識しているパッケージの一覧を得てください.このファイルは,(
3392 \begin_inset Flex MenuItem
3395 \begin_layout Plain Layout
3405 ツール\SpecialChar menuseparator
3411 を使用して)\SpecialChar LyX
3412 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3413 \begin_inset Newline newline
3426 \begin_inset Flex Code
3429 \begin_layout Plain Layout
3448 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3451 \begin_layout Itemize
3454 \begin_inset Flex Code
3457 \begin_layout Plain Layout
3460 LaTeX Error: Unknown option
3475 \begin_inset Newline newline
3478 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3482 \begin_layout Itemize
3485 \begin_inset Flex Code
3488 \begin_layout Plain Layout
3491 Undefined control sequence
3506 \begin_inset Newline newline
3509 お使いの文書に\SpecialChar LaTeX
3510 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3511 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3514 \begin_layout Standard
3524 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3525 のメッセージです.何を言っているのかさっぱりわからないものもあ
3526 りますが,通常これらは,\SpecialChar TeX
3527 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3545 手がかりがありません.誰もわからないのです.
3548 \begin_layout Standard
3558 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3561 \begin_layout Enumerate
3571 ご自分で挿入した\SpecialChar LaTeX
3572 コードに打ち間違いがないかどうか確かめる.
3575 \begin_layout Enumerate
3585 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3588 \begin_layout Enumerate
3598 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3599 \begin_inset Flex Code
3602 \begin_layout Plain Layout
3619 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3622 \begin_layout Enumerate
3632 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3633 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3634 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3638 \begin_layout Enumerate
3648 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3649 を微調整するオプションを使用していますか.特に,手動で
3650 \begin_inset Flex Code
3653 \begin_layout Plain Layout
3657 \begin_inset space ~
3666 \begin_inset Flex Code
3669 \begin_layout Plain Layout
3687 \begin_inset Flex Code
3690 \begin_layout Plain Layout
3707 などをたくさん挿入するなど,微調整オプションを
3725 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3728 \begin_layout Enumerate
3738 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3739 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3742 \begin_layout Enumerate
3744 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3745 はかなり嫌います.可能であれば,問題が生じな
3746 いように段落を修正するのが望ましいでしょう.
3749 \begin_layout Enumerate
3759 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3760 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3761 が原因です(\SpecialChar LaTeX
3765 \begin_layout Enumerate
3775 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3779 \begin_layout Enumerate
3792 \begin_layout Enumerate
3805 \begin_layout Standard
3819 \begin_layout Enumerate
3820 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3823 \begin_layout Standard
3855 \begin_layout Chapter
3859 \begin_layout Section
3861 あるいはBiblatexによる書誌情報のカスタマイズ
3864 \begin_layout Standard
3878 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3879 でサポートされている書誌情報の特別な機能について説明することとします.
3882 \begin_layout Subsection
3886 \begin_layout Standard
3887 標準のBib\SpecialChar TeX
3888 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3889 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3891 \begin_inset Flex Code
3894 \begin_layout Plain Layout
3901 \begin_inset Flex Code
3904 \begin_layout Plain Layout
3911 \begin_inset Flex Code
3914 \begin_layout Plain Layout
3920 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3922 \begin_inset Flex Code
3925 \begin_layout Plain Layout
3931 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3932 \begin_inset Flex Code
3935 \begin_layout Plain Layout
3941 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3942 \begin_inset Flex Code
3945 \begin_layout Plain Layout
3951 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3952 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3953 \begin_inset Flex Code
3956 \begin_layout Plain Layout
3962 をぜひとも考えるべきでしょう.ただし,同時に
3963 \begin_inset Flex Code
3966 \begin_layout Plain Layout
3972 はたいへん重く,リソース消費量も多いことに注意してください.
3975 \begin_layout Standard
3977 での各パッケージの取扱い方は,ほぼ同じです.
3978 \begin_inset Flex MenuItem
3981 \begin_layout Plain Layout
3982 文書\SpecialChar menuseparator
3989 \begin_inset Flex MenuItem
3992 \begin_layout Plain Layout
3999 \begin_inset Flex Noun
4002 \begin_layout Plain Layout
4009 \begin_inset Flex Noun
4012 \begin_layout Plain Layout
4013 Biblatex (Natbibモード)
4019 \begin_inset Flex Noun
4022 \begin_layout Plain Layout
4029 \begin_inset Flex Noun
4032 \begin_layout Plain Layout
4038 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4039 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4040 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4042 \begin_inset Flex Code
4045 \begin_layout Plain Layout
4051 に至っては,対話的なスタイルファイルビルダーさえ存在します
4055 \begin_layout Plain Layout
4056 \begin_inset Flex URL
4059 \begin_layout Plain Layout
4061 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4074 \begin_layout Subsection
4078 \begin_layout Standard
4079 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4080 でさえあります.残念ながら,Bib\SpecialChar TeX
4081 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4082 パッケージの助けを借りると,Bib\SpecialChar TeX
4083 をこのような必要性を満たすように拡張するこ
4087 \begin_layout Standard
4090 \begin_inset Flex Code
4093 \begin_layout Plain Layout
4103 \begin_layout Plain Layout
4104 \begin_inset Flex URL
4107 \begin_layout Plain Layout
4109 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4119 をそのままでサポートします.このパッケージの長所は,(
4120 \begin_inset Flex Code
4123 \begin_layout Plain Layout
4129 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4130 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4131 \begin_inset Flex Code
4134 \begin_layout Plain Layout
4141 \begin_inset Flex Code
4144 \begin_layout Plain Layout
4153 \begin_layout Standard
4154 \begin_inset Flex MenuItem
4157 \begin_layout Plain Layout
4158 文書\SpecialChar menuseparator
4165 \begin_inset Flex MenuItem
4168 \begin_layout Plain Layout
4175 \begin_inset Flex MenuItem
4178 \begin_layout Plain Layout
4184 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4186 \begin_inset Flex Code
4189 \begin_layout Plain Layout
4196 \begin_inset Flex Code
4199 \begin_layout Plain Layout
4205 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4206 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4207 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4209 \begin_inset Flex Code
4212 \begin_layout Plain Layout
4218 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4221 \begin_layout Standard
4239 \begin_inset Flex Noun
4242 \begin_layout Plain Layout
4248 オプションは無効になります.しかしながら,
4252 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4253 \begin_inset Flex Code
4256 \begin_layout Plain Layout
4262 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4263 \begin_inset Flex Noun
4266 \begin_layout Plain Layout
4272 ボタンを右クリックすると開くダイアログで,
4273 \begin_inset Flex Noun
4276 \begin_layout Plain Layout
4283 \begin_inset Flex Code
4286 \begin_layout Plain Layout
4293 \begin_inset Flex Noun
4296 \begin_layout Plain Layout
4303 \begin_inset Flex Code
4306 \begin_layout Plain Layout
4313 \begin_inset Flex Code
4316 \begin_layout Plain Layout
4330 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4338 \begin_layout Subsection
4340 \begin_inset CommandInset label
4342 name "subsec:複数の書誌情報"
4349 \begin_layout Standard
4350 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4351 ではサポートされています.これを有効にするためには,
4352 \begin_inset Flex Noun
4355 \begin_layout Plain Layout
4356 文書\SpecialChar menuseparator
4357 設定\SpecialChar menuseparator
4364 \begin_inset Flex Noun
4367 \begin_layout Plain Layout
4373 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4374 書誌情報を加えてください.出力時に,現在
4375 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4378 \begin_layout Standard
4380 を使用する場合には,複数の書誌情報を生成するのに,
4381 \begin_inset Flex Code
4384 \begin_layout Plain Layout
4391 \begin_inset Flex Code
4394 \begin_layout Plain Layout
4400 パッケージが使用されます.「子文書毎」を選択し,
4401 \begin_inset Flex Noun
4404 \begin_layout Plain Layout
4414 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4415 \begin_inset Flex Code
4418 \begin_layout Plain Layout
4428 \begin_layout Plain Layout
4430 \begin_inset Flex Noun
4433 \begin_layout Plain Layout
4441 \begin_inset CommandInset ref
4443 reference "sec:TeXコードを挿入する"
4451 \begin_inset Flex Code
4454 \begin_layout Plain Layout
4466 \begin_inset Flex Code
4469 \begin_layout Plain Layout
4475 パッケージが使用される場合,\SpecialChar LyX
4476 は特定の単位を生成するために,その単位を
4477 \begin_inset Flex Code
4480 \begin_layout Plain Layout
4487 \begin_inset Flex Code
4490 \begin_layout Plain Layout
4499 \begin_inset Flex Code
4502 \begin_layout Plain Layout
4510 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4511 \begin_inset Flex Code
4514 \begin_layout Plain Layout
4520 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4522 \begin_inset Flex Code
4525 \begin_layout Plain Layout
4534 \begin_inset Flex Code
4537 \begin_layout Plain Layout
4546 コードで入力して,自前の単位を生成することもできます.ただし,
4547 \begin_inset Flex Code
4550 \begin_layout Plain Layout
4556 は入れ子にすることができないことに注意してください.第二の制限は,
4557 \begin_inset Flex Code
4560 \begin_layout Plain Layout
4566 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4567 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4570 \begin_layout Standard
4576 \begin_inset Flex Code
4579 \begin_layout Plain Layout
4585 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4587 \begin_inset Flex Code
4590 \begin_layout Plain Layout
4599 \begin_inset Flex Code
4602 \begin_layout Plain Layout
4610 と書きます.単位の終了箇所も制御したい場合には,代わりに
4611 \begin_inset Flex Code
4614 \begin_layout Plain Layout
4624 \begin_inset Flex Code
4627 \begin_layout Plain Layout
4636 \begin_inset Flex Code
4639 \begin_layout Plain Layout
4645 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4649 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4650 献参照単位全て」を選択してください.この話題についての詳細は,
4657 \begin_layout Section
4661 \begin_layout Subsection
4665 \begin_layout Standard
4666 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4667 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4668 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4669 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4673 \begin_layout Plain Layout
4678 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4684 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4685 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4686 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4687 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4688 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4690 \begin_inset Flex Code
4693 \begin_layout Plain Layout
4702 \begin_inset Flex Code
4705 \begin_layout Plain Layout
4713 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4716 \begin_layout Standard
4720 挿入\SpecialChar menuseparator
4721 ファイル\SpecialChar menuseparator
4724 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4725 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4728 \begin_layout Standard
4729 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4730 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4733 \begin_layout Enumerate
4734 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4737 \begin_layout Enumerate
4738 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4742 \begin_layout Enumerate
4743 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4744 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4748 \begin_layout Standard
4749 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4750 \begin_inset Flex Code
4753 \begin_layout Plain Layout
4759 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4760 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4764 \begin_inset Flex MenuItem
4767 \begin_layout Plain Layout
4777 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4780 \begin_layout Standard
4781 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4782 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4786 \begin_layout Subsection
4790 \begin_layout Standard
4791 \begin_inset Box Shadowbox
4801 height_special "totalheight"
4806 backgroundcolor "none"
4809 \begin_layout Plain Layout
4810 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4818 \begin_layout Standard
4819 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4820 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4824 \begin_layout Subsection
4828 \begin_layout Standard
4829 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4830 ことがあります.以下にその方法を説明します.
4833 \begin_layout Standard
4834 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4835 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4838 \begin_layout Standard
4839 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4840 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4842 挿入\SpecialChar menuseparator
4843 派生枝\SpecialChar menuseparator
4846 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4848 文書\SpecialChar menuseparator
4849 設定...\SpecialChar menuseparator
4854 文書\SpecialChar menuseparator
4855 設定...\SpecialChar menuseparator
4858 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4861 \begin_layout Standard
4862 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4863 \begin_inset CommandInset ref
4865 reference "subsec:複数の書誌情報"
4875 \begin_layout Section
4880 \begin_layout Standard
4881 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4882 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4884 2.0には,この過程を自動化するPythonスクリプト(
4885 \begin_inset Flex Code
4888 \begin_layout Plain Layout
4895 \begin_inset Flex Code
4898 \begin_layout Plain Layout
4905 \begin_inset Flex Code
4908 \begin_layout Plain Layout
4914 pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4915 \begin_inset Flex Code
4918 \begin_layout Plain Layout
4925 \begin_inset Flex Code
4928 \begin_layout Plain Layout
4934 ファイル形式が優先され,Windowsでは
4935 \begin_inset Flex Code
4938 \begin_layout Plain Layout
4947 \begin_layout Standard
4949 の環境構成時には,「\SpecialChar LyX
4950 書庫」を書き出すことができるようにスクリプトが準備され,
4951 \begin_inset Flex MenuItem
4954 \begin_layout Plain Layout
4955 ファイル\SpecialChar menuseparator
4964 \begin_layout Standard
4965 \begin_inset Flex MenuItem
4968 \begin_layout Plain Layout
4969 ツール\SpecialChar menuseparator
4970 設定\SpecialChar menuseparator
4971 ファイル処理\SpecialChar menuseparator
4978 \begin_inset Flex MenuItem
4981 \begin_layout Plain Layout
4983 \SpecialChar menuseparator
4991 \begin_inset Flex Code
4994 \begin_layout Plain Layout
5001 \begin_inset Flex Code
5004 \begin_layout Plain Layout
5010 スイッチを加えることで,プラットホームとは独立に,
5011 \begin_inset Flex Code
5014 \begin_layout Plain Layout
5021 \begin_inset Flex Code
5024 \begin_layout Plain Layout
5030 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5033 \begin_layout Section
5037 \begin_layout Standard
5038 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5039 \begin_inset Flex Code
5042 \begin_layout Plain Layout
5048 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5053 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5055 る必要のある\SpecialChar LaTeX
5059 \begin_layout Standard
5060 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5061 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5065 \begin_inset Flex Code
5068 \begin_layout Plain Layout
5083 \begin_inset Flex Code
5086 \begin_layout Plain Layout
5101 \begin_inset Flex Code
5104 \begin_layout Plain Layout
5117 \begin_inset Flex Code
5120 \begin_layout Plain Layout
5128 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5131 \begin_layout Standard
5139 \begin_layout Standard
5140 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5144 \begin_layout Standard
5150 \begin_inset Newline newline
5158 \begin_layout Standard
5159 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5160 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5163 \begin_layout Standard
5173 \begin_layout Standard
5181 \begin_layout Standard
5191 \begin_layout Standard
5199 \begin_layout Standard
5207 \begin_layout Standard
5217 \begin_layout Standard
5221 \begin_inset Flex Code
5224 \begin_layout Plain Layout
5241 \begin_inset Flex Code
5244 \begin_layout Plain Layout
5256 は,それぞれ\SpecialChar LaTeX
5257 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5258 \begin_inset Flex Code
5261 \begin_layout Plain Layout
5276 \begin_layout Standard
5277 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5278 フッタ罫線は0ptです.太さを変更するには,
5281 \begin_inset Flex Code
5284 \begin_layout Plain Layout
5291 headrulewidth}{0.4pt}
5301 \begin_inset Flex Code
5304 \begin_layout Plain Layout
5311 footrulewidth}{0.4pt}
5321 \begin_layout Standard
5322 \begin_inset Flex Code
5325 \begin_layout Plain Layout
5330 thispagestyle{empty}
5336 \begin_inset Flex Code
5339 \begin_layout Plain Layout
5344 thispagestyle{plain}
5350 \begin_inset Flex Code
5353 \begin_layout Plain Layout
5358 thispagestyle{fancy}
5363 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5365 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5366 (plain)になるように設定されているのです.
5369 \begin_layout Standard
5370 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5371 \begin_inset Flex Code
5374 \begin_layout Plain Layout
5382 パッケージの取扱説明書をご参照ください(
5383 \begin_inset Flex Code
5386 \begin_layout Plain Layout
5395 \begin_layout Standard
5396 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5399 \begin_layout Standard
5408 includegraphics{logo.eps}}}
5411 \begin_layout Standard
5413 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5414 \begin_inset Newline newline
5418 \begin_inset Flex Code
5421 \begin_layout Plain Layout
5427 usepackage{graphics}
5432 をプリアンブルに宣言する必要があります).
5435 \begin_layout Section
5437 \begin_inset CommandInset label
5446 \begin_layout Standard
5452 \begin_layout Subsection
5456 \begin_layout Standard
5458 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5459 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5463 \begin_layout Plain Layout
5464 正確には可能ですが,手動で行う必要があります.
5472 \begin_layout Subsection
5476 \begin_layout Standard
5478 \begin_inset Flex MenuItem
5481 \begin_layout Plain Layout
5482 文書\SpecialChar menuseparator
5489 \begin_inset Flex MenuItem
5492 \begin_layout Plain Layout
5501 \begin_layout Standard
5502 このダイアログは,ブリット形の一覧表を提示します.
5503 \begin_inset Flex MenuItem
5506 \begin_layout Plain Layout
5512 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5513 \begin_inset Flex MenuItem
5516 \begin_layout Plain Layout
5522 パネルは,変更したい階層を選択するものです.
5523 \begin_inset Flex MenuItem
5526 \begin_layout Plain Layout
5532 では,指定したい\SpecialChar LaTeX
5533 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5537 \begin_layout Standard
5538 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5542 \begin_layout Standard
5544 \begin_inset Tabular
5545 <lyxtabular version="3" rows="7" columns="2">
5546 <features tabularvalignment="middle">
5547 <column alignment="center" valignment="top" width="0pt">
5548 <column alignment="center" valignment="top" width="0pt">
5550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5562 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5593 \begin_layout Plain Layout
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5615 \begin_layout Plain Layout
5630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5633 \begin_layout Plain Layout
5650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5653 \begin_layout Plain Layout
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5671 \begin_layout Plain Layout
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Plain Layout
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5709 \begin_layout Plain Layout
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Plain Layout
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5747 \begin_layout Plain Layout
5764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5767 \begin_layout Plain Layout
5782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5785 \begin_layout Plain Layout
5808 \begin_layout Standard
5810 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5812 パッケージが導入されていない可能性が大です
5816 \begin_layout Plain Layout
5818 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5826 \begin_layout Subsection
5830 \begin_layout Standard
5831 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5832 上には反映されませんが,文書の表示を行えば確認されます.
5835 \begin_layout Standard
5836 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5840 \begin_layout Plain Layout
5845 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5846 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5847 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5850 \begin_layout Plain Layout
5854 \begin_layout Plain Layout
5870 \begin_layout Plain Layout
5874 \begin_layout Plain Layout
5896 \begin_layout Itemize
5897 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5899 \begin_inset Flex Code
5902 \begin_layout Plain Layout
5912 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5913 更するために,以下の\SpecialChar LaTeX
5918 \begin_layout LyX-Code
5930 \begin_layout LyX-Code
5949 \begin_layout Itemize
5951 \begin_inset Flex Code
5954 \begin_layout Plain Layout
5962 コマンドの一部にローマ数字で指定されていることに注意してください.
5965 \begin_layout Itemize
5966 \begin_inset Argument item:1
5969 \begin_layout Plain Layout
5973 \begin_layout Plain Layout
5992 \begin_inset Flex Code
5995 \begin_layout Plain Layout
6002 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
6003 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
6006 \begin_inset Flex Code
6009 \begin_layout Plain Layout
6028 \begin_layout Plain Layout
6032 \begin_layout Plain Layout
6048 \begin_layout Plain Layout
6049 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6052 \begin_layout LyX-Code
6069 \begin_layout Chapter
6074 \begin_layout Standard
6076 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6077 は,常に外部変換子を用いることで実現されていました
6081 \begin_layout Plain Layout
6083 で外部変換子を使うことについての詳細は,取扱説明書『
6096 .これらは2つのグループに大別できます.1つは,
6097 \begin_inset Flex Code
6100 \begin_layout Plain Layout
6107 \begin_inset Flex Code
6110 \begin_layout Plain Layout
6117 \begin_inset Flex Code
6120 \begin_layout Plain Layout
6126 のように,\SpecialChar LaTeX
6127 を中間形式として用い,その\SpecialChar LaTeX
6128 を生成するのに\SpecialChar LyX
6130 \begin_inset Flex Code
6133 \begin_layout Plain Layout
6140 のように,直接\SpecialChar LyX
6141 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6144 \begin_layout Standard
6146 ベースの変換子は,原則として,\SpecialChar LaTeX
6147 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6149 たのか,\SpecialChar TeX
6150 コードで書かれたのかについては気にしません.これらの変換子は,
6151 \begin_inset Flex Code
6154 \begin_layout Plain Layout
6160 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6162 \begin_inset Flex Code
6165 \begin_layout Plain Layout
6171 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6172 は解析の非常に難しい言語であり—\SpecialChar TeX
6173 自身だけが\SpecialChar TeX
6174 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6176 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6180 』は,他の変換子では書き出しができるのに,
6181 \begin_inset Flex Code
6184 \begin_layout Plain Layout
6190 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6191 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6192 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6193 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6196 \begin_layout Standard
6198 \begin_inset Flex Code
6201 \begin_layout Plain Layout
6209 \begin_inset CommandInset href
6211 name "http://elyxer.nongnu.org/"
6212 target "http://elyxer.nongnu.org/"
6217 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6218 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6219 \begin_inset Flex Code
6222 \begin_layout Plain Layout
6228 よりも質が落ちます.これはHTMLの限界を示しています
6232 \begin_layout Plain Layout
6234 \begin_inset Flex Code
6237 \begin_layout Plain Layout
6244 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6250 .さらに重要なことは(少なくとも第1.1.1版においては),
6251 \begin_inset Flex Code
6254 \begin_layout Plain Layout
6261 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6263 \begin_inset Flex Code
6266 \begin_layout Plain Layout
6273 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6274 開発陣は別の方法を採ることとし,\SpecialChar LyX
6277 ことができるのと同様に,\SpecialChar LyX
6278 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6281 \begin_layout Standard
6282 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6286 \begin_layout Plain Layout
6289 \begin_inset CommandInset href
6292 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6298 \begin_inset Flex Code
6301 \begin_layout Plain Layout
6302 development/HTML/HTML.notes
6307 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6308 \begin_inset CommandInset href
6311 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"
6316 にあるXHTML関連バグ一覧も参照のこと.
6321 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6324 \begin_layout Standard
6325 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6326 の一部となっているため,\SpecialChar LyX
6327 が出力する文書について\SpecialChar LyX
6328 が関知しているところのものは,すべて知り得るというところから来ていま
6333 \begin_layout Plain Layout
6334 他には,これらのルーチンが\SpecialChar LyX
6335 内部にあるため,\SpecialChar LyX
6336 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6341 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6342 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6343 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6344 1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6347 \begin_layout Standard
6348 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6349 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6350 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6351 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6355 生成します.もし節見出しが,\SpecialChar LyX
6356 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6357 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6359 式とを区別しません.どちらの場合も,\SpecialChar LyX
6360 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6364 \begin_layout Standard
6365 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6366 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6374 \begin_layout Standard
6375 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6378 \begin_layout Section
6382 \begin_layout Standard
6384 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6387 \begin_layout Itemize
6389 \begin_inset Newline newline
6392 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6393 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6395 \begin_inset Newline newline
6399 \begin_inset Flex Code
6402 \begin_layout Plain Layout
6408 パッケージを使用していたり,\SpecialChar TeX
6409 コードを使用しているなどで,もし\SpecialChar LyX
6410 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6415 \begin_layout Itemize
6417 \begin_inset Newline newline
6421 \begin_inset Flex Code
6424 \begin_layout Plain Layout
6430 は,数式をCSSで装飾したHTMLとして出力します
6434 \begin_layout Plain Layout
6437 \begin_inset Flex Code
6440 \begin_layout Plain Layout
6446 からのHTML出力のために,CSSの一部を拝借しています.
6451 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6452 \begin_inset Flex Code
6455 \begin_layout Plain Layout
6461 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6462 \begin_inset Newline newline
6466 \begin_inset Flex Code
6469 \begin_layout Plain Layout
6475 パッケージを使用していたり,\SpecialChar TeX
6476 コードを使用しているなどで,もし\SpecialChar LyX
6477 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6482 \begin_layout Itemize
6484 \begin_inset Newline newline
6488 \begin_inset Flex Code
6491 \begin_layout Plain Layout
6497 のように,\SpecialChar LyX
6498 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6502 \begin_layout Plain Layout
6503 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6512 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6513 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6514 かったり,コピーが出来なかったりといったことがあります.
6515 \begin_inset Newline newline
6519 \begin_inset Flex MenuItem
6522 \begin_layout Plain Layout
6523 文書\SpecialChar menuseparator
6524 設定\SpecialChar menuseparator
6530 の「数式画像の伸縮」パラメータを変更することで制御できます
6534 \begin_layout Plain Layout
6535 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6541 \begin_inset Newline newline
6545 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6546 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6550 \begin_layout Itemize
6553 \begin_inset Newline newline
6556 最後に,\SpecialChar LyX
6557 は,数式を\SpecialChar LaTeX
6558 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6561 \begin_inset CommandInset href
6564 target "http://www.math.union.edu/~dpvc/jsMath/"
6569 のようなツールとともに使用することもできます.\SpecialChar LyX
6570 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6572 \begin_inset Flex Code
6575 \begin_layout Plain Layout
6582 \begin_inset Flex Code
6585 \begin_layout Plain Layout
6592 \begin_inset Flex Code
6595 \begin_layout Plain Layout
6604 \begin_layout Standard
6606 \begin_inset Flex MenuItem
6609 \begin_layout Plain Layout
6610 文書\SpecialChar menuseparator
6611 設定\SpecialChar menuseparator
6617 で選択しなくてはなりません.既定では,\SpecialChar LyX
6618 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6621 \begin_layout Standard
6622 最後に,\SpecialChar LyX
6623 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6627 \begin_layout Plain Layout
6628 その他にも,\SpecialChar LyX
6629 は,差込枠に\SpecialChar TeX
6630 コードが含まれていると画像出力に回帰するので,数式中に
6631 \begin_inset Formula $a=b\relax$
6634 のような無害な\SpecialChar TeX
6635 コードを挿入することによって,画像出力を強制することができます.
6643 \begin_layout Section
6647 \begin_layout Standard
6648 XHTML出力は,書誌情報と引用を完全にサポートしています.
6651 \begin_layout Standard
6652 引用ラベルは,\SpecialChar LyX
6653 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6654 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6655 使用している場合には,\SpecialChar LyX
6656 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6657 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6658 は,Bib\SpecialChar TeX
6659 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6660 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6663 \begin_layout Standard
6664 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6665 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6669 \begin_layout Standard
6670 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6675 \begin_inset Quotes eld
6678 Context and Logical Form
6679 \begin_inset Quotes erd
6684 Language in Context: Selected Essays
6686 (Oxford: Oxford University Press, 2007), pp.
6692 \begin_inset Quotes eld
6695 Semantics in Context
6696 \begin_inset Quotes erd
6701 Language in Context: Selected Essays
6703 (Oxford: Oxford University Press, 2007), pp.
6707 \begin_layout Standard
6708 これは,遠くないうちに修正されるでしょう.
6711 \begin_layout Standard
6712 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6713 は同じ情報を繰り返し出力してしまいます.
6716 \begin_layout Section
6720 \begin_layout Standard
6722 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6725 \begin_layout Standard
6730 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6734 \begin_layout Plain Layout
6735 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6736 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6737 で入力しなくてはならないようなものをそのまま入力しているのです.
6742 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6745 \begin_layout Itemize
6746 索引項目のグループ化(下層項目): \SpecialChar LyX
6747 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6748 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6751 \begin_layout Itemize
6752 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6756 \begin_layout Itemize
6757 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6758 が「|see\SpecialChar ldots
6759 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6763 \begin_layout Itemize
6764 索引項目の整序: \SpecialChar LyX
6765 は整序順の変更をサポートします.\SpecialChar LyX
6766 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6767 出します.現在のところ,\SpecialChar LyX
6768 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6771 \begin_layout Itemize
6772 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6773 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6774 うな文法はサポートされません.\SpecialChar LyX
6775 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6778 \begin_layout Itemize
6779 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6780 を印字しますので,その索引は必ず置くようにしてください.
6783 \begin_layout Section
6787 \begin_layout Standard
6788 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6791 \begin_layout Chapter
6794 \begin_inset CommandInset label
6803 \begin_layout Section
6807 \begin_layout Standard
6809 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6810 と通信したり,\SpecialChar LyX
6811 コマンドを実行させたり,\SpecialChar LyX
6812 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6813 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6814 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6818 \begin_layout Section
6821 \begin_inset CommandInset label
6823 name "sec:サーバーを開始するには"
6830 \begin_layout Standard
6832 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6833 \begin_inset Flex Code
6836 \begin_layout Plain Layout
6842 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6847 \begin_inset Flex Code
6850 \begin_layout Plain Layout
6862 に特別なオブジェクトとして置かれます),「
6863 \begin_inset Flex Code
6866 \begin_layout Plain Layout
6873 \begin_inset Flex Code
6876 \begin_layout Plain Layout
6882 」という名前がついています.外部プログラムは,
6883 \begin_inset Flex Code
6886 \begin_layout Plain Layout
6893 \begin_inset Flex Code
6896 \begin_layout Plain Layout
6903 \begin_inset Flex MenuItem
6906 \begin_layout Plain Layout
6907 ツール\SpecialChar menuseparator
6914 \begin_inset Flex Code
6917 \begin_layout Plain Layout
6918 /home/myhome/lyxpipe
6924 \begin_inset Flex Code
6927 \begin_layout Plain Layout
6941 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6942 \begin_inset Flex Code
6945 \begin_layout Plain Layout
6963 なども使用できます).サーバーを開始するためには,これを
6970 \begin_layout Standard
6973 \begin_inset Flex Code
6976 \begin_layout Plain Layout
6983 \begin_inset Flex Code
6986 \begin_layout Plain Layout
6992 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6994 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6995 らかの理由で,\SpecialChar LyX
6996 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6997 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6998 プを削除したのちに,\SpecialChar LyX
6999 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7003 \begin_layout Standard
7004 サーバーを使用する\SpecialChar LyX
7005 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7006 \begin_inset Flex Code
7009 \begin_layout Plain Layout
7015 ファイルを使用させるなど,別々の設定を使用する必要があります.
7018 \begin_layout Standard
7019 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7020 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7021 \begin_inset Flex Code
7024 \begin_layout Plain Layout
7033 \begin_layout Standard
7034 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7035 \begin_inset Newline newline
7039 \begin_inset Flex Code
7042 \begin_layout Plain Layout
7043 development/lyxserver/server_monitor.cpp
7051 \begin_layout Standard
7053 \begin_inset Flex Code
7056 \begin_layout Plain Layout
7057 src/client/lyxclient
7062 にあるコマンドラインベースのクライアントがあります.
7065 \begin_layout Section
7069 \begin_layout Standard
7071 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7088 \begin_layout Description
7089 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7091 る際,クライアント名をエコーするときだけです.
7094 \begin_layout Description
7095 関数 は,\SpecialChar LyX
7096 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7099 \begin_layout Description
7100 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7103 \begin_layout Standard
7122 \begin_layout Standard
7131 は,コマンド要求からそのままエコーされますが,
7135 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7136 の内部状態に関する情報を返しますが,空のデータ応答
7137 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7140 \begin_layout Standard
7141 エラーが発生した場合の\SpecialChar LyX
7159 \begin_layout Standard
7164 には,なぜコマンドが失敗したかの説明が入っているはずです.
7167 \begin_layout Standard
7171 \begin_layout LyX-Code
7172 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7173 \begin_inset Newline newline
7176 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7177 \begin_inset Newline newline
7180 read a <~/.lyxpipe.out
7181 \begin_inset Newline newline
7187 \begin_layout Section
7191 \begin_layout Standard
7193 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7194 \begin_inset Flex Ruby
7197 \begin_layout Plain Layout
7199 \begin_inset Argument post:1
7202 \begin_layout Plain Layout
7213 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7214 はこの通知を行います.\SpecialChar LyX
7219 \begin_inset Flex Code
7222 \begin_layout Plain Layout
7233 \begin_layout Standard
7238 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7241 \begin_layout Standard
7242 この機構は,\SpecialChar LyX
7243 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7244 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7245 コマンドを発行する\SpecialChar LyX
7250 \begin_layout Section
7255 \begin_layout Standard
7257 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7270 \begin_layout Standard
7275 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7276 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7278 とをクライアントに伝えるのには,\SpecialChar LyX
7282 \begin_layout Section
7286 \begin_layout Standard
7291 \begin_layout Plain Layout
7292 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7296 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7301 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7302 特定の場所をクリックすることによって,\SpecialChar LyX
7303 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7309 )を使用するか,\SpecialChar LyX
7310 が作業ディレクトリに生成するUNIXドメインソケット(
7315 \begin_inset Flex Code
7318 \begin_layout Plain Layout
7324 プログラムが\SpecialChar LyX
7325 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7326 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7328 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7329 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7330 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7331 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7334 \begin_layout Subsection
7335 \begin_inset CommandInset label
7344 \begin_layout Standard
7348 arg "buffer-toggle-output-sync"
7351 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7352 がすべてをうまくこなしてくれます.あるいは,
7353 \begin_inset Flex MenuItem
7356 \begin_layout Plain Layout
7357 文書\SpecialChar menuseparator
7358 設定\SpecialChar menuseparator
7365 \begin_inset Flex MenuItem
7368 \begin_layout Plain Layout
7374 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7375 は,自動的に,必要なSync\SpecialChar TeX
7376 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7378 \begin_inset Flex MenuItem
7381 \begin_layout Plain Layout
7387 ツールバーからも容易にアクセスすることができます.
7390 \begin_layout Standard
7391 もし,これとは別の設定が必要な場合には,
7392 \begin_inset Flex MenuItem
7395 \begin_layout Plain Layout
7396 文書\SpecialChar menuseparator
7397 設定\SpecialChar menuseparator
7398 出力\SpecialChar menuseparator
7404 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7407 \begin_layout Standard
7409 \begin_inset Flex Code
7412 \begin_layout Plain Layout
7420 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7421 \begin_inset Flex Code
7424 \begin_layout Plain Layout
7435 \begin_layout Standard
7437 \begin_inset Flex Code
7440 \begin_layout Plain Layout
7447 \begin_inset Flex Code
7450 \begin_layout Plain Layout
7456 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7457 \begin_inset Flex Code
7460 \begin_layout Plain Layout
7467 \begin_inset Flex Code
7470 \begin_layout Plain Layout
7476 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7479 \begin_layout Standard
7480 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7481 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7482 \begin_inset CommandInset ref
7484 reference "subsec:特定のビューアを設定して使うには"
7491 \begin_layout Subsection
7495 \begin_layout Standard
7497 は,遡及検索のために複数の方法を提供しています.ある方法は
7498 \begin_inset Flex Code
7501 \begin_layout Plain Layout
7507 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7508 頒布版が既に特定の方法を提供しているか(組み込みによ
7509 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7512 \begin_layout Subsubsection*
7513 src-special経由のDVI組み込み検索(DVIのみ)
7516 \begin_layout Standard
7517 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7518 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7521 \begin_inset Flex MenuItem
7524 \begin_layout Plain Layout
7525 設定\SpecialChar menuseparator
7526 ファイル処理\SpecialChar menuseparator
7533 \begin_inset Flex MenuItem
7536 \begin_layout Plain Layout
7543 \begin_inset Flex MenuItem
7546 \begin_layout Plain Layout
7547 LaTeX (plain)->DraftDVI
7553 \begin_inset Flex Code
7556 \begin_layout Plain Layout
7557 latex -src-specials $$i
7562 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7563 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7566 \begin_layout Subsubsection*
7567 外部パッケージ(PDFSyncおよびsrcltx)
7570 \begin_layout Standard
7579 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7580 プリアンブルで以下のようにパッケージを読み込んで
7584 \begin_layout Itemize
7586 \begin_inset Flex Code
7589 \begin_layout Plain Layout
7600 \begin_layout Itemize
7602 \begin_inset Flex Code
7605 \begin_layout Plain Layout
7608 usepackage[active]{srcltx}
7616 \begin_layout Standard
7617 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7620 \begin_layout LyX-Code
7624 \begin_inset Newline newline
7630 \begin_inset Newline newline
7636 \begin_inset Newline newline
7642 \begin_inset Newline newline
7647 usepackage[active]{srcltx}
7648 \begin_inset Newline newline
7656 \begin_layout Standard
7657 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7660 \begin_layout Standard
7661 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7665 \begin_layout Subsubsection*
7666 Sync\SpecialChar TeX
7667 を使った組み込み遡及検索(DVIおよびPDF)
7670 \begin_layout Standard
7671 \begin_inset Flex Code
7674 \begin_layout Plain Layout
7680 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7682 Sync\SpecialChar TeX
7685 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7686 るためには,少なくとも\SpecialChar TeX
7687 Live 2008か最近のMik\SpecialChar TeX
7688 頒布版が必要です.また,既にSync\SpecialChar TeX
7689 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7690 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7693 \begin_layout Standard
7694 DVI出力でSync\SpecialChar TeX
7696 \begin_inset Flex MenuItem
7699 \begin_layout Plain Layout
7700 設定\SpecialChar menuseparator
7701 ファイル処理\SpecialChar menuseparator
7708 \begin_inset Flex Noun
7711 \begin_layout Plain Layout
7712 LaTeX (plain) -> DVI
7718 \begin_inset Flex Noun
7721 \begin_layout Plain Layout
7722 LaTeX (plain) -> DraftDVI
7728 \begin_inset Flex Code
7731 \begin_layout Plain Layout
7732 latex -synctex=1 $$i
7738 \begin_inset Flex Noun
7741 \begin_layout Plain Layout
7742 LaTeX (pdflatex) -> PDF (pdflatex)
7748 \begin_inset Flex Code
7751 \begin_layout Plain Layout
7752 pdflatex -synctex=1 $$i
7757 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7758 で使うのに設定を行う必要があるかどうか,お
7759 使いのビューアの取扱説明書をご確認ください.
7763 \begin_layout Plain Layout
7764 \begin_inset Flex Code
7767 \begin_layout Plain Layout
7773 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7774 \begin_inset Flex Code
7777 \begin_layout Plain Layout
7791 \begin_layout Subsection
7793 \begin_inset CommandInset label
7795 name "subsec:特定のビューアを設定して使うには"
7802 \begin_layout Subsubsection*
7806 \begin_layout Standard
7809 \begin_inset Flex Code
7812 \begin_layout Plain Layout
7818 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7819 \begin_inset Flex Code
7822 \begin_layout Plain Layout
7828 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7829 ,Mac OS X上ではAlt-クリックで始動します).
7832 \begin_layout Standard
7833 しかし,何らかの理由で,\SpecialChar LyX
7834 と通信するのにソケットではなく命名パイプを使用したい場合には,
7835 \begin_inset Flex MenuItem
7838 \begin_layout Plain Layout
7839 設定\SpecialChar menuseparator
7840 ファイル処理\SpecialChar menuseparator
7847 \begin_inset Flex Code
7850 \begin_layout Plain Layout
7851 xdvi -editor "lyxeditor.sh %f %l"
7857 \begin_inset Flex Code
7860 \begin_layout Plain Layout
7866 は適切なスクリプト名)に変更してください
7870 \begin_layout Plain Layout
7872 \begin_inset Flex Code
7875 \begin_layout Plain Layout
7876 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7889 \begin_layout LyX-Code
7891 \begin_inset Newline newline
7894 LYXPIPE="/path/to/lyxpipe"
7895 \begin_inset Newline newline
7898 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7899 \begin_inset Newline newline
7902 echo "$COMMAND" > "${LYXPIPE}".in || exit
7903 \begin_inset Newline newline
7906 read TMP < "${LYXPIPE}".out || exit
7909 \begin_layout Standard
7911 \begin_inset Flex Code
7914 \begin_layout Plain Layout
7921 \begin_inset Flex MenuItem
7924 \begin_layout Plain Layout
7925 設定\SpecialChar menuseparator
7931 で指定したLyXServerパイプのパスを指定してください.
7935 \begin_layout Plain Layout
7937 \begin_inset Flex Code
7940 \begin_layout Plain Layout
7951 \begin_inset Flex Code
7954 \begin_layout Plain Layout
7968 \begin_layout Subsubsection*
7972 \begin_layout Standard
7973 \begin_inset Flex Code
7976 \begin_layout Plain Layout
7977 /Applications/MacDviX_Folder/calleditor.script
7985 \begin_layout LyX-Code
7986 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7987 \begin_inset Newline newline
7993 \begin_layout Standard
7994 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7995 を導入した場合には,それに従って上記の行を修正してください.
7998 \begin_layout Standard
7999 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8002 \begin_layout Subsubsection*
8006 \begin_layout Standard
8007 \begin_inset Flex MenuItem
8010 \begin_layout Plain Layout
8011 設定\SpecialChar menuseparator
8012 ファイル処理\SpecialChar menuseparator
8013 ファイル書式\SpecialChar menuseparator
8020 \begin_inset Flex Code
8023 \begin_layout Plain Layout
8024 open -a Skim.app $$i
8030 \begin_inset Flex MenuItem
8033 \begin_layout Plain Layout
8034 Skim\SpecialChar menuseparator
8035 設定\SpecialChar menuseparator
8044 \begin_layout Standard
8045 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8048 \begin_layout Subsubsection*
8052 \begin_layout Standard
8053 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8054 \begin_inset CommandInset href
8056 target "http://wiki.lyx.org/LyX/SyncTeX"
8064 \begin_layout Subsubsection*
8068 \begin_layout Standard
8069 \begin_inset Flex Noun
8072 \begin_layout Plain Layout
8073 設定\SpecialChar menuseparator
8074 Okularを設定\SpecialChar menuseparator
8080 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8081 \begin_inset Flex Code
8084 \begin_layout Plain Layout
8093 \begin_layout Standard
8094 遡及検索は,SHIFT-クリックで始動します.
8097 \begin_layout Subsubsection*
8101 \begin_layout Standard
8102 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8104 \begin_inset Flex MenuItem
8107 \begin_layout Plain Layout
8108 Edit\SpecialChar menuseparator
8109 Settings\SpecialChar menuseparator
8115 を開いて「Source editor」項目の入力フィールドをクリックし,
8116 \begin_inset Flex Code
8119 \begin_layout Plain Layout
8128 \begin_layout Standard
8129 遡及検索は,ダブルクリックで始動します.
8132 \begin_layout Subsubsection*
8136 \begin_layout Standard
8138 \begin_inset Flex MenuItem
8141 \begin_layout Plain Layout
8142 View\SpecialChar menuseparator
8148 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8149 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8151 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8152 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8153 \begin_inset Flex Code
8156 \begin_layout Plain Layout
8162 (以下参照)のあるディレクトリを見つけます.
8163 \begin_inset Flex Code
8166 \begin_layout Plain Layout
8173 \begin_inset Flex Code
8176 \begin_layout Plain Layout
8183 \begin_inset Flex Code
8186 \begin_layout Plain Layout
8196 を通じて\SpecialChar LyX
8197 と通信するためのラッパとして使用され,以下のようになっています.
8200 \begin_layout LyX-Code
8202 \begin_inset Newline newline
8205 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2>
8214 \begin_inset Newline newline
8228 \begin_layout Standard
8230 で指定した\SpecialChar LyX
8232 \begin_inset Flex Code
8235 \begin_layout Plain Layout
8250 \begin_inset Flex Code
8253 \begin_layout Plain Layout
8262 \begin_layout Standard
8263 yapでは,遡及検索はダブルクリックで始動します.
8266 \begin_layout Subsubsection*
8270 \begin_layout Standard
8271 SumatraPDFを遡及検索で使用するためには,
8272 \begin_inset Flex MenuItem
8275 \begin_layout Plain Layout
8276 設定\SpecialChar menuseparator
8277 ファイル処理\SpecialChar menuseparator
8278 ファイル書式\SpecialChar menuseparator
8285 \begin_inset Flex Code
8288 \begin_layout Plain Layout
8289 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8295 \begin_inset Flex Code
8298 \begin_layout Plain Layout
8304 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8307 \begin_layout Standard
8311 \begin_layout Subsubsection*
8315 \begin_layout Standard
8316 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8317 \begin_inset Flex MenuItem
8320 \begin_layout Plain Layout
8321 View\SpecialChar menuseparator
8327 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8328 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8330 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8331 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8332 \begin_inset Flex Code
8335 \begin_layout Plain Layout
8341 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8342 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8343 \begin_inset Flex Code
8346 \begin_layout Plain Layout
8353 \begin_inset Flex Code
8356 \begin_layout Plain Layout
8362 と指定してください.これによって,\SpecialChar LyX
8367 が使用されるようになります.何らかの理由で
8372 \begin_inset Flex Code
8375 \begin_layout Plain Layout
8381 オプションを削除して,\SpecialChar LyX
8383 Serverパイプパスを指定することを忘れないでください.
8386 \begin_layout Standard
8387 yapでは,遡及検索はダブルクリックで始動します.
8390 \begin_layout Subsubsection*
8394 \begin_layout Standard
8395 SumatraPDFを遡及検索で使用するためには,
8396 \begin_inset Flex MenuItem
8399 \begin_layout Plain Layout
8400 設定\SpecialChar menuseparator
8401 ファイル処理\SpecialChar menuseparator
8402 ファイル書式\SpecialChar menuseparator
8409 \begin_inset Flex Code
8412 \begin_layout Plain Layout
8419 \begin_inset Flex Code
8422 \begin_layout Plain Layout
8428 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8429 \begin_inset Flex Code
8432 \begin_layout Plain Layout
8441 \begin_layout LyX-Code
8443 \begin_inset Newline newline
8447 \begin_inset Newline newline
8450 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8453 \begin_layout Standard
8454 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8455 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8456 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8457 \begin_inset Flex Code
8460 \begin_layout Plain Layout
8475 \begin_inset Flex Code
8478 \begin_layout Plain Layout
8484 オプションを削除して,\SpecialChar LyX
8486 Serverパイプパスを指定することを忘れないでください.
8489 \begin_layout Standard
8493 \begin_layout Section
8497 \begin_layout Standard
8498 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8499 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8500 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8502 \begin_inset Flex MenuItem
8505 \begin_layout Plain Layout
8506 移動\SpecialChar menuseparator
8512 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8513 \begin_inset Flex MenuItem
8516 \begin_layout Plain Layout
8522 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8525 \begin_layout Standard
8526 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8527 ソースに関する情報を追加する必要があります.これは,第
8528 \begin_inset CommandInset ref
8530 reference "subsec:遡及検索"
8534 節に述べられている方法で実行することができます.
8537 \begin_layout Standard
8539 \begin_inset Flex MenuItem
8542 \begin_layout Plain Layout
8543 ツール\SpecialChar menuseparator
8544 設定\SpecialChar menuseparator
8545 出力\SpecialChar menuseparator
8551 で自分の使うビューアを利用するように,\SpecialChar LyX
8552 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8553 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8556 \begin_layout Itemize
8557 \begin_inset Flex Code
8560 \begin_layout Plain Layout
8569 \begin_layout Itemize
8570 \begin_inset Flex Code
8573 \begin_layout Plain Layout
8579 :書き出された(一時).texファイル名(パスを除く)
8582 \begin_layout Itemize
8583 \begin_inset Flex Code
8586 \begin_layout Plain Layout
8592 :書き出された(一時).texファイル名(パスを含む)
8595 \begin_layout Itemize
8596 \begin_inset Flex Code
8599 \begin_layout Plain Layout
8605 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8608 \begin_layout Standard
8613 \begin_layout Plain Layout
8614 \begin_inset Flex Noun
8617 \begin_layout Plain Layout
8618 ツール\SpecialChar menuseparator
8619 設定\SpecialChar menuseparator
8620 ファイル処理\SpecialChar menuseparator
8627 \begin_inset Flex Code
8630 \begin_layout Plain Layout
8641 ・qpdfview・Sumatra PDF
8645 \begin_layout Plain Layout
8646 SumatraPDFは,外部プログラムCMCDDE(
8647 \begin_inset CommandInset href
8649 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8654 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8659 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8663 \begin_layout Plain Layout
8664 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8665 \begin_inset CommandInset href
8667 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8681 \begin_layout Plain Layout
8682 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8683 \begin_inset CommandInset href
8685 target "http://wiki.lyx.org/LyX/SyncTeX"
8695 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8696 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8697 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8700 \begin_layout Standard
8701 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8702 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8703 チェックして),その形式に適切な設定を選択します.
8706 \begin_layout Chapter
8710 \begin_layout Section
8714 \begin_layout Standard
8720 \begin_layout Subsection
8724 \begin_layout Standard
8731 Astronomy and Astrophysics
8734 \begin_inset Flex URL
8737 \begin_layout Plain Layout
8739 http://www.edpsciences.fr/aa/
8744 )に投稿する論文を執筆するための\SpecialChar LyX
8745 の使用法を説明します.このパッケージは,FTPサイト
8748 \begin_layout Standard
8750 \begin_inset VSpace medskip
8754 \begin_inset Flex URL
8757 \begin_layout Plain Layout
8759 ftp://ftp.edpsciences.org/pub/aa/readme.html
8765 \begin_inset VSpace medskip
8771 \begin_layout Standard
8776 \begin_layout Standard
8777 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8781 \begin_layout Standard
8782 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8783 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8784 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8785 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8792 Dir/layouts/aapaper.layout
8797 \begin_layout Subsection
8801 \begin_layout Standard
8803 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8806 \begin_layout Itemize
8809 文書\SpecialChar menuseparator
8816 を選択してください(まぁ,これは自明ですね).
8819 \begin_layout Itemize
8824 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8827 \begin_layout Subsection
8831 \begin_layout Standard
8832 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8835 \begin_layout Itemize
8843 \begin_layout Itemize
8851 \begin_layout Itemize
8859 \begin_layout Itemize
8867 \begin_layout Itemize
8872 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8875 \begin_layout Itemize
8880 :[非必須]連絡用の電子メールアドレス.
8883 \begin_layout Itemize
8890 Received: <日付>; Accepted <日付>
8895 \begin_layout Standard
8902 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8903 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8904 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8907 \begin_layout Standard
8908 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8910 挿入\SpecialChar menuseparator
8913 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8923 \begin_layout Standard
8926 編集\SpecialChar menuseparator
8929 の下に,タイトル関連の2つの差込枠があります.
8932 \begin_layout Itemize
8937 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8941 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8944 \begin_layout Itemize
8949 は,至急連絡用に電子メールアドレスを付するものです.
8952 \begin_layout Standard
8953 これらのトピックの他に,このマクロは,\SpecialChar LyX
8954 が対応していない,以下のもう一つの\SpecialChar LaTeX
8958 \begin_layout Itemize
8959 複数の著者名あるいは所属名を区切るための
8966 \begin_layout Standard
8968 中に対応したコマンドを入力し,\SpecialChar LaTeX
8969 コードとしてマークしてください.用例を参照のこと.
8972 \begin_layout Subsection
8976 \begin_layout Standard
8977 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8978 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8981 \begin_layout Subsection
8985 \begin_layout Standard
8986 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8989 \begin_layout Itemize
8995 \begin_layout Itemize
9001 \begin_layout Itemize
9007 \begin_layout Itemize
9013 \begin_layout Itemize
9019 \begin_layout Itemize
9025 \begin_layout Itemize
9031 \begin_layout Itemize
9037 \begin_layout Itemize
9043 \begin_layout Itemize
9049 \begin_layout Itemize
9055 \begin_layout Itemize
9062 \begin_layout Subsection
9067 \begin_layout Standard
9073 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9076 \begin_layout Itemize
9084 \begin_layout Itemize
9092 \begin_layout Itemize
9100 \begin_layout Itemize
9108 \begin_layout Standard
9109 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9111 これを\SpecialChar LaTeX
9112 コマンドとしてマークすることを忘れないで下さい.
9115 \begin_layout Subsection
9119 \begin_layout Standard
9137 をサポートしていますので,ここでは詳しい説明はしません.
9141 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9143 編集\SpecialChar menuseparator
9149 \begin_layout Standard
9150 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9153 \begin_layout Enumerate
9156 挿入\SpecialChar menuseparator
9157 フロート\SpecialChar menuseparator
9160 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9161 \begin_inset Flex MenuItem
9164 \begin_layout Plain Layout
9165 設定\SpecialChar ldots
9186 \begin_layout Enumerate
9190 \begin_layout Enumerate
9195 を押して,カーソルをキャプションの上に移動します.
9198 \begin_layout Enumerate
9202 \begin_layout Enumerate
9205 挿入\SpecialChar menuseparator
9206 整形\SpecialChar menuseparator
9224 \begin_layout Enumerate
9227 挿入\SpecialChar menuseparator
9230 を選択して,\SpecialChar TeX
9234 \begin_layout Enumerate
9247 \begin_layout Enumerate
9248 カーソルをキャプション文の後ろに移動し,
9250 挿入\SpecialChar menuseparator
9253 を選択して,別の\SpecialChar TeX
9254 差込枠を挿入し,その中に閉じ括弧を入力します .
9257 \begin_layout Standard
9261 \begin_layout Subsection
9265 \begin_layout Standard
9266 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9270 オプションを与える必要があります.これは,
9272 文書\SpecialChar menuseparator
9279 クラスオプションフィールドを使って行うことができます.この欄に
9286 \begin_layout Subsection
9290 \begin_layout Standard
9295 ディレクトリには,\SpecialChar LyX
9296 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9297 用に直したものです.これはヒントを得るために使用したり,元の
9299 コードと\SpecialChar LyX
9300 での書き方の比較に使ったりしてください.
9303 \begin_layout Section
9308 \begin_layout Standard
9316 \begin_layout Subsection
9320 \begin_layout Standard
9322 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9323 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9324 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9326 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9327 は,同マクロ第5.0版以降を必要としており,でき
9328 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9329 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9330 とは互換性がありません.AAS\SpecialChar TeX
9332 ,以下のAAS\SpecialChar TeX
9333 ウェブサイトからダウンロードできるでしょう.
9336 \begin_layout Standard
9338 \begin_inset VSpace medskip
9342 \begin_inset Flex URL
9345 \begin_layout Plain Layout
9347 https://aas.org/aastex/aastex-downloads
9353 \begin_inset VSpace medskip
9359 \begin_layout Standard
9360 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9361 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9363 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9364 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9365 いることを確認するのは,あなたの責任です.
9368 \begin_layout Subsection
9372 \begin_layout Standard
9373 論文を書き始めるには,AAS\SpecialChar TeX
9374 ひな型ファイルを土台に始めることを強くお勧めします.
9375 \begin_inset Flex MenuItem
9378 \begin_layout Plain Layout
9379 ファイル\SpecialChar menuseparator
9385 をクリックして,新しいファイル名を入力し,ひな型
9389 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9393 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9394 コマンド・AAS\SpecialChar TeX
9395 環境の多くは,\SpecialChar LyX
9396 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9398 コードを入力して,それを\SpecialChar TeX
9399 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9400 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9401 .AAS\SpecialChar TeX
9402 文書に必要とされる \SpecialChar TeX
9403 コードを最小にするようには努力しました.
9406 \begin_layout Subsection
9410 \begin_layout Standard
9411 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9414 \begin_layout Enumerate
9415 論文を \SpecialChar LaTeX
9418 ファイル\SpecialChar menuseparator
9419 書き出し\SpecialChar menuseparator
9425 \begin_layout Enumerate
9434 \begin_layout Enumerate
9441 コマンドよりも前のコメント行を削除します.
9444 \begin_layout Enumerate
9449 usepackage...{fontenc}
9466 \begin_layout Enumerate
9468 プリアンブル中に意図的に置いたコマンド(
9472 ファイル中,「User specified \SpecialChar LaTeX
9473 commands」というコメントの直後にあります)を除いて,
9485 の間のもの(これらのコマンドを含む)をすべて削除します.
9489 \begin_layout Enumerate
9490 編集後のファイルを \SpecialChar LaTeX
9491 にかけて,正しく処理されることを確認します.
9494 \begin_layout Enumerate
9495 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9498 \begin_layout Enumerate
9502 \begin_layout Subsection
9506 \begin_layout Standard
9512 )に,各AAS\SpecialChar TeX
9513 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9514 て,必要なところだけコメントを加えることにしましょう.
9517 \begin_layout Subsubsection
9521 \begin_layout Standard
9522 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9622 begin{thebibliography}
9630 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9681 \begin_layout Standard
9682 以下のスタイルオプションも正しく動作します.
9703 \begin_inset Flex MenuItem
9706 \begin_layout Plain Layout
9707 文書\SpecialChar menuseparator
9724 \begin_layout Subsubsection
9728 \begin_layout Standard
9729 以下のコマンドは動作しますが,若干の説明が必要です.
9732 \begin_layout Itemize
9733 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9765 \begin_layout Itemize
9766 以下の項目は,\SpecialChar LaTeX
9767 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9788 \begin_layout Itemize
9795 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9799 \begin_layout Itemize
9806 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9809 \begin_layout Itemize
9816 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9820 \begin_layout Itemize
9827 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9830 \begin_layout Itemize
9846 \begin_layout Itemize
9853 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9856 \begin_layout Itemize
9863 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9866 \begin_layout Itemize
9873 (2.14.2)―文章のはじめにカーソルを置いて
9874 \begin_inset Flex MenuItem
9877 \begin_layout Plain Layout
9878 挿入\SpecialChar menuseparator
9884 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9890 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9893 \begin_layout Itemize
9900 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9909 \begin_layout Itemize
9916 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9925 \begin_layout Subsubsection
9926 実装されていないため,\SpecialChar TeX
9930 \begin_layout Standard
9941 setcounter{equation}
9943 (2.12)・学術誌名略語(2.12.4)・
9979 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9992 (2.15.5)・補遺(2.17)の大半
10043 \begin_layout Subsubsection
10047 \begin_layout Standard
10048 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10049 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10050 \begin_inset Flex MenuItem
10053 \begin_layout Plain Layout
10054 挿入\SpecialChar menuseparator
10056 \begin_inset Formula $\text{\textipa{}}$
10059 \SpecialChar menuseparator
10065 を使用して,\SpecialChar LyX
10066 ファイルに読み込むことを推奨します.この実例は,
10073 \begin_layout Subsection
10077 \begin_layout Subsubsection
10079 をAAS\SpecialChar TeX
10083 \begin_layout Standard
10085 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10088 \begin_layout Enumerate
10090 が,AAS\SpecialChar TeX
10091 を検出できることを確認してください.AAS\SpecialChar TeX
10100 でも可)を,\SpecialChar LaTeX
10101 やAAS\SpecialChar TeX
10102 とまったく関係のないディレクトリにコピーして,
10106 を\SpecialChar LaTeX
10110 \begin_layout Enumerate
10120 フォルダにあることを確認してください.
10123 \begin_layout Enumerate
10127 ツール\SpecialChar menuseparator
10130 を再度実行し,\SpecialChar LyX
10134 \begin_layout Enumerate
10135 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10138 文書\SpecialChar menuseparator
10144 \begin_layout Standard
10145 既存のAAS\SpecialChar TeX
10146 文書を処理する際に,AAS\SpecialChar TeX
10147 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10151 \begin_layout Subsubsection
10152 表を処理する際の\SpecialChar LaTeX
10156 \begin_layout Standard
10157 既定では,\SpecialChar LyX
10158 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10159 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10162 編集\SpecialChar menuseparator
10173 に設定してください.私のところではこれで解決しました.
10176 \begin_layout Subsubsection
10180 \begin_layout Standard
10181 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10194 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10198 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10199 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10202 \begin_layout Subsubsection
10206 \begin_layout Standard
10207 AAS\SpecialChar TeX
10214 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10215 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10222 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10227 usepackage{graphics}
10229 コマンドを\SpecialChar LaTeX
10230 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10231 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10232 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10235 \begin_layout Subsubsection
10239 \begin_layout Standard
10240 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10242 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10243 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10246 \begin_layout Subsection
10250 \begin_layout Standard
10251 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10252 \begin_inset space \thinspace{}
10257 \begin_inset space \thinspace{}
10260 %が,\SpecialChar LaTeX
10261 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10265 \begin_layout Section
10266 AMS \SpecialChar LaTeX
10270 \begin_layout Standard
10280 \begin_inset VSpace bigskip
10286 \begin_layout Standard
10287 AMS \SpecialChar LaTeX
10288 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10289 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10291 必要があるだけです).AMSの説明書は,ウェブWeb上の
10292 \begin_inset Flex URL
10295 \begin_layout Plain Layout
10303 \begin_inset Flex URL
10306 \begin_layout Plain Layout
10308 ftp://ftp.ams.org/pub/tex/amslatex/
10313 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10316 \begin_layout Standard
10317 基本となるAMS \SpecialChar LaTeX
10318 レイアウトには,以下の二つがあります.
10321 \begin_layout Itemize
10322 amsart:標準のAMS article書式.
10325 \begin_layout Itemize
10326 amsbook:標準のAMS book(実際はモノグラフ)書式.
10329 \begin_layout Standard
10330 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10331 m」環境は,何一つ含まれていません.これらは,代わりに
10332 \begin_inset Flex Code
10335 \begin_layout Plain Layout
10341 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10342 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10343 \begin_inset Flex Code
10346 \begin_layout Plain Layout
10352 モジュールがあり,これは手動で読み込む必要があります.
10355 \begin_layout Standard
10356 既定では,定理類は,文書を通して連番が振られますが,これは
10357 \begin_inset Flex Code
10360 \begin_layout Plain Layout
10366 モジュールを読み込めば変更することができ,
10367 \begin_inset Flex Code
10370 \begin_layout Plain Layout
10377 \begin_inset Flex Code
10380 \begin_layout Plain Layout
10386 を用いても変更することができます.これらを用いると,出力は
10387 \begin_inset Formula $n.m$
10390 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10391 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10396 \begin_inset Flex Code
10399 \begin_layout Plain Layout
10408 \begin_layout Standard
10409 これらのモジュールは,AMSクラスで使用する
10414 \begin_inset Flex Code
10417 \begin_layout Plain Layout
10423 モジュールや上述の他のモジュールは,他のクラス,たとえば
10424 \begin_inset Flex Code
10427 \begin_layout Plain Layout
10434 \begin_inset Flex Code
10437 \begin_layout Plain Layout
10444 \begin_inset Flex Code
10447 \begin_layout Plain Layout
10453 などで問題なく使用することができます.
10456 \begin_layout Subsection
10460 \begin_layout Standard
10461 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10462 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10463 す.しかし,AMSは,\SpecialChar LyX
10464 で利用可能になっている環境のみを使用することを推奨しています.
10467 \begin_layout Standard
10468 \begin_inset Flex Code
10471 \begin_layout Plain Layout
10478 \begin_inset Flex Code
10481 \begin_layout Plain Layout
10488 \begin_inset space ~
10492 \begin_inset Flex Noun
10495 \begin_layout Plain Layout
10502 \begin_inset Flex Noun
10505 \begin_layout Plain Layout
10512 \begin_inset Flex Noun
10515 \begin_layout Plain Layout
10522 \begin_inset Flex Noun
10525 \begin_layout Plain Layout
10532 \begin_inset Flex Noun
10535 \begin_layout Plain Layout
10542 \begin_inset space ~
10546 \begin_inset space ~
10552 \begin_layout Description
10556 \begin_layout Description
10557 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10560 \begin_layout Description
10564 \begin_layout Description
10568 \begin_layout Description
10569 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10572 \begin_layout Description
10575 Mathematical Reviews
10577 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10581 \begin_layout Description
10585 \begin_layout Description
10589 \begin_layout Description
10593 \begin_layout Standard
10595 \begin_inset Flex Code
10598 \begin_layout Plain Layout
10605 \begin_inset Flex Code
10608 \begin_layout Plain Layout
10614 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10615 \begin_inset Flex Code
10618 \begin_layout Plain Layout
10624 モジュールでは,同環境の星付き版だけが提供されます.
10627 \begin_layout Theorem
10628 これは,通常,得られた主要な結果を叙述するのに使用されます.
10631 \begin_layout Corollary*
10632 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10635 \begin_layout Lemma
10636 他の叙述を証明するために必要とされる,比較的小さな結果です.
10639 \begin_layout Proposition
10640 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10643 \begin_layout Conjecture
10644 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10647 \begin_layout Definition*
10648 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10651 \begin_layout Problem
10652 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10655 \begin_layout Exercise*
10660 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10663 \begin_layout Claim*
10664 より大きな結果の証明を与える途中で,しばしば用いられます.
10668 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10672 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10675 \begin_layout Proof
10676 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10677 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10688 \begin_layout Standard
10690 \begin_inset Flex Code
10693 \begin_layout Plain Layout
10702 \begin_layout Criterion*
10706 \begin_layout Algorithm*
10710 \begin_layout Axiom*
10711 議論されている系内部で真と仮定される性質や命題です.
10714 \begin_layout Condition*
10715 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10718 \begin_layout Note*
10722 \begin_layout Notation*
10726 \begin_layout Summary
10730 \begin_layout Acknowledgement*
10731 謝辞(acknowledgement)です.
10734 \begin_layout Conclusion*
10739 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10742 \begin_layout Standard
10743 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10744 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10748 \begin_layout Section
10754 \begin_layout Standard
10762 \begin_layout Subsection
10766 \begin_layout Standard
10767 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10769 \begin_inset Flex URL
10772 \begin_layout Plain Layout
10774 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10779 にあります)が導入されていることが必要です.
10782 \begin_layout Subsection
10786 \begin_layout Standard
10795 は,定義し直されています.\SpecialChar LyX
10804 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10816 \begin_layout Standard
10853 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10856 \begin_layout Standard
10857 おそらく,これはまだ恐ろしく不完全です.
10860 \begin_layout Subsection
10864 \begin_layout Standard
10873 (Plate)が新しいフロートです.また,
10880 \begin_layout Subsection
10884 \begin_layout Itemize
10887 Journal of Geophysical Research
10896 \begin_layout Standard
10897 ここにあなたの作ったものを加えてください.難しくはありません.
10908 \begin_layout Subsection
10912 \begin_layout Standard
10913 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10916 \begin_layout Enumerate
10923 ツール\SpecialChar menuseparator
10926 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10933 \begin_layout Enumerate
10938 と入力してください(すみません,これはバグです).
10941 \begin_layout Enumerate
10942 Bib\SpecialChar TeX
10951 を使用していることを確認してください.標準スタイルはうまく動作しません.
10954 \begin_layout Section
10958 \begin_layout Standard
10966 \begin_layout Subsection
10970 \begin_layout Standard
10971 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10974 \begin_layout Subsection
10978 \begin_layout Standard
10982 \begin_layout Subsection
10986 \begin_layout Standard
10991 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10994 \begin_layout Subsection
10998 \begin_layout Standard
10999 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11002 \begin_layout Subsection
11006 \begin_layout Standard
11007 以下の環境を使うことができます.右に記してある
11008 \begin_inset Flex Ruby
11011 \begin_layout Plain Layout
11013 \begin_inset Argument post:1
11016 \begin_layout Plain Layout
11027 割当ては,broadway.bindを使った場合のものです.
11030 \begin_layout Itemize
11034 \begin_inset Newline newline
11039 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11042 \begin_layout Itemize
11046 \begin_inset space \hfill{}
11050 \begin_inset Newline newline
11055 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11058 \begin_layout Itemize
11062 \begin_inset space \hfill{}
11066 \begin_inset Newline newline
11071 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11074 \begin_layout Itemize
11078 \begin_inset space \hfill{}
11082 \begin_inset Newline newline
11087 幕の副題です.単に中央揃えの文になります.
11090 \begin_layout Itemize
11094 \begin_inset space \hfill{}
11098 \begin_inset Newline newline
11103 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11106 \begin_layout Itemize
11110 \begin_inset space \hfill{}
11114 \begin_inset Newline newline
11119 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11122 \begin_layout Itemize
11126 \begin_inset space \hfill{}
11130 \begin_inset Newline newline
11135 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11138 \begin_layout Itemize
11142 \begin_inset space \hfill{}
11146 \begin_inset Newline newline
11151 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11158 \begin_layout Itemize
11162 \begin_inset space \hfill{}
11166 \begin_inset Newline newline
11174 \begin_layout Itemize
11178 \begin_inset space \hfill{}
11182 \begin_inset Newline newline
11190 \begin_layout Itemize
11194 \begin_inset space \hfill{}
11200 \begin_layout Itemize
11204 \begin_inset space \hfill{}
11210 \begin_layout Itemize
11214 \begin_inset space \hfill{}
11220 \begin_layout Section
11224 \begin_layout Standard
11229 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11231 .../lyx/share/templates
11233 にあるので,それを土台として使用してください.
11236 \begin_layout Section
11242 \begin_layout Standard
11250 \begin_layout Subsection
11254 \begin_layout Standard
11255 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11260 \begin_inset Flex URL
11263 \begin_layout Plain Layout
11265 http://www.copernicus.org/
11273 \begin_layout Subsection
11277 \begin_layout Standard
11315 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11319 ファイルを読み込む形に変えた方が便利になると思われます.
11322 \begin_layout Section
11326 \begin_layout Standard
11332 を参照してください.必要な情報は全てそこにあります.
11335 \begin_layout Section
11336 Foils別名Foil\SpecialChar TeX
11338 \begin_inset CommandInset label
11347 \begin_layout Standard
11355 \begin_layout Subsection
11359 \begin_layout Standard
11360 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11361 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11363 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11366 \begin_layout Standard
11367 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11370 \begin_layout Standard
11371 \begin_inset VSpace bigskip
11377 \begin_layout Standard
11392 \begin_layout Standard
11393 \begin_inset VSpace bigskip
11399 \begin_layout Standard
11402 transparencies (slides)
11405 \begin_inset CommandInset ref
11407 reference "sec:slitex"
11411 節をご覧ください.お使いのコンピュータに
11430 \begin_layout Standard
11435 クラスは,\SpecialChar LaTeX2e
11436 の一部として含まれている\SpecialChar LaTeX
11441 の第2.1版とともに使われるように設計されています.
11444 \begin_layout Subsection
11448 \begin_layout Standard
11449 いうまでもなく,この文書クラスを使うには,
11451 文書\SpecialChar menuseparator
11452 設定\SpecialChar menuseparator
11467 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11470 \begin_layout Itemize
11483 オプションは変更しないでください.これらは
11490 \begin_layout Itemize
11491 既定のフォント寸法は20ptであり,17
11492 \begin_inset space \thinspace{}
11496 \begin_inset space \thinspace{}
11500 \begin_inset space \thinspace{}
11506 \begin_layout Itemize
11515 ですが,数式ではすべて,通常のローマン体が使用されます.
11518 \begin_layout Itemize
11519 Foil\SpecialChar TeX
11521 \begin_inset space \thinspace{}
11524 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11527 \begin_layout Itemize
11532 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11535 \begin_layout Itemize
11540 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11541 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11542 \begin_inset CommandInset ref
11544 reference "sec:foilfoot"
11548 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11552 付けられず,(ロゴが定義されていれば)ロゴは,
11556 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11560 \begin_layout Labeling
11561 \labelwidthstring MMMMMMM
11568 最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11571 \begin_layout Labeling
11572 \labelwidthstring MMMMMMM
11579 最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11582 \begin_layout Labeling
11583 \labelwidthstring MMMMMMM
11588 ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11591 \begin_layout Labeling
11592 \labelwidthstring MMMMMMM
11601 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11602 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11606 \begin_layout Subsubsection
11610 \begin_layout Standard
11615 ダイアログの任意設定クラスオプションボックスで使うことができます.
11618 \begin_layout Labeling
11619 \labelwidthstring MMMMMMx
11624 これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11625 \begin_inset space \space{}
11628 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11631 \begin_layout Labeling
11632 \labelwidthstring MMMMMMx
11637 タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11640 \begin_layout Labeling
11641 \labelwidthstring MMMMMMx
11646 タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11649 \begin_layout Labeling
11650 \labelwidthstring MMMMMMx
11659 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11663 \begin_layout Labeling
11664 \labelwidthstring MMMMMMx
11669 このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11670 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11678 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11681 \begin_layout Labeling
11682 \labelwidthstring MMMMMMx
11690 \begin_layout Labeling
11691 \labelwidthstring MMMMMMx
11699 \begin_layout Subsection
11703 \begin_layout Standard
11704 他のクラスで標準的にサポートされている環境は,
11708 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11709 が提供している環境と,\SpecialChar LyX
11710 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11713 \begin_layout Standard
11716 \begin_inset Flex Multiple Columns
11719 \begin_layout Itemize
11725 \begin_layout Itemize
11731 \begin_layout Itemize
11737 \begin_layout Itemize
11743 \begin_layout Itemize
11749 \begin_layout Itemize
11756 \begin_layout Itemize
11762 \begin_layout Itemize
11768 \begin_layout Itemize
11774 \begin_layout Itemize
11780 \begin_layout Itemize
11786 \begin_layout Itemize
11792 \begin_layout Itemize
11798 \begin_layout Itemize
11804 \begin_layout Itemize
11810 \begin_layout Itemize
11821 \begin_layout Standard
11822 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11827 は新しいスライドを始める以下のようなコマンドを備えています.
11830 \begin_layout Itemize
11836 \begin_layout Itemize
11839 横置きスライドタイトル(Rotatefoilhead)
11842 \begin_layout Standard
11844 は,以下のような,これらを若干修正した環境も用意しています.
11847 \begin_layout Itemize
11850 スライドタイトル(小)(ShortFoilhead)
11853 \begin_layout Itemize
11856 横置きスライドタイトル(小)(ShortRotatefoilhead)
11859 \begin_layout Standard
11863 \begin_layout Standard
11864 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11869 はそれらを説明するのに便利な環境を幅広く用意しています.
11872 \begin_layout Standard
11875 \begin_inset Flex Multiple Columns
11878 \begin_layout Itemize
11884 \begin_layout Itemize
11890 \begin_layout Itemize
11896 \begin_layout Itemize
11902 \begin_layout Itemize
11908 \begin_layout Itemize
11914 \begin_layout Itemize
11920 \begin_layout Itemize
11926 \begin_layout Itemize
11932 \begin_layout Itemize
11938 \begin_layout Itemize
11949 \begin_layout Standard
11950 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11951 で追加された以下の2つの箇条書き環境があります.
11954 \begin_layout Itemize
11960 \begin_layout Itemize
11966 \begin_layout Standard
11967 Foil\SpecialChar TeX
11968 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11969 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11972 \begin_layout Standard
11973 この目的のためには,以下のコマンドスタイルがあります(
11978 \begin_layout Standard
11979 \begin_inset Flex Multiple Columns
11982 \begin_layout Itemize
11988 \begin_layout Itemize
11994 \begin_layout Itemize
12000 \begin_layout Itemize
12006 \begin_layout Itemize
12013 \begin_layout Plain Layout
12014 \begin_inset space ~
12026 \begin_layout Standard
12027 Foil\SpecialChar TeX
12028 が提供しているコマンドで,\SpecialChar LyX
12029 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12030 \begin_inset CommandInset ref
12032 reference "sec:unsuppfoils"
12039 \begin_layout Subsection
12043 \begin_layout Standard
12044 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12056 \begin_layout Subsubsection
12060 \begin_layout Standard
12081 は独立したページにタイトルを作成します.
12085 環境を使用しなかった場合には,\SpecialChar LaTeX
12086 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12089 \begin_layout Subsubsection
12093 \begin_layout Standard
12094 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12100 スライドタイトル(小)(ShortFoilhead)
12102 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12105 \begin_layout Standard
12108 横向きスライドタイトル(Rotatefoilhead)
12112 ShortRotatefoilhead)
12114 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12118 \begin_layout Standard
12119 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12123 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12127 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12130 \begin_layout Subsubsection
12134 \begin_layout Standard
12135 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
12136 なく,いわゆる分離線を挿入する必要があります.
12147 \begin_layout Subsubsection
12151 \begin_layout Standard
12152 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12153 他の箇条書き環境について詳しく知りたい場合には,
12157 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12158 \begin_inset CommandInset ref
12160 reference "sec:ブリット"
12168 の節も,読まれることが望ましいでしょう.
12171 \begin_layout Standard
12181 \begin_inset Formula $\times$
12184 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12188 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12192 パッケージが導入済であることを要求します.
12195 \begin_layout Subsubsection
12199 \begin_layout Standard
12200 Foil\SpecialChar TeX
12201 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12202 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12205 \begin_layout Subsubsection
12207 \begin_inset CommandInset label
12209 name "sec:foilfoot"
12216 \begin_layout Standard
12225 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by
12230 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12233 \begin_layout Standard
12246 (左上)を使って文字を入れることができます.
12249 \begin_layout Subsection
12256 \begin_inset CommandInset label
12258 name "sec:unsuppfoils"
12265 \begin_layout Standard
12279 \begin_layout Subsubsection
12283 \begin_layout Standard
12306 は,変更したい長さに付けられている名前で置き換え,
12310 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12316 のように文書比あるいはフォント基準の長さで指定する必要があります.
12319 \begin_layout Standard
12326 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12327 \begin_inset space \space{}
12330 inだけスライド本文に近づけるには,プリアンブルに
12336 foilheadskip}{-0.5in}
12341 \begin_layout Standard
12342 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12345 \begin_layout Labeling
12346 \labelwidthstring MMMMMMMMMMM
12356 \begin_layout Labeling
12357 \labelwidthstring MMMMMMMMMMM
12367 \begin_layout Labeling
12368 \labelwidthstring MMMMMMMMMMM
12378 \begin_layout Labeling
12379 \labelwidthstring MMMMMMMMMMM
12386 この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12392 に対する相対的な長さで調整するのが最も良いでしょう.
12395 \begin_layout Standard
12396 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12399 \begin_layout Labeling
12400 \labelwidthstring MMMMMMMMMMM
12410 \begin_layout Labeling
12411 \labelwidthstring MMMMMMMMMMM
12429 \begin_layout Labeling
12430 \labelwidthstring MMMMMMMMMMM
12444 \begin_layout Labeling
12445 \labelwidthstring MMMMMMMMMMM
12463 \begin_layout Labeling
12464 \labelwidthstring MMMMMMMMMMM
12482 \begin_layout Standard
12483 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12489 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12495 を使う必要がないことに注意してください.
12498 \begin_layout Subsubsection
12502 \begin_layout Standard
12519 で定義したロゴを特定のページに入れるかどうかを制御します.
12525 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12531 を置き,次のスライドタイトルの直後に直接
12540 \begin_layout Standard
12549 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12563 パッケージが提供するページレイアウトと
12567 クラスの提供するページレイアウトの間に衝突が発生するためです.
12570 \begin_layout Section
12571 Hollywood(Hollywoodスペック・スクリプト)
12574 \begin_layout Standard
12582 \begin_layout Subsection
12586 \begin_layout Standard
12587 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12588 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12590 \begin_inset space \space{}
12593 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12596 \begin_layout Subsection
12600 \begin_layout Standard
12605 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12609 名を再度書き,その後に(Cont'd)と加えます.
12612 \begin_layout Subsection
12616 \begin_layout Standard
12621 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12622 きに話者名を挿入するのにも使用することができます.
12625 \begin_layout Subsection
12629 \begin_layout Standard
12630 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12633 \begin_layout Subsection
12637 \begin_layout Standard
12638 以下の環境が利用可能です.右に示されている
12639 \begin_inset Flex Ruby
12642 \begin_layout Plain Layout
12644 \begin_inset Argument post:1
12647 \begin_layout Plain Layout
12658 割当てを使用するには,hollywood.bindを使用してください.
12661 \begin_layout Itemize
12665 \begin_inset Newline newline
12670 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12673 \begin_layout Itemize
12675 \begin_inset space \hfill{}
12683 \begin_inset Newline newline
12686 通常,この後には「Sallyは目を覚ますと」のように続きます.
12689 \begin_layout Itemize
12693 \begin_inset space \hfill{}
12697 \begin_inset Newline newline
12702 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12706 \begin_layout Itemize
12710 \begin_inset space \hfill{}
12714 \begin_inset Newline newline
12719 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12722 \begin_layout Itemize
12726 \begin_inset space \hfill{}
12730 \begin_inset Newline newline
12738 \begin_layout Itemize
12742 \begin_inset space \hfill{}
12746 \begin_inset Newline newline
12751 への指示.自動的に括弧()が挿入されます.
12754 \begin_layout Itemize
12758 \begin_inset space \hfill{}
12762 \begin_inset Newline newline
12770 \begin_layout Itemize
12774 \begin_inset space \hfill{}
12778 \begin_inset Newline newline
12783 カメラの動きの指示.例:CUT TO:.
12786 \begin_layout Itemize
12790 \begin_inset space \hfill{}
12796 \begin_layout Itemize
12800 \begin_inset space \hfill{}
12806 \begin_layout Itemize
12810 \begin_inset space \hfill{}
12816 \begin_layout Itemize
12820 \begin_inset space \hfill{}
12826 \begin_layout Subsection
12830 \begin_layout Itemize
12834 \begin_layout Itemize
12838 \begin_layout Itemize
12843 \begin_layout Itemize
12848 \begin_layout Itemize
12849 PAN — camera movement
12852 \begin_layout Itemize
12853 INSERT — cut to close-up of
12856 \begin_layout Section
12860 \begin_layout Standard
12863 Panayotis Papasotiriou
12868 \begin_layout Subsection
12872 \begin_layout Standard
12875 International Journal of Modern Physics C
12877 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12879 International Journal of Modern Physics D
12881 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12889 です.これらのファイルは,著者のための指針とともに,
12890 \begin_inset Flex URL
12893 \begin_layout Plain Layout
12895 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12901 \begin_inset Flex URL
12904 \begin_layout Plain Layout
12906 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12911 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12913 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12914 で書き上げましたが,何らの問題も生じませんでした.
12917 \begin_layout Subsection
12921 \begin_layout Standard
12922 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12924 ファイル\SpecialChar menuseparator
12935 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12939 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12942 \begin_layout Enumerate
12943 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12944 中でこれらを変更することはできません.
12947 \begin_layout Enumerate
12948 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12951 arg "dialog-show document"
12956 \SpecialChar menuseparator
12966 \begin_layout Enumerate
12967 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12970 \begin_layout Enumerate
12971 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12972 ートされていませんので,ご注意ください.
12975 \begin_layout Enumerate
12976 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12977 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12978 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12981 \begin_layout Enumerate
12982 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12983 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12984 されます.引用に通常の本文を使用したい場合には,「See Ref.
12985 \begin_inset space \space{}
12995 \begin_inset Flex Ruby
12998 \begin_layout Plain Layout
13004 \begin_inset Argument post:1
13007 \begin_layout Plain Layout
13029 \begin_layout Enumerate
13030 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13033 \begin_layout Enumerate
13042 であれば,入れることができます.\SpecialChar LyX
13043 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13044 てはなりません.この環境は,\SpecialChar LaTeX
13045 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13046 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13047 付録であることを明示します.「付録領域」は,最初の付録の前に
13051 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13054 \begin_layout Enumerate
13055 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13059 コマンドを使用します.そのため,\SpecialChar LyX
13060 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13061 コードを少し使えば,この問題を回避して,キャプション
13062 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13069 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13074 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13079 ファイルに収め,このファイルを\SpecialChar LyX
13082 挿入\SpecialChar menuseparator
13083 ファイル\SpecialChar menuseparator
13086 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13097 \begin_layout Subsection
13101 \begin_layout Standard
13102 論文を投稿する前には,\SpecialChar LyX
13103 文書を\SpecialChar LaTeX
13106 ファイル\SpecialChar menuseparator
13107 書き出し\SpecialChar menuseparator
13115 \begin_layout Plain Layout
13116 実は,\SpecialChar LaTeX
13117 (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13118 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13127 ファイルに以下の変更を加える必要があります.
13130 \begin_layout Enumerate
13137 コマンドより前にあるコメント行を削除する.
13140 \begin_layout Enumerate
13141 自身で明示的に\SpecialChar LaTeX
13154 コマンドの間にあるものをすべて削除する.
13157 \begin_layout Standard
13162 ファイルを保存し,必要な回数\SpecialChar LaTeX
13163 で処理してください.それによって得られた
13167 文書も確認された方がよろしいでしょう.
13170 \begin_layout Section
13174 \begin_layout Standard
13182 \begin_layout Subsection
13186 \begin_layout Standard
13187 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13188 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13189 \begin_inset Flex URL
13192 \begin_layout Plain Layout
13194 ftp://ftp.iop.org/pub/journals/latex2e
13199 からiopartパッケージとともにダウンロード可能です.
13202 \begin_layout Subsection
13206 \begin_layout Standard
13207 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
13208 新規(ひな型使用)\SpecialChar ldots
13213 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13216 \begin_layout Itemize
13217 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13219 文書\SpecialChar menuseparator
13220 設定\SpecialChar ldots
13221 \SpecialChar menuseparator
13224 で,AMSパッケージが読み込まれていないことを確認してください!
13227 \begin_layout Itemize
13228 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13232 \begin_layout Itemize
13238 \begin_layout Itemize
13244 \begin_layout Itemize
13250 \begin_layout Itemize
13256 \begin_layout Itemize
13262 \begin_layout Itemize
13270 \begin_layout Itemize
13271 Preliminary communication用には
13276 \begin_layout Itemize
13277 Rapid communication用には
13282 \begin_layout Itemize
13289 \begin_layout Itemize
13294 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13297 \begin_layout Itemize
13299 では直接にサポートされていませんが,一般的なタイトル環境として
13303 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13304 コードでこれを指定することができます.
13307 \begin_layout Standard
13308 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13311 \begin_layout Section
13315 \begin_layout Standard
13318 Panayotis Papasotiriou
13323 \begin_layout Subsection
13327 \begin_layout Standard
13328 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13329 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13331 Astrophysics and Space Science
13337 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13338 \begin_inset Flex URL
13341 \begin_layout Plain Layout
13343 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13348 に全覧があります).Kluwerパッケージは,
13349 \begin_inset Flex URL
13352 \begin_layout Plain Layout
13354 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13359 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13362 \begin_layout Standard
13364 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13365 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13367 \begin_inset CommandInset ref
13369 reference "subsec:kluwer_peculiarities"
13373 参照).最近,私は\SpecialChar LyX
13376 Astrophysics and Space Science
13378 に投稿しましたが,何らの問題も発生しませんでした.
13381 \begin_layout Subsection
13385 \begin_layout Standard
13386 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13388 ファイル\SpecialChar menuseparator
13395 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13400 を含む)正しい情報で上書きしてください.
13403 \begin_layout Subsection
13407 \begin_layout Standard
13408 AAS\SpecialChar TeX
13409 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13412 \begin_layout Enumerate
13415 ファイル\SpecialChar menuseparator
13416 書き出し\SpecialChar menuseparator
13419 をクリックして,論文を\SpecialChar LaTeX
13423 \begin_layout Enumerate
13428 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13432 \begin_layout Enumerate
13439 コマンドより前にあるコメント行を削除する.
13442 \begin_layout Enumerate
13443 意図的に\SpecialChar LaTeX
13456 の間にあるものを,これらのコマンドも含め,すべて削除する.
13459 \begin_layout Standard
13468 \begin_layout Enumerate
13473 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13477 \begin_layout Enumerate
13486 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13489 \begin_layout Subsection
13490 Kluwerパッケージの「風変わり」な特徴
13491 \begin_inset CommandInset label
13493 name "subsec:kluwer_peculiarities"
13500 \begin_layout Standard
13501 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13504 \begin_layout Enumerate
13505 複数の論文を1つの\SpecialChar LaTeX
13510 \begin_layout Plain Layout
13511 わざわざこんなことをする必要はないでしょう.
13516 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13528 で終わります.この環境を\SpecialChar LyX
13529 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13541 )は,直接本文中に入力して,\SpecialChar LaTeX
13542 コード(「\SpecialChar TeX
13543 コード」のことです)としてマークする必要があります.
13546 \begin_layout Enumerate
13547 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13548 はなりません.これは\SpecialChar LyX
13549 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13565 \begin_layout Enumerate
13566 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13569 \begin_inset Newline newline
13593 \begin_layout Standard
13598 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13602 \begin_layout Enumerate
13603 ひな型にある\SpecialChar TeX
13607 \begin_layout Enumerate
13608 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13611 \begin_layout Section
13615 \begin_layout Standard
13623 \begin_layout Subsection
13627 \begin_layout Standard
13631 article (koma-script)
13635 report (koma-script)
13653 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13670 に対応しています.これらは,標準文書クラス
13686 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13689 \begin_layout Itemize
13692 article (koma-script)
13696 report (koma-script)
13704 letter (koma-script)
13709 \begin_layout Itemize
13710 見出しや箇条書き(記述)環境のラベル,および
13712 letter (koma-script)
13714 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13718 \begin_layout Plain Layout
13719 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13720 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13724 作の\SpecialChar LaTeX
13734 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13735 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13736 とができます(\SpecialChar LyX
13739 文書\SpecialChar menuseparator
13746 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13753 \begin_layout Itemize
13754 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13762 オプションを使う方法です(\SpecialChar LyX
13765 文書\SpecialChar menuseparator
13772 フィールドで指定します).これらのオプションは
13774 文書\SpecialChar menuseparator
13777 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13785 \begin_layout Itemize
13786 Koma-Scriptファミリーの\SpecialChar LaTeX
13787 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13788 で意味を持つものは,対応する段落環境として実装されています
13792 \begin_layout Standard
13793 Koma-Scriptファミリーの\SpecialChar LaTeX
13794 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13802 \begin_layout Plain Layout
13812 .以下の各節では,\SpecialChar LyX
13816 \begin_layout Subsection
13817 article (koma-script)・report (koma-script)・book (koma-script)
13820 \begin_layout Standard
13823 article (koma-script)
13827 report (koma-script)
13849 によって実装されています.これらは,対応する標準文書クラス
13861 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13866 環境は例外であり,同じ機能を持つ新しい
13874 環境以外にも,新しい段落環境が多く追加されています.これらは,
13876 letter (koma-script)
13878 には含まれていないのでご注意ください.
13881 \begin_layout Itemize
13906 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13916 article (koma-script)
13921 \begin_layout Itemize
13938 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13944 article (koma-script)
13950 \begin_layout Plain Layout
13957 report (koma-script)
13969 と同一なので,\SpecialChar LyX
13978 \begin_layout Itemize
13983 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13986 \begin_layout Itemize
13995 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13996 ねに表の上に置くべきでしょう).また,クラスオプション
14000 を用いれば,キャプションを指定すると,表には
14008 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14011 \begin_layout Itemize
14016 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14018 挿入\SpecialChar menuseparator
14021 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14027 article (koma-script)
14032 \begin_layout Standard
14045 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14049 \begin_layout Plain Layout
14050 つまり,対応する\SpecialChar LaTeX
14057 コマンドよりも前に現れなくてはなりません.
14062 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14074 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14077 \begin_layout Itemize
14094 )の上に,文書の主題用の中央揃えの段落を生成します.
14097 \begin_layout Itemize
14114 )の下に,出版社名用の中央揃えの段落を生成します.
14117 \begin_layout Itemize
14124 report (koma-script)
14130 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14132 article (koma-script)
14146 )の下に献辞用の中央揃えの段落を生成します.
14149 \begin_layout Itemize
14166 )の上に,文書頭書き用の左揃えの段落を生成します.
14169 \begin_layout Itemize
14176 report (koma-script)
14182 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14184 article (koma-script)
14189 \begin_layout Itemize
14196 report (koma-script)
14202 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14204 article (koma-script)
14209 \begin_layout Itemize
14214 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14217 \begin_layout Standard
14220 article (koma-script)
14224 report (koma-script)
14234 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14238 を,個人用レイアウトディレクトリにコピーして編集してください!
14241 \begin_layout Subsection
14242 letter (koma-script)
14245 \begin_layout Description
14255 KOMA-Script-Letter (v.
14256 \begin_inset space ~
14261 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
14263 KOMA-Script-Letter (v.
14264 \begin_inset space ~
14272 \begin_layout Standard
14276 letter (koma-script)
14282 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14286 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14304 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14321 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14324 \begin_layout Standard
14325 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14326 コマンドを\SpecialChar LaTeX
14327 プリアンブルに置くことで制御することができます
14331 \begin_layout Plain Layout
14332 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14336 \begin_layout LyX-Code
14346 \begin_layout LyX-Code
14362 \begin_layout LyX-Code
14372 \begin_layout LyX-Code
14388 \begin_layout LyX-Code
14396 .これらの\SpecialChar LaTeX
14397 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14401 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14404 \begin_layout Standard
14413 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14414 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14422 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14426 環境は,同じ受取人への書簡を新しく書き出すものであり,
14430 環境は,新しい受取人を生成するものです.
14446 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14449 \begin_layout Itemize
14454 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14457 \begin_layout Itemize
14462 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14465 \begin_layout Itemize
14473 \begin_layout Itemize
14481 \begin_layout Itemize
14489 \begin_layout Itemize
14497 \begin_layout Standard
14538 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14542 \begin_layout Plain Layout
14551 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14552 一文字をマークした通常の段落環境として実装しました.さらに,
14560 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14572 \begin_layout Standard
14573 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14578 環境で入力した署名は,標準的な挙動では,同じ書簡に
14582 環境も使用されているときのみ,書簡の出力に現れます.
14586 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14589 \begin_layout Standard
14590 入力環境は,空の段落として使うことができます.これは,たとえば
14598 環境を全く使用しない場合は,標準的な挙動では,
14602 環境の値が署名として使用されますが,空の
14606 環境を作成しておくと,署名の値は無定義となりません.
14609 \begin_layout Standard
14610 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14613 \begin_layout Itemize
14618 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14621 \begin_layout Itemize
14641 \begin_layout Itemize
14646 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14649 \begin_layout Itemize
14654 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14664 \begin_layout Itemize
14672 \begin_layout Itemize
14685 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14693 の値如何に関わらず,場所も日付も表示されません.
14697 環境を使用しない場合には,書簡を出力した日付が使用されます.
14700 \begin_layout Itemize
14705 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14708 \begin_layout Itemize
14713 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14716 \begin_layout Itemize
14721 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14724 \begin_layout Itemize
14729 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14732 \begin_layout Itemize
14744 \begin_layout Standard
14747 Yourref・Yourmail・Myref・顧客・インボイス
14753 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14754 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14758 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14762 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14769 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14777 \begin_layout Itemize
14785 \begin_layout Itemize
14793 \begin_layout Itemize
14801 \begin_layout Itemize
14809 \begin_layout Itemize
14817 \begin_layout Subsection
14818 新しいletterクラス:letter (koma-script v.2)
14821 \begin_layout Standard
14825 \begin_inset VSpace medskip
14831 \begin_layout Standard
14833 Koma-Script第2.8版では,新しいletterクラス
14841 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14842 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14844 ますが,新しい方のクラスを使用することを推奨します.
14847 \begin_layout Standard
14850 letter (koma-script)
14852 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14872 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14890 挿入\SpecialChar menuseparator
14897 を入れることができるようになった点です.
14900 \begin_layout Standard
14901 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14902 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14910 \begin_layout Plain Layout
14915 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14929 文書\SpecialChar menuseparator
14930 設定\SpecialChar menuseparator
14931 文書クラス\SpecialChar menuseparator
14938 を加えることで読み込むことができます.
14943 .用例としては,\SpecialChar LyX
14948 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14955 \begin_layout Subsection
14959 \begin_layout Standard
14960 Koma-Script文書クラスを\SpecialChar LyX
14961 上に表示する上で,\SpecialChar LyX
14965 \begin_layout Itemize
14970 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14974 ラベル型に対する\SpecialChar LyX
14978 \begin_layout Itemize
14987 環境の見出しは,「本当の」\SpecialChar LaTeX
14988 の目次には追加されますが,\SpecialChar LyX
14996 \begin_layout Itemize
15001 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15004 文書\SpecialChar menuseparator
15007 ダイアログでは,対応するラジオボタンは
15015 は,隙間を空けるために,文書に\SpecialChar LaTeX
15016 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15019 \begin_layout Section
15023 \begin_layout Standard
15031 \begin_layout Subsection
15035 \begin_layout Standard
15036 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15037 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15041 \begin_layout Standard
15042 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15043 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15044 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15045 は,これらすべての素晴らしい機能をネイティブでサポ
15046 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15050 \begin_layout Plain Layout
15052 \begin_inset Flex URL
15055 \begin_layout Plain Layout
15057 lyx-devel@lists.lyx.org
15068 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15069 コマンド(\SpecialChar TeX
15074 \begin_layout Plain Layout
15076 \begin_inset CommandInset ref
15078 reference "sec:TeXコードを挿入する"
15087 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15088 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15089 は,Memoirクラスの詳しい取扱説明書
15093 \begin_layout Plain Layout
15095 \begin_inset Flex URL
15098 \begin_layout Plain Layout
15100 CTAN:/macros/latex/memoir/memman.pdf
15110 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15114 \begin_layout Subsection
15118 \begin_layout Standard
15119 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15122 \begin_layout Description
15123 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15126 \begin_layout Description
15127 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15129 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15131 文書\SpecialChar menuseparator
15132 設定\SpecialChar menuseparator
15135 参照).これらを章題ページに使用したい場合には,コマンド
15141 を,本文またはプリアンブルに記述する必要があります(例えば,
15145 chapterstyle{companion}
15150 \begin_layout Description
15151 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15152 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15155 挿入\SpecialChar menuseparator
15158 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
15171 \begin_layout Description
15172 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15173 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15176 \begin_layout Description
15177 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15182 aliaspagestyle{title}{empty}
15187 \begin_layout Description
15194 文書\SpecialChar menuseparator
15195 設定\SpecialChar menuseparator
15196 文書クラス\SpecialChar menuseparator
15197 クラスオプション\SpecialChar menuseparator
15200 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15201 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15204 \begin_layout Description
15205 Oldfontcommands: \SpecialChar LaTeX
15206 旧2.09版で使用されていた旧いフォントコマンド(
15218 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15224 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15225 は停止しなくなります).まだ,多くのパッケージと,
15226 就中多くのBib\SpecialChar TeX
15227 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15230 \begin_layout Subsection
15234 \begin_layout Standard
15236 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15240 \begin_layout Plain Layout
15241 \begin_inset Flex URL
15244 \begin_layout Plain Layout
15246 CTAN:/macros/latex/memoir/memman.pdf
15259 \begin_layout Description
15260 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15261 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15264 \begin_layout Description
15265 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15266 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15269 \begin_layout Description
15270 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15271 出典:非必須)は,短い線で区切られます.著者(出典)は,
15273 挿入\SpecialChar menuseparator
15279 \begin_layout Description
15280 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15281 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15282 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15284 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15288 \begin_layout Description
15289 詩題*: 目次に現れない他は詩題と同じです.
15292 \begin_layout Section
15293 Article (mwart)・book (mwbk)・report (mwrep)
15294 \begin_inset Argument status
15297 \begin_layout Plain Layout
15310 \begin_layout Standard
15318 \begin_layout Standard
15326 report (mwrep)・book
15332 は,それぞれ\SpecialChar LaTeX
15357 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15360 \begin_layout Standard
15364 \begin_layout Itemize
15372 \begin_layout Itemize
15377 \begin_layout Description
15381 \begin_layout Description
15397 \begin_layout Description
15398 myuheadings 分離線付きカスタムヘッダ
15401 \begin_layout Description
15406 \begin_layout Itemize
15411 \begin_layout Description
15412 rmheadings セリフ体見出し — 既定
15415 \begin_layout Description
15416 sfheadings サンセリフ体見出し
15419 \begin_layout Description
15420 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15423 \begin_layout Description
15424 titleauthor タイトルページは,タイトル・著者名の順で配置
15427 \begin_layout Description
15428 withmarginpar ページ上に余白のための場所を確保
15432 \begin_layout Section
15436 \begin_layout Standard
15449 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15452 \begin_layout Section
15453 Rev\SpecialChar TeX
15457 \begin_layout Standard
15463 \begin_layout Standard
15464 \begin_inset VSpace bigskip
15470 \begin_layout Standard
15475 \begin_inset space ~
15480 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15482 \begin_inset Formula $\beta$
15488 \begin_layout Standard
15490 には,Rev\SpecialChar TeX
15495 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15496 2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15497 は\SpecialChar LaTeX2e
15498 を必要とすることから,第3.1版は\SpecialChar LyX
15500 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15501 4.0は,\SpecialChar LaTeX2e
15502 で素直に動作するようにデザインされているので,\SpecialChar LyX
15505 Rev\SpecialChar TeX
15507 \begin_inset space ~
15512 テキストクラスの組で使用するのは,たいへん簡単です.
15515 \begin_layout Standard
15516 この取扱説明書は,Rev\SpecialChar TeX
15521 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15522 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15526 \begin_layout Subsection
15530 \begin_layout Standard
15531 Rev\SpecialChar TeX
15532 4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15533 4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15536 \begin_inset Flex URL
15539 \begin_layout Plain Layout
15541 http://publish.aps.org/revtex4/
15546 から入手することができます.これを\SpecialChar LaTeX
15547 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15548 ィレクトリ)で簡単なRev\SpecialChar TeX
15549 4文書を \SpecialChar LaTeX
15550 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15551 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15556 \begin_layout Standard
15561 を使ってRev\SpecialChar TeX
15562 4文書を読み込むか,またはひな型ディレクトリにある
15565 \begin_inset space ~
15570 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15573 \begin_layout Subsection
15577 \begin_layout Standard
15584 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15586 文書\SpecialChar menuseparator
15587 設定\SpecialChar menuseparator
15594 フィールドに入れます.Rev\SpecialChar TeX
15595 では,少なくとも一つの非必須引数が必要なことに注意してください.
15598 \begin_layout Standard
15605 など他のプリアンブルは,他のクラス同様,
15607 文書\SpecialChar menuseparator
15608 設定\SpecialChar menuseparator
15615 \begin_layout Subsection
15619 \begin_layout Standard
15620 レイアウトは,基本的にRev\SpecialChar TeX
15621 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15627 に対応しています.(少なくともRev\SpecialChar TeX
15636 はまったく同じものなので,両方を使う必要はありません
15640 \begin_layout Plain Layout
15665 \begin_layout Subsection
15669 \begin_layout Standard
15670 Rev\SpecialChar TeX
15671 4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15672 ではさらに気をつけなくてはなりません.
15675 \begin_layout Standard
15676 Rev\SpecialChar TeX
15693 に来なくてはなりません.\SpecialChar LyX
15702 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15706 \begin_layout Standard
15727 )レイアウトの間に置かなければなりません.
15735 の後に置いてしまうと,\SpecialChar LaTeX
15739 \begin_layout Section
15745 \begin_layout Standard
15753 \begin_layout Subsection
15757 \begin_layout Standard
15758 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15759 \begin_inset Flex URL
15762 \begin_layout Plain Layout
15764 http://www.springer.de/author/tex/help-journals.html
15769 に必要なクラスファイル(\SpecialChar LaTeX2e
15770 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15774 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15781 \begin_layout Standard
15782 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15797 \begin_layout Standard
15798 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15806 は,標準\SpecialChar LyX
15807 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15808 を再設定した後(teTeXの場合は,必
15813 を実行します),\SpecialChar LyX
15817 \begin_layout Subsection
15821 \begin_layout Standard
15830 ・\SpecialChar ldots
15838 \begin_layout Standard
15849 サブタイトル・ヘッダ用\SpecialChar LaTeX
15850 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15853 .詳しくは Springerのクラスファイルの説明書を読んでください.
15856 \begin_layout Subsection
15860 \begin_layout Itemize
15872 \begin_layout Itemize
15875 Probability Theory and Related Fields
15881 — Jean-Marc Lasgouttes
15884 \begin_layout Standard
15885 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15888 \begin_layout Subsection
15892 \begin_layout Standard
15901 は Springerの\SpecialChar LaTeX
15902 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15903 Lasgouttesのおかげで \SpecialChar LyX
15904 のレイアウトファイルのメカニズムをよりよく理解することができました.
15907 \begin_layout Subsection
15911 \begin_layout Standard
15916 よりは少なくなっているとは思いますが.
15919 \begin_layout Section
15922 Sli\SpecialChar TeX
15929 \begin_layout Plain Layout
15930 (訳註)この節の内容は,全般的に古くなっています.
15936 \begin_inset CommandInset label
15945 \begin_layout Standard
15953 \begin_layout Subsection
15957 \begin_layout Standard
15958 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15959 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15961 Foil\SpecialChar TeX
15964 スライドクラスの2つがあります.本節は前者について説明を行います.
15967 \begin_layout Standard
15968 誤解のないように,正しく明確に,もう一度言っておきます.
15971 \begin_layout Standard
15972 \begin_inset VSpace bigskip
15978 \begin_layout Standard
15983 \begin_inset Quotes eld
15988 transparencies (slides)
15991 \begin_inset Quotes erd
16001 \begin_layout Standard
16002 \begin_inset VSpace bigskip
16008 \begin_layout Standard
16011 「slides (Foil\SpecialChar TeX
16015 \begin_inset CommandInset ref
16017 reference "sec:foiltex"
16027 slides (Foil\SpecialChar TeX
16038 \begin_layout Plain Layout
16042 Foil\SpecialChar TeX
16045 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16053 \begin_layout Standard
16054 このクラスは,旧SLI\SpecialChar TeX
16055 パッケージを\SpecialChar LaTeX2e
16056 用に改良したものです.\SpecialChar LaTeX2e
16057 頒布版すべてが,このクラス(以下では単に「
16061 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16065 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16070 ならばできることもあります.詳しくは以下をお読みください.
16073 \begin_layout Subsection
16075 \begin_inset CommandInset label
16077 name "sec:slidesetup"
16084 \begin_layout Standard
16085 当然ながら,この文書クラスを使用するには,
16087 文書\SpecialChar menuseparator
16092 transparencies (slides)
16094 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16097 \begin_layout Itemize
16106 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16110 クラスではサポートされていないので,効果がありません.
16113 \begin_layout Itemize
16118 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16122 \begin_layout Description
16123 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16126 \begin_layout Description
16131 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16134 \begin_layout Description
16135 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16139 \begin_layout Itemize
16148 というオプションがあります.これを使用するには,
16160 \begin_layout Standard
16165 にタイムマーカーを加えることができます.詳細は,第
16166 \begin_inset CommandInset ref
16168 reference "sec:スライド注釈"
16176 \begin_layout Standard
16181 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16185 」を使用することもできます(新規ファイルを開く際に
16187 ファイル\SpecialChar menuseparator
16190 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16193 \begin_layout Subsection
16197 \begin_layout Subsubsection
16203 \begin_layout Standard
16208 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16216 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16217 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16220 \begin_layout Standard
16221 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16226 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16229 \begin_layout Itemize
16235 \begin_layout Itemize
16241 \begin_layout Itemize
16247 \begin_layout Itemize
16253 \begin_layout Itemize
16259 \begin_layout Itemize
16265 \begin_layout Itemize
16271 \begin_layout Itemize
16277 \begin_layout Itemize
16283 \begin_layout Itemize
16290 \begin_layout Standard
16291 これ以外の標準的な環境,例えば節見出し用の環境などは
16298 \begin_layout Standard
16302 \begin_layout Itemize
16308 \begin_layout Itemize
16314 \begin_layout Itemize
16320 \begin_layout Itemize
16326 \begin_layout Itemize
16332 \begin_layout Standard
16333 これら5つの環境は,\SpecialChar LyX
16334 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16335 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16336 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16340 \begin_layout Subsubsection
16342 \begin_inset CommandInset label
16351 \begin_layout Standard
16352 5つの新しい環境にはすべて,\SpecialChar LyX
16353 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16354 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16362 』で述べられているような段落環境ではなくなっています.
16365 \begin_layout Standard
16378 は「疑似環境」だとお考えください.これらは節見出しや「
16382 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16390 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16393 \begin_layout Standard
16414 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16434 では,まったく意味がなく,\SpecialChar LyX
16435 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16438 \begin_layout Standard
16447 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16455 \begin_layout Standard
16456 一方,説明文を入れたくない場合には,\SpecialChar LyX
16457 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16458 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16462 \begin_layout Itemize
16490 \begin_layout Itemize
16494 \begin_layout Itemize
16502 \begin_layout Itemize
16526 \begin_layout Standard
16527 将来の\SpecialChar LyX
16528 では,このような癖が解決されることを祈っています\SpecialChar ldots
16533 \begin_layout Plain Layout
16534 (訳註)ここの記述は古くなっています.
16542 \begin_layout Subsection
16556 \begin_layout Subsubsection
16564 \begin_layout Standard
16565 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16570 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16574 \begin_layout Standard
16580 \begin_inset CommandInset ref
16582 reference "sec:スライドの癖"
16586 節参照のこと),\SpecialChar LyX
16587 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16588 環境は,すべて新規スライドに入ります.簡単ですよね.
16591 \begin_layout Standard
16592 Slidesは,おそらく\SpecialChar LyX
16593 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16597 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16598 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16606 \begin_layout Standard
16619 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16627 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16630 \begin_layout Standard
16643 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16651 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16654 \begin_layout Subsubsection
16660 \begin_layout Standard
16665 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16669 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16673 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16674 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16681 \begin_layout Standard
16698 \begin_layout Plain Layout
16699 想像できるように,複数のオーバーレイがあれば,「
16711 」などが親スライドのページ番号に付け加えられます.
16724 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16732 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16741 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16749 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16752 \begin_layout Standard
16753 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16754 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16755 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16766 \begin_layout Standard
16775 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16776 \begin_inset CommandInset ref
16778 reference "sec:スライドの癖"
16790 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16798 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16801 \begin_layout Standard
16806 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16822 は自動的に終了されることに注意してください.したがって,
16833 \begin_layout Standard
16850 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16853 \begin_layout Enumerate
16858 かに関わらず,スライド上に現れるすべてを含んだ
16865 \begin_layout Enumerate
16870 のみに表示するすべての図や段落の前に,
16885 \begin_layout Enumerate
16897 \begin_layout Enumerate
16909 \begin_layout Enumerate
16933 \begin_layout Standard
16941 \begin_layout Standard
16947 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16948 実現するためには,\SpecialChar LaTeX
16953 \begin_layout Plain Layout
16957 \begin_layout Itemize
16962 invisible \SpecialChar ldots
16966 \begin_layout Itemize
16971 visible \SpecialChar ldots
16975 \begin_layout Plain Layout
16977 のような形となり,\SpecialChar TeX
16978 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16990 コマンドの後ろ)に入れます.\SpecialChar TeX
16991 としてマークする方法がわからない場合は,
17003 \begin_layout Subsubsection
17009 \begin_inset CommandInset label
17018 \begin_layout Standard
17031 に関連付けられています.ここでも\SpecialChar LyX
17044 よりも短く(オーバーレイのラベルよりも長いですが),
17048 のラベルと同様,派手な赤紫色です.加えて,印刷した
17064 3」等を付けたページ番号が付けられます.1つの
17080 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17083 \begin_layout Standard
17092 に関して付け加えたいことを書き留めておくことです.特定の
17096 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17106 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17107 コードを使用することに頼らなくてはなりません.
17110 \begin_layout Standard
17111 タイムマーカを使用するには,クラスオプション「
17116 \begin_inset CommandInset ref
17118 reference "sec:slidesetup"
17122 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17126 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17139 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17145 」は,タイムマーカを特定の時間に設定し,「
17151 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17159 にどれだけの時間をかけるのか忘れないでいられます.
17162 \begin_layout Standard
17163 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17175 はすべて普通の紙に印刷したいはずです.しかしながら,
17183 .ユーザーはどうしたら良いのでしょうか.
17186 \begin_layout Standard
17187 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17188 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17204 のみが含まれるようにするものです.同様に,「
17216 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17217 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17226 のコメントを外して,現ファイル名に「*
17230 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17242 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17245 \begin_layout Standard
17258 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17262 \begin_layout Subsection
17270 \begin_layout Standard
17279 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17281 ファイル\SpecialChar menuseparator
17284 メニューを選択してください.すると新規ファイルには,
17312 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17315 \begin_layout LyX-Code
17316 % Uncomment to print out only slides and overlays
17319 \begin_layout LyX-Code
17323 \begin_layout LyX-Code
17329 \begin_inset Newline newline
17335 \begin_layout LyX-Code
17336 % Uncomment to print out only notes
17339 \begin_layout LyX-Code
17343 \begin_layout LyX-Code
17351 \begin_layout Standard
17352 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17355 Sli\SpecialChar TeX
17358 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17359 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17360 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17365 \begin_inset CommandInset ref
17367 reference "sec:foiltex"
17375 」パッケージ(一部の\SpecialChar TeX
17376 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17377 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17381 \begin_layout Chapter
17382 ソフトウェアを追加する必要がある \SpecialChar LyX
17386 \begin_layout Section
17391 \begin_layout Standard
17399 \begin_layout Subsection
17403 \begin_layout Standard
17412 \begin_layout Plain Layout
17414 頒布版としてMiK\SpecialChar TeX
17438 \begin_inset Newline newline
17442 \begin_inset CommandInset href
17444 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17452 \begin_layout Standard
17455 Chk\SpecialChar TeX
17458 パッケージは,\SpecialChar LaTeX
17459 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17460 \begin_inset Flex Noun
17463 \begin_layout Plain Layout
17470 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17471 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17478 \begin_layout Standard
17479 さて,\SpecialChar LyX
17480 はつねに正しい\SpecialChar LaTeX
17481 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17482 で何をするというのでしょうか.答えは簡単です.
17490 をチェックするだけでなく,打ち間違いによる
17496 Chk\SpecialChar TeX
17505 Chk\SpecialChar TeX
17508 は,以下のような誤りを検出することができます.
17511 \begin_layout Itemize
17513 \begin_inset Newline newline
17516 ...ではなく\SpecialChar ldots
17520 \begin_layout Itemize
17522 \begin_inset Newline newline
17525 ( wrong spacing ):誤った空白
17528 \begin_layout Itemize
17529 よく使われる省略形の後ろは通常スペースにする:
17530 \begin_inset Newline newline
17534 \begin_inset space \thinspace{}
17538 \begin_inset space \space{}
17541 is too wide spacing.:広すぎる空白
17544 \begin_layout Itemize
17545 直前の文章が大文字で終わっているときに,文末スペースに直す:
17546 \begin_inset Newline newline
17550 And this is wrong spacing.:誤った空白
17553 \begin_layout Itemize
17555 \begin_inset Newline newline
17558 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません.
17559 \begin_inset CommandInset label
17569 \begin_layout Plain Layout
17570 この脚注は,正しくないページに行ってしまう恐れがあります.
17578 \begin_layout Itemize
17579 参照の前にハードスペースではなくスペース:
17580 \begin_inset Newline newline
17583 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17584 \begin_inset CommandInset ref
17586 reference "sec:chktex"
17593 \begin_layout Itemize
17595 \begin_inset Formula $\times$
17599 \begin_inset Newline newline
17603 \begin_inset Formula $2\times2$
17609 \begin_layout Standard
17610 などなど\SpecialChar ldots
17613 Chk\SpecialChar TeX
17616 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17619 \begin_layout Subsection
17623 \begin_layout Standard
17624 このプログラムを導入したならば,使うのは
17626 ツール\SpecialChar menuseparator
17630 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17631 は使用中の文書の\SpecialChar LaTeX
17634 Chk\SpecialChar TeX
17637 を起動し,当該ファイルを検査しますが,
17639 Chk\SpecialChar TeX
17642 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17643 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17645 移動\SpecialChar menuseparator
17653 \begin_inset Flex Ruby
17656 \begin_layout Plain Layout
17658 \begin_inset Argument post:1
17661 \begin_layout Plain Layout
17673 \begin_inset Flex Ruby
17676 \begin_layout Plain Layout
17696 \begin_inset Argument post:1
17699 \begin_layout Plain Layout
17714 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17730 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17732 Chk\SpecialChar TeX
17735 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17739 \begin_layout Standard
17740 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17741 警告のほとんどは実際には警告に値しません.
17744 \begin_layout Subsection
17748 \begin_layout Standard
17751 Chk\SpecialChar TeX
17754 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17756 Chk\SpecialChar TeX
17759 を無効にするか,あなたにもう少し合うように
17761 Chk\SpecialChar TeX
17767 \begin_layout Standard
17770 Chk\SpecialChar TeX
17773 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17776 Chk\SpecialChar TeX
17779 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17782 Chk\SpecialChar TeX
17789 \begin_layout Plain Layout
17800 文書\SpecialChar menuseparator
17809 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17810 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17811 ためには,以下の2つの方法があります.
17814 \begin_layout Itemize
17817 \begin_inset Flex MenuItem
17820 \begin_layout Plain Layout
17823 ツール\SpecialChar menuseparator
17824 設定\SpecialChar menuseparator
17825 出力\SpecialChar menuseparator
17827 \SpecialChar menuseparator
17828 Check\SpecialChar TeX
17838 Chk\SpecialChar TeX
17841 起動コマンドラインを調整するか,グローバルな
17843 Chk\SpecialChar TeX
17847 \begin_inset Flex Code
17850 \begin_layout Plain Layout
17856 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17859 \begin_layout Itemize
17862 ファイル\SpecialChar menuseparator
17863 書き出し\SpecialChar menuseparator
17867 を使って文書を\SpecialChar LaTeX
17868 ファイルに変換し,そのファイルに対して
17872 を手動で実行します.このようにすると,\SpecialChar LyX
17873 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17876 \begin_layout Standard
17881 で有効化・無効化できる警告メッセージです.警告を無効にするには
17889 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17891 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17896 \begin_layout Standard
17902 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17905 \begin_layout Enumerate
17909 Command terminated with space.
17912 \begin_layout Enumerate
17915 Non-breaking space (
17916 \begin_inset Quotes eld
17924 \begin_inset Quotes erd
17927 ) should have been used.
17930 \begin_layout Enumerate
17934 You should enclose the previous parenthesis with
17935 \begin_inset Quotes eld
17943 \begin_inset Quotes erd
17949 \begin_layout Enumerate
17952 Italic correction (
17953 \begin_inset Quotes eld
17963 \begin_inset Quotes erd
17966 ) found in non-italic buffer.
17969 \begin_layout Enumerate
17972 Italic correction (
17973 \begin_inset Quotes eld
17983 \begin_inset Quotes erd
17986 ) found more than once.
17989 \begin_layout Enumerate
17993 No italic correction (
17994 \begin_inset Quotes eld
18004 \begin_inset Quotes erd
18010 \begin_layout Enumerate
18014 \begin_inset Quotes eld
18022 \begin_inset Quotes erd
18026 \begin_inset Quotes eld
18034 \begin_inset Quotes erd
18040 \begin_layout Enumerate
18043 Wrong length of dash may have been used.
18046 \begin_layout Enumerate
18050 \begin_inset Quotes eld
18058 \begin_inset Quotes erd
18062 \begin_inset Quotes eld
18070 \begin_inset Quotes erd
18076 \begin_layout Enumerate
18080 \begin_inset Quotes eld
18088 \begin_inset Quotes erd
18094 \begin_layout Enumerate
18098 \begin_inset Quotes eld
18106 \begin_inset Quotes erd
18109 to achieve an ellipsis.
18112 \begin_layout Enumerate
18115 Inter-word spacing (
18116 \begin_inset Quotes eld
18126 \begin_inset Quotes eld
18129 ) should perhaps be used.
18132 \begin_layout Enumerate
18135 Inter-sentence spacing (
18136 \begin_inset Quotes eld
18146 \begin_inset Quotes erd
18149 ) should perhaps be used.
18152 \begin_layout Enumerate
18155 Could not find argument for command.
18158 \begin_layout Enumerate
18162 \begin_inset Quotes eld
18170 \begin_inset Quotes erd
18176 \begin_layout Enumerate
18179 Math mode still on at end of \SpecialChar LaTeX
18183 \begin_layout Enumerate
18187 \begin_inset Quotes eld
18195 \begin_inset Quotes erd
18198 doesn't match the number of
18199 \begin_inset Quotes eld
18207 \begin_inset Quotes erd
18213 \begin_layout Enumerate
18216 You should use either
18219 \begin_inset Quotes eld
18227 \begin_inset Quotes erd
18232 as an alternative to
18233 \begin_inset Quotes eld
18241 \begin_inset Quotes erd
18247 \begin_layout Enumerate
18254 " (ASCII 39) instead of "" (ASCII 180).
18257 \begin_layout Enumerate
18260 User-specified pattern found.
18263 \begin_layout Enumerate
18266 This command might not be intended.
18269 \begin_layout Enumerate
18276 \begin_layout Enumerate
18294 \begin_layout Enumerate
18297 Delete this space to maintain correct page references.
18300 \begin_layout Enumerate
18304 You might wish to put this between a pair of
18305 \begin_inset Quotes eld
18313 \begin_inset Quotes erd
18319 \begin_layout Enumerate
18322 You ought to remove spaces in front of punctuation.
18325 \begin_layout Enumerate
18328 Could not execute \SpecialChar LaTeX
18332 \begin_layout Enumerate
18341 in front of small punctuation.
18344 \begin_layout Enumerate
18352 may look prettier here.
18355 \begin_layout Enumerate
18359 Multiple spaces detected in output.
18362 \begin_layout Enumerate
18365 This text may be ignored.
18368 \begin_layout Enumerate
18374 \begin_inset Quotes eld
18379 to begin quotation, not
18386 \begin_layout Enumerate
18393 to end quotation, not
18396 \begin_inset Quotes eld
18404 \begin_layout Enumerate
18410 \begin_layout Enumerate
18413 You should perhaps use
18414 \begin_inset Quotes eld
18422 \begin_inset Quotes erd
18428 \begin_layout Enumerate
18431 You should put a space in front of/after parenthesis.
18434 \begin_layout Enumerate
18437 You should avoid spaces in front of/after parenthesis.
18440 \begin_layout Enumerate
18444 You should not use punctuation in front of/after quotes.
18447 \begin_layout Enumerate
18450 Double space found.
18453 \begin_layout Enumerate
18456 You should put punctuation outside inner/inside display math mode.
18459 \begin_layout Enumerate
18462 You ought to not use primitive \SpecialChar TeX
18463 in \SpecialChar LaTeX
18467 \begin_layout Enumerate
18470 You should remove spaces in front of
18471 \begin_inset Quotes eld
18479 \begin_inset Quotes erd
18485 \begin_layout Enumerate
18488 \begin_inset Quotes eld
18496 \begin_inset Quotes erd
18499 is normally not followed by
18500 \begin_inset Quotes eld
18508 \begin_inset Quotes erd
18514 \begin_layout Standard
18516 の将来の版では,このツール(およびその縮小版
18520 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18521 書に使用してみていただければ,きっと驚かれることでしょう.
18524 \begin_layout Section
18529 \begin_layout Standard
18532 Lars Bullik Bjønnes
18541 \begin_layout Subsection
18545 \begin_layout Standard
18547 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18551 \begin_layout Standard
18552 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18557 \begin_layout Plain Layout
18558 \begin_inset CommandInset href
18560 target "http://svnbook.red-bean.com/"
18570 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18574 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18578 で終わるファイルです)の概念に注意を払ってください.
18581 \begin_layout Standard
18583 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18586 RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18587 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18589 表示\SpecialChar menuseparator
18590 ツールバー\SpecialChar menuseparator
18596 \begin_layout Standard
18597 自製の外部コマンドを導入したい場合には,
18603 \begin_inset Flex Code
18606 \begin_layout Plain Layout
18615 \begin_layout Standard
18616 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18618 文書\SpecialChar menuseparator
18621 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18622 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18625 \begin_layout Subsection
18630 \begin_layout Standard
18631 以下の節では\SpecialChar LyX
18632 でサポートされているRCSコマンドを説明します.それらのコマンドは
18634 ファイル\SpecialChar menuseparator
18637 のサブメニューにあります.\SpecialChar LyX
18638 は,RCS 5.7/5.8に対して試験されています.
18641 \begin_layout Subsubsection
18647 \begin_layout Standard
18648 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18655 \begin_layout Standard
18656 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18657 書は読み込み専用モードになるので,変更を加えるためには
18661 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18664 \begin_layout Standard
18668 \begin_layout LyX-Code
18671 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18674 \begin_layout Standard
18682 \begin_layout Subsubsection
18688 \begin_layout Standard
18689 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18690 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18693 \begin_layout Itemize
18696 ci -q -u -m"<説明文>" <ファイル名>
18699 \begin_layout Subsubsection
18705 \begin_layout Standard
18706 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18707 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18710 \begin_layout Itemize
18716 \begin_layout Subsubsection
18722 \begin_layout Standard
18723 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18726 \begin_layout Itemize
18729 co -f -u<バージョン> <ファイル名>
18732 \begin_layout Subsubsection
18738 \begin_layout Standard
18739 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18740 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18741 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18743 ファイル\SpecialChar menuseparator
18744 名前をつけて保存\SpecialChar ldots
18747 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18750 \begin_layout Labeling
18751 \labelwidthstring 00.00.0000
18753 \change_inserted -1196488707 1503192311
18757 \begin_inset space ~
18761 \begin_inset Newline newline
18765 \begin_inset Flex Code
18768 \begin_layout Plain Layout
18775 \begin_inset Flex Code
18778 \begin_layout Plain Layout
18785 \begin_inset Newline newline
18789 \begin_inset Flex Code
18792 \begin_layout Plain Layout
18793 ci -q -u -i "<新ファイル名>"
18801 \begin_layout Subsubsection
18807 \begin_layout Standard
18808 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18809 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18813 \begin_layout Itemize
18816 rcs -o<バージョン> <ファイル名>
18819 \begin_layout Subsubsection
18825 \begin_layout Standard
18826 RCS文書の完全な履歴を表示します.ブラウザ中に,
18837 \begin_layout Subsubsection
18841 \begin_layout Standard
18843 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18844 \begin_inset CommandInset ref
18846 reference "subsec:VCS改訂情報"
18853 \begin_layout Subsection
18858 \begin_layout Standard
18860 は,現在CVSを一部サポートしています.そのコマンドは,
18862 ファイル\SpecialChar menuseparator
18865 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18868 \begin_layout Subsubsection
18872 \begin_layout Standard
18873 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18874 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18877 \begin_layout Standard
18878 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18879 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18880 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18881 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18882 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18883 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18884 で予備付きチェックアウトを利用したい場合には,
18885 \begin_inset Flex Code
18888 \begin_layout Plain Layout
18895 \begin_inset Flex Code
18898 \begin_layout Plain Layout
18904 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18905 コピーを書き込み可能にしているとは限りません.
18908 \begin_layout Standard
18910 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18911 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18912 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18914 \begin_inset Flex MenuItem
18917 \begin_layout Plain Layout
18923 メニューを使用しなくてはなりません.その後,
18924 \begin_inset Flex MenuItem
18927 \begin_layout Plain Layout
18933 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18936 \begin_layout Standard
18938 \begin_inset Flex URL
18941 \begin_layout Plain Layout
18943 http://www.nongnu.org/cvs
18949 \begin_inset Flex URL
18952 \begin_layout Plain Layout
18954 http://ximbiot.com/cvs
18962 \begin_layout Standard
18963 以下に言及するサブコマンドとスイッチを理解するには,
18970 \begin_layout Subsubsection
18974 \begin_layout Standard
18975 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18982 \begin_layout Standard
18983 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18990 \begin_inset Flex Code
18993 \begin_layout Plain Layout
18999 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19000 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19004 \begin_layout Standard
19005 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19008 \begin_layout Standard
19011 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19016 \begin_layout Standard
19017 上記および他のすべてのCVSコマンドにおける
19021 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19024 \begin_layout Subsubsection
19028 \begin_layout Standard
19029 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19030 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19031 \begin_inset Flex MenuItem
19034 \begin_layout Plain Layout
19043 \begin_layout Labeling
19044 \labelwidthstring 00.00.0000
19046 \begin_inset space ~
19050 \begin_inset Newline newline
19054 \begin_inset Flex Code
19057 \begin_layout Plain Layout
19058 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19064 \begin_inset Newline newline
19068 \begin_inset Flex Code
19071 \begin_layout Plain Layout
19072 cvs -q unedit "<ファイル名>"
19080 \begin_layout Subsubsection
19084 \begin_layout Standard
19085 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19088 \begin_layout Standard
19091 cvs -q update "<ファイル名>"
19094 \begin_layout Standard
19095 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19098 \begin_layout Standard
19101 cvs -q edit "<ファイル名>"
19104 \begin_layout Subsubsection
19108 \begin_layout Standard
19109 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19113 \begin_layout Standard
19116 cvs -q update "<ファイル名>"
19119 \begin_layout Standard
19120 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19123 \begin_layout Standard
19126 cvs -q unedit "<ファイル名>"
19129 \begin_layout Subsubsection
19135 \begin_layout Standard
19136 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19137 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19138 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19140 ファイル\SpecialChar menuseparator
19141 名前をつけて保存\SpecialChar ldots
19144 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19147 \begin_layout Labeling
19148 \labelwidthstring 00.00.0000
19150 \begin_inset space ~
19154 \begin_inset Newline newline
19158 \begin_inset Flex Code
19161 \begin_layout Plain Layout
19168 \begin_inset Flex Code
19171 \begin_layout Plain Layout
19178 \begin_inset Newline newline
19182 \begin_inset Flex Code
19185 \begin_layout Plain Layout
19186 cvs -q add "<新ファイル名>"
19194 \begin_layout Subsubsection
19198 \begin_layout Standard
19199 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19200 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19201 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19204 ファイル\SpecialChar menuseparator
19205 名前をつけて保存\SpecialChar ldots
19208 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19211 \begin_layout Labeling
19212 \labelwidthstring 00.00.0000
19214 \begin_inset space ~
19218 \begin_inset Newline newline
19222 \begin_inset Flex Code
19225 \begin_layout Plain Layout
19232 \begin_inset Flex Code
19235 \begin_layout Plain Layout
19242 \begin_inset space ~
19246 \begin_inset Newline newline
19250 \begin_inset Flex Code
19253 \begin_layout Plain Layout
19254 cvs -q add "<新ファイル名>"
19260 \begin_inset space ~
19264 \begin_inset Newline newline
19268 \begin_inset Flex Code
19271 \begin_layout Plain Layout
19272 cvs -q remove "<ファイル名>"
19280 \begin_layout Subsubsection
19281 ローカルディレクトリチェックアウトのレポジトリからの更新
19284 \begin_layout Standard
19286 \begin_inset Flex Code
19289 \begin_layout Plain Layout
19295 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19296 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19297 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19298 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19302 \begin_layout Standard
19304 \begin_inset Flex Code
19307 \begin_layout Plain Layout
19313 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19314 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19315 \begin_inset Flex Code
19318 \begin_layout Plain Layout
19325 \begin_inset Flex Code
19328 \begin_layout Plain Layout
19335 \begin_inset Flex Code
19338 \begin_layout Plain Layout
19344 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19345 \begin_inset Flex Code
19348 \begin_layout Plain Layout
19354 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19357 \begin_layout Labeling
19358 \labelwidthstring 00.00.0000
19360 \begin_inset space ~
19364 \begin_inset Newline newline
19368 \begin_inset Flex Code
19371 \begin_layout Plain Layout
19372 cd $path; cvs diff "."
19378 \begin_inset Newline newline
19382 \begin_inset Flex Code
19385 \begin_layout Plain Layout
19386 cd $path; cvs -q update "."
19394 \begin_layout Standard
19396 \begin_inset Flex Code
19399 \begin_layout Plain Layout
19408 \begin_layout Subsubsection
19412 \begin_layout Standard
19413 これは,CVS文書の全履歴を表示します.
19414 \begin_inset Flex Code
19417 \begin_layout Plain Layout
19419 \begin_inset Quotes eld
19423 \begin_inset Quotes erd
19434 \begin_layout Subsubsection
19438 \begin_layout Standard
19440 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19444 によって抽出されます.詳細については,第
19445 \begin_inset CommandInset ref
19447 reference "subsec:VCS改訂情報"
19454 \begin_layout Subsection
19459 \begin_layout Standard
19461 は,現在SVNを一部サポートしています.そのコマンドは,
19462 \begin_inset Flex MenuItem
19465 \begin_layout Plain Layout
19466 ファイル\SpecialChar menuseparator
19472 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19474 1.5・1.6・1.7・1.8に対して試験されています
19478 \begin_layout Plain Layout
19479 ほとんどのコマンドは,1.4でも動作します.
19480 \begin_inset CommandInset ref
19482 reference "subsec:レポジトリからSVN同期"
19489 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19497 \begin_layout Subsubsection
19501 \begin_layout Standard
19502 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19509 \begin_layout Standard
19510 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19515 \begin_inset Flex Code
19518 \begin_layout Plain Layout
19524 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19527 \begin_layout Standard
19528 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19531 \begin_layout Standard
19533 \begin_inset Flex Code
19536 \begin_layout Plain Layout
19538 \begin_inset Quotes qld
19542 \begin_inset Quotes qld
19553 \begin_layout Standard
19555 \begin_inset Flex Code
19558 \begin_layout Plain Layout
19567 \begin_layout Subsubsection
19571 \begin_layout Standard
19572 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19575 \begin_layout Standard
19580 \begin_layout Plain Layout
19581 ロックが有効になっていない場合です.第
19582 \begin_inset CommandInset ref
19584 reference "subsec:SVNファイルロック"
19594 \begin_inset Flex Code
19597 \begin_layout Plain Layout
19598 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19606 \begin_layout Subsubsection
19610 \begin_layout Standard
19611 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19615 \begin_layout Standard
19620 \begin_layout Plain Layout
19627 \begin_inset Flex Code
19630 \begin_layout Plain Layout
19631 svn update –non-interactive
19632 \begin_inset Quotes qld
19636 \begin_inset Quotes qld
19647 \begin_layout Subsubsection
19651 \begin_layout Standard
19652 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19655 \begin_layout Standard
19657 \begin_inset Flex Code
19660 \begin_layout Plain Layout
19662 \begin_inset Quotes qld
19666 \begin_inset Quotes qld
19677 \begin_layout Subsubsection
19683 \begin_layout Standard
19684 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19685 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19688 ファイル\SpecialChar menuseparator
19689 名前をつけて保存\SpecialChar ldots
19692 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19695 \begin_layout Labeling
19696 \labelwidthstring 00.00.0000
19698 \change_inserted -1196488707 1503192295
19702 \begin_inset space ~
19706 \begin_inset Newline newline
19710 \begin_inset Flex Code
19713 \begin_layout Plain Layout
19714 svn copy -q "<ファイル名>" "<新ファイル名>"
19720 \begin_inset space ~
19724 \begin_inset Newline newline
19728 \begin_inset Flex Code
19731 \begin_layout Plain Layout
19740 \begin_layout Subsubsection
19744 \begin_layout Standard
19745 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19746 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19749 ファイル\SpecialChar menuseparator
19750 名前をつけて保存\SpecialChar ldots
19753 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19756 \begin_layout Labeling
19757 \labelwidthstring 00.00.0000
19759 \change_inserted -1196488707 1503192262
19763 \begin_inset space ~
19767 \begin_inset Newline newline
19771 \begin_inset Flex Code
19774 \begin_layout Plain Layout
19775 svn move -q add "<ファイル名>" "<新ファイル名>"
19781 \begin_inset Newline newline
19785 \begin_inset Flex Code
19788 \begin_layout Plain Layout
19797 \begin_layout Subsubsection
19798 \begin_inset CommandInset label
19800 name "subsec:レポジトリからSVN同期"
19804 レポジトリを使ったローカルディレクトリの同期
19808 \begin_layout Plain Layout
19810 \begin_inset Formula $\geqq1.5$
19813 でのみ動作することに注意してください.
19821 \begin_layout Standard
19822 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19823 \begin_inset Flex Code
19826 \begin_layout Plain Layout
19832 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19833 は,文書のおいてあるツリー全体の更新をサポートします
19837 \begin_layout Plain Layout
19838 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19843 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19847 \begin_layout Standard
19848 \begin_inset Flex Code
19851 \begin_layout Plain Layout
19857 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19858 場合には,更新が開始される前にユーザに警告が与えられます.
19861 \begin_layout Labeling
19862 \labelwidthstring 00.00.0000
19864 \begin_inset space ~
19868 \begin_inset Newline newline
19872 \begin_inset Flex Code
19875 \begin_layout Plain Layout
19876 svn diff $path(変更が発見された場合には通知します)
19877 \begin_inset Newline newline
19880 svn update –accept mine-full $path
19888 \begin_layout Standard
19890 \begin_inset Flex Code
19893 \begin_layout Plain Layout
19902 \begin_layout Subsubsection
19906 \begin_layout Standard
19907 これは,SVN文書の全履歴を表示します.
19908 \begin_inset Flex Code
19911 \begin_layout Plain Layout
19913 \begin_inset Quotes qld
19917 \begin_inset Quotes qld
19928 \begin_layout Subsubsection
19930 \begin_inset CommandInset label
19932 name "subsec:SVNファイルロック"
19939 \begin_layout Standard
19940 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19941 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19942 するための,何らかのロック機構を導入することが考えられます.
19945 \begin_layout Standard
19946 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19947 \begin_inset Flex Code
19950 \begin_layout Plain Layout
19956 svnファイル特性に依拠した書き込み権限の自動設定(第
19957 \begin_inset CommandInset ref
19959 reference "subsec:自動ロック特性"
19967 \begin_layout Plain Layout
19968 \begin_inset Flex URL
19971 \begin_layout Plain Layout
19973 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19983 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19984 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19985 り替わります.これは特に,\SpecialChar LyX
19986 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19989 \begin_layout Itemize
19990 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19994 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19997 \begin_layout Itemize
19998 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20002 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20006 \begin_layout Plain Layout
20007 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20012 ,書き込みロックの解放のみが行われます.
20015 \begin_layout Standard
20019 \begin_layout Labeling
20020 \labelwidthstring 00.00.0000
20022 \begin_inset Flex Code
20025 \begin_layout Plain Layout
20027 \begin_inset Quotes erd
20031 \begin_inset Quotes erd
20035 \begin_inset Quotes eld
20039 \begin_inset Quotes erd
20048 \begin_inset Newline newline
20052 \begin_inset Flex Code
20055 \begin_layout Plain Layout
20057 \begin_inset Quotes eld
20061 \begin_inset Quotes erd
20072 \begin_layout Labeling
20073 \labelwidthstring 00.00.0000
20075 \begin_inset Flex Code
20078 \begin_layout Plain Layout
20080 \begin_inset Quotes eld
20084 \begin_inset Quotes erd
20093 \begin_inset Newline newline
20097 \begin_inset Flex Code
20100 \begin_layout Plain Layout
20102 \begin_inset Quotes eld
20106 \begin_inset Quotes erd
20117 \begin_layout Subsubsection
20119 \begin_inset CommandInset label
20121 name "subsec:自動ロック特性"
20128 \begin_layout Standard
20130 \begin_inset Flex Code
20133 \begin_layout Plain Layout
20139 ファイルに対する書き込み権限の自動設定は,
20140 \begin_inset Flex MenuItem
20143 \begin_layout Plain Layout
20144 ファイル\SpecialChar menuseparator
20145 バージョン管理\SpecialChar menuseparator
20151 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20154 \begin_layout Standard
20158 \begin_layout Labeling
20159 \labelwidthstring 00.00.0000
20161 \begin_inset Flex Code
20164 \begin_layout Plain Layout
20165 svn propset svn:needs-lock ON
20166 \begin_inset Quotes eld
20170 \begin_inset Quotes erd
20181 \begin_layout Labeling
20182 \labelwidthstring 00.00.0000
20184 \begin_inset Flex Code
20187 \begin_layout Plain Layout
20188 svn propdel svn:needs-lock
20189 \begin_inset Quotes eld
20193 \begin_inset Quotes erd
20204 \begin_layout Subsubsection
20205 \begin_inset CommandInset label
20207 name "subsec:VCS改訂情報"
20214 \begin_layout Standard
20215 文書中で改訂情報を有効化するにはいくつかの方法があります.
20218 \begin_layout Itemize
20224 \begin_layout Itemize
20226 \begin_inset Flex Code
20229 \begin_layout Plain Layout
20236 \begin_inset Flex Code
20239 \begin_layout Plain Layout
20245 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
20248 \begin_layout Standard
20250 \begin_inset Tabular
20251 <lyxtabular version="3" rows="6" columns="2">
20252 <features tabularvalignment="middle">
20253 <column alignment="center" valignment="top">
20254 <column alignment="center" valignment="top">
20256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20259 \begin_layout Plain Layout
20265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20268 \begin_layout Plain Layout
20276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20279 \begin_layout Plain Layout
20285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20288 \begin_layout Plain Layout
20296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20299 \begin_layout Plain Layout
20305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20308 \begin_layout Plain Layout
20316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20319 \begin_layout Plain Layout
20325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20328 \begin_layout Plain Layout
20336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20339 \begin_layout Plain Layout
20345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20348 \begin_layout Plain Layout
20349 チェックアウト頻度が低かったことによる不完全な作業コピー
20356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20359 \begin_layout Plain Layout
20365 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20368 \begin_layout Plain Layout
20369 改訂版が混合し,修正され,スイッチされた作業コピー
20382 \begin_layout Itemize
20384 \begin_inset Flex Code
20387 \begin_layout Plain Layout
20389 \begin_inset space ~
20393 \begin_inset space ~
20397 \begin_inset space ~
20405 の出力を解析したものが返されます.サポートされるフラグは
20409 \begin_layout Itemize
20411 \begin_inset Flex Code
20414 \begin_layout Plain Layout
20423 \begin_layout Itemize
20425 \begin_inset Flex Code
20428 \begin_layout Plain Layout
20437 \begin_layout Itemize
20439 \begin_inset Flex Code
20442 \begin_layout Plain Layout
20451 \begin_layout Itemize
20453 \begin_inset Flex Code
20456 \begin_layout Plain Layout
20466 \begin_layout Standard
20467 これらの情報は,情報差込枠で得ることができます(例:
20468 \begin_inset Flex Code
20471 \begin_layout Plain Layout
20472 info-insert buffer vcs-date
20477 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20478 \begin_inset Flex Code
20481 \begin_layout Plain Layout
20487 ディレクトリがあるときのみ)利用可能です.
20491 \begin_layout Itemize
20492 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20496 \begin_layout Plain Layout
20497 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20502 .簡単に言えば,ファイルキーワード特性を設定して(例:
20504 svn propset svn:keywords 'Rev' file.lyx
20506 ),文書中にキーワード\SpecialChar TeX
20511 \begin_layout Plain Layout
20512 これは,\SpecialChar LyX
20513 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20519 \begin_inset Flex Code
20522 \begin_layout Plain Layout
20528 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20529 \begin_inset Flex Code
20532 \begin_layout Plain Layout
20538 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20539 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20541 \begin_inset Formula $Rev$
20545 \begin_inset Formula $Rev:59$
20548 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20549 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20550 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20551 がこれを直接サポートすることは,難しそうです.
20554 \begin_layout Subsection
20558 \begin_layout Quote
20559 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20564 \begin_layout Subsubsection
20568 \begin_layout Standard
20570 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20571 トプログラムのWindows用インストーラは
20572 \begin_inset CommandInset href
20575 target "http://www.collab.net/nonav/downloads/subversion/"
20581 \begin_inset CommandInset href
20584 target "http://tortoisesvn.tigris.org/"
20589 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20591 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20592 自身が使用するクライアントプログラムの代わりとは成りませんので
20596 \begin_layout Subsubsection
20597 文書をSubversion管理下に置くには
20600 \begin_layout Standard
20602 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20603 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20604 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20606 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20607 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20609 \begin_inset Flex Code
20612 \begin_layout Plain Layout
20620 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20621 \begin_inset Flex Code
20624 \begin_layout Plain Layout
20633 \begin_layout Enumerate
20635 \begin_inset Flex Code
20638 \begin_layout Plain Layout
20647 \begin_inset Flex MenuItem
20650 \begin_layout Plain Layout
20651 TortoiseSVN\SpecialChar menuseparator
20657 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20660 \begin_layout Enumerate
20661 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20662 \begin_inset Flex MenuItem
20665 \begin_layout Plain Layout
20666 Create folder\SpecialChar ldots
20672 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20673 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20676 \begin_layout Enumerate
20678 \begin_inset Flex Code
20681 \begin_layout Plain Layout
20690 \begin_inset Flex MenuItem
20693 \begin_layout Plain Layout
20694 SVN Checkout\SpecialChar ldots
20700 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20701 \begin_inset Flex Code
20704 \begin_layout Plain Layout
20712 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20713 \begin_inset Flex Code
20716 \begin_layout Plain Layout
20725 \begin_inset Flex Code
20728 \begin_layout Plain Layout
20737 \begin_layout Enumerate
20740 \begin_inset Flex MenuItem
20743 \begin_layout Plain Layout
20744 ファイル\SpecialChar menuseparator
20745 バージョン管理\SpecialChar menuseparator
20751 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20754 \begin_layout Standard
20756 \begin_inset Flex MenuItem
20759 \begin_layout Plain Layout
20760 ファイル\SpecialChar menuseparator
20766 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20767 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20770 \begin_layout Subsubsection
20771 Windows下でSVNと共にSSHトンネルを使うには
20774 \begin_layout Standard
20775 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20776 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20780 \begin_layout Enumerate
20781 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20782 \begin_inset Flex Code
20785 \begin_layout Plain Layout
20791 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20794 \begin_layout Enumerate
20795 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20799 \begin_layout Plain Layout
20800 \begin_inset Flex URL
20803 \begin_layout Plain Layout
20805 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20815 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20817 \begin_inset Flex Ruby
20820 \begin_layout Plain Layout
20822 \begin_inset Argument post:1
20825 \begin_layout Plain Layout
20840 \begin_layout Enumerate
20841 \begin_inset Flex Code
20844 \begin_layout Plain Layout
20850 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20851 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20852 s file:」編集フィールドから,直接サーバの
20853 \begin_inset Flex Code
20856 \begin_layout Plain Layout
20857 ~/.ssh/authorized_keys
20863 \begin_inset Flex Code
20866 \begin_layout Plain Layout
20872 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20875 \begin_layout Enumerate
20876 Puttyのplinkを入手してください.SVNのconfigファイル
20880 \begin_layout Plain Layout
20881 正確なパスはWindowsのバージョンに依りますが,通常は
20882 \begin_inset Flex Code
20885 \begin_layout Plain Layout
20888 Documents and Settings
20902 \begin_inset Flex Code
20905 \begin_layout Plain Layout
20921 \begin_inset Flex Code
20924 \begin_layout Plain Layout
20930 セクションにsshコマンドを設定してください.例:
20931 \begin_inset Flex Code
20934 \begin_layout Plain Layout
20935 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20944 \begin_layout Plain Layout
20945 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20946 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20955 \begin_layout Enumerate
20956 SVNアーカイブをチェックアウトしてください.例:
20957 \begin_inset Newline newline
20961 \begin_inset Flex Code
20964 \begin_layout Plain Layout
20965 svn co svn+ssh://user@server/repository_path
20973 \begin_layout Subsubsection
20977 \begin_layout Standard
20978 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20979 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20981 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20982 \begin_inset Flex Code
20985 \begin_layout Plain Layout
20995 \begin_layout Plain Layout
20997 \begin_inset Flex Code
21000 \begin_layout Plain Layout
21001 svn propset svn:eol-style native FILE_NAME
21011 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21015 \begin_layout Plain Layout
21016 \begin_inset Flex URL
21019 \begin_layout Plain Layout
21021 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21034 \begin_layout Subsection
21039 \begin_layout Standard
21041 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21043 ファイル\SpecialChar menuseparator
21046 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21052 \begin_layout Plain Layout
21053 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
21056 ツール\SpecialChar menuseparator
21057 設定\SpecialChar menuseparator
21058 パス\SpecialChar menuseparator
21069 \begin_layout Standard
21070 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21071 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21072 ミットを行います.ローカルリポジトリは,GITコマンドの
21073 \begin_inset Flex Code
21076 \begin_layout Plain Layout
21083 \begin_inset Flex Code
21086 \begin_layout Plain Layout
21092 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21093 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21094 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21095 \begin_inset Flex Code
21098 \begin_layout Plain Layout
21105 \begin_inset Flex Code
21108 \begin_layout Plain Layout
21117 \begin_layout Subsubsection
21121 \begin_layout Standard
21122 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21129 \begin_layout Standard
21130 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21135 \begin_inset Flex Code
21138 \begin_layout Plain Layout
21144 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21147 \begin_layout Standard
21148 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21151 \begin_layout Standard
21153 \begin_inset Flex Code
21156 \begin_layout Plain Layout
21165 \begin_layout Standard
21167 \begin_inset Flex Code
21170 \begin_layout Plain Layout
21179 \begin_layout Subsubsection
21183 \begin_layout Standard
21184 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21187 \begin_layout Standard
21189 \begin_inset Flex Code
21192 \begin_layout Plain Layout
21194 \begin_inset Quotes erd
21198 \begin_inset Quotes erd
21209 \begin_layout Subsubsection
21213 \begin_layout Standard
21214 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21217 \begin_layout Standard
21219 \begin_inset Flex Code
21222 \begin_layout Plain Layout
21224 \begin_inset Quotes qld
21228 \begin_inset Quotes qld
21239 \begin_layout Subsubsection
21243 \begin_layout Standard
21244 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
21245 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
21248 ファイル\SpecialChar menuseparator
21249 名前をつけて保存\SpecialChar ldots
21252 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
21255 \begin_layout Labeling
21256 \labelwidthstring 00.00.0000
21258 \begin_inset space ~
21262 \begin_inset Newline newline
21266 \begin_inset Flex Code
21269 \begin_layout Plain Layout
21270 git mv "<ファイル名>" "<新ファイル名>"
21276 \begin_inset Newline newline
21280 \begin_inset Flex Code
21283 \begin_layout Plain Layout
21292 \begin_layout Subsubsection
21296 \begin_layout Standard
21297 これは,GIT文書の全履歴を表示します.
21298 \begin_inset Flex Code
21301 \begin_layout Plain Layout
21303 \begin_inset Quotes qld
21307 \begin_inset Quotes qld
21318 \begin_layout Subsubsection
21322 \begin_layout Standard
21324 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21326 git log -n 1 --pretty=format:%H%n%an%n%ai
21328 によって抽出されます.ツリーバージョン情報は,
21330 git describe --abbrev --dirty --long
21333 \begin_inset CommandInset ref
21335 reference "subsec:VCS改訂情報"
21342 \begin_layout Subsection
21346 \begin_layout Standard
21348 \begin_inset Flex Code
21351 \begin_layout Plain Layout
21357 機構が付け加えられたおかげで,\SpecialChar LyX
21358 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21361 \begin_layout Standard
21362 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21365 \begin_layout Description
21367 \begin_inset Flex Code
21370 \begin_layout Plain Layout
21371 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21379 \begin_layout Description
21381 \begin_inset Flex Code
21384 \begin_layout Plain Layout
21385 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21393 \begin_layout Subsection
21397 \begin_layout Standard
21399 \begin_inset Flex Code
21402 \begin_layout Plain Layout
21408 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21410 まり便利ではありません.そこで,\SpecialChar LyX
21411 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21413 \begin_inset Flex Code
21416 \begin_layout Plain Layout
21422 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21423 関数説明書を参照),もう1つはツールバーアイコン
21435 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21436 \begin_inset Flex MenuItem
21439 \begin_layout Plain Layout
21445 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21448 \begin_layout Standard
21449 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21450 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21451 \begin_inset Flex Code
21454 \begin_layout Plain Layout
21464 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21467 \begin_layout Section
21471 \begin_layout Standard
21476 (kayvan@sylvan.com)改訂
21478 Edmar Wienskoski Jr.
21480 (edmar-w-jr@technologist.com)原文
21483 \begin_layout Subsection
21487 \begin_layout Standard
21488 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21489 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21490 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21491 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21494 \begin_layout Standard
21495 また,あなたが,\SpecialChar LyX
21496 の設定を変更することを厭わない程度まで\SpecialChar LyX
21497 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21498 するトピックを扱っている,\SpecialChar LyX
21502 \begin_layout Subsection
21506 \begin_layout Standard
21507 以下は,文芸プログラミング FAQからの抜粋です.
21510 \begin_layout Quotation
21511 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21512 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21513 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21515 \begin_inset space \thinspace{}
21519 Knuthが,\SpecialChar TeX
21520 組版ソフトウエアを開発中に作り出したものです.
21523 \begin_layout Standard
21527 \begin_layout Quotation
21530 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21533 \begin_layout Quotation
21534 3つの際立った特徴があります.重要な順に列挙すれば,
21538 \begin_layout Itemize
21542 \begin_layout Itemize
21546 \begin_layout Itemize
21547 特に図式と数式を含んだドキュメンテーションの組版
21551 \begin_layout Quotation
21555 \begin_layout Standard
21556 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21559 \begin_layout Subsubsection
21563 \begin_layout Standard
21567 \begin_layout Quote
21568 Literate Programming FAQ
21569 \begin_inset Flex URL
21572 \begin_layout Plain Layout
21574 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21582 \begin_layout Standard
21586 \begin_layout Standard
21587 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21588 を持つものもあります.私は自分で使うのに,いくつかの理由から
21595 \begin_layout Itemize
21596 説明文書を\SpecialChar LaTeX
21600 \begin_layout Itemize
21601 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21605 \begin_layout Plain Layout
21610 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21611 ムコードや\SpecialChar LaTeX
21612 コードのみを含むファイルに変換することができます.
21617 ,自分が必要な特別な処理を実行することが容易である.
21620 \begin_layout Itemize
21621 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21624 \begin_layout Itemize
21628 \begin_layout Standard
21632 \begin_layout Quote
21634 \begin_inset Flex URL
21637 \begin_layout Plain Layout
21639 http://www.cs.virginia.edu/~nr/noweb/
21647 \begin_layout Standard
21648 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21651 \begin_layout Subsection
21653 とNowebを使った文芸プログラミング
21656 \begin_layout Standard
21658 における文芸プログラミングのサポートは,\SpecialChar LyX
21659 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21660 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21664 \begin_layout Subsubsection
21665 ドキュメントとコードの生成(weavingおよびtangling)
21668 \begin_layout Paragraph
21672 \begin_layout Standard
21673 Nowebと\SpecialChar LyX
21674 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21676 文書\SpecialChar menuseparator
21679 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21680 web」モジュールが表示され,文書に追加できるようになっています.
21683 \begin_layout Paragraph
21687 \begin_layout Standard
21690 \begin_inset Flex Noun
21693 \begin_layout Plain Layout
21699 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21702 \begin_layout LyX-Code
21706 \begin_layout LyX-Code
21710 \begin_layout LyX-Code
21714 \begin_layout LyX-Code
21718 \begin_layout LyX-Code
21722 \begin_layout Standard
21723 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21724 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21726 \begin_inset Flex Noun
21729 \begin_layout Plain Layout
21735 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21738 \begin_layout Standard
21739 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21742 \begin_layout LyX-Code
21746 \begin_layout LyX-Code
21747 def some_function(args):
21750 \begin_layout LyX-Code
21751 "This is the doc string for this function."
21754 \begin_layout LyX-Code
21755 print "My args: ", args
21758 \begin_layout LyX-Code
21759 @ %def some_function
21762 \begin_layout Standard
21763 これをどのように使って,その結果相互参照がどうなるかは
21765 LIBDIR/examples/listerrors.lyx
21767 の中の文芸pythonプログラムを見るとよくわかります.
21770 \begin_layout Paragraph
21774 \begin_layout Standard
21775 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21778 文書\SpecialChar menuseparator
21781 等を選ぶだけです.特別な手続きは必要ありません.
21784 \begin_layout Standard
21785 理解を助けるために,\SpecialChar LyX
21786 の内部で何が起っているかを説明しておきましょう.
21789 \begin_layout Enumerate
21792 文書\SpecialChar menuseparator
21795 が選択されると,\SpecialChar LaTeX
21800 \begin_layout Standard
21801 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21802 \begin_inset Flex MenuItem
21805 \begin_layout Plain Layout
21811 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21815 \begin_layout Enumerate
21816 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21818 \begin_inset Flex Noun
21821 \begin_layout Plain Layout
21827 差込枠でコードを入力するのだけがポイントです.
21830 \begin_layout Enumerate
21831 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21833 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21838 \begin_layout Plain Layout
21841 ツール\SpecialChar menuseparator
21844 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21857 を使って\SpecialChar LaTeX
21862 \begin_layout Standard
21863 それ以外の場合はこのステップを飛ばします.
21867 \begin_layout Enumerate
21868 最後に\SpecialChar LaTeX
21869 が実行され,通常の文書と同じ後処理が行われます.
21872 \begin_layout Standard
21873 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21876 \begin_layout Paragraph
21880 \begin_layout Standard
21881 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21882 ファイルが生成されます.それから\SpecialChar LyX
21887 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21890 \begin_layout Enumerate
21891 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21895 \begin_layout Enumerate
21896 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21897 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21898 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21901 \begin_layout Standard
21905 \begin_layout LyX-Code
21908 build-script $$i $$r
21911 \begin_layout Standard
21912 と指定します.これは基本的に,\SpecialChar LyX
21914 \begin_inset Quotes erd
21922 \begin_inset Quotes erd
21925 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21926 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21927 ファイルのディレクトリパスを使って呼び出すこ
21931 \begin_layout Standard
21932 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21935 \begin_layout LyX-Code
21941 \begin_layout LyX-Code
21947 \begin_layout LyX-Code
21950 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21953 \begin_layout Standard
21954 変換子設定の次の部分は「フラグ」で,これは
21957 \begin_layout LyX-Code
21960 parselog=$$s/scripts/listerrors
21963 \begin_layout Standard
21965 \begin_inset Newline newline
21969 \begin_inset Quotes erd
21973 \begin_inset Quotes erd
21977 \begin_inset Quotes erd
21981 \begin_inset Quotes erd
21987 \begin_layout Standard
21988 ビルドは,通常\SpecialChar LyX
21989 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21990 は,主要ファイルとみなされるものをコピーして取り出
21995 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21996 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21997 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22000 \begin_layout Paragraph
22004 \begin_layout Standard
22007 \begin_inset Quotes eld
22011 \begin_inset Quotes erd
22014 chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22015 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22018 \begin_layout Standard
22019 以下に典型的なchunkがどのようなものかを書いておきます.
22022 \begin_layout LyX-Code
22024 \begin_inset Newline newline
22030 \begin_layout LyX-Code
22032 \begin_inset Newline newline
22036 \begin_inset Newline newline
22039 if [ -z "${NOWEB_SOURCE}" ]
22040 \begin_inset Newline newline
22046 \begin_layout LyX-Code
22047 NOWEB_SOURCE=myfile.nw
22048 \begin_inset Newline newline
22052 \begin_inset Newline newline
22056 code to extract files ...
22057 use NOWEB_OUTPUT_DIR here ...]
22058 \begin_inset Newline newline
22062 code to compile files ...]
22063 \begin_inset Newline newline
22069 \begin_layout Standard
22072 LIBDIR/examples/listerrors.lyx
22076 LIBDIR/examples/Literate.lyx
22078 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22081 LIBDIR/examples/noweb2lyx.lyx
22083 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22084 の文芸プログラミングのサポートがプログラム言語に依存しない
22088 \begin_layout Subsubsection
22093 \begin_layout Standard
22094 すべての文芸プログラムのための設定は,
22096 ツール\SpecialChar menuseparator
22099 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22102 \begin_layout Description
22103 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22115 に設定してください.これによって,\SpecialChar LyX
22116 に変換プロセスの第一段階でつくられるファイルに
22120 という拡張子をつけることを指示します.
22123 \begin_layout Description
22124 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22127 \begin_layout Description
22137 この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22139 noweave -delay -index $$i > $$o
22144 \begin_layout Description
22153 これは「tangling」を行います.上述のように,変換子は「
22155 build-script $$i $$r
22159 parselog=$$s/scripts/listerrors
22164 \begin_layout Subsubsection
22168 \begin_layout Standard
22169 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22173 \begin_layout Standard
22174 ddd/gdbでデバッグしているとき,一つの
22175 \begin_inset Flex Ruby
22178 \begin_layout Plain Layout
22180 \begin_inset Argument post:1
22183 \begin_layout Plain Layout
22194 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22195 \begin_inset Flex MenuItem
22198 \begin_layout Plain Layout
22199 ツール\SpecialChar menuseparator
22200 設定\SpecialChar menuseparator
22207 \begin_inset Flex MenuItem
22210 \begin_layout Plain Layout
22216 エントリを変えると変えることができます.
22219 \begin_layout Standard
22220 新しい\SpecialChar LyX
22221 サーバの関数と,このdddの機能を使うために
22222 \begin_inset Flex MenuItem
22225 \begin_layout Plain Layout
22234 \begin_layout LyX-Code
22237 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22240 \begin_layout Standard
22241 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22242 サーバに情報を送り,\SpecialChar LyX
22244 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
22247 \begin_layout Standard
22248 この機能が動くには\SpecialChar LyX
22249 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22250 サーバーは使えないようになっています).
22253 \begin_layout Standard
22255 \begin_inset CommandInset ref
22257 reference "sec:サーバーを開始するには"
22264 \begin_layout Subsubsection
22268 \begin_layout Standard
22269 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
22283 の段落環境へのショートカットであり,1つは拡張差込枠
22287 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
22288 \begin_inset Flex Ruby
22291 \begin_layout Plain Layout
22311 \begin_inset Argument post:1
22314 \begin_layout Plain Layout
22328 \begin_layout Standard
22330 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22331 \begin_inset Flex MenuItem
22334 \begin_layout Plain Layout
22335 文書\SpecialChar menuseparator
22336 更新\SpecialChar menuseparator
22343 \begin_inset Flex MenuItem
22346 \begin_layout Plain Layout
22347 文書\SpecialChar menuseparator
22348 表示\SpecialChar menuseparator
22357 \begin_layout LyX-Code
22361 \begin_layout LyX-Code
22365 \begin_layout LyX-Code
22366 Icon "layout Standard"
22369 \begin_layout LyX-Code
22370 Icon "layout Section"
22373 \begin_layout LyX-Code
22374 Icon "layout latex"
22377 \begin_layout LyX-Code
22378 Icon "layout \SpecialChar LyX
22382 \begin_layout LyX-Code
22383 Icon "flex.insert Chunk"
22386 \begin_layout LyX-Code
22390 \begin_layout LyX-Code
22394 \begin_layout LyX-Code
22395 Icon "buffer-typeset"
22398 \begin_layout LyX-Code
22399 Icon "build-program"
22402 \begin_layout LyX-Code
22406 \begin_layout LyX-Code
22410 \begin_layout LyX-Code
22414 \begin_layout LyX-Code
22418 \begin_layout LyX-Code
22422 \begin_layout Subsubsection
22426 \begin_layout Standard
22429 \begin_inset Flex MenuItem
22432 \begin_layout Plain Layout
22438 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22439 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22440 フォントを使うことになっていて,文芸プログラミ
22441 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22442 \begin_inset Flex MenuItem
22445 \begin_layout Plain Layout
22446 操作性\SpecialChar menuseparator
22455 \begin_layout Standard
22456 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22457 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22460 \begin_layout Subsection
22465 \begin_layout Standard
22466 knitrとSweaveへのサポートについては,用例ファイル
22472 ヘルプ\SpecialChar menuseparator
22478 \begin_layout Chapter
22480 \begin_inset CommandInset label
22482 name "chap:Special-features"
22489 \begin_layout Standard
22491 では,\SpecialChar LaTeX
22492 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22493 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22494 コードを使用することはできます.本章は,ユーザの興味が
22495 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22502 \begin_layout Section
22506 \begin_layout Standard
22515 とは別の機能です.文書全体に二段組を行いたい場合には,
22519 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22522 \begin_layout Standard
22523 文書中で多段組を行うには,\SpecialChar LaTeX
22525 \begin_inset Flex Code
22528 \begin_layout Plain Layout
22535 \begin_inset Index idx
22538 \begin_layout Plain Layout
22540 ぱっけーじ @ \SpecialChar LaTeX
22548 文書\SpecialChar menuseparator
22549 設定\SpecialChar menuseparator
22559 \begin_layout Standard
22560 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22564 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22567 \begin_layout Subsection
22571 \begin_layout Standard
22572 文章中で二段組を使用したい場合には,段組を始める場所で
22574 挿入\SpecialChar menuseparator
22575 任意設定差込枠\SpecialChar menuseparator
22578 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22581 \begin_layout Standard
22585 \begin_layout Standard
22587 \begin_inset Flex Multiple Columns
22590 \begin_layout Plain Layout
22595 The Adventure of the Empty House
22598 \begin_inset Newline newline
22601 by Sir Arthur Conan Doyle
22604 \begin_layout Plain Layout
22607 It was in the spring of the year 1894 that all London was interested, and
22608 the fashionable world dismayed, by the murder of the Honourable Ronald
22609 Adair under most unusual and inexplicable circumstances.
22610 The public has already learned those particulars of the crime which came
22611 out in the police investigation, but a good deal was suppressed upon that
22612 occasion, since the case for the prosecution was so overwhelmingly strong
22613 that it was not necessary to bring forward all the facts.
22614 Only now, at the end of nearly ten years, am I allowed to supply those
22615 missing links which make up the whole of that remarkable chain.
22616 The crime was of interest in itself, but that interest was as nothing to
22617 me compared to the inconceivable sequel, which afforded me the greatest
22618 shock and surprise of any event in my adventurous life.
22619 Even now, after this long interval, I find myself thrilling as I think
22620 of it, and feeling once more that sudden flood of joy, amazement, and increduli
22621 ty which utterly submerged my mind.
22622 Let me say to that public, which has shown some interest in those glimpses
22623 which I have occasionally given them of the thoughts and actions of a very
22624 remarkable man, that they are not to blame me if I have not shared my knowledge
22625 with them, for I should have considered it my first duty to do so, had
22626 I not been barred by a positive prohibition from his own lips, which was
22627 only withdrawn upon the third of last month.
22635 \begin_layout Standard
22636 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22637 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22639 \begin_inset Newline newline
22645 \begin_layout Standard
22646 \begin_inset Flex Multiple Columns
22649 \begin_layout Plain Layout
22652 \begin_inset Argument 1
22655 \begin_layout Plain Layout
22661 It can be imagined that my close intimacy with Sherlock Holmes had interested
22662 me deeply in crime, and that after his disappearance I never failed to
22663 read with care the various problems which came before the public.
22664 And I even attempted, more than once, for my own private satisfaction,
22665 to employ his methods in their solution, though with indifferent success.
22666 There was none, however, which appealed to me like this tragedy of Ronald
22668 As I read the evidence at the inquest, which led up to a verdict of willful
22669 murder against some person or persons unknown, I realized more clearly
22670 than I had ever done the loss which the community had sustained by the
22671 death of Sherlock Holmes.
22672 There were points about this strange business which would, I was sure,
22673 have specially appealed to him, and the efforts of the police would have
22674 been supplemented, or more probably anticipated, by the trained observation
22675 and the alert mind of the first criminal agent in Europe.
22676 All day, as I drove upon my round, I turned over the case in my mind and
22677 found no explanation which appeared to me to be adequate.
22678 At the risk of telling a twice-told tale, I will recapitulate the facts
22679 as they were known to the public at the conclusion of the inquest.
22687 \begin_layout Standard
22688 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22691 \begin_layout Standard
22692 \begin_inset Newpage newpage
22698 \begin_layout Subsection
22702 \begin_layout Standard
22706 \begin_layout Standard
22707 \begin_inset Flex Multiple Columns
22710 \begin_layout Plain Layout
22713 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22714 at that time governor of one of the Australian colonies.
22715 Adair's mother had returned from Australia to undergo the operation for
22716 cataract, and she, her son Ronald, and her daughter Hilda were living together
22720 \begin_layout Plain Layout
22721 \begin_inset Flex Multiple Columns
22724 \begin_layout Plain Layout
22727 The youth moved in the best society–had, so far as was known, no enemies
22728 and no particular vices.
22729 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22730 had been broken off by mutual consent some months before, and there was
22731 no sign that it had left any very profound feeling behind it.
22732 For the rest {sic} the man's life moved in a narrow and conventional circle,
22733 for his habits were quiet and his nature unemotional.
22734 Yet it was upon this easy-going young aristocrat that death came, in most
22735 strange and unexpected form, between the hours of ten and eleven-twenty
22736 on the night of March 30, 1894.
22744 \begin_layout Plain Layout
22747 Ronald Adair was fond of cards–playing continually, but never for such stakes
22749 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22750 It was shown that, after dinner on the day of his death, he had played
22751 a rubber of whist at the latter club.
22752 He had also played there in the afternoon.
22757 The evidence of those who had played with him– Mr.
22758 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22759 and that there was a fairly equal fall of the cards.
22760 Adair might have lost five pounds, but not more.
22761 His fortune was a considerable one, and such a loss could not in any way
22763 He had played nearly every day at one club or other, but he was a cautious
22764 player, and usually rose a winner.
22765 It came out in evidence that, in partnership with Colonel Moran, he had
22766 actually won as much as four hundred and twenty pounds in a sitting, some
22767 weeks before, from Godfrey Milner and Lord Balmoral.
22768 So much for his recent history as it came out at the inquest.
22776 \begin_layout Subsection
22780 \begin_layout Standard
22781 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22784 \begin_layout Standard
22785 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22787 \begin_inset Flex Code
22790 \begin_layout Plain Layout
22797 \begin_inset CommandInset href
22800 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22808 \begin_layout Subsubsection
22812 \begin_layout Standard
22813 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22815 挿入\SpecialChar menuseparator
22818 メニューを使用してください.序文は,この差込枠内に書いてください.
22819 \begin_inset Newline newline
22825 \begin_layout Standard
22826 \begin_inset VSpace bigskip
22832 \begin_layout Standard
22833 \begin_inset Flex Multiple Columns
22836 \begin_layout Plain Layout
22837 \begin_inset Argument 2
22840 \begin_layout Plain Layout
22841 And the story continues and continues and continues and continues\SpecialChar ldots
22849 On the evening of the crime, he returned from the club exactly at ten.
22850 His mother and sister were out spending the evening with a relation.
22851 The servant deposed that she heard him enter the front room on the second
22852 floor, generally used as his sitting-room.
22853 She had lit a fire there, and as it smoked she had opened the window.
22854 No sound was heard from the room until eleven-twenty, the hour of the return
22855 of Lady Maynooth and her daughter.
22856 Desiring to say good-night, she attempted to enter her son's room.
22857 The door was locked on the inside, and no answer could be got to their
22858 cries and knocking.
22859 Help was obtained, and the door forced.
22860 The unfortunate young man was found lying near the table.
22861 His head had been horribly mutilated by an expanding revolver bullet, but
22862 no weapon of any sort was to be found in the room.
22870 \begin_layout Standard
22871 最初の\SpecialChar TeX
22872 コードの後に,節宣言コマンドを\SpecialChar TeX
22873 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22876 \begin_layout Standard
22884 \begin_layout Standard
22885 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22888 \begin_layout Standard
22889 \begin_inset Flex Multiple Columns
22892 \begin_layout Plain Layout
22893 \begin_inset Argument 2
22896 \begin_layout Plain Layout
22900 \begin_layout Plain Layout
22913 \begin_layout Plain Layout
22927 A minute examination of the circumstances served only to make the case more
22929 In the first place, no reason could be given why the young man should have
22930 fastened the door upon the inside.
22931 There was the possibility that the murderer had done this, and had afterwards
22932 escaped by the window.
22933 The drop was at least twenty feet, however, and a bed of crocuses in full
22935 Neither the flowers nor the earth showed any sign of having been disturbed,
22936 nor were there any marks upon the narrow strip of grass which separated
22937 the house from the road.
22938 Apparently, therefore, it was the young man himself who had fastened the
22940 But how did he come by his death? No one could have climbed up to the window
22941 without leaving traces.
22942 Suppose a man had fired through the window, he would indeed be a remarkable
22943 shot who could with a revolver inflict so deadly a wound.
22944 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22945 a hundred yards of the house.
22946 No one had heard a shot.
22954 \begin_layout Standard
22955 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22956 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22958 挿入\SpecialChar menuseparator
22961 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22964 \begin_layout Standard
22966 \begin_inset Flex Code
22969 \begin_layout Plain Layout
22977 を用いて,必要行数を7行に指定しています(コマンド
22978 \begin_inset Flex Code
22981 \begin_layout Plain Layout
22990 コードとして入力する必要があります).
22993 \begin_layout Standard
22994 \begin_inset Flex Multiple Columns
22997 \begin_layout Plain Layout
22998 \begin_inset Argument 3
23001 \begin_layout Plain Layout
23006 \begin_layout Plain Layout
23022 On the evening of the crime, he returned from the club exactly at ten.
23023 His mother and sister were out spending the evening with a relation.
23024 The servant deposed that she heard him enter the front room on the second
23025 floor, generally used as his sitting-room.
23026 She had lit a fire there, and as it smoked she had opened the window.
23027 No sound was heard from the room until eleven-twenty, the hour of the return
23028 of Lady Maynooth and her daughter.
23029 Desiring to say good-night, she attempted to enter her son's room.
23030 The door was locked on the inside, and no answer could be got to their
23031 cries and knocking.
23032 Help was obtained, and the door forced.
23033 The unfortunate young man was found lying near the table.
23034 His head had been horribly mutilated by an expanding revolver bullet, but
23035 no weapon of any sort was to be found in the room.
23043 \begin_layout Subsubsection
23047 \begin_layout Standard
23049 \begin_inset Flex Code
23052 \begin_layout Plain Layout
23060 を変えることで変更することができます.例えば,\SpecialChar TeX
23064 \begin_layout LyX-Code
23074 \begin_layout Standard
23076 \begin_inset space \thinspace{}
23079 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23080 \begin_inset space \thinspace{}
23086 \begin_layout Standard
23088 \begin_inset Flex Code
23091 \begin_layout Plain Layout
23100 \begin_inset space \thinspace{}
23106 \begin_layout Standard
23110 \begin_layout Plain Layout
23116 multicolsep}{2.5cm}
23124 \begin_layout Standard
23125 \begin_inset Flex Multiple Columns
23128 \begin_layout Plain Layout
23131 All day I turned these facts over in my mind, endeavouring to hit upon some
23132 theory which could reconcile them all, and to find that line of least resistanc
23133 e which my poor friend had declared to be the starting-point of every investigat
23135 I confess that I made little progress.
23136 In the evening I strolled across the Park, and found myself about six o'clock
23137 at the Oxford Street end of Park Lane.
23138 A group of loafers upon the pavements, all staring up at a particular window,
23139 directed me to the house which I had come to see.
23140 A tall, thin man with coloured glasses, whom I strongly suspected of being
23141 a plain-clothes detective, was pointing out some theory of his own, while
23142 the others crowded round to listen to what he said.
23143 I got as near him as I could, but his observations seemed to me to be absurd,
23144 so I withdrew again in some disgust.
23145 As I did so I struck against an elderly, deformed man, who had been behind
23146 me, and I knocked down several books which he was carrying.
23154 \begin_layout Standard
23155 \begin_inset Note Greyedout
23158 \begin_layout Plain Layout
23164 \begin_inset Flex Code
23167 \begin_layout Plain Layout
23175 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23183 \begin_layout Standard
23187 \begin_layout Plain Layout
23199 \begin_inset Note Note
23202 \begin_layout Plain Layout
23205 go back to the default
23213 \begin_layout Standard
23214 \begin_inset Newpage newpage
23220 \begin_layout Subsubsection
23224 \begin_layout Standard
23225 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
23227 \begin_inset Flex Code
23230 \begin_layout Plain Layout
23238 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
23239 \begin_inset Newline newline
23245 \begin_layout Standard
23246 \begin_inset Flex Multiple Columns
23249 \begin_layout Plain Layout
23252 \begin_inset Quotes eld
23255 You're surprised to see me, sir,
23256 \begin_inset Quotes erd
23259 said he, in a strange, croaking voice.
23262 \begin_layout Plain Layout
23265 I acknowledged that I was.
23268 \begin_layout Plain Layout
23271 \begin_inset Quotes eld
23274 Well, I've a conscience, sir, and when I chanced to see you go into this
23275 house, as I came hobbling after you, I thought to myself, I'll just step
23276 in and see that kind gentleman, and tell him that if I was a bit gruff
23277 in my manner there was not any harm meant, and that I am much obliged to
23278 him for picking up my books.
23279 \begin_inset Quotes erd
23285 \begin_layout Plain Layout
23288 \begin_inset Quotes eld
23291 You make too much of a trifle,
23292 \begin_inset Quotes erd
23297 \begin_inset Quotes eld
23300 May I ask how you knew who I was?
23301 \begin_inset Quotes erd
23304 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23308 \begin_layout Plain Layout
23320 \begin_layout Plain Layout
23323 \begin_inset Quotes eld
23326 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23327 you'll find my little bookshop at the corner of Church Street, and very
23328 happy to see you, I am sure.
23329 Maybe you collect yourself, sir.
23333 \begin_inset space ~
23346 –a bargain, every one of them.
23347 With five volumes you could just fill that gap on that second shelf.
23348 It looks untidy, does it not, sir?
23349 \begin_inset Quotes erd
23360 \begin_layout Subsubsection
23364 \begin_layout Standard
23365 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23366 \begin_inset Flex Code
23369 \begin_layout Plain Layout
23377 を変更することで実現できます.既定値は10
23378 \begin_inset space \thinspace{}
23382 \begin_inset Flex Code
23385 \begin_layout Plain Layout
23394 \begin_inset space \thinspace{}
23400 \begin_layout Standard
23404 \begin_layout Plain Layout
23418 \begin_layout Standard
23419 \begin_inset Flex Multiple Columns
23422 \begin_layout Plain Layout
23425 My observations of No.
23426 \begin_inset space \space{}
23429 427 Park Lane did little to clear up the problem in which I was interested.
23430 The house was separated from the street by a low wall and railing, the
23431 whole not more than five feet high.
23432 It was perfectly easy, therefore, for anyone to get into the garden, but
23433 the window was entirely inaccessible, since there was no water pipe or
23434 anything which could help the most active man to climb it.
23435 More puzzled than ever, I retraced my steps to Kensington.
23436 I had not been in my study five minutes when the maid entered to say that
23437 a person desired to see me.
23438 To my astonishment it was none other than my strange old book collector,
23439 his sharp, wizened face peering out from a frame of white hair, and his
23440 precious volumes, a dozen of them at least, wedged under his right arm.
23448 \begin_layout Standard
23452 \begin_layout Plain Layout
23464 \begin_inset Note Note
23467 \begin_layout Plain Layout
23470 go back to the default
23478 \begin_layout Subsubsection
23482 \begin_layout Standard
23484 \begin_inset Flex Code
23487 \begin_layout Plain Layout
23495 の幅を持つ罫線が描かれます.罫線幅を0
23496 \begin_inset space \thinspace{}
23499 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23500 \begin_inset space \thinspace{}
23506 \begin_layout Standard
23510 \begin_layout Plain Layout
23516 columnseprule}{2pt}
23524 \begin_layout Standard
23525 \begin_inset Flex Multiple Columns
23528 \begin_layout Plain Layout
23531 \begin_inset Quotes eld
23534 You're surprised to see me, sir,
23535 \begin_inset Quotes erd
23538 said he, in a strange, croaking voice.
23541 \begin_layout Plain Layout
23544 I acknowledged that I was.
23547 \begin_layout Plain Layout
23550 \begin_inset Quotes eld
23553 Well, I've a conscience, sir, and when I chanced to see you go into this
23554 house, as I came hobbling after you, I thought to myself, I'll just step
23555 in and see that kind gentleman, and tell him that if I was a bit gruff
23556 in my manner there was not any harm meant, and that I am much obliged to
23557 him for picking up my books.
23558 \begin_inset Quotes erd
23564 \begin_layout Plain Layout
23567 \begin_inset Quotes eld
23570 You make too much of a trifle,
23571 \begin_inset Quotes erd
23576 \begin_inset Quotes eld
23579 May I ask how you knew who I was?
23580 \begin_inset Quotes erd
23586 \begin_layout Plain Layout
23589 \begin_inset Quotes eld
23592 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23593 you'll find my little bookshop at the corner of Church Street, and very
23594 happy to see you, I am sure.
23595 Maybe you collect yourself, sir.
23599 \begin_inset space ~
23612 –a bargain, every one of them.
23613 With five volumes you could just fill that gap on that second shelf.
23614 It looks untidy, does it not, sir?
23615 \begin_inset Quotes erd
23626 \begin_layout Standard
23627 \begin_inset VSpace defskip
23633 \begin_layout Standard
23635 \begin_inset Flex Code
23638 \begin_layout Plain Layout
23646 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23647 コードで以下のコマンドを挿入すれば,実現できます.
23650 \begin_layout LyX-Code
23655 columnseprulecolor}{
23660 \begin_layout Standard
23662 \begin_inset Flex Code
23665 \begin_layout Plain Layout
23673 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23674 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23677 \begin_layout LyX-Code
23682 columnseprulecolor}{
23687 \begin_layout Standard
23689 \begin_inset space \thinspace{}
23695 \begin_layout Standard
23699 \begin_layout Plain Layout
23708 \begin_layout Plain Layout
23714 columnseprulecolor}{
23724 \begin_layout Standard
23725 \begin_inset Flex Multiple Columns
23728 \begin_layout Plain Layout
23731 \begin_inset Quotes eld
23734 You're surprised to see me, sir,
23735 \begin_inset Quotes erd
23738 said he, in a strange, croaking voice.
23741 \begin_layout Plain Layout
23744 I acknowledged that I was.
23747 \begin_layout Plain Layout
23750 \begin_inset Quotes eld
23753 Well, I've a conscience, sir, and when I chanced to see you go into this
23754 house, as I came hobbling after you, I thought to myself, I'll just step
23755 in and see that kind gentleman, and tell him that if I was a bit gruff
23756 in my manner there was not any harm meant, and that I am much obliged to
23757 him for picking up my books.
23758 \begin_inset Quotes erd
23764 \begin_layout Plain Layout
23767 \begin_inset Quotes eld
23770 You make too much of a trifle,
23771 \begin_inset Quotes erd
23776 \begin_inset Quotes eld
23779 May I ask how you knew who I was?
23780 \begin_inset Quotes erd
23786 \begin_layout Plain Layout
23789 \begin_inset Quotes eld
23792 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23793 you'll find my little bookshop at the corner of Church Street, and very
23794 happy to see you, I am sure.
23795 Maybe you collect yourself, sir.
23799 \begin_inset space ~
23812 –a bargain, every one of them.
23813 With five volumes you could just fill that gap on that second shelf.
23814 It looks untidy, does it not, sir?
23815 \begin_inset Quotes erd
23826 \begin_layout Standard
23830 \begin_layout Plain Layout
23836 columnseprule}{0pt}
23839 \begin_layout Plain Layout
23845 columnseprulecolor}{
23853 \begin_inset Note Note
23856 \begin_layout Plain Layout
23859 go back to the default
23867 \begin_layout Standard
23868 \begin_inset Newpage newpage
23874 \begin_layout Section
23878 \begin_layout Standard
23881 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23886 モジュールを読み込んで,\SpecialChar LaTeX
23888 \begin_inset Flex Code
23891 \begin_layout Plain Layout
23898 を使用させるようにすれば,実現できます.
23901 \begin_layout Subsection
23905 \begin_layout Standard
23913 \begin_layout Standard
23914 \begin_inset Tabular
23915 <lyxtabular version="3" rows="13" columns="3">
23916 <features booktabs="true" islongtable="true" longtabularalignment="center">
23917 <column alignment="center" valignment="middle" width="16col%">
23918 <column alignment="center" valignment="middle" width="40col%">
23919 <column alignment="center" valignment="middle" width="35col%">
23920 <row endhead="true">
23921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23924 \begin_layout Plain Layout
23930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23933 \begin_layout Plain Layout
23939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23942 \begin_layout Plain Layout
23950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23953 \begin_layout Plain Layout
23959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23962 \begin_layout Plain Layout
23963 丸い穴の開いたドーナツ型(CD/DVD大)
23968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23971 \begin_layout Plain Layout
23972 伸縮不可.多くの文字を入れられないことに注意.
23979 <cell alignment="center" valignment="top" topline="true" usebox="none">
23982 \begin_layout Plain Layout
23988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23991 \begin_layout Plain Layout
23997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24000 \begin_layout Plain Layout
24008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24011 \begin_layout Plain Layout
24017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24020 \begin_layout Plain Layout
24022 \begin_inset Quotes eld
24026 \begin_inset Quotes erd
24034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24037 \begin_layout Plain Layout
24045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24048 \begin_layout Plain Layout
24054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24057 \begin_layout Plain Layout
24063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24066 \begin_layout Plain Layout
24074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24077 \begin_layout Plain Layout
24083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24086 \begin_layout Plain Layout
24092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24095 \begin_layout Plain Layout
24103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24106 \begin_layout Plain Layout
24112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24115 \begin_layout Plain Layout
24121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24124 \begin_layout Plain Layout
24132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24135 \begin_layout Plain Layout
24141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24144 \begin_layout Plain Layout
24150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24153 \begin_layout Plain Layout
24161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24164 \begin_layout Plain Layout
24170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24173 \begin_layout Plain Layout
24179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24182 \begin_layout Plain Layout
24190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24193 \begin_layout Plain Layout
24199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24202 \begin_layout Plain Layout
24208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24211 \begin_layout Plain Layout
24219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24222 \begin_layout Plain Layout
24228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24231 \begin_layout Plain Layout
24237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24240 \begin_layout Plain Layout
24248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24251 \begin_layout Plain Layout
24258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24261 \begin_layout Plain Layout
24268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24271 \begin_layout Plain Layout
24279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24282 \begin_layout Plain Layout
24284 \begin_inset Newline newline
24292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24295 \begin_layout Plain Layout
24301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24304 \begin_layout Plain Layout
24318 \begin_layout Standard
24319 段落に形を適用するには,\SpecialChar LyX
24320 ツールバー中の環境プルダウンボックスから形を選んでください.
24323 \begin_layout Standard
24324 \begin_inset Newpage newpage
24330 \begin_layout Standard
24334 \begin_layout Standard
24335 \begin_inset VSpace bigskip
24344 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24345 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24347 At vero eos et accusam et justo duo dolores et ea rebum.
24348 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24350 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24351 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24355 \begin_layout Standard
24356 \begin_inset VSpace bigskip
24362 \begin_layout Standard
24363 \begin_inset Note Greyedout
24366 \begin_layout Plain Layout
24374 段落は改頁にまたがることはできません.
24382 \begin_layout Standard
24383 \begin_inset VSpace bigskip
24389 \begin_layout Standard
24390 \begin_inset Flex Code
24393 \begin_layout Plain Layout
24400 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24401 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24404 \begin_layout Standard
24405 \begin_inset Newpage newpage
24414 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24415 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24417 At vero eos et accusam et justo duo dolores et ea rebum.
24418 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24420 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24421 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24423 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24424 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24426 At vero eos et accusam et justo duo dolores et ea rebum.
24427 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24429 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24430 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24434 \begin_layout Standard
24435 \begin_inset VSpace bigskip
24441 \begin_layout Standard
24446 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24447 \begin_inset Newline newline
24458 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24459 \begin_inset Quotes eld
24462 Arithmetic overflow
24463 \begin_inset Quotes erd
24466 という\SpecialChar LaTeX
24467 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24470 \begin_layout Standard
24471 \begin_inset VSpace bigskip
24477 \begin_layout Standard
24478 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24479 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24484 arg "specialchar-insert hyphenation"
24489 )を指定することが往々にして必要になります.
24492 \begin_layout Standard
24493 \begin_inset VSpace bigskip
24499 \begin_layout Standard
24500 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24501 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24502 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24503 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24506 \begin_layout Standard
24507 \begin_inset Newpage newpage
24513 \begin_layout Heart
24517 Lo\SpecialChar softhyphen
24518 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24519 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24521 At vero eos et accusam et justo duo dolores et ea rebum.
24522 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24526 \begin_layout Standard
24527 \begin_inset VSpace bigskip
24533 \begin_layout Standard
24536 \begin_inset Box Frameless
24546 height_special "totalheight"
24551 backgroundcolor "none"
24554 \begin_layout Heart
24558 Lo\SpecialChar softhyphen
24559 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24560 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24562 At vero eos et accusam et justo duo dolores et ea rebum.
24563 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24572 \begin_layout Subsection
24576 \begin_layout Standard
24577 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24578 ように,コンピューターに座標を計算させる方法もあります.
24581 \begin_layout Enumerate
24583 \begin_inset CommandInset href
24586 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24594 \begin_layout Enumerate
24601 TeX/LaTeX\SpecialChar menuseparator
24602 Settings\SpecialChar menuseparator
24605 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24606 \begin_inset space \thinspace{}
24612 \begin_layout Enumerate
24616 \begin_layout Enumerate
24619 TeX/LaTeX\SpecialChar menuseparator
24622 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24626 \begin_layout Plain Layout
24628 \begin_inset CommandInset href
24630 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24643 \begin_layout Standard
24644 座標は\SpecialChar TeX
24645 ファイルに書き込まれます.これを\SpecialChar LyX
24649 \begin_layout Enumerate
24650 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24653 \begin_layout Enumerate
24657 挿入\SpecialChar menuseparator
24658 ファイル\SpecialChar menuseparator
24672 \begin_layout Standard
24673 \begin_inset VSpace defskip
24679 \begin_layout Standard
24680 \begin_inset Note Greyedout
24683 \begin_layout Plain Layout
24688 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24696 \begin_layout Standard
24697 \begin_inset VSpace bigskip
24703 \begin_layout Standard
24707 \begin_layout Standard
24708 \begin_inset VSpace bigskip
24714 \begin_layout Standard
24715 \begin_inset CommandInset include
24717 filename "/Applications/LyX-2.3.0dev.app/Contents/Resources/doc/SpecialParagraphShape.tex"
24723 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24724 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24726 At vero eos et accusam et justo duo dolores et ea rebum.
24727 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24729 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24730 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24734 \begin_layout Standard
24735 \begin_inset VSpace bigskip
24741 \begin_layout Standard
24749 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24753 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24756 \begin_layout Standard
24757 \begin_inset VSpace bigskip
24763 \begin_layout Standard
24776 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24780 \begin_layout Plain Layout
24781 これらのコマンドは,上述の全ての形で内部的に使用されています.
24786 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24787 \begin_inset Flex Code
24790 \begin_layout Plain Layout