1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
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 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26 \pdfbookmark[1]{\contentsname}{}
29 \pagenumbering{arabic}}
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
36 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
45 \maintain_unincluded_children false
48 InsetLayout Flex:MenuItem
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 Decoration Conglomerate
70 Decoration Conglomerate
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
87 \language_package default
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
101 \default_output_format pdf3
103 \bibtex_command default
104 \index_command default
108 \pdf_title "LyX's Additional Features manual"
109 \pdf_author "LyX Team"
110 \pdf_subject "LyX's additional features documentation"
111 \pdf_keywords "LyX, Documentation, Additional"
113 \pdf_bookmarksnumbered true
114 \pdf_bookmarksopen false
115 \pdf_bookmarksopenlevel 1
116 \pdf_breaklinks false
120 \pdf_pdfusetitle false
121 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \use_package amsmath 1
125 \use_package amssymb 1
126 \use_package cancel 0
128 \use_package mathdots 1
129 \use_package mathtools 0
130 \use_package mhchem 1
131 \use_package stackrel 0
132 \use_package stmaryrd 0
133 \use_package undertilde 0
135 \cite_engine_type default
139 \paperorientation portrait
143 \notefontcolor #0000ff
150 \paragraph_separation indent
151 \paragraph_indentation default
152 \quotes_language english
155 \paperpagestyle headings
156 \tracking_changes false
157 \output_changes false
168 \begin_inset Newline newline
182 \begin_layout Plain Layout
183 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
185 \begin_inset Flex Code
188 \begin_layout Plain Layout
192 <lyx-docs@lists.lyx.org>
197 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
214 \begin_layout Chapter
218 \begin_layout Standard
228 』の第二部です.これらの文書を別部とした理由は,単純に『
236 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
237 プロジェクトチームは,\SpecialChar LyX
238 を各設定ファイルと外部パッケージによって拡張
239 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
240 パッケージをサポートしたい場合に,\SpecialChar LyX
241 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
242 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
243 な形での貢献を文書化する冊子として位置付けられています.
246 \begin_layout Standard
247 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
248 しています.さらに,\SpecialChar LaTeX
249 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
250 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
252 ることを企図しているため,\SpecialChar LaTeX
253 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
256 \begin_layout Standard
261 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
265 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
269 』をよくお読みになって,\SpecialChar LyX
273 \begin_layout Standard
274 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
276 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
277 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
279 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
283 \begin_layout Chapter
289 \begin_layout Section
295 \begin_layout Standard
306 熟練者と\SpecialChar LaTeX
307 に興味のある方向けの章です.ここでは,\SpecialChar LyX
309 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
311 を多少なりともご存知であることを前提とします.
314 \begin_layout Standard
325 は,「\SpecialChar LaTeX
344 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
345 のフロントエンドは,いくつも出回っています
349 \begin_layout Plain Layout
359 有名なものとしては,Linux上の\SpecialChar TeX
360 makerとkile,OSX上の\SpecialChar TeX
361 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
367 .これらは,基本的に\SpecialChar LaTeX
368 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
369 も,エディタであり,\SpecialChar LaTeX
371 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
390 を効果的に使うのに,\SpecialChar LaTeX
391 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
392 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
393 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
404 \begin_inset Flex MenuItem
407 \begin_layout Plain Layout
434 \begin_inset Flex MenuItem
437 \begin_layout Plain Layout
440 エクスポート\SpecialChar menuseparator
465 \begin_inset Flex MenuItem
468 \begin_layout Plain Layout
471 表示\SpecialChar menuseparator
487 \begin_inset Flex Code
490 \begin_layout Plain Layout
498 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
499 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
508 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
511 \begin_layout Standard
521 自動的に\SpecialChar LaTeX
522 を実行するコマンドが,以下のようにいくつかあります.
525 \begin_layout Itemize
526 \begin_inset Flex MenuItem
529 \begin_layout Plain Layout
530 表示\SpecialChar menuseparator
539 \begin_layout Itemize
542 \begin_inset Flex MenuItem
545 \begin_layout Plain Layout
548 表示\SpecialChar menuseparator
549 更新\SpecialChar menuseparator
560 \begin_layout Standard
570 これらは,最後に\SpecialChar LaTeX
571 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
575 \begin_layout Standard
586 が編集中のファイルを\SpecialChar LaTeX
587 にかけるとき,\SpecialChar LyX
591 \begin_layout Enumerate
601 文書を\SpecialChar LaTeX
603 \begin_inset Flex Code
606 \begin_layout Plain Layout
622 \begin_inset Flex Code
625 \begin_layout Plain Layout
643 \begin_layout Enumerate
654 \begin_inset Flex Code
657 \begin_layout Plain Layout
672 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
673 を実行し,\SpecialChar LaTeX
674 ファイルをコンパイルするのに必要な他のコマンド(
675 \begin_inset Flex Code
678 \begin_layout Plain Layout
694 \begin_inset Flex Code
697 \begin_layout Plain Layout
715 \begin_layout Enumerate
728 \begin_layout Standard
749 \begin_inset Flex MenuItem
752 \begin_layout Plain Layout
755 表示\SpecialChar menuseparator
770 を使用して実行した場合には,\SpecialChar LyX
771 はこの後,DVIビューアを実行してDVIファイルを表示します.
772 \begin_inset Flex MenuItem
775 \begin_layout Plain Layout
785 表示\SpecialChar menuseparator
791 を使用した場合には,\SpecialChar LyX
795 \begin_layout Itemize
805 \begin_inset Flex Code
808 \begin_layout Plain Layout
846 \begin_layout Itemize
856 \begin_inset Flex Code
859 \begin_layout Plain Layout
867 などのPostScriptビューアを実行して,PostScript
879 \begin_layout Standard
881 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
884 \begin_layout Section
886 ファイルを\SpecialChar LyX
890 \begin_layout Standard
895 \begin_inset Flex MenuItem
898 \begin_layout Plain Layout
901 ファイル\SpecialChar menuseparator
902 インポート\SpecialChar menuseparator
917 コマンドを使用すると,\SpecialChar LaTeX
935 にインポートすることができます.このコマンドは,
945 \begin_inset Flex Code
948 \begin_layout Plain Layout
975 \begin_inset Flex Code
978 \begin_layout Plain Layout
989 \begin_inset Flex Code
992 \begin_layout Plain Layout
1000 を生成します.\SpecialChar LyX
1005 \begin_layout Plain Layout
1006 \begin_inset Flex Code
1009 \begin_layout Plain Layout
1015 は,もちろんコマンドラインから実行することもできます.
1023 \begin_layout Standard
1026 \begin_inset Flex Code
1029 \begin_layout Plain Layout
1046 は,文法的に正しい\SpecialChar LaTeX
1047 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1057 \begin_inset Flex Code
1060 \begin_layout Plain Layout
1077 は,理解不能な部分は\SpecialChar TeX
1078 コードボックスの形で残しますので,ファイルを
1088 \begin_inset Flex Code
1091 \begin_layout Plain Layout
1108 で変換したのち,\SpecialChar TeX
1109 コードボックスを探して,手動で正しく編集してください.
1112 \begin_layout Standard
1123 コードボックスがなにかご存じなければ,次節をお読みください.
1126 \begin_layout Section
1129 \begin_inset CommandInset label
1131 name "sec:LaTeXコードを挿入する"
1138 \begin_layout Standard
1149 文書にもつねに\SpecialChar TeX
1150 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1151 にできることは,つねに\SpecialChar LyX
1152 でも行うことができます.一方,\SpecialChar LyX
1153 は,すべての\SpecialChar LaTeX
1154 構成物を\SpecialChar LyX
1156 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1157 コマンドを\SpecialChar LyX
1159 \begin_inset Flex Code
1162 \begin_layout Plain Layout
1188 \begin_inset Flex MenuItem
1191 \begin_layout Plain Layout
1194 挿入\SpecialChar menuseparator
1219 \begin_inset Flex Ruby
1222 \begin_layout Plain Layout
1242 \begin_inset Argument post:1
1245 \begin_layout Plain Layout
1257 \begin_inset Flex Ruby
1260 \begin_layout Plain Layout
1271 \begin_inset Argument post:1
1274 \begin_layout Plain Layout
1303 \begin_layout Standard
1304 以下は,\SpecialChar LaTeX
1305 コマンドを\SpecialChar LyX
1306 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1309 \begin_layout LyX-Code
1313 \begin_inset Newline newline
1318 begin{minipage}{5cm}
1319 \begin_inset Newline newline
1323 \begin_inset Newline newline
1327 \begin_inset Newline newline
1331 \begin_inset Newline newline
1335 \begin_inset Newline newline
1339 \begin_inset Newline newline
1345 \begin_inset Newline newline
1349 \begin_inset Newline newline
1354 begin{minipage}{5cm}
1355 \begin_inset Newline newline
1361 \begin_inset Newline newline
1366 begin{minipage}{5cm}
1367 \begin_inset Newline newline
1372 \begin_inset Newline newline
1378 \begin_inset Newline newline
1384 \begin_inset Newline newline
1390 \begin_inset Newline newline
1398 \begin_layout LyX-Code
1402 \begin_layout Standard
1404 \begin_inset Flex Code
1407 \begin_layout Plain Layout
1414 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1415 上でご覧になっていれば,\SpecialChar TeX
1416 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1420 \begin_layout Standard
1421 \begin_inset VSpace bigskip
1428 \begin_layout Plain Layout
1435 \begin_layout Plain Layout
1439 begin{minipage}{5cm}
1442 \begin_layout Plain Layout
1444 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます.
1449 \begin_layout Plain Layout
1454 \begin_layout Plain Layout
1458 begin{minipage}{5cm}
1461 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1472 begin{minipage}{5cm}
1475 \begin_layout Plain Layout
1483 \begin_layout Plain Layout
1490 \begin_layout Plain Layout
1497 \begin_layout Plain Layout
1507 \begin_inset VSpace bigskip
1513 \begin_layout Standard
1524 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1525 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1526 \begin_inset Flex MenuItem
1529 \begin_layout Plain Layout
1539 挿入\SpecialChar menuseparator
1540 ファイル\SpecialChar menuseparator
1546 を使用する方法もあります(取り込みの型として
1547 \begin_inset Flex Code
1550 \begin_layout Plain Layout
1565 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1583 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1584 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1587 \begin_layout Standard
1597 最後に,いくつか強調しておくべきことがあります.
1600 \begin_layout Itemize
1611 は,あなたの\SpecialChar LaTeX
1633 \begin_layout Itemize
1643 車輪の再発明をしないようにご注意ください.
1646 \begin_layout Standard
1656 二番目の点に関して,\SpecialChar LyX
1657 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1658 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1659 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1660 う膨大な数の\SpecialChar LaTeX
1671 \begin_inset CommandInset href
1674 target "http://www.ctan.org/"
1688 \begin_inset CommandInset ref
1690 reference "chap:Special-features"
1697 \begin_layout Standard
1707 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1708 関連書籍を参考とするようにしてください.『
1726 』の書誌情報に多くの\SpecialChar LaTeX
1730 \begin_layout Section
1736 \begin_layout Subsection
1741 \begin_layout Standard
1751 すでに\SpecialChar LaTeX
1752 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1753 ずです.詳しくは\SpecialChar LaTeX
1754 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1755 文書の\SpecialChar LaTeX
1756 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1760 \begin_layout Standard
1771 プリアンブルは,\SpecialChar LaTeX
1790 の部分に来ます.ここでは以下のことを行います.
1793 \begin_layout Itemize
1803 文書クラス(ドキュメントクラス)の宣言.
1804 \begin_inset Newline newline
1808 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1809 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1827 』をご覧になれば,\SpecialChar LyX
1828 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1831 \begin_layout Itemize
1842 \begin_inset Newline newline
1846 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1847 提供されることに加え,文書に変更を加えることができます.例えば
1866 \begin_inset Flex Code
1869 \begin_layout Plain Layout
1877 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1880 \begin_layout Itemize
1891 \begin_inset Newline newline
1895 のカウンタと変数の中には,プリアンブルでグローバルに
1915 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1916 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1919 \begin_layout Itemize
1930 \begin_inset Flex Code
1933 \begin_layout Plain Layout
1951 \begin_inset Flex Code
1954 \begin_layout Plain Layout
1972 \begin_inset Newline newline
1975 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1976 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1994 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1995 コードがあふれている場合には便利でしょう.
1998 \begin_layout Standard
2010 \begin_inset Flex Code
2013 \begin_layout Plain Layout
2028 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2029 の生成する\SpecialChar LaTeX
2033 \begin_layout Subsection
2037 \begin_layout Standard
2049 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2050 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2051 \begin_inset Flex MenuItem
2054 \begin_layout Plain Layout
2064 文書\SpecialChar menuseparator
2071 \begin_inset Flex MenuItem
2074 \begin_layout Plain Layout
2090 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2101 \begin_inset Flex MenuItem
2104 \begin_layout Plain Layout
2121 ダイアログ内のすべてのものを,\SpecialChar LyX
2122 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2124 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2135 プリアンブルコードが正しいことを確認してください.
2148 \begin_inset Flex Code
2151 \begin_layout Plain Layout
2168 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2171 \begin_layout Subsection
2175 \begin_layout Standard
2185 以下は,プリアンブルに追加できるものとその効果を示す例です.
2188 \begin_layout Subsubsection
2192 \begin_layout Standard
2222 \begin_inset Flex Code
2225 \begin_layout Plain Layout
2245 \begin_inset Flex Code
2248 \begin_layout Plain Layout
2267 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2268 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2269 \begin_inset Flex Code
2272 \begin_layout Plain Layout
2292 \begin_inset Flex Code
2295 \begin_layout Plain Layout
2310 \begin_layout Standard
2320 \begin_inset Flex Code
2323 \begin_layout Plain Layout
2343 \begin_inset Flex Code
2346 \begin_layout Plain Layout
2365 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2366 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2367 を使用していて,シスアドがお馬鹿さんである
2369 \begin_inset Flex Code
2372 \begin_layout Plain Layout
2392 \begin_inset Flex Code
2395 \begin_layout Plain Layout
2414 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2417 \begin_layout LyX-Code
2425 \begin_layout LyX-Code
2433 \begin_layout Standard
2446 \begin_layout Subsubsection
2450 \begin_layout Standard
2460 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2461 \begin_inset Flex Code
2464 \begin_layout Plain Layout
2472 という\SpecialChar LaTeX
2473 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2474 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2478 \begin_layout Standard
2489 \begin_inset Flex Code
2492 \begin_layout Plain Layout
2500 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2503 \begin_layout LyX-Code
2509 \begin_layout LyX-Code
2515 \begin_layout LyX-Code
2521 \begin_layout LyX-Code
2527 \begin_layout LyX-Code
2533 \begin_layout LyX-Code
2539 \begin_layout LyX-Code
2545 \begin_layout Standard
2564 Averyラベルシートのストック5360
2573 番を使用する場合の設定です.これで,各宛名を
2574 \begin_inset Flex Code
2577 \begin_layout Plain Layout
2597 \begin_inset Flex Code
2600 \begin_layout Plain Layout
2619 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2620 \begin_inset Flex Code
2623 \begin_layout Plain Layout
2634 \begin_layout Standard
2644 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2645 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2648 \begin_layout Subsubsection
2652 \begin_layout Standard
2682 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2699 \begin_layout Standard
2709 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2727 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2731 \begin_layout Standard
2741 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2745 \begin_layout LyX-Code
2748 usepackage{indentfirst}
2751 \begin_layout Standard
2761 もしお使いの\SpecialChar TeX
2762 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2765 \begin_layout Subsubsection
2769 \begin_layout Standard
2779 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2789 \begin_inset CommandInset ref
2791 reference "chap:Special-features"
2804 章には,他の例や,\SpecialChar LaTeX
2808 \begin_layout Section
2810 および\SpecialChar LaTeX
2814 \begin_layout Standard
2826 を呼び出す際,\SpecialChar LyX
2828 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2829 は,\SpecialChar LaTeX
2830 の実行ログファイルを事後処理用に使います.ログファイルを分
2831 析したのち,\SpecialChar LyX
2832 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2833 ファイル中,そのエラーの発生した場所に表示を移動します
2837 \begin_layout Plain Layout
2847 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2848 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2850 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2851 ーのある場所よりも後ろでエラーが報告されるのです.
2868 \begin_layout Standard
2878 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2879 \begin_inset Flex MenuItem
2882 \begin_layout Plain Layout
2892 文書\SpecialChar menuseparator
2898 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2903 \begin_layout Itemize
2906 \begin_inset Flex Code
2909 \begin_layout Plain Layout
2927 \begin_inset Newline newline
2930 これで始まるメッセージは,\SpecialChar LaTeX
2931 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2933 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2936 \begin_layout Itemize
2939 \begin_inset Flex Code
2942 \begin_layout Plain Layout
2960 \begin_inset Newline newline
2964 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2965 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2969 \begin_layout Itemize
2979 \begin_inset Flex Code
2982 \begin_layout Plain Layout
2993 \begin_inset Newline newline
3015 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3016 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3017 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3018 \begin_inset Newline newline
3021 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3025 \begin_layout Plain Layout
3027 \begin_inset Flex MenuItem
3030 \begin_layout Plain Layout
3031 文書\SpecialChar menuseparator
3037 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3038 は,overfullの発生した行の余白に黒い四角を描画します.
3046 \begin_layout Itemize
3049 \begin_inset Flex Code
3052 \begin_layout Plain Layout
3063 \begin_inset Newline newline
3075 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3076 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3079 \begin_layout Itemize
3080 \begin_inset Flex Code
3083 \begin_layout Plain Layout
3096 \begin_inset Flex Code
3099 \begin_layout Plain Layout
3112 \begin_inset Newline newline
3124 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3127 \begin_layout Itemize
3130 \begin_inset Flex Code
3133 \begin_layout Plain Layout
3137 \begin_inset Quotes els
3141 \begin_inset Quotes ers
3159 \begin_inset Newline newline
3162 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3163 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3165 \begin_inset Flex Code
3168 \begin_layout Plain Layout
3178 コマンドも使用していないとすれば,\SpecialChar LyX
3179 が読み込もうしているパッケージに存在しないものがあるということです.
3189 \begin_inset Flex MenuItem
3192 \begin_layout Plain Layout
3193 ヘルプ\SpecialChar menuseparator
3209 を使用して,\SpecialChar LyX
3210 が認識しているパッケージの一覧を得てください.このファイルは,(
3211 \begin_inset Flex MenuItem
3214 \begin_layout Plain Layout
3224 ツール\SpecialChar menuseparator
3230 を使用して)\SpecialChar LyX
3231 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3232 \begin_inset Newline newline
3245 \begin_inset Flex Code
3248 \begin_layout Plain Layout
3267 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3270 \begin_layout Itemize
3273 \begin_inset Flex Code
3276 \begin_layout Plain Layout
3279 LaTeX Error: Unknown option
3294 \begin_inset Newline newline
3297 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3301 \begin_layout Itemize
3304 \begin_inset Flex Code
3307 \begin_layout Plain Layout
3310 Undefined control sequence
3325 \begin_inset Newline newline
3328 お使いの文書に\SpecialChar LaTeX
3329 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3330 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3333 \begin_layout Standard
3343 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3344 のメッセージです.何を言っているのかさっぱりわからないものもあ
3345 りますが,通常これらは,\SpecialChar TeX
3346 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3364 手がかりがありません.誰もわからないのです.
3367 \begin_layout Standard
3377 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3380 \begin_layout Enumerate
3390 ご自分で挿入した\SpecialChar LaTeX
3391 コードに打ち間違いがないかどうか確かめる.
3394 \begin_layout Enumerate
3404 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3407 \begin_layout Enumerate
3417 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3418 \begin_inset Flex Code
3421 \begin_layout Plain Layout
3438 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3441 \begin_layout Enumerate
3451 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3452 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3453 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3457 \begin_layout Enumerate
3467 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3468 を微調整するオプションを使用していますか.特に,手動で
3469 \begin_inset Flex Code
3472 \begin_layout Plain Layout
3476 \begin_inset space ~
3485 \begin_inset Flex Code
3488 \begin_layout Plain Layout
3506 \begin_inset Flex Code
3509 \begin_layout Plain Layout
3526 などをたくさん挿入するなど,微調整オプションを
3544 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3547 \begin_layout Enumerate
3557 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3558 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3561 \begin_layout Enumerate
3563 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3564 はかなり嫌います.可能であれば,問題が生じな
3565 いように段落を修正するのが望ましいでしょう.
3568 \begin_layout Enumerate
3578 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3579 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3580 が原因です(\SpecialChar LaTeX
3584 \begin_layout Enumerate
3594 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3605 \begin_layout Enumerate
3618 \begin_layout Enumerate
3631 \begin_layout Standard
3645 \begin_layout Enumerate
3646 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3649 \begin_layout Standard
3681 \begin_layout Chapter
3685 \begin_layout Section
3690 \begin_layout Standard
3698 文献データベース(Bib\SpecialChar TeX
3701 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3702 でサポートされている書誌情報の特別な機能について説明することとします.
3705 \begin_layout Subsection
3709 \begin_layout Standard
3710 標準のBib\SpecialChar TeX
3711 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3712 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3714 \begin_inset Flex Code
3717 \begin_layout Plain Layout
3724 \begin_inset Flex Code
3727 \begin_layout Plain Layout
3733 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3735 \begin_inset Flex Code
3738 \begin_layout Plain Layout
3744 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3745 \begin_inset Flex Code
3748 \begin_layout Plain Layout
3754 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3759 \begin_inset Flex Code
3762 \begin_layout Plain Layout
3768 パッケージの利用を考えるとよいかもしれません.
3771 \begin_layout Standard
3773 での両パッケージの取扱い方は,ほぼ同じです.
3774 \begin_inset Flex MenuItem
3777 \begin_layout Plain Layout
3778 文書\SpecialChar menuseparator
3785 \begin_inset Flex MenuItem
3788 \begin_layout Plain Layout
3795 \begin_inset Flex MenuItem
3798 \begin_layout Plain Layout
3805 \begin_inset Flex MenuItem
3808 \begin_layout Plain Layout
3814 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3815 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3816 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3817 \begin_inset Flex Code
3820 \begin_layout Plain Layout
3826 に至っては,対話的なスタイルファイルビルダーさえ存在します
3830 \begin_layout Plain Layout
3831 \begin_inset Flex URL
3834 \begin_layout Plain Layout
3836 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3849 \begin_layout Subsection
3853 \begin_layout Standard
3854 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
3855 でさえあります.残念ながら,Bib\SpecialChar TeX
3856 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
3857 パッケージの助けを借りると,Bib\SpecialChar TeX
3858 をこのような必要性を満たすように拡張するこ
3862 \begin_layout Standard
3865 \begin_inset Flex Code
3868 \begin_layout Plain Layout
3878 \begin_layout Plain Layout
3879 \begin_inset Flex URL
3882 \begin_layout Plain Layout
3884 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3894 をそのままでサポートします.このパッケージの長所は,(
3895 \begin_inset Flex Code
3898 \begin_layout Plain Layout
3904 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
3905 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
3906 \begin_inset Flex Code
3909 \begin_layout Plain Layout
3916 \begin_inset Flex Code
3919 \begin_layout Plain Layout
3928 \begin_layout Standard
3929 \begin_inset Flex MenuItem
3932 \begin_layout Plain Layout
3933 文書\SpecialChar menuseparator
3940 \begin_inset Flex MenuItem
3943 \begin_layout Plain Layout
3950 \begin_inset Flex MenuItem
3953 \begin_layout Plain Layout
3959 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
3961 \begin_inset Flex Code
3964 \begin_layout Plain Layout
3971 \begin_inset Flex Code
3974 \begin_layout Plain Layout
3980 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
3981 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
3982 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
3984 \begin_inset Flex Code
3987 \begin_layout Plain Layout
3993 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
3996 \begin_layout Subsection
4000 \begin_layout Standard
4001 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4002 自身ではサポートされていません.しかしながら,もし若干の
4003 \begin_inset Flex Code
4006 \begin_layout Plain Layout
4014 \begin_inset CommandInset ref
4016 reference "sec:LaTeXコードを挿入する"
4020 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4021 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4022 \begin_inset Flex Code
4025 \begin_layout Plain Layout
4031 パッケージが,この課題を解決する簡単な方法を提供します
4035 \begin_layout Plain Layout
4037 \begin_inset Flex Code
4040 \begin_layout Plain Layout
4047 \begin_inset Flex Code
4050 \begin_layout Plain Layout
4064 \begin_layout Standard
4066 \begin_inset Flex MenuItem
4069 \begin_layout Plain Layout
4070 文書\SpecialChar menuseparator
4077 \begin_inset Flex MenuItem
4080 \begin_layout Plain Layout
4087 \begin_inset Flex MenuItem
4090 \begin_layout Plain Layout
4096 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4098 \begin_inset Flex Code
4101 \begin_layout Plain Layout
4110 \begin_inset Flex Code
4113 \begin_layout Plain Layout
4121 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4122 コードとして挿入する必要があります).書誌情報には,現在位置の
4123 \begin_inset Flex Code
4126 \begin_layout Plain Layout
4132 において引用されたすべての参照が含まれることになります.
4136 この方法を用いる場合には,すべての参照はいずれかの
4137 \begin_inset Flex Code
4140 \begin_layout Plain Layout
4147 \begin_inset Flex Code
4150 \begin_layout Plain Layout
4159 \begin_layout Section
4163 \begin_layout Subsection
4167 \begin_layout Standard
4168 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4169 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4170 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4171 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4175 \begin_layout Plain Layout
4180 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4186 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4187 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4188 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4189 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4190 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4192 \begin_inset Flex Code
4195 \begin_layout Plain Layout
4204 \begin_inset Flex Code
4207 \begin_layout Plain Layout
4215 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4218 \begin_layout Standard
4222 挿入\SpecialChar menuseparator
4223 ファイル\SpecialChar menuseparator
4226 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4227 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4230 \begin_layout Standard
4231 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4232 「input」の違いは,正確には\SpecialChar LaTeX
4233 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
4234 れるのに対し,「input」されたファイルは現在のページから組版される点です.
4237 \begin_layout Standard
4238 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
4239 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
4243 \begin_layout Standard
4244 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4245 \begin_inset Flex Code
4248 \begin_layout Plain Layout
4254 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4255 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4259 \begin_inset Flex MenuItem
4262 \begin_layout Plain Layout
4272 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4275 \begin_layout Subsection
4279 \begin_layout Standard
4280 \begin_inset Box Shadowbox
4290 height_special "totalheight"
4295 backgroundcolor "none"
4298 \begin_layout Plain Layout
4299 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4307 \begin_layout Standard
4308 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4309 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4313 \begin_layout Subsection
4317 \begin_layout Standard
4318 \begin_inset Box Shadowbox
4328 height_special "totalheight"
4333 backgroundcolor "none"
4336 \begin_layout Plain Layout
4337 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
4345 \begin_layout Standard
4346 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
4347 は.bibファイルを見つけることができ,書誌情報
4348 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
4351 \begin_layout Standard
4352 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
4353 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
4354 クルードする\SpecialChar LaTeX
4356 \begin_inset Flex Code
4359 \begin_layout Plain Layout
4365 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
4368 \begin_layout LyX-Code
4374 \begin_layout LyX-Code
4377 includecomment{comment}
4380 \begin_layout Standard
4381 \begin_inset Flex URL
4384 \begin_layout Plain Layout
4386 http://wiki.lyx.org/FAQ/Unsorted#toc31
4394 \begin_layout Section
4399 \begin_layout Standard
4400 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4401 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4403 2.0には,この過程を自動化するPythonスクリプト(
4404 \begin_inset Flex Code
4407 \begin_layout Plain Layout
4414 \begin_inset Flex Code
4417 \begin_layout Plain Layout
4424 \begin_inset Flex Code
4427 \begin_layout Plain Layout
4433 pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4434 \begin_inset Flex Code
4437 \begin_layout Plain Layout
4444 \begin_inset Flex Code
4447 \begin_layout Plain Layout
4453 ファイル形式が優先され,Windowsでは
4454 \begin_inset Flex Code
4457 \begin_layout Plain Layout
4466 \begin_layout Standard
4468 の環境構成時には,「\SpecialChar LyX
4469 書庫」を書き出すことができるようにスクリプトが準備され,
4470 \begin_inset Flex MenuItem
4473 \begin_layout Plain Layout
4474 ファイル\SpecialChar menuseparator
4483 \begin_layout Standard
4484 \begin_inset Flex MenuItem
4487 \begin_layout Plain Layout
4488 ツール\SpecialChar menuseparator
4489 設定\SpecialChar menuseparator
4490 ファイル処理\SpecialChar menuseparator
4497 \begin_inset Flex MenuItem
4500 \begin_layout Plain Layout
4502 \SpecialChar menuseparator
4510 \begin_inset Flex Code
4513 \begin_layout Plain Layout
4520 \begin_inset Flex Code
4523 \begin_layout Plain Layout
4529 スイッチを加えることで,プラットホームとは独立に,
4530 \begin_inset Flex Code
4533 \begin_layout Plain Layout
4540 \begin_inset Flex Code
4543 \begin_layout Plain Layout
4549 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
4552 \begin_layout Section
4556 \begin_layout Standard
4557 既定のページレイアウトは,どちらかといえば素っ気ないものです.
4558 \begin_inset Flex Code
4561 \begin_layout Plain Layout
4567 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
4572 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
4574 る必要のある\SpecialChar LaTeX
4578 \begin_layout Standard
4579 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
4580 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4584 \begin_inset Flex Code
4587 \begin_layout Plain Layout
4602 \begin_inset Flex Code
4605 \begin_layout Plain Layout
4620 \begin_inset Flex Code
4623 \begin_layout Plain Layout
4636 \begin_inset Flex Code
4639 \begin_layout Plain Layout
4647 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
4650 \begin_layout Standard
4658 \begin_layout Standard
4659 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
4663 \begin_layout Standard
4669 \begin_inset Newline newline
4677 \begin_layout Standard
4678 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
4679 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
4682 \begin_layout Standard
4692 \begin_layout Standard
4700 \begin_layout Standard
4710 \begin_layout Standard
4718 \begin_layout Standard
4726 \begin_layout Standard
4736 \begin_layout Standard
4740 \begin_inset Flex Code
4743 \begin_layout Plain Layout
4760 \begin_inset Flex Code
4763 \begin_layout Plain Layout
4775 は,それぞれ\SpecialChar LaTeX
4776 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
4777 \begin_inset Flex Code
4780 \begin_layout Plain Layout
4795 \begin_layout Standard
4796 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
4797 フッタ罫線は0ptです.太さを変更するには,
4800 \begin_inset Flex Code
4803 \begin_layout Plain Layout
4810 headrulewidth}{0.4pt}
4820 \begin_inset Flex Code
4823 \begin_layout Plain Layout
4830 footrulewidth}{0.4pt}
4840 \begin_layout Standard
4841 \begin_inset Flex Code
4844 \begin_layout Plain Layout
4849 thispagestyle{empty}
4855 \begin_inset Flex Code
4858 \begin_layout Plain Layout
4863 thispagestyle{plain}
4869 \begin_inset Flex Code
4872 \begin_layout Plain Layout
4877 thispagestyle{fancy}
4882 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
4884 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
4885 (plain)になるように設定されているのです.
4888 \begin_layout Standard
4889 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
4890 \begin_inset Flex Code
4893 \begin_layout Plain Layout
4901 パッケージの取扱説明書をご参照ください(
4902 \begin_inset Flex Code
4905 \begin_layout Plain Layout
4914 \begin_layout Standard
4915 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
4918 \begin_layout Standard
4927 includegraphics{logo.eps}}}
4930 \begin_layout Standard
4932 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
4933 \begin_inset Newline newline
4937 \begin_inset Flex Code
4940 \begin_layout Plain Layout
4946 usepackage{graphics}
4951 をプリアンブルに宣言する必要があります).
4954 \begin_layout Section
4956 \begin_inset CommandInset label
4965 \begin_layout Standard
4971 \begin_layout Subsection
4975 \begin_layout Standard
4977 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
4978 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
4982 \begin_layout Plain Layout
4983 正確には可能ですが,手動で行う必要があります.
4991 \begin_layout Subsection
4995 \begin_layout Standard
4997 \begin_inset Flex MenuItem
5000 \begin_layout Plain Layout
5001 文書\SpecialChar menuseparator
5008 \begin_inset Flex MenuItem
5011 \begin_layout Plain Layout
5020 \begin_layout Standard
5021 このダイアログは,ブリット形の一覧表を提示します.
5022 \begin_inset Flex MenuItem
5025 \begin_layout Plain Layout
5031 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5032 \begin_inset Flex MenuItem
5035 \begin_layout Plain Layout
5041 パネルは,変更したい階層を選択するものです.
5042 \begin_inset Flex MenuItem
5045 \begin_layout Plain Layout
5051 では,指定したい\SpecialChar LaTeX
5052 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5056 \begin_layout Standard
5057 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5061 \begin_layout Standard
5063 \begin_inset Tabular
5064 <lyxtabular version="3" rows="7" columns="2">
5065 <features tabularvalignment="middle">
5066 <column alignment="center" valignment="top" width="0pt">
5067 <column alignment="center" valignment="top" width="0pt">
5069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5072 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5081 \begin_layout Plain Layout
5098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5112 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5134 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5172 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5190 \begin_layout Plain Layout
5207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5210 \begin_layout Plain Layout
5225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5228 \begin_layout Plain Layout
5245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5248 \begin_layout Plain Layout
5263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5266 \begin_layout Plain Layout
5283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5286 \begin_layout Plain Layout
5301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5304 \begin_layout Plain Layout
5327 \begin_layout Standard
5329 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5331 パッケージが導入されていない可能性が大です
5335 \begin_layout Plain Layout
5337 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5345 \begin_layout Subsection
5349 \begin_layout Standard
5350 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5351 上には反映されませんが,文書の表示を行えば確認されます.
5354 \begin_layout Standard
5355 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5359 \begin_layout Plain Layout
5364 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5365 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5366 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5369 \begin_layout Plain Layout
5373 \begin_layout Plain Layout
5389 \begin_layout Plain Layout
5393 \begin_layout Plain Layout
5415 \begin_layout Itemize
5416 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5418 \begin_inset Flex Code
5421 \begin_layout Plain Layout
5431 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5432 更するために,以下の\SpecialChar LaTeX
5437 \begin_layout LyX-Code
5449 \begin_layout LyX-Code
5468 \begin_layout Itemize
5470 \begin_inset Flex Code
5473 \begin_layout Plain Layout
5481 コマンドの一部にローマ数字で指定されていることに注意してください.
5484 \begin_layout Itemize
5488 \begin_layout Plain Layout
5501 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
5502 \begin_inset Flex Code
5505 \begin_layout Plain Layout
5512 として挿入してください.たとえば,この項目の行頭には
5515 \begin_inset Flex Code
5518 \begin_layout Plain Layout
5537 \begin_layout Plain Layout
5541 \begin_layout Plain Layout
5557 \begin_layout Plain Layout
5558 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
5561 \begin_layout LyX-Code
5578 \begin_layout Chapter
5583 \begin_layout Standard
5585 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
5586 は,常に外部変換子を用いることで実現されていました
5590 \begin_layout Plain Layout
5592 で外部変換子を使うことについての詳細は,取扱説明書『
5605 .これらは2つのグループに大別できます.1つは,
5606 \begin_inset Flex Code
5609 \begin_layout Plain Layout
5616 \begin_inset Flex Code
5619 \begin_layout Plain Layout
5626 \begin_inset Flex Code
5629 \begin_layout Plain Layout
5635 のように,\SpecialChar LaTeX
5636 を中間形式として用い,その\SpecialChar LaTeX
5637 を生成するのに\SpecialChar LyX
5639 \begin_inset Flex Code
5642 \begin_layout Plain Layout
5649 のように,直接\SpecialChar LyX
5650 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
5653 \begin_layout Standard
5655 ベースの変換子は,原則として,\SpecialChar LaTeX
5656 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
5658 たのか,\SpecialChar TeX
5659 コードで書かれたのかについては気にしません.これらの変換子は,
5660 \begin_inset Flex Code
5663 \begin_layout Plain Layout
5669 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
5671 \begin_inset Flex Code
5674 \begin_layout Plain Layout
5680 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
5681 は解析の非常に難しい言語であり—\SpecialChar TeX
5682 自身だけが\SpecialChar TeX
5683 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
5685 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
5689 』は,他の変換子では書き出しができるのに,
5690 \begin_inset Flex Code
5693 \begin_layout Plain Layout
5699 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
5700 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
5701 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
5702 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
5705 \begin_layout Standard
5707 \begin_inset Flex Code
5710 \begin_layout Plain Layout
5718 \begin_inset CommandInset href
5720 name "http://elyxer.nongnu.org/"
5721 target "http://elyxer.nongnu.org/"
5725 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
5726 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
5727 \begin_inset Flex Code
5730 \begin_layout Plain Layout
5736 よりも質が落ちます.これはHTMLの限界を示しています
5740 \begin_layout Plain Layout
5742 \begin_inset Flex Code
5745 \begin_layout Plain Layout
5752 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
5758 .さらに重要なことは(少なくとも第1.1.1版においては),
5759 \begin_inset Flex Code
5762 \begin_layout Plain Layout
5769 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
5771 \begin_inset Flex Code
5774 \begin_layout Plain Layout
5781 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
5782 開発陣は別の方法を採ることとし,\SpecialChar LyX
5785 ことができるのと同様に,\SpecialChar LyX
5786 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
5789 \begin_layout Standard
5790 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
5794 \begin_layout Plain Layout
5797 \begin_inset CommandInset href
5800 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5805 \begin_inset Flex Code
5808 \begin_layout Plain Layout
5809 development/HTML.notes
5814 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
5815 \begin_inset CommandInset href
5818 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"
5822 にあるXHTML関連バグ一覧も参照のこと.
5827 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
5830 \begin_layout Standard
5831 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
5832 の一部となっているため,\SpecialChar LyX
5833 が出力する文書について\SpecialChar LyX
5834 が関知しているところのものは,すべて知り得るというところから来ていま
5839 \begin_layout Plain Layout
5840 他には,これらのルーチンが\SpecialChar LyX
5841 内部にあるため,\SpecialChar LyX
5842 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
5847 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
5848 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
5849 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
5850 1」と出力されたり,「Kapitel 1」と出力されたりするのです.
5853 \begin_layout Standard
5854 汎く一般的に,出力ルーチンは,\SpecialChar LyX
5855 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
5856 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
5857 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5861 生成します.もし節見出しが,\SpecialChar LyX
5862 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
5863 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
5865 式とを区別しません.どちらの場合も,\SpecialChar LyX
5866 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
5870 \begin_layout Standard
5871 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
5872 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
5880 \begin_layout Standard
5881 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
5884 \begin_layout Section
5888 \begin_layout Standard
5890 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
5893 \begin_layout Itemize
5895 \begin_inset Newline newline
5898 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
5899 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
5901 \begin_inset Newline newline
5905 \begin_inset Flex Code
5908 \begin_layout Plain Layout
5914 パッケージを使用していたり,\SpecialChar TeX
5915 コードを使用しているなどで,もし\SpecialChar LyX
5916 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
5921 \begin_layout Itemize
5923 \begin_inset Newline newline
5927 \begin_inset Flex Code
5930 \begin_layout Plain Layout
5936 は,数式をCSSで装飾したHTMLとして出力します
5940 \begin_layout Plain Layout
5943 \begin_inset Flex Code
5946 \begin_layout Plain Layout
5952 からのHTML出力のために,CSSの一部を拝借しています.
5957 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
5958 \begin_inset Flex Code
5961 \begin_layout Plain Layout
5967 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
5968 \begin_inset Newline newline
5972 \begin_inset Flex Code
5975 \begin_layout Plain Layout
5981 パッケージを使用していたり,\SpecialChar TeX
5982 コードを使用しているなどで,もし\SpecialChar LyX
5983 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
5988 \begin_layout Itemize
5990 \begin_inset Newline newline
5994 \begin_inset Flex Code
5997 \begin_layout Plain Layout
6003 のように,\SpecialChar LyX
6004 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6008 \begin_layout Plain Layout
6009 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6018 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6019 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6020 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
6021 \begin_inset CommandInset href
6024 target "http://www.lyx.org/trac/ticket/6894"
6029 \begin_inset Newline newline
6033 \begin_inset Flex MenuItem
6036 \begin_layout Plain Layout
6037 文書\SpecialChar menuseparator
6038 設定\SpecialChar menuseparator
6044 の「数式画像の伸縮」パラメータを変更することで制御できます
6048 \begin_layout Plain Layout
6049 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6055 \begin_inset Newline newline
6059 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6060 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6064 \begin_layout Itemize
6067 \begin_inset Newline newline
6070 最後に,\SpecialChar LyX
6071 は,数式を\SpecialChar LaTeX
6072 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6075 \begin_inset CommandInset href
6078 target "http://www.math.union.edu/~dpvc/jsMath/"
6082 のようなツールとともに使用することもできます.\SpecialChar LyX
6083 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6085 \begin_inset Flex Code
6088 \begin_layout Plain Layout
6095 \begin_inset Flex Code
6098 \begin_layout Plain Layout
6105 \begin_inset Flex Code
6108 \begin_layout Plain Layout
6117 \begin_layout Standard
6119 \begin_inset Flex MenuItem
6122 \begin_layout Plain Layout
6123 文書\SpecialChar menuseparator
6124 設定\SpecialChar menuseparator
6130 で選択しなくてはなりません.既定では,\SpecialChar LyX
6131 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6134 \begin_layout Standard
6135 最後に,\SpecialChar LyX
6136 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6140 \begin_layout Plain Layout
6141 その他にも,\SpecialChar LyX
6142 は,差込枠に\SpecialChar TeX
6143 コードが含まれていると画像出力に回帰するので,数式中に
6144 \begin_inset Formula $a=b\relax$
6147 のような無害な\SpecialChar TeX
6148 コードを挿入することによって,画像出力を強制することができます.
6156 \begin_layout Section
6160 \begin_layout Standard
6161 XHTML出力は,書誌情報と引用を完全にサポートしています.
6164 \begin_layout Standard
6165 引用ラベルは,\SpecialChar LyX
6166 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6167 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6168 使用している場合には,\SpecialChar LyX
6169 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6170 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6171 は,Bib\SpecialChar TeX
6172 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6173 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6176 \begin_layout Standard
6177 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6178 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6182 \begin_layout Standard
6183 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6188 \begin_inset Quotes eld
6191 Context and Logical Form
6192 \begin_inset Quotes erd
6197 Language in Context: Selected Essays
6199 (Oxford: Oxford University Press, 2007), pp.
6205 \begin_inset Quotes eld
6208 Semantics in Context
6209 \begin_inset Quotes erd
6214 Language in Context: Selected Essays
6216 (Oxford: Oxford University Press, 2007), pp.
6220 \begin_layout Standard
6221 これは,遠くないうちに修正されるでしょう.
6224 \begin_layout Standard
6225 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6226 は同じ情報を繰り返し出力してしまいます.
6229 \begin_layout Section
6233 \begin_layout Standard
6235 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6238 \begin_layout Standard
6243 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6247 \begin_layout Plain Layout
6248 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6249 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6250 で入力しなくてはならないようなものをそのまま入力しているのです.
6255 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6258 \begin_layout Itemize
6259 索引項目のグループ化(下層項目): \SpecialChar LyX
6260 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6261 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6264 \begin_layout Itemize
6265 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6269 \begin_layout Itemize
6270 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6271 が「|see\SpecialChar ldots
6272 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6276 \begin_layout Itemize
6277 索引項目の整序: \SpecialChar LyX
6278 は整序順の変更をサポートします.\SpecialChar LyX
6279 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6280 出します.現在のところ,\SpecialChar LyX
6281 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6284 \begin_layout Itemize
6285 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6286 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6287 うな文法はサポートされません.\SpecialChar LyX
6288 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6291 \begin_layout Itemize
6292 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6293 を印字しますので,その索引は必ず置くようにしてください.
6296 \begin_layout Section
6300 \begin_layout Standard
6301 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6304 \begin_layout Chapter
6307 \begin_inset CommandInset label
6316 \begin_layout Section
6320 \begin_layout Standard
6322 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6323 と通信したり,\SpecialChar LyX
6324 コマンドを実行させたり,\SpecialChar LyX
6325 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6326 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6327 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6331 \begin_layout Section
6336 \begin_layout Standard
6338 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6339 \begin_inset Flex Code
6342 \begin_layout Plain Layout
6348 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6353 \begin_inset Flex Code
6356 \begin_layout Plain Layout
6368 に特別なオブジェクトとして置かれます),「
6369 \begin_inset Flex Code
6372 \begin_layout Plain Layout
6379 \begin_inset Flex Code
6382 \begin_layout Plain Layout
6388 」という名前がついています.外部プログラムは,
6389 \begin_inset Flex Code
6392 \begin_layout Plain Layout
6399 \begin_inset Flex Code
6402 \begin_layout Plain Layout
6409 \begin_inset Flex MenuItem
6412 \begin_layout Plain Layout
6413 ツール\SpecialChar menuseparator
6420 \begin_inset Flex Code
6423 \begin_layout Plain Layout
6424 /home/myhome/lyxpipe
6430 \begin_inset Flex Code
6433 \begin_layout Plain Layout
6447 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6448 \begin_inset Flex Code
6451 \begin_layout Plain Layout
6469 なども使用できます).サーバーを開始するためには,これを
6476 \begin_layout Standard
6479 \begin_inset Flex Code
6482 \begin_layout Plain Layout
6489 \begin_inset Flex Code
6492 \begin_layout Plain Layout
6498 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6500 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6501 らかの理由で,\SpecialChar LyX
6502 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6503 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6504 プを削除したのちに,\SpecialChar LyX
6505 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6509 \begin_layout Standard
6510 サーバーを使用する\SpecialChar LyX
6511 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6512 \begin_inset Flex Code
6515 \begin_layout Plain Layout
6521 ファイルを使用させるなど,別々の設定を使用する必要があります.
6524 \begin_layout Standard
6525 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6526 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6527 \begin_inset Flex Code
6530 \begin_layout Plain Layout
6539 \begin_layout Standard
6540 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
6541 \begin_inset Newline newline
6545 \begin_inset Flex Code
6548 \begin_layout Plain Layout
6549 development/lyxserver/server_monitor.cpp
6557 \begin_layout Standard
6559 \begin_inset Flex Code
6562 \begin_layout Plain Layout
6563 src/client/lyxclient
6568 にあるコマンドラインベースのクライアントがあります.
6571 \begin_layout Section
6575 \begin_layout Standard
6577 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
6594 \begin_layout Description
6595 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
6597 る際,クライアント名をエコーするときだけです.
6600 \begin_layout Description
6601 関数 は,\SpecialChar LyX
6602 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
6605 \begin_layout Description
6606 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
6609 \begin_layout Standard
6628 \begin_layout Standard
6637 は,コマンド要求からそのままエコーされますが,
6641 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
6642 の内部状態に関する情報を返しますが,空のデータ応答
6643 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
6646 \begin_layout Standard
6647 エラーが発生した場合の\SpecialChar LyX
6665 \begin_layout Standard
6670 には,なぜコマンドが失敗したかの説明が入っているはずです.
6673 \begin_layout Standard
6677 \begin_layout LyX-Code
6678 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6679 \begin_inset Newline newline
6682 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6683 \begin_inset Newline newline
6686 read a <~/.lyxpipe.out
6687 \begin_inset Newline newline
6693 \begin_layout Section
6697 \begin_layout Standard
6699 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
6700 \begin_inset Flex Ruby
6703 \begin_layout Plain Layout
6705 \begin_inset Argument post:1
6708 \begin_layout Plain Layout
6719 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
6720 はこの通知を行います.\SpecialChar LyX
6725 \begin_inset Flex Code
6728 \begin_layout Plain Layout
6739 \begin_layout Standard
6744 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
6747 \begin_layout Standard
6748 この機構は,\SpecialChar LyX
6749 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
6750 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
6751 コマンドを発行する\SpecialChar LyX
6756 \begin_layout Section
6761 \begin_layout Standard
6763 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
6776 \begin_layout Standard
6781 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
6782 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
6784 とをクライアントに伝えるのには,\SpecialChar LyX
6788 \begin_layout Section
6792 \begin_layout Standard
6797 \begin_layout Plain Layout
6798 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
6802 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
6807 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
6808 特定の場所をクリックすることによって,\SpecialChar LyX
6809 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
6815 )を使用するか,\SpecialChar LyX
6816 が作業ディレクトリに生成するUNIXドメインソケット(
6821 \begin_inset Flex Code
6824 \begin_layout Plain Layout
6830 プログラムが\SpecialChar LyX
6831 と通信するのに使用している方法です)ことで,\SpecialChar LyX
6832 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
6834 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
6835 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
6836 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
6837 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
6840 \begin_layout Subsection
6841 \begin_inset CommandInset label
6850 \begin_layout Standard
6851 \begin_inset Flex MenuItem
6854 \begin_layout Plain Layout
6855 文書\SpecialChar menuseparator
6856 設定\SpecialChar menuseparator
6863 \begin_inset Flex MenuItem
6866 \begin_layout Plain Layout
6872 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
6873 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
6874 は,自動的に,必要なSync\SpecialChar TeX
6875 マクロ(PDFの場合)や,srcltxパッケー
6876 ジ(DVIの場合)を挿入してくれます.このオプションは,
6877 \begin_inset Flex MenuItem
6880 \begin_layout Plain Layout
6886 ツールバーからも容易にアクセスすることができます.
6889 \begin_layout Standard
6890 もし,これとは別の設定が必要な場合には,
6891 \begin_inset Flex MenuItem
6894 \begin_layout Plain Layout
6895 文書\SpecialChar menuseparator
6896 設定\SpecialChar menuseparator
6897 出力\SpecialChar menuseparator
6903 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
6906 \begin_layout Standard
6908 \begin_inset Flex Code
6911 \begin_layout Plain Layout
6919 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
6920 \begin_inset Flex Code
6923 \begin_layout Plain Layout
6934 \begin_layout Standard
6936 \begin_inset Flex Code
6939 \begin_layout Plain Layout
6946 \begin_inset Flex Code
6949 \begin_layout Plain Layout
6955 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
6956 \begin_inset Flex Code
6959 \begin_layout Plain Layout
6966 \begin_inset Flex Code
6969 \begin_layout Plain Layout
6975 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
6978 \begin_layout Standard
6979 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
6980 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
6981 \begin_inset CommandInset ref
6983 reference "subsec:特定のビューアを設定して使うには"
6990 \begin_layout Subsection
6994 \begin_layout Standard
6996 は,遡及検索のために複数の方法を提供しています.ある方法は
6997 \begin_inset Flex Code
7000 \begin_layout Plain Layout
7006 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7007 頒布版が既に特定の方法を提供しているか(組み込みによ
7008 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7011 \begin_layout Subsubsection*
7012 src-special経由のDVI組み込み検索(DVIのみ)
7015 \begin_layout Standard
7016 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7017 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7020 \begin_inset Flex MenuItem
7023 \begin_layout Plain Layout
7024 設定\SpecialChar menuseparator
7025 ファイル処理\SpecialChar menuseparator
7032 \begin_inset Flex MenuItem
7035 \begin_layout Plain Layout
7042 \begin_inset Flex MenuItem
7045 \begin_layout Plain Layout
7046 LaTeX (plain)->DraftDVI
7052 \begin_inset Flex Code
7055 \begin_layout Plain Layout
7056 latex -src-specials $$i
7061 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7062 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7065 \begin_layout Subsubsection*
7066 外部パッケージ(PDFSyncおよびsrcltx)
7069 \begin_layout Standard
7078 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7079 プリアンブルで以下のようにパッケージを読み込んで
7083 \begin_layout Itemize
7085 \begin_inset Flex Code
7088 \begin_layout Plain Layout
7099 \begin_layout Itemize
7101 \begin_inset Flex Code
7104 \begin_layout Plain Layout
7107 usepackage[active]{srcltx}
7115 \begin_layout Standard
7116 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7119 \begin_layout LyX-Code
7123 \begin_inset Newline newline
7129 \begin_inset Newline newline
7135 \begin_inset Newline newline
7141 \begin_inset Newline newline
7146 usepackage[active]{srcltx}
7147 \begin_inset Newline newline
7155 \begin_layout Standard
7156 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7159 \begin_layout Standard
7160 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7164 \begin_layout Subsubsection*
7165 Sync\SpecialChar TeX
7166 を使った組み込み遡及検索(DVIおよびPDF)
7169 \begin_layout Standard
7170 \begin_inset Flex Code
7173 \begin_layout Plain Layout
7179 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7181 Sync\SpecialChar TeX
7184 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7185 るためには,少なくとも\SpecialChar TeX
7186 Live 2008か最近のMik\SpecialChar TeX
7187 頒布版が必要です.また,既にSync\SpecialChar TeX
7188 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7189 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
7192 \begin_layout Standard
7193 DVI出力でSync\SpecialChar TeX
7195 \begin_inset Flex MenuItem
7198 \begin_layout Plain Layout
7199 設定\SpecialChar menuseparator
7200 ファイル処理\SpecialChar menuseparator
7207 \begin_inset Flex MenuItem
7210 \begin_layout Plain Layout
7217 \begin_inset Flex MenuItem
7220 \begin_layout Plain Layout
7221 LaTeX (plain)->DraftDVI
7227 \begin_inset Flex Code
7230 \begin_layout Plain Layout
7231 latex -synctex=1 $$i
7237 \begin_inset Flex MenuItem
7240 \begin_layout Plain Layout
7241 LaTeX (pdflatex)->PDF (pdflatex)
7247 \begin_inset Flex Code
7250 \begin_layout Plain Layout
7251 pdflatex -synctex=1 $$i
7256 に変更してください.また,ビューアをSync\SpecialChar TeX
7257 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
7261 \begin_layout Plain Layout
7262 \begin_inset Flex Code
7265 \begin_layout Plain Layout
7271 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7272 \begin_inset Flex Code
7275 \begin_layout Plain Layout
7289 \begin_layout Subsection
7291 \begin_inset CommandInset label
7293 name "subsec:特定のビューアを設定して使うには"
7300 \begin_layout Subsubsection*
7304 \begin_layout Standard
7307 \begin_inset Flex Code
7310 \begin_layout Plain Layout
7316 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7317 \begin_inset Flex Code
7320 \begin_layout Plain Layout
7326 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7327 ,Mac OS X上ではAlt-クリックで始動します).
7330 \begin_layout Standard
7331 しかし,何らかの理由で,\SpecialChar LyX
7332 と通信するのにソケットではなく命名パイプを使用したい場合には,
7333 \begin_inset Flex MenuItem
7336 \begin_layout Plain Layout
7337 設定\SpecialChar menuseparator
7338 ファイル処理\SpecialChar menuseparator
7345 \begin_inset Flex Code
7348 \begin_layout Plain Layout
7349 xdvi -editor "lyxeditor.sh %f %l"
7355 \begin_inset Flex Code
7358 \begin_layout Plain Layout
7364 は適切なスクリプト名)に変更してください
7368 \begin_layout Plain Layout
7370 \begin_inset Flex Code
7373 \begin_layout Plain Layout
7374 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7387 \begin_layout LyX-Code
7389 \begin_inset Newline newline
7392 LYXPIPE="/path/to/lyxpipe"
7393 \begin_inset Newline newline
7396 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7397 \begin_inset Newline newline
7400 echo "$COMMAND" > "${LYXPIPE}".in || exit
7401 \begin_inset Newline newline
7404 read TMP < "${LYXPIPE}".out || exit
7407 \begin_layout Standard
7409 \begin_inset Flex Code
7412 \begin_layout Plain Layout
7419 \begin_inset Flex MenuItem
7422 \begin_layout Plain Layout
7423 設定\SpecialChar menuseparator
7429 で指定したLyXServerパイプのパスを指定してください.
7433 \begin_layout Plain Layout
7435 \begin_inset Flex Code
7438 \begin_layout Plain Layout
7449 \begin_inset Flex Code
7452 \begin_layout Plain Layout
7466 \begin_layout Subsubsection*
7470 \begin_layout Standard
7471 \begin_inset Flex Code
7474 \begin_layout Plain Layout
7475 /Applications/MacDviX_Folder/calleditor.script
7483 \begin_layout LyX-Code
7484 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7485 \begin_inset Newline newline
7491 \begin_layout Standard
7492 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7493 を導入した場合には,それに従って上記の行を修正してください.
7496 \begin_layout Standard
7497 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7500 \begin_layout Subsubsection*
7504 \begin_layout Standard
7505 \begin_inset Flex MenuItem
7508 \begin_layout Plain Layout
7509 設定\SpecialChar menuseparator
7510 ファイル処理\SpecialChar menuseparator
7511 ファイル書式\SpecialChar menuseparator
7518 \begin_inset Flex Code
7521 \begin_layout Plain Layout
7522 open -a Skim.app $$i
7528 \begin_inset Flex MenuItem
7531 \begin_layout Plain Layout
7532 Skim\SpecialChar menuseparator
7533 設定\SpecialChar menuseparator
7542 \begin_layout Standard
7543 遡及検索は,COMMAND-SHIFT-クリックで始動します.
7546 \begin_layout Subsubsection*
7550 \begin_layout Standard
7551 \begin_inset Flex MenuItem
7554 \begin_layout Plain Layout
7555 設定\SpecialChar menuseparator
7556 Okularを設定\SpecialChar ldots
7557 \SpecialChar menuseparator
7563 で「カスタムテキストエディタ」を選択し,コマンドに
7564 \begin_inset Flex Code
7567 \begin_layout Plain Layout
7576 \begin_layout Standard
7577 遡及検索は,SHIFT-クリックで始動します.
7580 \begin_layout Subsubsection*
7584 \begin_layout Standard
7585 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
7587 \begin_inset Flex MenuItem
7590 \begin_layout Plain Layout
7591 Edit\SpecialChar menuseparator
7592 Settings\SpecialChar menuseparator
7598 を開いて「Source editor」項目の入力フィールドをクリックし,
7599 \begin_inset Flex Code
7602 \begin_layout Plain Layout
7611 \begin_layout Standard
7612 遡及検索は,ダブルクリックで始動します.
7615 \begin_layout Subsubsection*
7619 \begin_layout Standard
7621 \begin_inset Flex MenuItem
7624 \begin_layout Plain Layout
7625 View\SpecialChar menuseparator
7631 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7632 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7634 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7635 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7636 \begin_inset Flex Code
7639 \begin_layout Plain Layout
7645 (以下参照)のあるディレクトリを見つけます.
7646 \begin_inset Flex Code
7649 \begin_layout Plain Layout
7656 \begin_inset Flex Code
7659 \begin_layout Plain Layout
7666 \begin_inset Flex Code
7669 \begin_layout Plain Layout
7679 を通じて\SpecialChar LyX
7680 と通信するためのラッパとして使用され,以下のようになっています.
7683 \begin_layout LyX-Code
7685 \begin_inset Newline newline
7688 echo LYXCMD:revdvi:server-goto-file-row:%1 %2>
7697 \begin_inset Newline newline
7711 \begin_layout Standard
7713 で指定した\SpecialChar LyX
7715 \begin_inset Flex Code
7718 \begin_layout Plain Layout
7733 \begin_inset Flex Code
7736 \begin_layout Plain Layout
7745 \begin_layout Standard
7746 yapでは,遡及検索はダブルクリックで始動します.
7749 \begin_layout Subsubsection*
7753 \begin_layout Standard
7754 SumatraPDFを遡及検索で使用するためには,
7755 \begin_inset Flex MenuItem
7758 \begin_layout Plain Layout
7759 設定\SpecialChar menuseparator
7760 ファイル処理\SpecialChar menuseparator
7761 ファイル書式\SpecialChar menuseparator
7768 \begin_inset Flex Code
7771 \begin_layout Plain Layout
7772 SumatraPDF -inverse-search
7773 \begin_inset Quotes eld
7777 \begin_inset Quotes erd
7786 \begin_inset Flex Code
7789 \begin_layout Plain Layout
7795 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
7798 \begin_layout Standard
7802 \begin_layout Subsubsection*
7806 \begin_layout Standard
7807 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
7808 \begin_inset Flex MenuItem
7811 \begin_layout Plain Layout
7812 View\SpecialChar menuseparator
7818 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7819 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7821 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7822 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7823 \begin_inset Flex Code
7826 \begin_layout Plain Layout
7832 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
7833 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
7834 \begin_inset Flex Code
7837 \begin_layout Plain Layout
7844 \begin_inset Flex Code
7847 \begin_layout Plain Layout
7853 と指定してください.これによって,\SpecialChar LyX
7858 が使用されるようになります.何らかの理由で
7863 \begin_inset Flex Code
7866 \begin_layout Plain Layout
7872 オプションを削除して,\SpecialChar LyX
7874 Serverパイプパスを指定することを忘れないでください.
7877 \begin_layout Standard
7878 yapでは,遡及検索はダブルクリックで始動します.
7881 \begin_layout Subsubsection*
7885 \begin_layout Standard
7886 SumatraPDFを遡及検索で使用するためには,
7887 \begin_inset Flex MenuItem
7890 \begin_layout Plain Layout
7891 設定\SpecialChar menuseparator
7892 ファイル処理\SpecialChar menuseparator
7893 ファイル書式\SpecialChar menuseparator
7900 \begin_inset Flex Code
7903 \begin_layout Plain Layout
7910 \begin_inset Flex Code
7913 \begin_layout Plain Layout
7919 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
7920 \begin_inset Flex Code
7923 \begin_layout Plain Layout
7932 \begin_layout LyX-Code
7934 \begin_inset Newline newline
7938 \begin_inset Newline newline
7941 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7944 \begin_layout Standard
7945 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
7946 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
7947 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
7948 \begin_inset Flex Code
7951 \begin_layout Plain Layout
7966 \begin_inset Flex Code
7969 \begin_layout Plain Layout
7975 オプションを削除して,\SpecialChar LyX
7977 Serverパイプパスを指定することを忘れないでください.
7980 \begin_layout Standard
7984 \begin_layout Section
7988 \begin_layout Standard
7989 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
7990 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
7991 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
7993 \begin_inset Flex MenuItem
7996 \begin_layout Plain Layout
7997 移動\SpecialChar menuseparator
8003 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8004 \begin_inset Flex MenuItem
8007 \begin_layout Plain Layout
8013 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8016 \begin_layout Standard
8017 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8018 ソースに関する情報を追加する必要があります.これは,第
8019 \begin_inset CommandInset ref
8021 reference "subsec:遡及検索"
8025 節に述べられている方法で実行することができます.
8028 \begin_layout Standard
8030 \begin_inset Flex MenuItem
8033 \begin_layout Plain Layout
8034 ツール\SpecialChar menuseparator
8035 設定\SpecialChar menuseparator
8036 出力\SpecialChar menuseparator
8042 で自分の使うビューアを利用するように,\SpecialChar LyX
8043 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8044 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8047 \begin_layout Itemize
8048 \begin_inset Flex Code
8051 \begin_layout Plain Layout
8060 \begin_layout Itemize
8061 \begin_inset Flex Code
8064 \begin_layout Plain Layout
8070 :書き出された(一時).texファイル名(パスを除く)
8073 \begin_layout Itemize
8074 \begin_inset Flex Code
8077 \begin_layout Plain Layout
8083 :書き出された(一時).texファイル名(パスを含む)
8086 \begin_layout Itemize
8087 \begin_inset Flex Code
8090 \begin_layout Plain Layout
8096 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8099 \begin_layout Standard
8104 \begin_layout Plain Layout
8105 \begin_inset Flex MenuItem
8108 \begin_layout Plain Layout
8109 ツール\SpecialChar menuseparator
8110 設定\SpecialChar menuseparator
8111 ファイル処理\SpecialChar menuseparator
8118 \begin_inset Flex Code
8121 \begin_layout Plain Layout
8132 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8136 \begin_layout Plain Layout
8137 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8138 \begin_inset CommandInset href
8140 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8149 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
8150 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
8151 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8154 \begin_layout Standard
8155 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8156 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8157 チェックして),その形式に適切な設定を選択します.
8160 \begin_layout Chapter
8164 \begin_layout Section
8168 \begin_layout Standard
8174 \begin_layout Subsection
8178 \begin_layout Standard
8185 Astronomy and Astrophysics
8188 \begin_inset Flex URL
8191 \begin_layout Plain Layout
8193 http://www.edpsciences.fr/aa/
8198 )に投稿する論文を執筆するための\SpecialChar LyX
8199 の使用法を説明します.このパッケージは,FTPサイト
8202 \begin_layout Standard
8204 \begin_inset VSpace medskip
8208 \begin_inset Flex URL
8211 \begin_layout Plain Layout
8213 ftp://ftp.edpsciences.org/pub/aa/readme.html
8219 \begin_inset VSpace medskip
8225 \begin_layout Standard
8230 \begin_layout Standard
8231 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8235 \begin_layout Standard
8236 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8237 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8238 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8239 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8246 Dir/layouts/aapaper.layout
8251 \begin_layout Subsection
8255 \begin_layout Standard
8257 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8260 \begin_layout Itemize
8263 文書\SpecialChar menuseparator
8270 を選択してください(まぁ,これは自明ですね).
8273 \begin_layout Itemize
8278 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8281 \begin_layout Subsection
8285 \begin_layout Standard
8286 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8289 \begin_layout Itemize
8297 \begin_layout Itemize
8305 \begin_layout Itemize
8313 \begin_layout Itemize
8321 \begin_layout Itemize
8326 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8329 \begin_layout Itemize
8334 :[非必須]連絡用の電子メールアドレス.
8337 \begin_layout Itemize
8344 Received: <日付>; Accepted <日付>
8349 \begin_layout Standard
8356 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8357 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8358 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8361 \begin_layout Standard
8362 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8364 挿入\SpecialChar menuseparator
8367 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8377 \begin_layout Standard
8378 これらのトピックの他に,このマクロは,\SpecialChar LyX
8379 が対応していない,以下の3つの\SpecialChar LaTeX
8383 \begin_layout Itemize
8384 複数の著者名あるいは所属名を区切るための
8391 \begin_layout Itemize
8402 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
8405 \begin_layout Itemize
8412 は,至急連絡用に電子メールアドレスを付記します.
8415 \begin_layout Standard
8416 いずれの場合にも,\SpecialChar LyX
8417 中に対応したコマンドを入力し,\SpecialChar LaTeX
8419 \begin_inset Flex Code
8422 \begin_layout Plain Layout
8432 \begin_layout Subsection
8436 \begin_layout Standard
8437 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8438 れなくてはなりません.これは,まだ\SpecialChar LyX
8439 では実装されていないため,\SpecialChar LaTeX
8446 を手動で入力し,\SpecialChar LaTeX
8447 コードとしてマークする必要があります.用例にある論文を参照してください.
8450 \begin_layout Subsection
8454 \begin_layout Standard
8455 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8458 \begin_layout Itemize
8464 \begin_layout Itemize
8470 \begin_layout Itemize
8476 \begin_layout Itemize
8482 \begin_layout Itemize
8488 \begin_layout Itemize
8494 \begin_layout Itemize
8500 \begin_layout Itemize
8506 \begin_layout Itemize
8512 \begin_layout Itemize
8518 \begin_layout Itemize
8524 \begin_layout Itemize
8531 \begin_layout Subsection
8536 \begin_layout Standard
8542 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
8545 \begin_layout Itemize
8553 \begin_layout Itemize
8561 \begin_layout Itemize
8569 \begin_layout Itemize
8577 \begin_layout Itemize
8585 \begin_layout Itemize
8593 \begin_layout Itemize
8601 \begin_layout Itemize
8609 \begin_layout Standard
8610 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
8612 これを\SpecialChar LaTeX
8613 コマンドとしてマークすることを忘れないで下さい.
8616 \begin_layout Subsection
8620 \begin_layout Standard
8638 をサポートしていますので,ここでは詳しい説明はしません.
8642 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
8644 編集\SpecialChar menuseparator
8650 \begin_layout Standard
8651 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
8654 \begin_layout Enumerate
8657 挿入\SpecialChar menuseparator
8658 フロート\SpecialChar menuseparator
8661 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
8662 \begin_inset Flex MenuItem
8665 \begin_layout Plain Layout
8666 設定\SpecialChar ldots
8687 \begin_layout Enumerate
8691 \begin_layout Enumerate
8696 を押して,カーソルをキャプションの上に移動します.
8699 \begin_layout Enumerate
8703 \begin_layout Enumerate
8706 挿入\SpecialChar menuseparator
8707 整形\SpecialChar menuseparator
8725 \begin_layout Enumerate
8728 挿入\SpecialChar menuseparator
8731 を選択して,\SpecialChar TeX
8735 \begin_layout Enumerate
8748 \begin_layout Enumerate
8749 カーソルをキャプション文の後ろに移動し,
8751 挿入\SpecialChar menuseparator
8754 を選択して,別の\SpecialChar TeX
8755 差込枠を挿入し,その中に閉じ括弧を入力します .
8758 \begin_layout Standard
8762 \begin_layout Subsection
8766 \begin_layout Standard
8767 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
8771 オプションを与える必要があります.これは,
8773 文書\SpecialChar menuseparator
8780 クラスオプションフィールドを使って行うことができます.この欄に
8787 \begin_layout Subsection
8791 \begin_layout Standard
8796 ディレクトリには,\SpecialChar LyX
8797 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
8798 用に直したものです.これはヒントを得るために使用したり,元の
8800 コードと\SpecialChar LyX
8801 での書き方の比較に使ったりしてください.
8804 \begin_layout Section
8809 \begin_layout Standard
8817 \begin_layout Subsection
8821 \begin_layout Standard
8823 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8824 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8825 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
8827 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
8828 は,同マクロ第5.0版以降を必要としており,でき
8829 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
8830 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
8831 とは互換性がありません.AAS\SpecialChar TeX
8833 ,以下のAAS\SpecialChar TeX
8834 ウェブサイトからダウンロードできるでしょう.
8837 \begin_layout Standard
8839 \begin_inset VSpace medskip
8843 \begin_inset Flex URL
8846 \begin_layout Plain Layout
8848 https://aas.org/aastex/aastex-downloads
8854 \begin_inset VSpace medskip
8860 \begin_layout Standard
8861 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
8862 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
8864 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
8865 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
8866 いることを確認するのは,あなたの責任です.
8869 \begin_layout Subsection
8873 \begin_layout Standard
8874 論文を書き始めるには,AAS\SpecialChar TeX
8875 ひな型ファイルを土台に始めることを強くお勧めします.
8876 \begin_inset Flex MenuItem
8879 \begin_layout Plain Layout
8880 ファイル\SpecialChar menuseparator
8886 をクリックして,新しいファイル名を入力し,ひな型
8890 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
8894 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
8895 コマンド・AAS\SpecialChar TeX
8896 環境の多くは,\SpecialChar LyX
8909 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
8911 コードを入力して,それを\SpecialChar TeX
8912 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
8913 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
8915 文書に必要とされる \SpecialChar TeX
8916 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
8919 \begin_layout Subsection
8923 \begin_layout Standard
8924 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
8927 \begin_layout Enumerate
8928 論文を \SpecialChar LaTeX
8931 ファイル\SpecialChar menuseparator
8932 書き出し\SpecialChar menuseparator
8938 \begin_layout Enumerate
8947 \begin_layout Enumerate
8954 コマンドよりも前のコメント行を削除します.
8957 \begin_layout Enumerate
8962 usepackage...{fontenc}
8979 \begin_layout Enumerate
8981 プリアンブル中に意図的に置いたコマンド(
8985 ファイル中,「User specified \SpecialChar LaTeX
8986 commands」というコメントの直後にあります)を除いて,
8998 の間のもの(これらのコマンドを含む)をすべて削除します.
9002 \begin_layout Enumerate
9003 編集後のファイルを \SpecialChar LaTeX
9004 にかけて,正しく処理されることを確認します.
9007 \begin_layout Enumerate
9008 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9011 \begin_layout Enumerate
9015 \begin_layout Subsection
9019 \begin_layout Standard
9025 )に,各AAS\SpecialChar TeX
9026 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9027 て,必要なところだけコメントを加えることにしましょう.
9030 \begin_layout Subsubsection
9034 \begin_layout Standard
9035 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9135 begin{thebibliography}
9143 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9194 \begin_layout Standard
9195 以下のスタイルオプションも正しく動作します.
9216 \begin_inset Flex MenuItem
9219 \begin_layout Plain Layout
9220 文書\SpecialChar menuseparator
9237 \begin_layout Subsubsection
9241 \begin_layout Standard
9242 以下のコマンドは動作しますが,若干の説明が必要です.
9245 \begin_layout Itemize
9246 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9278 \begin_layout Itemize
9279 以下の項目は,\SpecialChar LaTeX
9280 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9301 \begin_layout Itemize
9308 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9312 \begin_layout Itemize
9319 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9322 \begin_layout Itemize
9329 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9333 \begin_layout Itemize
9340 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9343 \begin_layout Itemize
9359 \begin_layout Itemize
9366 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9369 \begin_layout Itemize
9376 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9379 \begin_layout Itemize
9386 (2.14.2)―文章のはじめにカーソルを置いて
9387 \begin_inset Flex MenuItem
9390 \begin_layout Plain Layout
9391 挿入\SpecialChar menuseparator
9397 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9403 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9406 \begin_layout Itemize
9413 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9422 \begin_layout Itemize
9429 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9438 \begin_layout Subsubsection
9439 実装されていないため,\SpecialChar TeX
9443 \begin_layout Standard
9466 setcounter{equation}
9468 (2.12)・学術誌名略語(2.12.4)・
9504 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9517 (2.15.5)・補遺(2.17)の大半(
9568 \begin_layout Subsubsection
9572 \begin_layout Standard
9573 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
9574 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
9575 \begin_inset Flex MenuItem
9578 \begin_layout Plain Layout
9579 挿入\SpecialChar menuseparator
9581 \begin_inset Formula $\text{\textipa{}}$
9584 \SpecialChar menuseparator
9590 を使用して,\SpecialChar LyX
9591 ファイルに読み込むことを推奨します.この実例は,
9598 \begin_layout Subsection
9602 \begin_layout Subsubsection
9604 をAAS\SpecialChar TeX
9608 \begin_layout Standard
9610 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
9613 \begin_layout Enumerate
9615 が,AAS\SpecialChar TeX
9616 を検出できることを確認してください.AAS\SpecialChar TeX
9625 でも可)を,\SpecialChar LaTeX
9626 やAAS\SpecialChar TeX
9627 とまったく関係のないディレクトリにコピーして,
9635 \begin_layout Enumerate
9648 \begin_layout Enumerate
9652 ツール\SpecialChar menuseparator
9655 を再度実行し,\SpecialChar LyX
9659 \begin_layout Enumerate
9660 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
9663 文書\SpecialChar menuseparator
9669 \begin_layout Standard
9670 既存のAAS\SpecialChar TeX
9671 文書を処理する際に,AAS\SpecialChar TeX
9672 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9676 \begin_layout Subsubsection
9677 表を処理する際の\SpecialChar LaTeX
9681 \begin_layout Standard
9682 既定では,\SpecialChar LyX
9683 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
9684 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
9687 編集\SpecialChar menuseparator
9698 に設定してください.私のところではこれで解決しました.
9701 \begin_layout Subsubsection
9705 \begin_layout Standard
9706 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
9719 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
9723 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
9724 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
9727 \begin_layout Subsubsection
9731 \begin_layout Standard
9739 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
9740 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
9747 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
9752 usepackage{graphics}
9754 コマンドを\SpecialChar LaTeX
9755 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
9756 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
9757 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
9760 \begin_layout Subsubsection
9764 \begin_layout Standard
9765 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
9767 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
9768 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
9771 \begin_layout Subsection
9775 \begin_layout Standard
9776 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
9777 \begin_inset space \thinspace{}
9782 \begin_inset space \thinspace{}
9785 %が,\SpecialChar LaTeX
9786 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
9790 \begin_layout Section
9791 AMS \SpecialChar LaTeX
9795 \begin_layout Standard
9805 \begin_inset VSpace bigskip
9811 \begin_layout Standard
9812 AMS \SpecialChar LaTeX
9813 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
9814 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
9816 必要があるだけです).AMSの説明書は,ウェブWeb上の
9817 \begin_inset Flex URL
9820 \begin_layout Plain Layout
9828 \begin_inset Flex URL
9831 \begin_layout Plain Layout
9833 ftp://ftp.ams.org/pub/tex/amslatex/
9838 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
9841 \begin_layout Standard
9842 基本となるAMS \SpecialChar LaTeX
9846 \begin_layout Itemize
9847 amsart:標準のAMS article書式.
9850 \begin_layout Itemize
9851 amsbook:標準のAMS book(実際はモノグラフ)書式.
9854 \begin_layout Standard
9855 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
9856 m」環境は,何一つ含まれていません.これらは,代わりに
9857 \begin_inset Flex Code
9860 \begin_layout Plain Layout
9866 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
9867 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
9868 \begin_inset Flex Code
9871 \begin_layout Plain Layout
9877 モジュールがあり,これは手動で読み込む必要があります.
9880 \begin_layout Standard
9881 既定では,定理類は,文書を通して連番が振られますが,これは
9882 \begin_inset Flex Code
9885 \begin_layout Plain Layout
9891 モジュールを読み込めば変更することができ,
9892 \begin_inset Flex Code
9895 \begin_layout Plain Layout
9902 \begin_inset Flex Code
9905 \begin_layout Plain Layout
9911 を用いても変更することができます.これらを用いると,出力は
9912 \begin_inset Formula $n.m$
9915 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
9916 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
9921 \begin_inset Flex Code
9924 \begin_layout Plain Layout
9933 \begin_layout Standard
9934 これらのモジュールは,AMSクラスで使用する
9939 \begin_inset Flex Code
9942 \begin_layout Plain Layout
9948 モジュールや上述の他のモジュールは,他のクラス,たとえば
9949 \begin_inset Flex Code
9952 \begin_layout Plain Layout
9959 \begin_inset Flex Code
9962 \begin_layout Plain Layout
9969 \begin_inset Flex Code
9972 \begin_layout Plain Layout
9981 \begin_layout Subsection
9985 \begin_layout Standard
9986 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
9987 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
9988 す.しかし,AMSは,\SpecialChar LyX
9989 で利用可能になっている環境のみを使用することを推奨しています.
9992 \begin_layout Standard
9993 \begin_inset Flex Code
9996 \begin_layout Plain Layout
10003 \begin_inset Flex Code
10006 \begin_layout Plain Layout
10013 \begin_inset space ~
10017 \begin_inset Flex Noun
10020 \begin_layout Plain Layout
10027 \begin_inset Flex Noun
10030 \begin_layout Plain Layout
10037 \begin_inset Flex Noun
10040 \begin_layout Plain Layout
10047 \begin_inset Flex Noun
10050 \begin_layout Plain Layout
10057 \begin_inset Flex Noun
10060 \begin_layout Plain Layout
10067 \begin_inset space ~
10071 \begin_inset space ~
10077 \begin_layout Description
10081 \begin_layout Description
10082 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10085 \begin_layout Description
10089 \begin_layout Description
10093 \begin_layout Description
10094 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10097 \begin_layout Description
10100 Mathematical Reviews
10102 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10106 \begin_layout Description
10110 \begin_layout Description
10114 \begin_layout Description
10118 \begin_layout Standard
10120 \begin_inset Flex Code
10123 \begin_layout Plain Layout
10130 \begin_inset Flex Code
10133 \begin_layout Plain Layout
10139 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10140 \begin_inset Flex Code
10143 \begin_layout Plain Layout
10149 モジュールでは,同環境の星付き版だけが提供されます.
10152 \begin_layout Theorem
10153 これは,通常,得られた主要な結果を叙述するのに使用されます.
10156 \begin_layout Corollary*
10157 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10160 \begin_layout Lemma
10161 他の叙述を証明するために必要とされる,比較的小さな結果です.
10164 \begin_layout Proposition
10165 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10168 \begin_layout Conjecture
10169 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10172 \begin_layout Definition*
10173 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10176 \begin_layout Problem
10177 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10180 \begin_layout Exercise*
10185 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10188 \begin_layout Claim*
10189 より大きな結果の証明を与える途中で,しばしば用いられます.
10193 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10197 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10200 \begin_layout Proof
10201 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10202 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10213 \begin_layout Standard
10215 \begin_inset Flex Code
10218 \begin_layout Plain Layout
10227 \begin_layout Criterion*
10231 \begin_layout Algorithm*
10235 \begin_layout Axiom*
10236 議論されている系内部で真と仮定される性質や命題です.
10239 \begin_layout Condition*
10240 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10243 \begin_layout Note*
10247 \begin_layout Notation*
10251 \begin_layout Summary
10255 \begin_layout Acknowledgement*
10256 謝辞(acknowledgement)です.
10259 \begin_layout Conclusion*
10264 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10267 \begin_layout Standard
10268 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10269 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10273 \begin_layout Section
10279 \begin_layout Standard
10287 \begin_layout Subsection
10291 \begin_layout Standard
10292 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10294 \begin_inset Flex URL
10297 \begin_layout Plain Layout
10299 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10304 にあります)が導入されていることが必要です.
10307 \begin_layout Subsection
10311 \begin_layout Standard
10320 は,定義し直されています.\SpecialChar LyX
10329 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10341 \begin_layout Standard
10378 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10381 \begin_layout Standard
10382 おそらく,これはまだ恐ろしく不完全です.
10385 \begin_layout Subsection
10389 \begin_layout Standard
10398 (Plate)が新しいフロートです.また,
10405 \begin_layout Subsection
10409 \begin_layout Itemize
10412 Journal of Geophysical Research
10421 \begin_layout Standard
10422 ここにあなたの作ったものを加えてください.難しくはありません.
10433 \begin_layout Subsection
10437 \begin_layout Standard
10438 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10441 \begin_layout Enumerate
10448 ツール\SpecialChar menuseparator
10451 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10458 \begin_layout Enumerate
10463 と入力してください(すみません,これはバグです).
10466 \begin_layout Enumerate
10467 Bib\SpecialChar TeX
10476 を使用していることを確認してください.標準スタイルはうまく動作しません.
10479 \begin_layout Section
10483 \begin_layout Standard
10491 \begin_layout Subsection
10495 \begin_layout Standard
10496 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10499 \begin_layout Subsection
10503 \begin_layout Standard
10507 \begin_layout Subsection
10511 \begin_layout Standard
10516 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10519 \begin_layout Subsection
10523 \begin_layout Standard
10524 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10527 \begin_layout Subsection
10531 \begin_layout Standard
10532 以下の環境を使うことができます.右に記してある
10533 \begin_inset Flex Ruby
10536 \begin_layout Plain Layout
10538 \begin_inset Argument post:1
10541 \begin_layout Plain Layout
10552 割当ては,broadway.bindを使った場合のものです.
10555 \begin_layout Itemize
10559 \begin_inset Newline newline
10564 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10567 \begin_layout Itemize
10571 \begin_inset space \hfill{}
10575 \begin_inset Newline newline
10580 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10583 \begin_layout Itemize
10587 \begin_inset space \hfill{}
10591 \begin_inset Newline newline
10596 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10599 \begin_layout Itemize
10603 \begin_inset space \hfill{}
10607 \begin_inset Newline newline
10612 幕の副題です.単に中央揃えの文になります.
10615 \begin_layout Itemize
10619 \begin_inset space \hfill{}
10623 \begin_inset Newline newline
10628 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10631 \begin_layout Itemize
10635 \begin_inset space \hfill{}
10639 \begin_inset Newline newline
10644 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10647 \begin_layout Itemize
10651 \begin_inset space \hfill{}
10655 \begin_inset Newline newline
10660 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10663 \begin_layout Itemize
10667 \begin_inset space \hfill{}
10671 \begin_inset Newline newline
10676 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10683 \begin_layout Itemize
10687 \begin_inset space \hfill{}
10691 \begin_inset Newline newline
10699 \begin_layout Itemize
10703 \begin_inset space \hfill{}
10707 \begin_inset Newline newline
10715 \begin_layout Itemize
10719 \begin_inset space \hfill{}
10725 \begin_layout Itemize
10729 \begin_inset space \hfill{}
10735 \begin_layout Itemize
10739 \begin_inset space \hfill{}
10745 \begin_layout Section
10749 \begin_layout Standard
10754 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10756 .../lyx/share/templates
10758 にあるので,それを土台として使用してください.
10761 \begin_layout Section
10767 \begin_layout Standard
10775 \begin_layout Subsection
10779 \begin_layout Standard
10780 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
10785 \begin_inset Flex URL
10788 \begin_layout Plain Layout
10790 http://www.copernicus.org/
10798 \begin_layout Subsection
10802 \begin_layout Standard
10840 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
10844 ファイルを読み込む形に変えた方が便利になると思われます.
10847 \begin_layout Section
10851 \begin_layout Standard
10857 を参照してください.必要な情報は全てそこにあります.
10860 \begin_layout Section
10861 Foils (別名Foil\SpecialChar TeX
10863 \begin_inset CommandInset label
10872 \begin_layout Standard
10880 \begin_layout Subsection
10884 \begin_layout Standard
10885 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
10886 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
10888 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
10891 \begin_layout Standard
10892 誤解のないように,わかりやすく明確に,もう一度言っておきます.
10895 \begin_layout Standard
10896 \begin_inset VSpace bigskip
10902 \begin_layout Standard
10917 \begin_layout Standard
10918 \begin_inset VSpace bigskip
10924 \begin_layout Standard
10927 transparencies (slides)
10930 \begin_inset CommandInset ref
10932 reference "sec:slitex"
10936 節をご覧ください.お使いのコンピュータに
10955 \begin_layout Standard
10960 クラスは,\SpecialChar LaTeX2e
10961 の一部として含まれている\SpecialChar LaTeX
10966 の第2.1版とともに使われるように設計されています.
10969 \begin_layout Subsection
10973 \begin_layout Standard
10974 いうまでもなく,この文書クラスを使うには,
10976 文書\SpecialChar menuseparator
10977 設定\SpecialChar menuseparator
10992 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
10995 \begin_layout Itemize
11008 オプションは変更しないでください.これらは
11015 \begin_layout Itemize
11016 既定のフォント寸法は20ptであり,17
11017 \begin_inset space \thinspace{}
11021 \begin_inset space \thinspace{}
11025 \begin_inset space \thinspace{}
11031 \begin_layout Itemize
11040 ですが,数式ではすべて,通常のローマン体が使用されます.
11043 \begin_layout Itemize
11044 Foil\SpecialChar TeX
11046 \begin_inset space \thinspace{}
11049 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11052 \begin_layout Itemize
11057 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11060 \begin_layout Itemize
11065 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11066 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11067 \begin_inset CommandInset ref
11069 reference "sec:foilfoot"
11073 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11077 付けられず,(ロゴが定義されていれば)ロゴは,
11081 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11085 \begin_layout Labeling
11086 \labelwidthstring MMMMMMM
11093 最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11096 \begin_layout Labeling
11097 \labelwidthstring MMMMMMM
11104 最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11107 \begin_layout Labeling
11108 \labelwidthstring MMMMMMM
11113 ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11116 \begin_layout Labeling
11117 \labelwidthstring MMMMMMM
11126 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11127 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11131 \begin_layout Subsubsection
11135 \begin_layout Standard
11140 ダイアログの任意設定クラスオプションボックスで使うことができます.
11143 \begin_layout Labeling
11144 \labelwidthstring MMMMMMx
11149 これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11150 \begin_inset space \space{}
11153 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11156 \begin_layout Labeling
11157 \labelwidthstring MMMMMMx
11162 タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11165 \begin_layout Labeling
11166 \labelwidthstring MMMMMMx
11171 タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11174 \begin_layout Labeling
11175 \labelwidthstring MMMMMMx
11184 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11188 \begin_layout Labeling
11189 \labelwidthstring MMMMMMx
11194 このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11195 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11203 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11206 \begin_layout Labeling
11207 \labelwidthstring MMMMMMx
11215 \begin_layout Labeling
11216 \labelwidthstring MMMMMMx
11224 \begin_layout Subsection
11228 \begin_layout Standard
11229 他のクラスで標準的にサポートされている環境は,
11233 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11234 が提供している環境と,\SpecialChar LyX
11235 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11238 \begin_layout Standard
11241 \begin_inset Flex Multiple Columns
11244 \begin_layout Itemize
11250 \begin_layout Itemize
11256 \begin_layout Itemize
11262 \begin_layout Itemize
11268 \begin_layout Itemize
11274 \begin_layout Itemize
11281 \begin_layout Itemize
11287 \begin_layout Itemize
11293 \begin_layout Itemize
11299 \begin_layout Itemize
11305 \begin_layout Itemize
11311 \begin_layout Itemize
11317 \begin_layout Itemize
11323 \begin_layout Itemize
11329 \begin_layout Itemize
11335 \begin_layout Itemize
11341 \begin_layout Itemize
11347 \begin_layout Itemize
11358 \begin_layout Standard
11359 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11364 は新しいスライドを始める以下のようなコマンドを備えています.
11367 \begin_layout Itemize
11373 \begin_layout Itemize
11376 横置きスライドタイトル(Rotatefoilhead)
11379 \begin_layout Standard
11381 は,以下のような,これらを若干修正した環境も用意しています.
11384 \begin_layout Itemize
11387 スライドタイトル(小)(ShortFoilhead)
11390 \begin_layout Itemize
11393 横置きスライドタイトル(小)(ShortRotatefoilhead)
11396 \begin_layout Standard
11400 \begin_layout Standard
11401 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11406 はそれらを説明するのに便利な環境を幅広く用意しています.
11409 \begin_layout Standard
11412 \begin_inset Flex Multiple Columns
11415 \begin_layout Itemize
11421 \begin_layout Itemize
11427 \begin_layout Itemize
11433 \begin_layout Itemize
11439 \begin_layout Itemize
11445 \begin_layout Itemize
11451 \begin_layout Itemize
11457 \begin_layout Itemize
11463 \begin_layout Itemize
11469 \begin_layout Itemize
11475 \begin_layout Itemize
11486 \begin_layout Standard
11487 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11488 で追加された以下の2つの箇条書き環境があります.
11491 \begin_layout Itemize
11497 \begin_layout Itemize
11503 \begin_layout Standard
11504 Foil\SpecialChar TeX
11505 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11506 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11509 \begin_layout Standard
11510 この目的のためには,以下のコマンドスタイルがあります(
11515 \begin_layout Standard
11516 \begin_inset Flex Multiple Columns
11519 \begin_layout Itemize
11525 \begin_layout Itemize
11531 \begin_layout Itemize
11537 \begin_layout Itemize
11543 \begin_layout Itemize
11552 \begin_layout Plain Layout
11553 \begin_inset space ~
11565 \begin_layout Standard
11566 Foil\SpecialChar TeX
11567 が提供しているコマンドで,\SpecialChar LyX
11568 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11569 \begin_inset CommandInset ref
11571 reference "sec:unsuppfoils"
11578 \begin_layout Subsection
11582 \begin_layout Standard
11583 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11595 \begin_layout Subsubsection
11599 \begin_layout Standard
11620 は独立したページにタイトルを作成します.
11624 環境を使用しなかった場合には,\SpecialChar LaTeX
11625 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11628 \begin_layout Subsubsection
11632 \begin_layout Standard
11633 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11639 スライドタイトル(小)(ShortFoilhead)
11641 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11644 \begin_layout Standard
11647 横向きスライドタイトル(Rotatefoilhead)
11651 ShortRotatefoilhead)
11653 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11657 \begin_layout Standard
11658 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11662 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11666 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11669 \begin_layout Subsubsection
11673 \begin_layout Standard
11675 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
11676 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
11681 」だけから成る\SpecialChar LaTeX
11682 環境を置くことです.これによって,\SpecialChar LyX
11683 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
11684 出力を得ることができます.\SpecialChar LyX
11686 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
11689 \begin_layout Subsubsection
11693 \begin_layout Standard
11694 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11695 他の箇条書き環境について詳しく知りたい場合には,
11699 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11700 \begin_inset CommandInset ref
11702 reference "sec:ブリット"
11710 の節も,読まれることが望ましいでしょう.
11713 \begin_layout Standard
11723 \begin_inset Formula $\times$
11726 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11730 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11734 パッケージが導入済であることを要求します.
11737 \begin_layout Subsubsection
11741 \begin_layout Standard
11742 Foil\SpecialChar TeX
11743 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11744 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11747 \begin_layout Subsubsection
11749 \begin_inset CommandInset label
11751 name "sec:foilfoot"
11758 \begin_layout Standard
11767 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by
11772 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11775 \begin_layout Standard
11788 (左上)を使って文字を入れることができます.
11791 \begin_layout Subsection
11798 \begin_inset CommandInset label
11800 name "sec:unsuppfoils"
11807 \begin_layout Standard
11821 \begin_layout Subsubsection
11825 \begin_layout Standard
11848 は,変更したい長さに付けられている名前で置き換え,
11852 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11858 のように文書比あるいはフォント基準の長さで指定する必要があります.
11861 \begin_layout Standard
11868 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
11869 \begin_inset space \space{}
11872 inだけスライド本文に近づけるには,プリアンブルに
11878 foilheadskip}{-0.5in}
11883 \begin_layout Standard
11884 フロート周囲の余白は,以下の長さを設定することで調整することができます.
11887 \begin_layout Labeling
11888 \labelwidthstring MMMMMMMMMMM
11898 \begin_layout Labeling
11899 \labelwidthstring MMMMMMMMMMM
11909 \begin_layout Labeling
11910 \labelwidthstring MMMMMMMMMMM
11920 \begin_layout Labeling
11921 \labelwidthstring MMMMMMMMMMM
11928 この長さを調整することでキャプションを,周囲の本文より短くすることができます.
11934 に対する相対的な長さで調整するのが最も良いでしょう.
11937 \begin_layout Standard
11938 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
11941 \begin_layout Labeling
11942 \labelwidthstring MMMMMMMMMMM
11952 \begin_layout Labeling
11953 \labelwidthstring MMMMMMMMMMM
11971 \begin_layout Labeling
11972 \labelwidthstring MMMMMMMMMMM
11986 \begin_layout Labeling
11987 \labelwidthstring MMMMMMMMMMM
12005 \begin_layout Labeling
12006 \labelwidthstring MMMMMMMMMMM
12024 \begin_layout Standard
12025 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12031 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12037 を使う必要がないことに注意してください.
12040 \begin_layout Subsubsection
12044 \begin_layout Standard
12061 で定義したロゴを特定のページに入れるかどうかを制御します.
12067 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12073 を置き,次のスライドタイトルの直後に直接
12082 \begin_layout Standard
12091 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12105 パッケージが提供するページレイアウトと
12109 クラスの提供するページレイアウトの間に衝突が発生するためです.
12112 \begin_layout Section
12113 Hollywood(Hollywoodスペック・スクリプト)
12116 \begin_layout Standard
12124 \begin_layout Subsection
12128 \begin_layout Standard
12129 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12130 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12132 \begin_inset space \space{}
12135 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12138 \begin_layout Subsection
12142 \begin_layout Standard
12147 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12151 名を再度書き,その後に(Cont'd)と加えます.
12154 \begin_layout Subsection
12158 \begin_layout Standard
12163 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12164 きに話者名を挿入するのにも使用することができます.
12167 \begin_layout Subsection
12171 \begin_layout Standard
12172 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12175 \begin_layout Subsection
12179 \begin_layout Standard
12180 以下の環境が利用可能です.右に示されている
12181 \begin_inset Flex Ruby
12184 \begin_layout Plain Layout
12186 \begin_inset Argument post:1
12189 \begin_layout Plain Layout
12200 割当てを使用するには,hollywood.bindを使用してください.
12203 \begin_layout Itemize
12207 \begin_inset Newline newline
12212 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12215 \begin_layout Itemize
12217 \begin_inset space \hfill{}
12225 \begin_inset Newline newline
12228 通常,この後には「Sallyは目を覚ますと」のように続きます.
12231 \begin_layout Itemize
12235 \begin_inset space \hfill{}
12239 \begin_inset Newline newline
12244 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12248 \begin_layout Itemize
12252 \begin_inset space \hfill{}
12256 \begin_inset Newline newline
12261 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12264 \begin_layout Itemize
12268 \begin_inset space \hfill{}
12272 \begin_inset Newline newline
12280 \begin_layout Itemize
12284 \begin_inset space \hfill{}
12288 \begin_inset Newline newline
12293 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
12294 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
12297 \begin_layout Itemize
12301 \begin_inset space \hfill{}
12305 \begin_inset Newline newline
12313 \begin_layout Itemize
12317 \begin_inset space \hfill{}
12321 \begin_inset Newline newline
12326 カメラの動きの指示.例:CUT TO:.
12329 \begin_layout Itemize
12333 \begin_inset space \hfill{}
12339 \begin_layout Itemize
12343 \begin_inset space \hfill{}
12349 \begin_layout Itemize
12353 \begin_inset space \hfill{}
12359 \begin_layout Itemize
12363 \begin_inset space \hfill{}
12369 \begin_layout Subsection
12373 \begin_layout Itemize
12377 \begin_layout Itemize
12381 \begin_layout Itemize
12386 \begin_layout Itemize
12391 \begin_layout Itemize
12392 PAN — camera movement
12395 \begin_layout Itemize
12396 INSERT — cut to close-up of
12399 \begin_layout Section
12403 \begin_layout Standard
12406 Panayotis Papasotiriou
12411 \begin_layout Subsection
12415 \begin_layout Standard
12418 International Journal of Modern Physics C
12420 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12422 International Journal of Modern Physics D
12424 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12432 です.これらのファイルは,著者のための指針とともに,
12433 \begin_inset Flex URL
12436 \begin_layout Plain Layout
12438 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12444 \begin_inset Flex URL
12447 \begin_layout Plain Layout
12449 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12454 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12456 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12457 で書き上げましたが,何らの問題も生じませんでした.
12460 \begin_layout Subsection
12464 \begin_layout Standard
12465 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12467 ファイル\SpecialChar menuseparator
12478 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12482 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12485 \begin_layout Enumerate
12486 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12487 中でこれらを変更することはできません.
12490 \begin_layout Enumerate
12491 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12493 ツール\SpecialChar menuseparator
12508 をクリックすれば,設定することができます(この変更を固定するなら
12515 \begin_layout Enumerate
12516 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12519 \begin_layout Enumerate
12520 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12521 ートされていませんので,ご注意ください.
12524 \begin_layout Enumerate
12525 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12526 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12527 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12530 \begin_layout Enumerate
12531 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12532 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12533 されます.引用に通常の本文を使用したい場合には,「See Ref.
12534 \begin_inset space \space{}
12544 \begin_inset Flex Ruby
12547 \begin_layout Plain Layout
12553 \begin_inset Argument post:1
12556 \begin_layout Plain Layout
12578 \begin_layout Enumerate
12579 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12582 \begin_layout Enumerate
12591 であれば,入れることができます.\SpecialChar LyX
12592 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12593 てはなりません.この環境は,\SpecialChar LaTeX
12594 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12595 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12596 付録であることを明示します.「付録領域」は,最初の付録の前に
12600 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12603 \begin_layout Enumerate
12604 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12608 コマンドを使用します.そのため,\SpecialChar LyX
12609 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12610 コードを少し使えば,この問題を回避して,キャプション
12611 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12618 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12623 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12628 ファイルに収め,このファイルを\SpecialChar LyX
12631 挿入\SpecialChar menuseparator
12632 ファイル\SpecialChar menuseparator
12635 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12646 \begin_layout Subsection
12650 \begin_layout Standard
12651 論文を投稿する前には,\SpecialChar LyX
12652 文書を\SpecialChar LaTeX
12655 ファイル\SpecialChar menuseparator
12656 書き出し\SpecialChar menuseparator
12664 \begin_layout Plain Layout
12665 実は,\SpecialChar LaTeX
12666 (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12667 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12676 ファイルに以下の変更を加える必要があります.
12679 \begin_layout Enumerate
12686 コマンドより前にあるコメント行を削除する.
12689 \begin_layout Enumerate
12690 自身で明示的に\SpecialChar LaTeX
12703 コマンドの間にあるものをすべて削除する.
12706 \begin_layout Standard
12711 ファイルを保存し,必要な回数\SpecialChar LaTeX
12712 で処理してください.それによって得られた
12716 文書も確認された方がよろしいでしょう.
12719 \begin_layout Subsection
12724 \begin_layout Standard
12726 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
12734 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
12735 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
12737 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
12742 markboth{著者名}{論文の短縮タイトル}
12747 \begin_layout Section
12751 \begin_layout Standard
12759 \begin_layout Subsection
12763 \begin_layout Standard
12764 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12765 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12766 \begin_inset Flex URL
12769 \begin_layout Plain Layout
12771 ftp://ftp.iop.org/pub/journals/latex2e
12776 からiopartパッケージとともにダウンロード可能です.
12779 \begin_layout Subsection
12783 \begin_layout Standard
12784 論文を書くもっとも簡単な方法は,\SpecialChar LyX
12789 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
12790 な助言として,以下の点にご注意ください.
12793 \begin_layout Itemize
12794 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
12802 関連オプションが有効になっていないことを確認してください!
12805 \begin_layout Itemize
12806 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12810 \begin_layout Itemize
12816 \begin_layout Itemize
12822 \begin_layout Itemize
12828 \begin_layout Itemize
12834 \begin_layout Itemize
12840 \begin_layout Itemize
12848 \begin_layout Itemize
12849 Preliminary communication用には
12854 \begin_layout Itemize
12855 Rapid communication用には
12860 \begin_layout Itemize
12867 \begin_layout Itemize
12872 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12875 \begin_layout Itemize
12877 では直接にサポートされていませんが,一般的なタイトル環境として
12881 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12882 コードでこれを指定することができます.
12885 \begin_layout Standard
12886 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12889 \begin_layout Section
12893 \begin_layout Standard
12896 Panayotis Papasotiriou
12901 \begin_layout Subsection
12905 \begin_layout Standard
12906 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
12907 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
12909 Astrophysics and Space Science
12915 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
12916 \begin_inset Flex URL
12919 \begin_layout Plain Layout
12921 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12926 に全覧があります).Kluwerパッケージは,
12927 \begin_inset Flex URL
12930 \begin_layout Plain Layout
12932 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12937 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
12940 \begin_layout Standard
12942 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
12943 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
12945 \begin_inset CommandInset ref
12947 reference "subsec:kluwer_peculiarities"
12951 参照).最近,私は\SpecialChar LyX
12954 Astrophysics and Space Science
12956 に投稿しましたが,何らの問題も発生しませんでした.
12959 \begin_layout Subsection
12963 \begin_layout Standard
12964 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
12966 ファイル\SpecialChar menuseparator
12973 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
12978 を含む)正しい情報で上書きしてください.
12981 \begin_layout Subsection
12985 \begin_layout Standard
12986 AAS\SpecialChar TeX
12987 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
12990 \begin_layout Enumerate
12993 ファイル\SpecialChar menuseparator
12994 書き出し\SpecialChar menuseparator
12997 をクリックして,論文を\SpecialChar LaTeX
13001 \begin_layout Enumerate
13006 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13010 \begin_layout Enumerate
13017 コマンドより前にあるコメント行を削除する.
13020 \begin_layout Enumerate
13021 意図的に\SpecialChar LaTeX
13034 の間にあるものを,これらのコマンドも含め,すべて削除する.
13037 \begin_layout Standard
13046 \begin_layout Enumerate
13051 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13055 \begin_layout Enumerate
13064 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13067 \begin_layout Subsection
13068 Kluwerパッケージの「風変わり」な特徴
13069 \begin_inset CommandInset label
13071 name "subsec:kluwer_peculiarities"
13078 \begin_layout Standard
13079 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13082 \begin_layout Enumerate
13083 複数の論文を1つの\SpecialChar LaTeX
13088 \begin_layout Plain Layout
13089 わざわざこんなことをする必要はないでしょう.
13094 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13106 で終わります.この環境を\SpecialChar LyX
13107 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13119 )は,直接本文中に入力して,\SpecialChar LaTeX
13120 コード(「\SpecialChar TeX
13121 コード」のことです)としてマークする必要があります.
13124 \begin_layout Enumerate
13125 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13126 はなりません.これは\SpecialChar LyX
13127 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13143 \begin_layout Enumerate
13144 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13147 \begin_inset Newline newline
13171 \begin_layout Standard
13176 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13180 \begin_layout Enumerate
13181 ひな型にある\SpecialChar TeX
13185 \begin_layout Enumerate
13186 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13189 \begin_layout Section
13193 \begin_layout Standard
13201 \begin_layout Subsection
13205 \begin_layout Standard
13209 article (koma-script)
13213 report (koma-script)
13231 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13248 に対応しています.これらは,標準文書クラス
13264 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13267 \begin_layout Itemize
13270 article (koma-script)
13274 report (koma-script)
13282 letter (koma-script)
13287 \begin_layout Itemize
13288 見出しや箇条書き(記述)環境のラベル,および
13290 letter (koma-script)
13292 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13296 \begin_layout Plain Layout
13297 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13298 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13302 作の\SpecialChar LaTeX
13312 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13313 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13314 とができます(\SpecialChar LyX
13317 文書\SpecialChar menuseparator
13324 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13331 \begin_layout Itemize
13332 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13340 オプションを使う方法です(\SpecialChar LyX
13343 文書\SpecialChar menuseparator
13350 フィールドで指定します).これらのオプションは
13352 文書\SpecialChar menuseparator
13355 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13363 \begin_layout Itemize
13364 Koma-Scriptファミリーの\SpecialChar LaTeX
13365 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13366 で意味を持つものは,対応する段落環境として実装されています
13370 \begin_layout Standard
13371 Koma-Scriptファミリーの\SpecialChar LaTeX
13372 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13380 \begin_layout Plain Layout
13390 .以下の各節では,\SpecialChar LyX
13394 \begin_layout Subsection
13395 article (koma-script)・report (koma-script)・book (koma-script)
13398 \begin_layout Standard
13401 article (koma-script)
13405 report (koma-script)
13427 によって実装されています.これらは,対応する標準文書クラス
13439 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13444 環境は例外であり,同じ機能を持つ新しい
13452 環境以外にも,新しい段落環境が多く追加されています.これらは,
13454 letter (koma-script)
13456 には含まれていないのでご注意ください.
13459 \begin_layout Itemize
13484 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13494 article (koma-script)
13499 \begin_layout Itemize
13516 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13522 article (koma-script)
13528 \begin_layout Plain Layout
13535 report (koma-script)
13547 と同一なので,\SpecialChar LyX
13556 \begin_layout Itemize
13561 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13564 \begin_layout Itemize
13573 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13574 ねに表の上に置くべきでしょう).また,クラスオプション
13578 を用いれば,キャプションを指定すると,表には
13586 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13589 \begin_layout Itemize
13594 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13596 挿入\SpecialChar menuseparator
13599 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13605 article (koma-script)
13610 \begin_layout Standard
13623 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13627 \begin_layout Plain Layout
13628 つまり,対応する\SpecialChar LaTeX
13635 コマンドよりも前に現れなくてはなりません.
13640 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13652 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13655 \begin_layout Itemize
13672 )の上に,文書の主題用の中央揃えの段落を生成します.
13675 \begin_layout Itemize
13692 )の下に,出版社名用の中央揃えの段落を生成します.
13695 \begin_layout Itemize
13702 report (koma-script)
13708 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13710 article (koma-script)
13724 )の下に献辞用の中央揃えの段落を生成します.
13727 \begin_layout Itemize
13744 )の上に,文書頭書き用の左揃えの段落を生成します.
13747 \begin_layout Itemize
13754 report (koma-script)
13760 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13762 article (koma-script)
13767 \begin_layout Itemize
13774 report (koma-script)
13780 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13782 article (koma-script)
13787 \begin_layout Itemize
13792 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13795 \begin_layout Standard
13798 article (koma-script)
13802 report (koma-script)
13812 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13816 を,個人用レイアウトディレクトリにコピーして編集してください!
13819 \begin_layout Subsection
13820 letter (koma-script)
13823 \begin_layout Standard
13827 letter (koma-script)
13833 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13837 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13855 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13872 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13875 \begin_layout Standard
13876 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
13877 コマンドを\SpecialChar LaTeX
13878 プリアンブルに置くことで制御することができます
13882 \begin_layout Plain Layout
13883 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
13887 \begin_layout LyX-Code
13897 \begin_layout LyX-Code
13913 \begin_layout LyX-Code
13923 \begin_layout LyX-Code
13939 \begin_layout LyX-Code
13947 .これらの\SpecialChar LaTeX
13948 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
13952 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
13955 \begin_layout Standard
13964 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
13965 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
13973 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
13977 環境は,同じ受取人への書簡を新しく書き出すものであり,
13981 環境は,新しい受取人を生成するものです.
13997 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14000 \begin_layout Itemize
14005 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14008 \begin_layout Itemize
14013 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14016 \begin_layout Itemize
14024 \begin_layout Itemize
14032 \begin_layout Itemize
14040 \begin_layout Itemize
14048 \begin_layout Standard
14089 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14093 \begin_layout Plain Layout
14102 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14103 一文字をマークした通常の段落環境として実装しました.さらに,
14111 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14123 \begin_layout Standard
14124 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14129 環境で入力した署名は,標準的な挙動では,同じ書簡に
14133 環境も使用されているときのみ,書簡の出力に現れます.
14137 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14140 \begin_layout Standard
14141 入力環境は,空の段落として使うことができます.これは,たとえば
14149 環境を全く使用しない場合は,標準的な挙動では,
14153 環境の値が署名として使用されますが,空の
14157 環境を作成しておくと,署名の値は無定義となりません.
14160 \begin_layout Standard
14161 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14164 \begin_layout Itemize
14169 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14172 \begin_layout Itemize
14192 \begin_layout Itemize
14197 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14200 \begin_layout Itemize
14205 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14215 \begin_layout Itemize
14223 \begin_layout Itemize
14236 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14244 の値如何に関わらず,場所も日付も表示されません.
14248 環境を使用しない場合には,書簡を出力した日付が使用されます.
14251 \begin_layout Itemize
14256 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14259 \begin_layout Itemize
14264 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14267 \begin_layout Itemize
14272 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14275 \begin_layout Itemize
14280 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14283 \begin_layout Itemize
14295 \begin_layout Standard
14298 Yourref・Yourmail・Myref・顧客・インボイス
14304 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14305 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14309 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14313 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14320 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14328 \begin_layout Itemize
14336 \begin_layout Itemize
14344 \begin_layout Itemize
14352 \begin_layout Itemize
14360 \begin_layout Itemize
14368 \begin_layout Subsection
14369 新しいletterクラス:letter (koma-script v.2)
14372 \begin_layout Standard
14376 \begin_inset VSpace medskip
14382 \begin_layout Standard
14384 Koma-Script第2.8版では,新しいletterクラス
14392 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14393 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14395 ますが,新しい方のクラスを使用することを推奨します.
14398 \begin_layout Standard
14401 letter (koma-script)
14403 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14423 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14441 挿入\SpecialChar menuseparator
14448 を入れることができるようになった点です.
14451 \begin_layout Standard
14452 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14453 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14461 \begin_layout Plain Layout
14466 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14480 文書\SpecialChar menuseparator
14481 設定\SpecialChar menuseparator
14482 文書クラス\SpecialChar menuseparator
14489 を加えることで読み込むことができます.
14494 .用例としては,\SpecialChar LyX
14499 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14506 \begin_layout Subsection
14510 \begin_layout Standard
14511 Koma-Script文書クラスを\SpecialChar LyX
14512 上に表示する上で,\SpecialChar LyX
14516 \begin_layout Itemize
14521 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14525 ラベル型に対する\SpecialChar LyX
14529 \begin_layout Itemize
14538 環境の見出しは,「本当の」\SpecialChar LaTeX
14539 の目次には追加されますが,\SpecialChar LyX
14547 \begin_layout Itemize
14552 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14555 文書\SpecialChar menuseparator
14558 ダイアログでは,対応するラジオボタンは
14566 は,隙間を空けるために,文書に\SpecialChar LaTeX
14567 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14570 \begin_layout Section
14574 \begin_layout Standard
14582 \begin_layout Subsection
14586 \begin_layout Standard
14587 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14588 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14592 \begin_layout Standard
14593 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14594 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14595 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14596 は,これらすべての素晴らしい機能をネイティブでサポ
14597 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14601 \begin_layout Plain Layout
14603 \begin_inset Flex URL
14606 \begin_layout Plain Layout
14608 lyx-devel@lists.lyx.org
14619 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14620 コマンド(\SpecialChar TeX
14625 \begin_layout Plain Layout
14627 \begin_inset CommandInset ref
14629 reference "sec:LaTeXコードを挿入する"
14638 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14639 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14640 は,Memoirクラスの詳しい取扱説明書
14644 \begin_layout Plain Layout
14646 \begin_inset Flex URL
14649 \begin_layout Plain Layout
14651 CTAN:/macros/latex/memoir/memman.pdf
14661 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14665 \begin_layout Subsection
14669 \begin_layout Standard
14670 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14673 \begin_layout Description
14674 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14677 \begin_layout Description
14678 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14680 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14682 文書\SpecialChar menuseparator
14683 設定\SpecialChar menuseparator
14686 参照).これらを章題ページに使用したい場合には,コマンド
14692 を,本文またはプリアンブルに記述する必要があります(例えば,
14696 chapterstyle{companion}
14701 \begin_layout Description
14702 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14703 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14706 挿入\SpecialChar menuseparator
14709 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
14710 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
14711 のものにヘッダ用短縮タイトルを入れてください.
14714 \begin_layout Description
14715 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14716 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14719 \begin_layout Description
14720 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14725 aliaspagestyle{title}{empty}
14730 \begin_layout Description
14737 文書\SpecialChar menuseparator
14738 設定\SpecialChar menuseparator
14741 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14742 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14745 \begin_layout Description
14746 Oldfontcommands: \SpecialChar LaTeX
14747 旧2.09版で使用されていた旧いフォントコマンド(
14759 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14765 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14766 は停止しなくなります).まだ,多くのパッケージと,
14767 就中多くのBib\SpecialChar TeX
14768 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14771 \begin_layout Subsection
14775 \begin_layout Standard
14777 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14781 \begin_layout Plain Layout
14782 \begin_inset Flex URL
14785 \begin_layout Plain Layout
14787 CTAN:/macros/latex/memoir/memman.pdf
14800 \begin_layout Description
14801 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14802 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14805 \begin_layout Description
14806 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14807 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14810 \begin_layout Description
14811 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14812 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
14813 を少しだます必要があります.ここでは,2つの引数の間に,
14823 のように,(\SpecialChar TeX
14824 モードで)波括弧を入れなくてはなりません.
14827 \begin_layout Description
14828 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14829 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14830 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14832 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14836 \begin_layout Description
14837 詩題*: 目次に現れない他は詩題と同じです.
14840 \begin_layout Section
14841 Article (mwart)・book (mwbk)・report (mwrep)
14842 \begin_inset Argument status
14845 \begin_layout Plain Layout
14858 \begin_layout Standard
14866 \begin_layout Standard
14874 report (mwrep)・book
14880 は,それぞれ\SpecialChar LaTeX
14905 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
14908 \begin_layout Standard
14912 \begin_layout Itemize
14920 \begin_layout Itemize
14925 \begin_layout Description
14929 \begin_layout Description
14945 \begin_layout Description
14946 myuheadings 分離線付きカスタムヘッダ
14949 \begin_layout Description
14954 \begin_layout Itemize
14959 \begin_layout Description
14960 rmheadings セリフ体見出し — 既定
14963 \begin_layout Description
14964 sfheadings サンセリフ体見出し
14967 \begin_layout Description
14968 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
14971 \begin_layout Description
14972 titleauthor タイトルページは,タイトル・著者名の順で配置
14975 \begin_layout Description
14976 withmarginpar ページ上に余白のための場所を確保
14980 \begin_layout Section
14984 \begin_layout Standard
14997 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15000 \begin_layout Section
15001 Rev\SpecialChar TeX
15005 \begin_layout Standard
15011 \begin_layout Standard
15012 \begin_inset VSpace bigskip
15018 \begin_layout Standard
15023 \begin_inset space ~
15028 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15030 \begin_inset Formula $\beta$
15036 \begin_layout Standard
15038 には,Rev\SpecialChar TeX
15043 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15044 2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15045 は\SpecialChar LaTeX2e
15046 を必要とすることから,第3.1版は\SpecialChar LyX
15048 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15049 4.0は,\SpecialChar LaTeX2e
15050 で素直に動作するようにデザインされているので,\SpecialChar LyX
15053 Rev\SpecialChar TeX
15055 \begin_inset space ~
15060 テキストクラスの組で使用するのは,たいへん簡単です.
15063 \begin_layout Standard
15064 この取扱説明書は,Rev\SpecialChar TeX
15069 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15070 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15074 \begin_layout Subsection
15078 \begin_layout Standard
15079 Rev\SpecialChar TeX
15080 4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15081 4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15084 \begin_inset Flex URL
15087 \begin_layout Plain Layout
15089 http://publish.aps.org/revtex4/
15094 から入手することができます.これを\SpecialChar LaTeX
15095 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15096 ィレクトリ)で簡単なRev\SpecialChar TeX
15097 4文書を \SpecialChar LaTeX
15098 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15099 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15104 \begin_layout Standard
15109 を使ってRev\SpecialChar TeX
15110 4文書を読み込むか,またはひな型ディレクトリにある
15113 \begin_inset space ~
15118 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15121 \begin_layout Subsection
15125 \begin_layout Standard
15132 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15134 文書\SpecialChar menuseparator
15135 設定\SpecialChar menuseparator
15142 フィールドに入れます.Rev\SpecialChar TeX
15143 では,少なくとも一つの非必須引数が必要なことに注意してください.
15146 \begin_layout Standard
15153 など他のプリアンブルは,他のクラス同様,
15155 文書\SpecialChar menuseparator
15156 設定\SpecialChar menuseparator
15163 \begin_layout Subsection
15167 \begin_layout Standard
15168 レイアウトは,基本的にRev\SpecialChar TeX
15169 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15175 に対応しています.(少なくともRev\SpecialChar TeX
15184 はまったく同じものなので,両方を使う必要はありません
15188 \begin_layout Plain Layout
15213 \begin_layout Subsection
15217 \begin_layout Standard
15218 Rev\SpecialChar TeX
15219 4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15220 ではさらに気をつけなくてはなりません.
15223 \begin_layout Standard
15224 Rev\SpecialChar TeX
15241 に来なくてはなりません.\SpecialChar LyX
15250 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15254 \begin_layout Standard
15275 )レイアウトの間に置かなければなりません.
15283 の後に置いてしまうと,\SpecialChar LaTeX
15287 \begin_layout Subsection
15291 \begin_layout Standard
15292 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
15293 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
15295 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
15296 ファイルを編集し,非必須引数を書き加えなくてはならないということで
15309 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
15313 \begin_layout Plain Layout
15318 実は,\SpecialChar LyX
15319 1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
15327 \begin_layout Section
15333 \begin_layout Standard
15341 \begin_layout Subsection
15345 \begin_layout Standard
15346 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15347 \begin_inset Flex URL
15350 \begin_layout Plain Layout
15352 http://www.springer.de/author/tex/help-journals.html
15357 に必要なクラスファイル(\SpecialChar LaTeX2e
15358 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15362 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15369 \begin_layout Standard
15370 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15385 \begin_layout Standard
15386 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15394 は,標準\SpecialChar LyX
15395 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15396 を再設定した後(teTeXの場合は,必
15401 を実行します),\SpecialChar LyX
15405 \begin_layout Subsection
15409 \begin_layout Standard
15418 ・\SpecialChar ldots
15426 \begin_layout Standard
15437 サブタイトル・ヘッダ用\SpecialChar LaTeX
15438 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15441 .詳しくは Springerのクラスファイルの説明書を読んでください.
15444 \begin_layout Subsection
15448 \begin_layout Itemize
15460 \begin_layout Itemize
15463 Probability Theory and Related Fields
15469 — Jean-Marc Lasgouttes
15472 \begin_layout Standard
15473 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15476 \begin_layout Subsection
15480 \begin_layout Standard
15489 は Springerの\SpecialChar LaTeX
15490 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15491 Lasgouttesのおかげで \SpecialChar LyX
15492 のレイアウトファイルのメカニズムをよりよく理解することができました.
15495 \begin_layout Subsection
15499 \begin_layout Standard
15504 よりは少なくなっているとは思いますが.
15507 \begin_layout Standard
15508 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
15511 \begin_layout Section
15514 Sli\SpecialChar TeX
15521 \begin_layout Plain Layout
15522 (訳註)この節の内容は,全般的に古くなっています.
15528 \begin_inset CommandInset label
15537 \begin_layout Standard
15545 \begin_layout Subsection
15549 \begin_layout Standard
15550 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15551 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15553 Foil\SpecialChar TeX
15556 スライドクラスの2つがあります.本節は前者について説明を行います.
15559 \begin_layout Standard
15560 誤解のないように,正しく明確に,もう一度言っておきます.
15563 \begin_layout Standard
15564 \begin_inset VSpace bigskip
15570 \begin_layout Standard
15575 \begin_inset Quotes eld
15580 transparencies (slides)
15583 \begin_inset Quotes erd
15593 \begin_layout Standard
15594 \begin_inset VSpace bigskip
15600 \begin_layout Standard
15603 「slides (Foil\SpecialChar TeX
15607 \begin_inset CommandInset ref
15609 reference "sec:foiltex"
15619 slides (Foil\SpecialChar TeX
15630 \begin_layout Plain Layout
15634 Foil\SpecialChar TeX
15637 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15645 \begin_layout Standard
15646 このクラスは,旧SLI\SpecialChar TeX
15647 パッケージを\SpecialChar LaTeX2e
15648 用に改良したものです.\SpecialChar LaTeX2e
15649 頒布版すべてが,このクラス(以下では単に「
15653 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15657 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15662 ならばできることもあります.詳しくは以下をお読みください.
15665 \begin_layout Subsection
15667 \begin_inset CommandInset label
15669 name "sec:slidesetup"
15676 \begin_layout Standard
15677 当然ながら,この文書クラスを使用するには,
15679 文書\SpecialChar menuseparator
15684 transparencies (slides)
15686 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15689 \begin_layout Itemize
15698 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15702 クラスではサポートされていないので,効果がありません.
15705 \begin_layout Itemize
15710 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15714 \begin_layout Description
15715 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15718 \begin_layout Description
15723 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15726 \begin_layout Description
15727 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15731 \begin_layout Itemize
15740 というオプションがあります.これを使用するには,
15752 \begin_layout Standard
15757 にタイムマーカーを加えることができます.詳細は,第
15758 \begin_inset CommandInset ref
15760 reference "sec:スライド注釈"
15768 \begin_layout Standard
15773 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15777 」を使用することもできます(新規ファイルを開く際に
15779 ファイル\SpecialChar menuseparator
15782 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15785 \begin_layout Subsection
15789 \begin_layout Subsubsection
15795 \begin_layout Standard
15800 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15808 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15809 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15812 \begin_layout Standard
15813 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15818 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15821 \begin_layout Itemize
15827 \begin_layout Itemize
15833 \begin_layout Itemize
15839 \begin_layout Itemize
15845 \begin_layout Itemize
15851 \begin_layout Itemize
15857 \begin_layout Itemize
15863 \begin_layout Itemize
15869 \begin_layout Itemize
15875 \begin_layout Itemize
15882 \begin_layout Itemize
15888 \begin_layout Standard
15889 これ以外の標準的な環境,例えば節見出し用の環境などは
15896 \begin_layout Standard
15900 \begin_layout Itemize
15906 \begin_layout Itemize
15912 \begin_layout Itemize
15918 \begin_layout Itemize
15924 \begin_layout Itemize
15930 \begin_layout Standard
15931 これら5つの環境は,\SpecialChar LyX
15932 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
15933 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
15934 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
15938 \begin_layout Subsubsection
15940 \begin_inset CommandInset label
15949 \begin_layout Standard
15950 5つの新しい環境にはすべて,\SpecialChar LyX
15951 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
15952 では,環境を別の環境で開始することが禁止されています.これを回避するために,
15960 』で述べられているような段落環境ではなくなっています.
15963 \begin_layout Standard
15976 は「疑似環境」だとお考えください.これらは節見出しや「
15980 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
15988 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
15991 \begin_layout Standard
16012 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16032 では,まったく意味がなく,\SpecialChar LyX
16033 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16036 \begin_layout Standard
16045 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16053 \begin_layout Standard
16054 一方,説明文を入れたくない場合には,\SpecialChar LyX
16055 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16056 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16060 \begin_layout Itemize
16088 \begin_layout Itemize
16092 \begin_layout Itemize
16100 \begin_layout Itemize
16124 \begin_layout Standard
16125 将来の\SpecialChar LyX
16126 では,このような癖が解決されることを祈っています\SpecialChar ldots
16131 \begin_layout Plain Layout
16132 (訳註)ここの記述は古くなっています.
16140 \begin_layout Subsection
16154 \begin_layout Subsubsection
16162 \begin_layout Standard
16163 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16168 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16172 \begin_layout Standard
16178 \begin_inset CommandInset ref
16180 reference "sec:スライドの癖"
16184 節参照のこと),\SpecialChar LyX
16185 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16186 環境は,すべて新規スライドに入ります.簡単ですよね.
16189 \begin_layout Standard
16190 Slidesは,おそらく\SpecialChar LyX
16191 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16195 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16196 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16204 \begin_layout Standard
16217 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16225 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16228 \begin_layout Standard
16241 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16249 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16252 \begin_layout Subsubsection
16258 \begin_layout Standard
16263 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16267 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16271 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16272 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16279 \begin_layout Standard
16296 \begin_layout Plain Layout
16297 想像できるように,複数のオーバーレイがあれば,「
16309 」などが親スライドのページ番号に付け加えられます.
16322 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16330 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16339 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16347 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16350 \begin_layout Standard
16351 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16352 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16353 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16364 \begin_layout Standard
16373 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16374 \begin_inset CommandInset ref
16376 reference "sec:スライドの癖"
16388 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16396 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16399 \begin_layout Standard
16404 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16420 は自動的に終了されることに注意してください.したがって,
16431 \begin_layout Standard
16448 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16451 \begin_layout Enumerate
16456 かに関わらず,スライド上に現れるすべてを含んだ
16463 \begin_layout Enumerate
16468 のみに表示するすべての図や段落の前に,
16483 \begin_layout Enumerate
16495 \begin_layout Enumerate
16507 \begin_layout Enumerate
16531 \begin_layout Standard
16539 \begin_layout Standard
16545 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16546 実現するためには,\SpecialChar LaTeX
16551 \begin_layout Plain Layout
16555 \begin_layout Itemize
16560 invisible \SpecialChar ldots
16564 \begin_layout Itemize
16569 visible \SpecialChar ldots
16573 \begin_layout Plain Layout
16575 のような形となり,\SpecialChar TeX
16576 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16588 コマンドの後ろ)に入れます.\SpecialChar TeX
16589 としてマークする方法がわからない場合は,
16601 \begin_layout Subsubsection
16607 \begin_inset CommandInset label
16616 \begin_layout Standard
16629 に関連付けられています.ここでも\SpecialChar LyX
16642 よりも短く(オーバーレイのラベルよりも長いですが),
16646 のラベルと同様,派手な赤紫色です.加えて,印刷した
16662 3」等を付けたページ番号が付けられます.1つの
16678 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16681 \begin_layout Standard
16690 に関して付け加えたいことを書き留めておくことです.特定の
16694 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16704 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16705 コードを使用することに頼らなくてはなりません.
16708 \begin_layout Standard
16709 タイムマーカを使用するには,クラスオプション「
16714 \begin_inset CommandInset ref
16716 reference "sec:slidesetup"
16720 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16724 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16737 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16743 」は,タイムマーカを特定の時間に設定し,「
16749 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16757 にどれだけの時間をかけるのか忘れないでいられます.
16760 \begin_layout Standard
16761 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16773 はすべて普通の紙に印刷したいはずです.しかしながら,
16781 .ユーザーはどうしたら良いのでしょうか.
16784 \begin_layout Standard
16785 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16786 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16802 のみが含まれるようにするものです.同様に,「
16814 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16815 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16824 のコメントを外して,現ファイル名に「*
16828 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16840 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16843 \begin_layout Standard
16856 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16860 \begin_layout Subsection
16868 \begin_layout Standard
16877 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16879 ファイル\SpecialChar menuseparator
16882 メニューを選択してください.すると新規ファイルには,
16910 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
16913 \begin_layout LyX-Code
16914 % Uncomment to print out only slides and overlays
16917 \begin_layout LyX-Code
16921 \begin_layout LyX-Code
16927 \begin_inset Newline newline
16933 \begin_layout LyX-Code
16934 % Uncomment to print out only notes
16937 \begin_layout LyX-Code
16941 \begin_layout LyX-Code
16949 \begin_layout Standard
16950 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
16953 Sli\SpecialChar TeX
16956 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
16957 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
16958 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
16963 \begin_inset CommandInset ref
16965 reference "sec:foiltex"
16973 」パッケージ(一部の\SpecialChar TeX
16974 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
16975 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
16979 \begin_layout Chapter
16980 ソフトウェアを追加する必要がある \SpecialChar LyX
16984 \begin_layout Section
16989 \begin_layout Standard
16997 \begin_layout Subsection
17001 \begin_layout Standard
17010 \begin_layout Plain Layout
17012 頒布版としてMiK\SpecialChar TeX
17036 \begin_inset Newline newline
17040 \begin_inset CommandInset href
17042 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17049 \begin_layout Standard
17052 Chk\SpecialChar TeX
17055 パッケージは,\SpecialChar LaTeX
17056 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17057 \begin_inset Flex Noun
17060 \begin_layout Plain Layout
17067 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17068 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17075 \begin_layout Standard
17076 さて,\SpecialChar LyX
17077 はつねに正しい\SpecialChar LaTeX
17078 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17079 で何をするというのでしょうか.答えは簡単です.
17087 をチェックするだけでなく,打ち間違いによる
17093 Chk\SpecialChar TeX
17102 Chk\SpecialChar TeX
17105 は,以下のような誤りを検出することができます.
17108 \begin_layout Itemize
17110 \begin_inset Newline newline
17113 ...ではなく\SpecialChar ldots
17117 \begin_layout Itemize
17119 \begin_inset Newline newline
17122 ( wrong spacing ):誤った空白
17125 \begin_layout Itemize
17126 よく使われる省略形の後ろは通常スペースにする:
17127 \begin_inset Newline newline
17131 \begin_inset space \thinspace{}
17135 \begin_inset space \space{}
17138 is too wide spacing.:広すぎる空白
17141 \begin_layout Itemize
17142 直前の文章が大文字で終わっているときに,文末スペースに直す:
17143 \begin_inset Newline newline
17147 And this is wrong spacing.:誤った空白
17150 \begin_layout Itemize
17152 \begin_inset Newline newline
17155 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません.
17156 \begin_inset CommandInset label
17166 \begin_layout Plain Layout
17167 この脚注は,正しくないページに行ってしまう恐れがあります.
17175 \begin_layout Itemize
17176 参照の前にハードスペースではなくスペース:
17177 \begin_inset Newline newline
17180 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17181 \begin_inset CommandInset ref
17183 reference "sec:chktex"
17190 \begin_layout Itemize
17192 \begin_inset Formula $\times$
17196 \begin_inset Newline newline
17200 \begin_inset Formula $2\times2$
17206 \begin_layout Standard
17207 などなど\SpecialChar ldots
17210 Chk\SpecialChar TeX
17213 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17216 \begin_layout Subsection
17220 \begin_layout Standard
17221 このプログラムを導入したならば,使うのは
17223 ツール\SpecialChar menuseparator
17227 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17228 は使用中の文書の\SpecialChar LaTeX
17231 Chk\SpecialChar TeX
17234 を起動し,当該ファイルを検査しますが,
17236 Chk\SpecialChar TeX
17239 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17240 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17242 移動\SpecialChar menuseparator
17250 \begin_inset Flex Ruby
17253 \begin_layout Plain Layout
17255 \begin_inset Argument post:1
17258 \begin_layout Plain Layout
17270 \begin_inset Flex Ruby
17273 \begin_layout Plain Layout
17293 \begin_inset Argument post:1
17296 \begin_layout Plain Layout
17311 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17327 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17329 Chk\SpecialChar TeX
17332 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17336 \begin_layout Standard
17337 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17338 警告のほとんどは実際には警告に値しません.
17341 \begin_layout Subsection
17345 \begin_layout Standard
17348 Chk\SpecialChar TeX
17351 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17353 Chk\SpecialChar TeX
17356 を無効にするか,あなたにもう少し合うように
17358 Chk\SpecialChar TeX
17364 \begin_layout Standard
17367 Chk\SpecialChar TeX
17370 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17373 Chk\SpecialChar TeX
17376 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17379 Chk\SpecialChar TeX
17386 \begin_layout Plain Layout
17397 文書\SpecialChar menuseparator
17406 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17407 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17408 ためには,以下の2つの方法があります.
17411 \begin_layout Itemize
17414 \begin_inset Flex MenuItem
17417 \begin_layout Plain Layout
17420 ツール\SpecialChar menuseparator
17421 設定\SpecialChar menuseparator
17422 出力\SpecialChar menuseparator
17424 \SpecialChar menuseparator
17425 Check\SpecialChar TeX
17435 Chk\SpecialChar TeX
17438 起動コマンドラインを調整するか,グローバルな
17440 Chk\SpecialChar TeX
17444 \begin_inset Flex Code
17447 \begin_layout Plain Layout
17453 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17456 \begin_layout Itemize
17459 ファイル\SpecialChar menuseparator
17460 書き出し\SpecialChar menuseparator
17464 を使って文書を\SpecialChar LaTeX
17465 ファイルに変換し,そのファイルに対して
17469 を手動で実行します.このようにすると,\SpecialChar LyX
17470 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17473 \begin_layout Standard
17478 で有効化・無効化できる警告メッセージです.警告を無効にするには
17486 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17488 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17493 \begin_layout Standard
17499 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17502 \begin_layout Enumerate
17506 Command terminated with space.
17509 \begin_layout Enumerate
17512 Non-breaking space (
17513 \begin_inset Quotes eld
17521 \begin_inset Quotes erd
17524 ) should have been used.
17527 \begin_layout Enumerate
17531 You should enclose the previous parenthesis with
17532 \begin_inset Quotes eld
17540 \begin_inset Quotes erd
17546 \begin_layout Enumerate
17549 Italic correction (
17550 \begin_inset Quotes eld
17560 \begin_inset Quotes erd
17563 ) found in non-italic buffer.
17566 \begin_layout Enumerate
17569 Italic correction (
17570 \begin_inset Quotes eld
17580 \begin_inset Quotes erd
17583 ) found more than once.
17586 \begin_layout Enumerate
17590 No italic correction (
17591 \begin_inset Quotes eld
17601 \begin_inset Quotes erd
17607 \begin_layout Enumerate
17611 \begin_inset Quotes eld
17619 \begin_inset Quotes erd
17623 \begin_inset Quotes eld
17631 \begin_inset Quotes erd
17637 \begin_layout Enumerate
17640 Wrong length of dash may have been used.
17643 \begin_layout Enumerate
17647 \begin_inset Quotes eld
17655 \begin_inset Quotes erd
17659 \begin_inset Quotes eld
17667 \begin_inset Quotes erd
17673 \begin_layout Enumerate
17677 \begin_inset Quotes eld
17685 \begin_inset Quotes erd
17691 \begin_layout Enumerate
17695 \begin_inset Quotes eld
17703 \begin_inset Quotes erd
17706 to achieve an ellipsis.
17709 \begin_layout Enumerate
17712 Inter-word spacing (
17713 \begin_inset Quotes eld
17723 \begin_inset Quotes eld
17726 ) should perhaps be used.
17729 \begin_layout Enumerate
17732 Inter-sentence spacing (
17733 \begin_inset Quotes eld
17743 \begin_inset Quotes erd
17746 ) should perhaps be used.
17749 \begin_layout Enumerate
17752 Could not find argument for command.
17755 \begin_layout Enumerate
17759 \begin_inset Quotes eld
17767 \begin_inset Quotes erd
17773 \begin_layout Enumerate
17776 Math mode still on at end of \SpecialChar LaTeX
17780 \begin_layout Enumerate
17784 \begin_inset Quotes eld
17792 \begin_inset Quotes erd
17795 doesn't match the number of
17796 \begin_inset Quotes eld
17804 \begin_inset Quotes erd
17810 \begin_layout Enumerate
17813 You should use either
17816 \begin_inset Quotes eld
17824 \begin_inset Quotes erd
17829 as an alternative to
17830 \begin_inset Quotes eld
17838 \begin_inset Quotes erd
17844 \begin_layout Enumerate
17851 " (ASCII 39) instead of "" (ASCII 180).
17854 \begin_layout Enumerate
17857 User-specified pattern found.
17860 \begin_layout Enumerate
17863 This command might not be intended.
17866 \begin_layout Enumerate
17873 \begin_layout Enumerate
17891 \begin_layout Enumerate
17894 Delete this space to maintain correct page references.
17897 \begin_layout Enumerate
17901 You might wish to put this between a pair of
17902 \begin_inset Quotes eld
17910 \begin_inset Quotes erd
17916 \begin_layout Enumerate
17919 You ought to remove spaces in front of punctuation.
17922 \begin_layout Enumerate
17925 Could not execute \SpecialChar LaTeX
17929 \begin_layout Enumerate
17938 in front of small punctuation.
17941 \begin_layout Enumerate
17949 may look prettier here.
17952 \begin_layout Enumerate
17956 Multiple spaces detected in output.
17959 \begin_layout Enumerate
17962 This text may be ignored.
17965 \begin_layout Enumerate
17971 \begin_inset Quotes eld
17976 to begin quotation, not
17983 \begin_layout Enumerate
17990 to end quotation, not
17993 \begin_inset Quotes eld
18001 \begin_layout Enumerate
18007 \begin_layout Enumerate
18010 You should perhaps use
18011 \begin_inset Quotes eld
18019 \begin_inset Quotes erd
18025 \begin_layout Enumerate
18028 You should put a space in front of/after parenthesis.
18031 \begin_layout Enumerate
18034 You should avoid spaces in front of/after parenthesis.
18037 \begin_layout Enumerate
18041 You should not use punctuation in front of/after quotes.
18044 \begin_layout Enumerate
18047 Double space found.
18050 \begin_layout Enumerate
18053 You should put punctuation outside inner/inside display math mode.
18056 \begin_layout Enumerate
18059 You ought to not use primitive \SpecialChar TeX
18060 in \SpecialChar LaTeX
18064 \begin_layout Enumerate
18067 You should remove spaces in front of
18068 \begin_inset Quotes eld
18076 \begin_inset Quotes erd
18082 \begin_layout Enumerate
18085 \begin_inset Quotes eld
18093 \begin_inset Quotes erd
18096 is normally not followed by
18097 \begin_inset Quotes eld
18105 \begin_inset Quotes erd
18111 \begin_layout Standard
18113 の将来の版では,このツール(およびその縮小版
18117 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18118 書に使用してみていただければ,きっと驚かれることでしょう.
18121 \begin_layout Section
18126 \begin_layout Standard
18129 Lars Bullik Bjønnes
18138 \begin_layout Subsection
18142 \begin_layout Standard
18144 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18148 \begin_layout Standard
18149 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18154 \begin_layout Plain Layout
18155 \begin_inset CommandInset href
18157 target "http://svnbook.red-bean.com/"
18166 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18170 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18174 で終わるファイルです)の概念に注意を払ってください.
18177 \begin_layout Standard
18179 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18182 RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18183 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18185 表示\SpecialChar menuseparator
18186 ツールバー\SpecialChar menuseparator
18192 \begin_layout Standard
18193 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
18194 関数説明書のvcコマンドを確認してください.
18197 \begin_layout Standard
18198 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18200 文書\SpecialChar menuseparator
18203 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18204 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18207 \begin_layout Subsection
18212 \begin_layout Standard
18213 以下の節では\SpecialChar LyX
18214 でサポートされているRCSコマンドを説明します.それらのコマンドは
18216 ファイル\SpecialChar menuseparator
18219 のサブメニューにあります.\SpecialChar LyX
18220 は,RCS 5.7/5.8に対して試験されています.
18223 \begin_layout Subsubsection
18229 \begin_layout Standard
18230 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18237 \begin_layout Standard
18238 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18239 書は読み込み専用モードになるので,変更を加えるためには
18243 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18246 \begin_layout Standard
18250 \begin_inset Newline newline
18253 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18256 \begin_layout Standard
18264 \begin_layout Subsubsection
18270 \begin_layout Standard
18271 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18272 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18275 \begin_layout Standard
18278 ci -q -u -m"<説明文>" <ファイル名>
18281 \begin_layout Subsubsection
18287 \begin_layout Standard
18288 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18289 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18292 \begin_layout Standard
18298 \begin_layout Subsubsection
18304 \begin_layout Standard
18305 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18308 \begin_layout Standard
18311 co -f -u<バージョン> <ファイル名>
18314 \begin_layout Subsubsection
18320 \begin_layout Standard
18321 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18322 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18323 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18325 ファイル\SpecialChar menuseparator
18326 名前をつけて保存\SpecialChar ldots
18329 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18332 \begin_layout Labeling
18333 \labelwidthstring 00.00.0000
18335 \begin_inset Flex Code
18338 \begin_layout Plain Layout
18351 \begin_layout Labeling
18352 \labelwidthstring 00.00.0000
18353 \begin_inset Flex Code
18356 \begin_layout Plain Layout
18357 ci -q -u -i "<新ファイル名>"
18365 \begin_layout Subsubsection
18371 \begin_layout Standard
18372 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18373 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18377 \begin_layout Standard
18380 rcs -o<バージョン> <ファイル名>
18383 \begin_layout Subsubsection
18389 \begin_layout Standard
18390 RCS文書の完全な履歴を表示します.ブラウザ中に,
18401 \begin_layout Subsubsection
18405 \begin_layout Standard
18407 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18408 \begin_inset CommandInset ref
18410 reference "subsec:VCS改訂情報"
18417 \begin_layout Subsection
18422 \begin_layout Standard
18424 は,現在CVSを一部サポートしています.そのコマンドは,
18426 ファイル\SpecialChar menuseparator
18429 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18432 \begin_layout Subsubsection
18436 \begin_layout Standard
18437 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18438 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18441 \begin_layout Standard
18442 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18443 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18444 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18445 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18446 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18447 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18448 で予備付きチェックアウトを利用したい場合には,
18449 \begin_inset Flex Code
18452 \begin_layout Plain Layout
18459 \begin_inset Flex Code
18462 \begin_layout Plain Layout
18468 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18469 コピーを書き込み可能にしているとは限りません.
18472 \begin_layout Standard
18474 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18475 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18476 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18478 \begin_inset Flex MenuItem
18481 \begin_layout Plain Layout
18487 メニューを使用しなくてはなりません.その後,
18488 \begin_inset Flex MenuItem
18491 \begin_layout Plain Layout
18497 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18500 \begin_layout Standard
18502 \begin_inset Flex URL
18505 \begin_layout Plain Layout
18507 http://www.nongnu.org/cvs
18513 \begin_inset Flex URL
18516 \begin_layout Plain Layout
18518 http://ximbiot.com/cvs
18526 \begin_layout Standard
18527 以下に言及するサブコマンドとスイッチを理解するには,
18534 \begin_layout Subsubsection
18538 \begin_layout Standard
18539 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18546 \begin_layout Standard
18547 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18554 \begin_inset Flex Code
18557 \begin_layout Plain Layout
18563 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18564 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18568 \begin_layout Standard
18569 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18572 \begin_layout Standard
18575 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18580 \begin_layout Standard
18581 上記および他のすべてのCVSコマンドにおける
18585 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18588 \begin_layout Subsubsection
18592 \begin_layout Standard
18593 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18594 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18595 \begin_inset Flex MenuItem
18598 \begin_layout Plain Layout
18607 \begin_layout Labeling
18608 \labelwidthstring 00.00.0000
18610 \begin_inset space ~
18614 \begin_inset Newline newline
18618 \begin_inset Flex Code
18621 \begin_layout Plain Layout
18622 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18628 \begin_inset Newline newline
18632 \begin_inset Flex Code
18635 \begin_layout Plain Layout
18636 cvs -q unedit "<ファイル名>"
18644 \begin_layout Subsubsection
18648 \begin_layout Standard
18649 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18652 \begin_layout Standard
18655 cvs -q update "<ファイル名>"
18658 \begin_layout Standard
18659 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18662 \begin_layout Standard
18665 cvs -q edit "<ファイル名>"
18668 \begin_layout Subsubsection
18672 \begin_layout Standard
18673 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18677 \begin_layout Standard
18680 cvs -q update "<ファイル名>"
18683 \begin_layout Standard
18684 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18687 \begin_layout Standard
18690 cvs -q unedit "<ファイル名>"
18693 \begin_layout Subsubsection
18699 \begin_layout Standard
18700 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18701 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18702 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18704 ファイル\SpecialChar menuseparator
18705 名前をつけて保存\SpecialChar ldots
18708 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18711 \begin_layout Labeling
18712 \labelwidthstring 00.00.0000
18716 \begin_layout Labeling
18717 \labelwidthstring 00.00.0000
18718 \begin_inset Flex Code
18721 \begin_layout Plain Layout
18728 \begin_inset Flex Code
18731 \begin_layout Plain Layout
18740 \begin_layout Labeling
18741 \labelwidthstring 00.00.0000
18742 \begin_inset Flex Code
18745 \begin_layout Plain Layout
18746 cvs -q add "<新ファイル名>"
18754 \begin_layout Subsubsection
18758 \begin_layout Standard
18759 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18760 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18761 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18764 ファイル\SpecialChar menuseparator
18765 名前をつけて保存\SpecialChar ldots
18768 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18771 \begin_layout Labeling
18772 \labelwidthstring 00.00.0000
18776 \begin_layout Labeling
18777 \labelwidthstring 00.00.0000
18778 \begin_inset Flex Code
18781 \begin_layout Plain Layout
18788 \begin_inset Flex Code
18791 \begin_layout Plain Layout
18800 \begin_layout Labeling
18801 \labelwidthstring 00.00.0000
18802 \begin_inset Flex Code
18805 \begin_layout Plain Layout
18806 cvs -q add "<新ファイル名>"
18814 \begin_layout Labeling
18815 \labelwidthstring 00.00.0000
18816 \begin_inset Flex Code
18819 \begin_layout Plain Layout
18820 cvs -q remove "<ファイル名>"
18828 \begin_layout Subsubsection
18829 ローカルディレクトリチェックアウトのレポジトリからの更新
18832 \begin_layout Standard
18834 \begin_inset Flex Code
18837 \begin_layout Plain Layout
18843 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18844 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18845 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18846 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18850 \begin_layout Standard
18852 \begin_inset Flex Code
18855 \begin_layout Plain Layout
18861 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18862 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18863 \begin_inset Flex Code
18866 \begin_layout Plain Layout
18873 \begin_inset Flex Code
18876 \begin_layout Plain Layout
18883 \begin_inset Flex Code
18886 \begin_layout Plain Layout
18892 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
18893 \begin_inset Flex Code
18896 \begin_layout Plain Layout
18902 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
18905 \begin_layout Labeling
18906 \labelwidthstring 00.00.0000
18908 \begin_inset space ~
18912 \begin_inset Newline newline
18916 \begin_inset Flex Code
18919 \begin_layout Plain Layout
18920 cd $path; cvs diff "."
18926 \begin_inset Newline newline
18930 \begin_inset Flex Code
18933 \begin_layout Plain Layout
18934 cd $path; cvs -q update "."
18942 \begin_layout Standard
18944 \begin_inset Flex Code
18947 \begin_layout Plain Layout
18956 \begin_layout Subsubsection
18960 \begin_layout Standard
18961 これは,CVS文書の全履歴を表示します.
18962 \begin_inset Flex Code
18965 \begin_layout Plain Layout
18967 \begin_inset Quotes eld
18971 \begin_inset Quotes erd
18982 \begin_layout Subsubsection
18986 \begin_layout Standard
18988 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
18992 によって抽出されます.詳細については,第
18993 \begin_inset CommandInset ref
18995 reference "subsec:VCS改訂情報"
19002 \begin_layout Subsection
19007 \begin_layout Standard
19009 は,現在SVNを一部サポートしています.そのコマンドは,
19010 \begin_inset Flex MenuItem
19013 \begin_layout Plain Layout
19014 ファイル\SpecialChar menuseparator
19020 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19022 1.5および1.6に対して試験されています.
19025 \begin_layout Subsubsection
19029 \begin_layout Standard
19030 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19037 \begin_layout Standard
19038 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19043 \begin_inset Flex Code
19046 \begin_layout Plain Layout
19052 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19055 \begin_layout Standard
19056 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19059 \begin_layout Standard
19061 \begin_inset Flex Code
19064 \begin_layout Plain Layout
19066 \begin_inset Quotes eld
19070 \begin_inset Quotes erd
19081 \begin_layout Standard
19083 \begin_inset Flex Code
19086 \begin_layout Plain Layout
19095 \begin_layout Subsubsection
19099 \begin_layout Standard
19100 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19103 \begin_layout Standard
19108 \begin_layout Plain Layout
19109 ロックが有効になっていない場合です.第
19110 \begin_inset CommandInset ref
19112 reference "subsec:SVNファイルロック"
19122 \begin_inset Flex Code
19125 \begin_layout Plain Layout
19127 \begin_inset Quotes erd
19131 \begin_inset Quotes erd
19135 \begin_inset Quotes eld
19139 \begin_inset Quotes erd
19150 \begin_layout Subsubsection
19154 \begin_layout Standard
19155 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19159 \begin_layout Standard
19164 \begin_layout Plain Layout
19171 \begin_inset Flex Code
19174 \begin_layout Plain Layout
19175 svn update –non-interactive
19176 \begin_inset Quotes eld
19180 \begin_inset Quotes erd
19191 \begin_layout Subsubsection
19195 \begin_layout Standard
19196 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19199 \begin_layout Standard
19201 \begin_inset Flex Code
19204 \begin_layout Plain Layout
19206 \begin_inset Quotes eld
19210 \begin_inset Quotes erd
19221 \begin_layout Subsubsection
19227 \begin_layout Standard
19228 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19229 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19232 ファイル\SpecialChar menuseparator
19233 名前をつけて保存\SpecialChar ldots
19236 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19239 \begin_layout Labeling
19240 \labelwidthstring 00.00.0000
19244 \begin_layout Labeling
19245 \labelwidthstring 00.00.0000
19246 \begin_inset Flex Code
19249 \begin_layout Plain Layout
19250 svn copy -q "<ファイル名>" "<新ファイル名>"
19258 \begin_layout Labeling
19259 \labelwidthstring 00.00.0000
19260 \begin_inset Flex Code
19263 \begin_layout Plain Layout
19272 \begin_layout Subsubsection
19276 \begin_layout Standard
19277 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19278 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19281 ファイル\SpecialChar menuseparator
19282 名前をつけて保存\SpecialChar ldots
19285 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19288 \begin_layout Labeling
19289 \labelwidthstring 00.00.0000
19293 \begin_layout Labeling
19294 \labelwidthstring 00.00.0000
19295 \begin_inset Flex Code
19298 \begin_layout Plain Layout
19299 svn move -q add "<ファイル名>" "<新ファイル名>"
19307 \begin_layout Labeling
19308 \labelwidthstring 00.00.0000
19309 \begin_inset Flex Code
19312 \begin_layout Plain Layout
19321 \begin_layout Subsubsection
19322 \begin_inset CommandInset label
19324 name "subsec:レポジトリからSVN同期"
19328 レポジトリを使ったローカルディレクトリの同期
19332 \begin_layout Plain Layout
19334 \begin_inset Formula $\geqq1.5$
19337 でのみ動作することに注意してください.
19345 \begin_layout Standard
19346 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19347 \begin_inset Flex Code
19350 \begin_layout Plain Layout
19356 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19357 は,文書のおいてあるツリー全体の更新をサポートします
19361 \begin_layout Plain Layout
19362 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19367 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19371 \begin_layout Standard
19372 \begin_inset Flex Code
19375 \begin_layout Plain Layout
19381 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19382 場合には,更新が開始される前にユーザに警告が与えられます.
19385 \begin_layout Labeling
19386 \labelwidthstring 00.00.0000
19388 \begin_inset space ~
19392 \begin_inset Newline newline
19396 \begin_inset Flex Code
19399 \begin_layout Plain Layout
19400 svn diff $path(変更が発見された場合には通知します)
19401 \begin_inset Newline newline
19404 svn update –accept mine-full $path
19412 \begin_layout Standard
19414 \begin_inset Flex Code
19417 \begin_layout Plain Layout
19426 \begin_layout Subsubsection
19430 \begin_layout Standard
19431 これは,SVN文書の全履歴を表示します.
19432 \begin_inset Flex Code
19435 \begin_layout Plain Layout
19437 \begin_inset Quotes eld
19441 \begin_inset Quotes erd
19452 \begin_layout Subsubsection
19454 \begin_inset CommandInset label
19456 name "subsec:SVNファイルロック"
19463 \begin_layout Standard
19464 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19465 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19466 するための,何らかのロック機構を導入することが考えられます.
19469 \begin_layout Standard
19470 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19471 \begin_inset Flex Code
19474 \begin_layout Plain Layout
19480 svnファイル特性に依拠した書き込み権限の自動設定(第
19481 \begin_inset CommandInset ref
19483 reference "subsec:自動ロック特性"
19491 \begin_layout Plain Layout
19492 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19497 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19498 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19499 り替わります.これは特に,\SpecialChar LyX
19500 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19503 \begin_layout Itemize
19504 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19508 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19511 \begin_layout Itemize
19512 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19516 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19520 \begin_layout Plain Layout
19521 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19526 ,書き込みロックの解放のみが行われます.
19529 \begin_layout Standard
19533 \begin_layout Labeling
19534 \labelwidthstring 00.00.0000
19536 \begin_inset Flex Code
19539 \begin_layout Plain Layout
19541 \begin_inset Quotes erd
19545 \begin_inset Quotes erd
19549 \begin_inset Quotes eld
19553 \begin_inset Quotes erd
19562 \begin_inset Newline newline
19566 \begin_inset Flex Code
19569 \begin_layout Plain Layout
19571 \begin_inset Quotes eld
19575 \begin_inset Quotes erd
19586 \begin_layout Labeling
19587 \labelwidthstring 00.00.0000
19589 \begin_inset Flex Code
19592 \begin_layout Plain Layout
19594 \begin_inset Quotes eld
19598 \begin_inset Quotes erd
19607 \begin_inset Newline newline
19611 \begin_inset Flex Code
19614 \begin_layout Plain Layout
19616 \begin_inset Quotes eld
19620 \begin_inset Quotes erd
19631 \begin_layout Subsubsection
19633 \begin_inset CommandInset label
19635 name "subsec:自動ロック特性"
19642 \begin_layout Standard
19644 \begin_inset Flex Code
19647 \begin_layout Plain Layout
19653 ファイルに対する書き込み権限の自動設定は,
19654 \begin_inset Flex MenuItem
19657 \begin_layout Plain Layout
19658 ファイル\SpecialChar menuseparator
19659 バージョン管理\SpecialChar menuseparator
19665 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19668 \begin_layout Standard
19672 \begin_layout Labeling
19673 \labelwidthstring 00.00.0000
19675 \begin_inset Flex Code
19678 \begin_layout Plain Layout
19679 svn propset svn:needs-lock ON
19680 \begin_inset Quotes eld
19684 \begin_inset Quotes erd
19695 \begin_layout Labeling
19696 \labelwidthstring 00.00.0000
19698 \begin_inset Flex Code
19701 \begin_layout Plain Layout
19702 svn propdel svn:needs-lock
19703 \begin_inset Quotes eld
19707 \begin_inset Quotes erd
19718 \begin_layout Subsubsection
19719 \begin_inset CommandInset label
19721 name "subsec:VCS改訂情報"
19728 \begin_layout Standard
19729 文書中で改訂情報を有効化するにはいくつかの方法があります.
19732 \begin_layout Itemize
19738 \begin_layout Itemize
19740 \begin_inset Flex Code
19743 \begin_layout Plain Layout
19750 \begin_inset Flex Code
19753 \begin_layout Plain Layout
19759 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19762 \begin_layout Standard
19764 \begin_inset Tabular
19765 <lyxtabular version="3" rows="6" columns="2">
19766 <features tabularvalignment="middle">
19767 <column alignment="center" valignment="top">
19768 <column alignment="center" valignment="top">
19770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19773 \begin_layout Plain Layout
19779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19782 \begin_layout Plain Layout
19790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19793 \begin_layout Plain Layout
19799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19802 \begin_layout Plain Layout
19810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19813 \begin_layout Plain Layout
19819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19822 \begin_layout Plain Layout
19830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19833 \begin_layout Plain Layout
19839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19842 \begin_layout Plain Layout
19850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19853 \begin_layout Plain Layout
19859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19862 \begin_layout Plain Layout
19863 チェックアウト頻度が低かったことによる不完全な作業コピー
19870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19873 \begin_layout Plain Layout
19879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19882 \begin_layout Plain Layout
19883 改訂版が混合し,修正され,スイッチされた作業コピー
19896 \begin_layout Itemize
19898 \begin_inset Flex Code
19901 \begin_layout Plain Layout
19903 \begin_inset space ~
19907 \begin_inset space ~
19911 \begin_inset space ~
19919 の出力を解析したものが返されます.サポートされるフラグは
19923 \begin_layout Itemize
19925 \begin_inset Flex Code
19928 \begin_layout Plain Layout
19937 \begin_layout Itemize
19939 \begin_inset Flex Code
19942 \begin_layout Plain Layout
19951 \begin_layout Itemize
19953 \begin_inset Flex Code
19956 \begin_layout Plain Layout
19965 \begin_layout Itemize
19967 \begin_inset Flex Code
19970 \begin_layout Plain Layout
19980 \begin_layout Standard
19981 これらの情報は,情報差込枠で得ることができます(例:
19982 \begin_inset Flex Code
19985 \begin_layout Plain Layout
19986 info-insert buffer vcs-date
19991 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
19992 \begin_inset Flex Code
19995 \begin_layout Plain Layout
20001 ディレクトリがあるときのみ)利用可能です.
20005 \begin_layout Itemize
20006 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20010 \begin_layout Plain Layout
20011 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20016 .簡単に言えば,ファイルキーワード特性を設定して(例:
20018 svn propset svn:keywords 'Rev' file.lyx
20020 ),文書中にキーワード\SpecialChar TeX
20025 \begin_layout Plain Layout
20026 これは,\SpecialChar LyX
20027 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20036 \begin_layout Plain Layout
20043 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20047 \begin_layout Plain Layout
20054 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20055 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20057 \begin_inset Formula $Rev$
20061 \begin_inset Formula $Rev:59$
20064 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20065 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20066 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20067 がこれを直接サポートすることは,難しそうです.
20070 \begin_layout Subsection
20074 \begin_layout Quote
20075 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20080 \begin_layout Subsubsection
20084 \begin_layout Standard
20086 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20087 トプログラムのWindows用インストーラは
20088 \begin_inset CommandInset href
20091 target "http://www.collab.net/nonav/downloads/subversion/"
20096 \begin_inset CommandInset href
20099 target "http://tortoisesvn.tigris.org/"
20103 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20105 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20106 自身が使用するクライアントプログラムの代わりとは成りませんので
20110 \begin_layout Subsubsection
20111 文書をSubversion管理下に置くには
20114 \begin_layout Standard
20116 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20117 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20118 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20120 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20121 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20123 \begin_inset Flex Code
20126 \begin_layout Plain Layout
20134 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20135 \begin_inset Flex Code
20138 \begin_layout Plain Layout
20147 \begin_layout Enumerate
20149 \begin_inset Flex Code
20152 \begin_layout Plain Layout
20161 \begin_inset Flex MenuItem
20164 \begin_layout Plain Layout
20165 TortoiseSVN\SpecialChar menuseparator
20171 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20174 \begin_layout Enumerate
20175 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20176 \begin_inset Flex MenuItem
20179 \begin_layout Plain Layout
20180 Create folder\SpecialChar ldots
20186 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20187 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20190 \begin_layout Enumerate
20192 \begin_inset Flex Code
20195 \begin_layout Plain Layout
20204 \begin_inset Flex MenuItem
20207 \begin_layout Plain Layout
20208 SVN Checkout\SpecialChar ldots
20214 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20215 \begin_inset Flex Code
20218 \begin_layout Plain Layout
20226 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20227 \begin_inset Flex Code
20230 \begin_layout Plain Layout
20239 \begin_inset Flex Code
20242 \begin_layout Plain Layout
20251 \begin_layout Enumerate
20254 \begin_inset Flex MenuItem
20257 \begin_layout Plain Layout
20258 ファイル\SpecialChar menuseparator
20259 バージョン管理\SpecialChar menuseparator
20265 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20268 \begin_layout Standard
20270 \begin_inset Flex MenuItem
20273 \begin_layout Plain Layout
20274 ファイル\SpecialChar menuseparator
20280 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20281 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20284 \begin_layout Subsubsection
20285 Windows下でSVNと共にSSHトンネルを使うには
20288 \begin_layout Standard
20289 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20290 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20294 \begin_layout Enumerate
20295 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20296 \begin_inset Flex Code
20299 \begin_layout Plain Layout
20305 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20308 \begin_layout Enumerate
20309 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20313 \begin_layout Plain Layout
20314 \begin_inset Flex URL
20317 \begin_layout Plain Layout
20319 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20329 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20331 \begin_inset Flex Ruby
20334 \begin_layout Plain Layout
20336 \begin_inset Argument post:1
20339 \begin_layout Plain Layout
20354 \begin_layout Enumerate
20355 \begin_inset Flex Code
20358 \begin_layout Plain Layout
20364 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20365 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20366 s file:」編集フィールドから,直接サーバの
20367 \begin_inset Flex Code
20370 \begin_layout Plain Layout
20371 ~/.ssh/authorized_keys
20377 \begin_inset Flex Code
20380 \begin_layout Plain Layout
20386 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20389 \begin_layout Enumerate
20390 Puttyのplinkを入手してください.SVNのconfigファイル
20394 \begin_layout Plain Layout
20395 正確なパスはWindowsのバージョンに依りますが,通常は
20396 \begin_inset Flex Code
20399 \begin_layout Plain Layout
20402 Documents and Settings
20416 \begin_inset Flex Code
20419 \begin_layout Plain Layout
20435 \begin_inset Flex Code
20438 \begin_layout Plain Layout
20444 セクションにsshコマンドを設定してください.例:
20445 \begin_inset Flex Code
20448 \begin_layout Plain Layout
20449 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20458 \begin_layout Plain Layout
20459 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20460 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20469 \begin_layout Enumerate
20470 SVNアーカイブをチェックアウトしてください.例:
20471 \begin_inset Newline newline
20475 \begin_inset Flex Code
20478 \begin_layout Plain Layout
20479 svn co svn+ssh://user@server/repository_path
20487 \begin_layout Subsubsection
20491 \begin_layout Standard
20492 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20493 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20495 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20496 \begin_inset Flex Code
20499 \begin_layout Plain Layout
20509 \begin_layout Plain Layout
20511 \begin_inset Flex Code
20514 \begin_layout Plain Layout
20515 svn propset svn:eol-style native FILE_NAME
20525 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20529 \begin_layout Plain Layout
20530 \begin_inset Flex URL
20533 \begin_layout Plain Layout
20535 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20548 \begin_layout Subsection
20553 \begin_layout Standard
20555 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20557 ファイル\SpecialChar menuseparator
20560 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20565 \begin_layout Standard
20566 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20567 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20568 ミットを行います.ローカルリポジトリは,GITコマンドの
20569 \begin_inset Flex Code
20572 \begin_layout Plain Layout
20579 \begin_inset Flex Code
20582 \begin_layout Plain Layout
20588 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20589 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20590 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20591 \begin_inset Flex Code
20594 \begin_layout Plain Layout
20601 \begin_inset Flex Code
20604 \begin_layout Plain Layout
20613 \begin_layout Subsubsection
20617 \begin_layout Standard
20618 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20625 \begin_layout Standard
20626 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20631 \begin_inset Flex Code
20634 \begin_layout Plain Layout
20640 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20643 \begin_layout Standard
20644 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20647 \begin_layout Standard
20649 \begin_inset Flex Code
20652 \begin_layout Plain Layout
20661 \begin_layout Standard
20663 \begin_inset Flex Code
20666 \begin_layout Plain Layout
20675 \begin_layout Subsubsection
20679 \begin_layout Standard
20680 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20683 \begin_layout Standard
20685 \begin_inset Flex Code
20688 \begin_layout Plain Layout
20690 \begin_inset Quotes erd
20694 \begin_inset Quotes erd
20705 \begin_layout Subsubsection
20709 \begin_layout Standard
20710 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20713 \begin_layout Standard
20715 \begin_inset Flex Code
20718 \begin_layout Plain Layout
20720 \begin_inset Quotes eld
20724 \begin_inset Quotes erd
20735 \begin_layout Subsubsection
20739 \begin_layout Standard
20740 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20741 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20744 ファイル\SpecialChar menuseparator
20745 名前をつけて保存\SpecialChar ldots
20748 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20751 \begin_layout Labeling
20752 \labelwidthstring 00.00.0000
20756 \begin_layout Labeling
20757 \labelwidthstring 00.00.0000
20758 \begin_inset Flex Code
20761 \begin_layout Plain Layout
20762 git mv "<ファイル名>" "<新ファイル名>"
20770 \begin_layout Labeling
20771 \labelwidthstring 00.00.0000
20772 \begin_inset Flex Code
20775 \begin_layout Plain Layout
20784 \begin_layout Subsubsection
20788 \begin_layout Standard
20789 これは,GIT文書の全履歴を表示します.
20790 \begin_inset Flex Code
20793 \begin_layout Plain Layout
20795 \begin_inset Quotes eld
20799 \begin_inset Quotes erd
20810 \begin_layout Subsubsection
20814 \begin_layout Standard
20816 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20818 git log -n 1 --pretty=format:%H%n%an%n%ai
20820 によって抽出されます.ツリーバージョン情報は,
20822 git describe --abbrev --dirty --long
20825 \begin_inset CommandInset ref
20827 reference "subsec:VCS改訂情報"
20834 \begin_layout Subsection
20838 \begin_layout Standard
20839 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
20840 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
20843 \begin_layout Standard
20844 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
20847 \begin_layout Description
20849 \begin_inset Flex Code
20852 \begin_layout Plain Layout
20853 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
20861 \begin_layout Description
20863 \begin_inset Flex Code
20866 \begin_layout Plain Layout
20867 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
20875 \begin_layout Subsection
20879 \begin_layout Standard
20881 \begin_inset Flex Code
20884 \begin_layout Plain Layout
20890 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
20892 まり便利ではありません.そこで,\SpecialChar LyX
20893 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
20895 \begin_inset Flex Code
20898 \begin_layout Plain Layout
20904 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
20906 \begin_inset Flex MenuItem
20909 \begin_layout Plain Layout
20910 旧改訂と比較\SpecialChar ldots
20916 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
20918 \begin_inset Flex MenuItem
20921 \begin_layout Plain Layout
20927 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
20930 \begin_layout Standard
20931 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
20932 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
20933 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
20936 \begin_layout Section
20940 \begin_layout Standard
20945 (kayvan@sylvan.com)改訂
20947 Edmar Wienskoski Jr.
20949 (edmar-w-jr@technologist.com)原文
20952 \begin_layout Subsection
20956 \begin_layout Standard
20957 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
20958 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
20959 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
20960 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
20963 \begin_layout Standard
20964 また,あなたが,\SpecialChar LyX
20965 の設定を変更することを厭わない程度まで\SpecialChar LyX
20966 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
20967 するトピックを扱っている,\SpecialChar LyX
20971 \begin_layout Subsection
20975 \begin_layout Standard
20976 以下は,文芸プログラミング FAQからの抜粋です.
20979 \begin_layout Quotation
20980 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
20981 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
20982 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
20984 \begin_inset space \thinspace{}
20988 Knuthが,\SpecialChar TeX
20989 組版ソフトウエアを開発中に作り出したものです.
20992 \begin_layout Standard
20996 \begin_layout Quotation
20999 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21002 \begin_layout Quotation
21003 3つの際立った特徴があります.重要な順に列挙すれば,
21007 \begin_layout Itemize
21011 \begin_layout Itemize
21015 \begin_layout Itemize
21016 特に図式と数式を含んだドキュメンテーションの組版
21020 \begin_layout Quotation
21024 \begin_layout Standard
21025 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21028 \begin_layout Subsubsection
21032 \begin_layout Standard
21036 \begin_layout Quote
21037 Literate Programming FAQ
21038 \begin_inset Flex URL
21041 \begin_layout Plain Layout
21043 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21051 \begin_layout Standard
21055 \begin_layout Standard
21056 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21057 を持つものもあります.私は自分で使うのに,いくつかの理由から
21064 \begin_layout Itemize
21065 説明文書を\SpecialChar LaTeX
21069 \begin_layout Itemize
21070 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
21073 \begin_layout Itemize
21074 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21077 \begin_layout Itemize
21081 \begin_layout Standard
21085 \begin_layout Quote
21087 \begin_inset Flex URL
21090 \begin_layout Plain Layout
21092 http://www.cs.virginia.edu/~nr/noweb/
21100 \begin_layout Standard
21101 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21104 \begin_layout Subsection
21106 とNowebを使った文芸プログラミング
21109 \begin_layout Standard
21111 における文芸プログラミングのサポートは,\SpecialChar LyX
21112 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21113 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21117 \begin_layout Subsubsection
21118 ドキュメントとコードの生成(weavingおよびtangling)
21121 \begin_layout Paragraph
21125 \begin_layout Standard
21126 Nowebと\SpecialChar LyX
21127 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21129 文書\SpecialChar menuseparator
21132 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21133 web」モジュールが表示され,文書に追加できるようになっています.
21136 \begin_layout Paragraph
21140 \begin_layout Standard
21143 \begin_inset Flex Noun
21146 \begin_layout Plain Layout
21152 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21155 \begin_layout LyX-Code
21159 \begin_layout LyX-Code
21163 \begin_layout LyX-Code
21167 \begin_layout LyX-Code
21171 \begin_layout LyX-Code
21175 \begin_layout Standard
21176 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21177 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21179 \begin_inset Flex Noun
21182 \begin_layout Plain Layout
21188 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
21191 \begin_layout Standard
21192 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21195 \begin_layout LyX-Code
21199 \begin_layout LyX-Code
21200 def some_function(args):
21203 \begin_layout LyX-Code
21204 "This is the doc string for this function."
21207 \begin_layout LyX-Code
21208 print "My args: ", args
21211 \begin_layout LyX-Code
21212 @ %def some_function
21215 \begin_layout Standard
21216 これをどのように使って,その結果相互参照がどうなるかは
21218 LIBDIR/examples/listerrors.lyx
21220 の中の文芸pythonプログラムを見るとよくわかります.
21223 \begin_layout Paragraph
21227 \begin_layout Standard
21228 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21231 文書\SpecialChar menuseparator
21234 等を選ぶだけです.特別な手続きは必要ありません.
21237 \begin_layout Standard
21238 理解を助けるために,\SpecialChar LyX
21239 の内部で何が起っているかを説明しておきましょう.
21242 \begin_layout Enumerate
21245 文書\SpecialChar menuseparator
21248 が選択されると,\SpecialChar LaTeX
21253 \begin_layout Standard
21254 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21255 \begin_inset Flex MenuItem
21258 \begin_layout Plain Layout
21264 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21268 \begin_layout Enumerate
21269 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21271 \begin_inset Flex Noun
21274 \begin_layout Plain Layout
21280 環境でコードを入力するのだけがポイントです.
21283 \begin_layout Enumerate
21284 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21286 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21291 \begin_layout Plain Layout
21294 ツール\SpecialChar menuseparator
21297 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21310 を使って\SpecialChar LaTeX
21315 \begin_layout Standard
21316 それ以外の場合はこのステップを飛ばします.
21320 \begin_layout Enumerate
21321 最後に\SpecialChar LaTeX
21322 が実行され,通常の文書と同じ後処理が行われます.
21325 \begin_layout Standard
21326 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21329 \begin_layout Paragraph
21333 \begin_layout Standard
21334 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21335 ファイルが生成されます.それから\SpecialChar LyX
21340 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21343 \begin_layout Enumerate
21344 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21348 \begin_layout Enumerate
21349 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21350 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21351 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21354 \begin_layout Standard
21356 \begin_inset Newline newline
21360 \begin_inset Quotes eld
21365 build-script $$i $$r
21368 \begin_inset Quotes erd
21372 \begin_inset Newline newline
21375 と指定します.これは基本的に,\SpecialChar LyX
21377 \begin_inset Quotes erd
21385 \begin_inset Quotes erd
21388 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21389 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21390 ファイルのディレクトリパスを使って呼び出すこ
21394 \begin_layout Standard
21395 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21398 \begin_layout Standard
21399 \begin_inset VSpace defskip
21403 \begin_inset Newpage pagebreak
21409 \begin_layout Standard
21415 \begin_layout Standard
21421 \begin_layout Standard
21424 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21427 \begin_layout Standard
21428 \begin_inset VSpace defskip
21434 \begin_layout Standard
21435 変換子設定の次の部分は「フラグ」で,これは
21436 \begin_inset Quotes erd
21441 parselog=$$s/scripts/listerrors
21444 \begin_inset Quotes erd
21448 \begin_inset Newline newline
21452 \begin_inset Quotes erd
21456 \begin_inset Quotes erd
21460 \begin_inset Quotes erd
21464 \begin_inset Quotes erd
21470 \begin_layout Standard
21471 ビルドは,通常\SpecialChar LyX
21472 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21473 は,主要ファイルとみなされるものをコピーして取り出
21478 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21479 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21480 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21483 \begin_layout Paragraph
21487 \begin_layout Standard
21490 \begin_inset Quotes eld
21494 \begin_inset Quotes erd
21497 chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21498 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21501 \begin_layout Standard
21502 以下に典型的なchunkがどのようなものかを書いておきます.
21505 \begin_layout LyX-Code
21507 \begin_inset Newline newline
21513 \begin_layout LyX-Code
21515 \begin_inset Newline newline
21519 \begin_inset Newline newline
21522 if [ -z "${NOWEB_SOURCE}" ]
21523 \begin_inset Newline newline
21529 \begin_layout LyX-Code
21530 NOWEB_SOURCE=myfile.nw
21531 \begin_inset Newline newline
21535 \begin_inset Newline newline
21539 code to extract files ...
21540 use NOWEB_OUTPUT_DIR here ...]
21541 \begin_inset Newline newline
21545 code to compile files ...]
21546 \begin_inset Newline newline
21552 \begin_layout Standard
21555 LIBDIR/examples/listerrors.lyx
21559 LIBDIR/examples/Literate.lyx
21561 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21564 LIBDIR/examples/noweb2lyx.lyx
21566 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21567 の文芸プログラミングのサポートがプログラム言語に依存しない
21571 \begin_layout Subsubsection
21576 \begin_layout Standard
21577 すべての文芸プログラムのための設定は,
21579 ツール\SpecialChar menuseparator
21582 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21585 \begin_layout Description
21586 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21598 に設定してください.これによって,\SpecialChar LyX
21599 に変換プロセスの第一段階でつくられるファイルに
21603 という拡張子をつけることを指示します.
21606 \begin_layout Description
21607 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21610 \begin_layout Description
21620 この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21622 noweave -delay -index $$i > $$o
21627 \begin_layout Description
21636 これは「tangling」を行います.上述のように,変換子は「
21638 build-script $$i $$r
21642 parselog=$$s/scripts/listerrors
21647 \begin_layout Subsubsection
21651 \begin_layout Standard
21652 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21656 \begin_layout Standard
21657 ddd/gdbでデバッグしているとき,一つの
21658 \begin_inset Flex Ruby
21661 \begin_layout Plain Layout
21663 \begin_inset Argument post:1
21666 \begin_layout Plain Layout
21677 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21678 \begin_inset Flex MenuItem
21681 \begin_layout Plain Layout
21682 ツール\SpecialChar menuseparator
21683 設定\SpecialChar menuseparator
21690 \begin_inset Flex MenuItem
21693 \begin_layout Plain Layout
21699 エントリを変えると変えることができます.
21702 \begin_layout Standard
21703 新しい\SpecialChar LyX
21704 サーバの関数と,このdddの機能を使うために
21705 \begin_inset Flex MenuItem
21708 \begin_layout Plain Layout
21717 \begin_layout Standard
21718 \begin_inset VSpace defskip
21724 \begin_layout Standard
21727 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21730 \begin_layout Standard
21731 \begin_inset VSpace defskip
21737 \begin_layout Standard
21738 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21739 サーバに情報を送り,\SpecialChar LyX
21741 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21744 \begin_layout Standard
21745 この機能が動くには\SpecialChar LyX
21746 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21747 サーバーは使えないようになっています).\SpecialChar LyX
21751 \begin_inset Flex MenuItem
21754 \begin_layout Plain Layout
21767 \begin_inset Flex MenuItem
21770 \begin_layout Plain Layout
21783 \begin_inset Flex MenuItem
21786 \begin_layout Plain Layout
21800 \begin_inset Quotes eld
21805 /home/<your-home-directory>/.lyx/lyxpipe
21808 \begin_inset Quotes erd
21814 \begin_layout Standard
21816 \begin_inset CommandInset ref
21818 reference "chap:LyXサーバー"
21825 \begin_layout Subsubsection
21829 \begin_layout Standard
21830 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
21848 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
21849 \begin_inset Flex Ruby
21852 \begin_layout Plain Layout
21872 \begin_inset Argument post:1
21875 \begin_layout Plain Layout
21889 \begin_layout Standard
21891 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
21892 \begin_inset Flex MenuItem
21895 \begin_layout Plain Layout
21896 文書\SpecialChar menuseparator
21897 更新\SpecialChar menuseparator
21904 \begin_inset Flex MenuItem
21907 \begin_layout Plain Layout
21908 文書\SpecialChar menuseparator
21909 表示\SpecialChar menuseparator
21918 \begin_layout LyX-Code
21922 \begin_layout LyX-Code
21926 \begin_layout LyX-Code
21927 Icon "layout Standard"
21930 \begin_layout LyX-Code
21931 Icon "layout Section"
21934 \begin_layout LyX-Code
21935 Icon "layout \SpecialChar LaTeX
21939 \begin_layout LyX-Code
21940 Icon "layout \SpecialChar LyX
21944 \begin_layout LyX-Code
21945 Icon "layout Chunk"
21948 \begin_layout LyX-Code
21952 \begin_layout LyX-Code
21956 \begin_layout LyX-Code
21957 Icon "buffer-typeset"
21960 \begin_layout LyX-Code
21961 Icon "build-program"
21964 \begin_layout LyX-Code
21968 \begin_layout LyX-Code
21972 \begin_layout LyX-Code
21976 \begin_layout LyX-Code
21980 \begin_layout LyX-Code
21984 \begin_layout Subsubsection
21988 \begin_layout Standard
21991 \begin_inset Flex MenuItem
21994 \begin_layout Plain Layout
22000 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22001 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22002 フォントを使うことになっていて,文芸プログラミ
22003 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22004 \begin_inset Flex MenuItem
22007 \begin_layout Plain Layout
22008 操作性\SpecialChar menuseparator
22017 \begin_layout Standard
22018 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22019 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22022 \begin_layout Subsection
22027 \begin_layout Standard
22028 knitrとSweaveへのサポートについては,用例ファイル
22034 ヘルプ\SpecialChar menuseparator
22040 \begin_layout Chapter
22042 \begin_inset CommandInset label
22044 name "chap:Special-features"
22051 \begin_layout Standard
22053 では,\SpecialChar LaTeX
22054 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22055 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22056 コードを使用することはできます.本章は,ユーザの興味が
22057 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22064 \begin_layout Section
22068 \begin_layout Standard
22077 とは別の機能です.文書全体に二段組を行いたい場合には,
22081 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22084 \begin_layout Standard
22085 文書中で多段組を行うには,\SpecialChar LaTeX
22091 \begin_inset Index idx
22094 \begin_layout Plain Layout
22096 ぱっけーじ @ \SpecialChar LaTeX
22104 文書\SpecialChar menuseparator
22105 設定\SpecialChar menuseparator
22115 \begin_layout Standard
22116 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22120 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22123 \begin_layout Subsection
22127 \begin_layout Standard
22128 文章中で二段組を使用したい場合には,段組を始める場所で
22130 挿入\SpecialChar menuseparator
22131 任意設定差込枠\SpecialChar menuseparator
22134 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22137 \begin_layout Standard
22141 \begin_layout Standard
22143 \begin_inset Flex Multiple Columns
22146 \begin_layout Plain Layout
22151 The Adventure of the Empty House
22154 \begin_inset Newline newline
22157 by Sir Arthur Conan Doyle
22160 \begin_layout Plain Layout
22163 It was in the spring of the year 1894 that all London was interested, and
22164 the fashionable world dismayed, by the murder of the Honourable Ronald
22165 Adair under most unusual and inexplicable circumstances.
22166 The public has already learned those particulars of the crime which came
22167 out in the police investigation, but a good deal was suppressed upon that
22168 occasion, since the case for the prosecution was so overwhelmingly strong
22169 that it was not necessary to bring forward all the facts.
22170 Only now, at the end of nearly ten years, am I allowed to supply those
22171 missing links which make up the whole of that remarkable chain.
22172 The crime was of interest in itself, but that interest was as nothing to
22173 me compared to the inconceivable sequel, which afforded me the greatest
22174 shock and surprise of any event in my adventurous life.
22175 Even now, after this long interval, I find myself thrilling as I think
22176 of it, and feeling once more that sudden flood of joy, amazement, and increduli
22177 ty which utterly submerged my mind.
22178 Let me say to that public, which has shown some interest in those glimpses
22179 which I have occasionally given them of the thoughts and actions of a very
22180 remarkable man, that they are not to blame me if I have not shared my knowledge
22181 with them, for I should have considered it my first duty to do so, had
22182 I not been barred by a positive prohibition from his own lips, which was
22183 only withdrawn upon the third of last month.
22191 \begin_layout Standard
22192 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22193 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22195 \begin_inset Newline newline
22201 \begin_layout Standard
22202 \begin_inset Flex Multiple Columns
22205 \begin_layout Plain Layout
22208 \begin_inset Argument 1
22211 \begin_layout Plain Layout
22217 It can be imagined that my close intimacy with Sherlock Holmes had interested
22218 me deeply in crime, and that after his disappearance I never failed to
22219 read with care the various problems which came before the public.
22220 And I even attempted, more than once, for my own private satisfaction,
22221 to employ his methods in their solution, though with indifferent success.
22222 There was none, however, which appealed to me like this tragedy of Ronald
22224 As I read the evidence at the inquest, which led up to a verdict of willful
22225 murder against some person or persons unknown, I realized more clearly
22226 than I had ever done the loss which the community had sustained by the
22227 death of Sherlock Holmes.
22228 There were points about this strange business which would, I was sure,
22229 have specially appealed to him, and the efforts of the police would have
22230 been supplemented, or more probably anticipated, by the trained observation
22231 and the alert mind of the first criminal agent in Europe.
22232 All day, as I drove upon my round, I turned over the case in my mind and
22233 found no explanation which appeared to me to be adequate.
22234 At the risk of telling a twice-told tale, I will recapitulate the facts
22235 as they were known to the public at the conclusion of the inquest.
22243 \begin_layout Standard
22244 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22247 \begin_layout Standard
22248 \begin_inset Newpage newpage
22254 \begin_layout Subsection
22258 \begin_layout Standard
22262 \begin_layout Standard
22263 \begin_inset Flex Multiple Columns
22266 \begin_layout Plain Layout
22269 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22270 at that time governor of one of the Australian colonies.
22271 Adair's mother had returned from Australia to undergo the operation for
22272 cataract, and she, her son Ronald, and her daughter Hilda were living together
22276 \begin_layout Plain Layout
22277 \begin_inset Flex Multiple Columns
22280 \begin_layout Plain Layout
22283 The youth moved in the best society–had, so far as was known, no enemies
22284 and no particular vices.
22285 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22286 had been broken off by mutual consent some months before, and there was
22287 no sign that it had left any very profound feeling behind it.
22288 For the rest {sic} the man's life moved in a narrow and conventional circle,
22289 for his habits were quiet and his nature unemotional.
22290 Yet it was upon this easy-going young aristocrat that death came, in most
22291 strange and unexpected form, between the hours of ten and eleven-twenty
22292 on the night of March 30, 1894.
22300 \begin_layout Plain Layout
22303 Ronald Adair was fond of cards–playing continually, but never for such stakes
22305 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22306 It was shown that, after dinner on the day of his death, he had played
22307 a rubber of whist at the latter club.
22308 He had also played there in the afternoon.
22313 The evidence of those who had played with him– Mr.
22314 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22315 and that there was a fairly equal fall of the cards.
22316 Adair might have lost five pounds, but not more.
22317 His fortune was a considerable one, and such a loss could not in any way
22319 He had played nearly every day at one club or other, but he was a cautious
22320 player, and usually rose a winner.
22321 It came out in evidence that, in partnership with Colonel Moran, he had
22322 actually won as much as four hundred and twenty pounds in a sitting, some
22323 weeks before, from Godfrey Milner and Lord Balmoral.
22324 So much for his recent history as it came out at the inquest.
22332 \begin_layout Subsection
22336 \begin_layout Standard
22337 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22340 \begin_layout Standard
22341 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22347 \begin_inset CommandInset citation
22356 \begin_layout Subsubsection
22360 \begin_layout Standard
22361 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22363 挿入\SpecialChar menuseparator
22366 メニューを使用してください.序文は,この差込枠内に書いてください.
22367 \begin_inset Newline newline
22373 \begin_layout Standard
22374 \begin_inset VSpace bigskip
22380 \begin_layout Standard
22381 \begin_inset Flex Multiple Columns
22384 \begin_layout Plain Layout
22385 \begin_inset Argument 2
22388 \begin_layout Plain Layout
22389 And the story continues and continues and continues and continues\SpecialChar ldots
22397 On the evening of the crime, he returned from the club exactly at ten.
22398 His mother and sister were out spending the evening with a relation.
22399 The servant deposed that she heard him enter the front room on the second
22400 floor, generally used as his sitting-room.
22401 She had lit a fire there, and as it smoked she had opened the window.
22402 No sound was heard from the room until eleven-twenty, the hour of the return
22403 of Lady Maynooth and her daughter.
22404 Desiring to say good-night, she attempted to enter her son's room.
22405 The door was locked on the inside, and no answer could be got to their
22406 cries and knocking.
22407 Help was obtained, and the door forced.
22408 The unfortunate young man was found lying near the table.
22409 His head had been horribly mutilated by an expanding revolver bullet, but
22410 no weapon of any sort was to be found in the room.
22418 \begin_layout Standard
22419 最初の\SpecialChar TeX
22420 コードの後に,節宣言コマンドを\SpecialChar TeX
22421 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22424 \begin_layout Standard
22432 \begin_layout Standard
22433 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22436 \begin_layout Standard
22437 \begin_inset Flex Multiple Columns
22440 \begin_layout Plain Layout
22441 \begin_inset Argument 2
22444 \begin_layout Plain Layout
22448 \begin_layout Plain Layout
22461 \begin_layout Plain Layout
22475 A minute examination of the circumstances served only to make the case more
22477 In the first place, no reason could be given why the young man should have
22478 fastened the door upon the inside.
22479 There was the possibility that the murderer had done this, and had afterwards
22480 escaped by the window.
22481 The drop was at least twenty feet, however, and a bed of crocuses in full
22483 Neither the flowers nor the earth showed any sign of having been disturbed,
22484 nor were there any marks upon the narrow strip of grass which separated
22485 the house from the road.
22486 Apparently, therefore, it was the young man himself who had fastened the
22488 But how did he come by his death? No one could have climbed up to the window
22489 without leaving traces.
22490 Suppose a man had fired through the window, he would indeed be a remarkable
22491 shot who could with a revolver inflict so deadly a wound.
22492 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22493 a hundred yards of the house.
22494 No one had heard a shot.
22502 \begin_layout Standard
22503 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22504 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22506 挿入\SpecialChar menuseparator
22509 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22512 \begin_layout Standard
22515 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
22522 コードとして入力する必要があります).
22525 \begin_layout Standard
22526 \begin_inset Flex Multiple Columns
22529 \begin_layout Plain Layout
22530 \begin_inset Argument 3
22533 \begin_layout Plain Layout
22538 \begin_layout Plain Layout
22554 On the evening of the crime, he returned from the club exactly at ten.
22555 His mother and sister were out spending the evening with a relation.
22556 The servant deposed that she heard him enter the front room on the second
22557 floor, generally used as his sitting-room.
22558 She had lit a fire there, and as it smoked she had opened the window.
22559 No sound was heard from the room until eleven-twenty, the hour of the return
22560 of Lady Maynooth and her daughter.
22561 Desiring to say good-night, she attempted to enter her son's room.
22562 The door was locked on the inside, and no answer could be got to their
22563 cries and knocking.
22564 Help was obtained, and the door forced.
22565 The unfortunate young man was found lying near the table.
22566 His head had been horribly mutilated by an expanding revolver bullet, but
22567 no weapon of any sort was to be found in the room.
22575 \begin_layout Subsubsection
22579 \begin_layout Standard
22586 を変えることで変更することができます.例えば,\SpecialChar TeX
22590 \begin_layout Standard
22600 \begin_layout Standard
22602 \begin_inset space \thinspace{}
22605 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22606 \begin_inset space \thinspace{}
22612 \begin_layout Standard
22620 \begin_inset space \thinspace{}
22626 \begin_layout Standard
22630 \begin_layout Plain Layout
22636 multicolsep}{2.5cm}
22644 \begin_layout Standard
22645 \begin_inset Flex Multiple Columns
22648 \begin_layout Plain Layout
22651 All day I turned these facts over in my mind, endeavouring to hit upon some
22652 theory which could reconcile them all, and to find that line of least resistanc
22653 e which my poor friend had declared to be the starting-point of every investigat
22655 I confess that I made little progress.
22656 In the evening I strolled across the Park, and found myself about six o'clock
22657 at the Oxford Street end of Park Lane.
22658 A group of loafers upon the pavements, all staring up at a particular window,
22659 directed me to the house which I had come to see.
22660 A tall, thin man with coloured glasses, whom I strongly suspected of being
22661 a plain-clothes detective, was pointing out some theory of his own, while
22662 the others crowded round to listen to what he said.
22663 I got as near him as I could, but his observations seemed to me to be absurd,
22664 so I withdrew again in some disgust.
22665 As I did so I struck against an elderly, deformed man, who had been behind
22666 me, and I knocked down several books which he was carrying.
22674 \begin_layout Standard
22675 \begin_inset Note Greyedout
22678 \begin_layout Plain Layout
22685 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22693 \begin_layout Standard
22697 \begin_layout Plain Layout
22709 \begin_inset Note Note
22712 \begin_layout Plain Layout
22715 go back to the default
22723 \begin_layout Standard
22724 \begin_inset Newpage newpage
22730 \begin_layout Subsubsection
22734 \begin_layout Standard
22735 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22742 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22743 \begin_inset Newline newline
22749 \begin_layout Standard
22750 \begin_inset Flex Multiple Columns
22753 \begin_layout Plain Layout
22756 \begin_inset Quotes eld
22759 You're surprised to see me, sir,
22760 \begin_inset Quotes erd
22763 said he, in a strange, croaking voice.
22766 \begin_layout Plain Layout
22769 I acknowledged that I was.
22772 \begin_layout Plain Layout
22775 \begin_inset Quotes eld
22778 Well, I've a conscience, sir, and when I chanced to see you go into this
22779 house, as I came hobbling after you, I thought to myself, I'll just step
22780 in and see that kind gentleman, and tell him that if I was a bit gruff
22781 in my manner there was not any harm meant, and that I am much obliged to
22782 him for picking up my books.
22783 \begin_inset Quotes erd
22789 \begin_layout Plain Layout
22792 \begin_inset Quotes eld
22795 You make too much of a trifle,
22796 \begin_inset Quotes erd
22801 \begin_inset Quotes eld
22804 May I ask how you knew who I was?
22805 \begin_inset Quotes erd
22808 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22812 \begin_layout Plain Layout
22824 \begin_layout Plain Layout
22827 \begin_inset Quotes eld
22830 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
22831 you'll find my little bookshop at the corner of Church Street, and very
22832 happy to see you, I am sure.
22833 Maybe you collect yourself, sir.
22837 \begin_inset space ~
22850 –a bargain, every one of them.
22851 With five volumes you could just fill that gap on that second shelf.
22852 It looks untidy, does it not, sir?
22853 \begin_inset Quotes erd
22864 \begin_layout Subsubsection
22868 \begin_layout Standard
22869 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
22875 を変更することで実現できます.既定値は10
22876 \begin_inset space \thinspace{}
22886 \begin_inset space \thinspace{}
22892 \begin_layout Standard
22896 \begin_layout Plain Layout
22910 \begin_layout Standard
22911 \begin_inset Flex Multiple Columns
22914 \begin_layout Plain Layout
22917 My observations of No.
22918 \begin_inset space \space{}
22921 427 Park Lane did little to clear up the problem in which I was interested.
22922 The house was separated from the street by a low wall and railing, the
22923 whole not more than five feet high.
22924 It was perfectly easy, therefore, for anyone to get into the garden, but
22925 the window was entirely inaccessible, since there was no water pipe or
22926 anything which could help the most active man to climb it.
22927 More puzzled than ever, I retraced my steps to Kensington.
22928 I had not been in my study five minutes when the maid entered to say that
22929 a person desired to see me.
22930 To my astonishment it was none other than my strange old book collector,
22931 his sharp, wizened face peering out from a frame of white hair, and his
22932 precious volumes, a dozen of them at least, wedged under his right arm.
22940 \begin_layout Standard
22944 \begin_layout Plain Layout
22956 \begin_inset Note Note
22959 \begin_layout Plain Layout
22962 go back to the default
22970 \begin_layout Subsubsection
22974 \begin_layout Standard
22981 の幅を持つ罫線が描かれます.罫線幅を0
22982 \begin_inset space \thinspace{}
22985 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
22986 \begin_inset space \thinspace{}
22992 \begin_layout Standard
22996 \begin_layout Plain Layout
23002 columnseprule}{2pt}
23010 \begin_layout Standard
23011 \begin_inset Flex Multiple Columns
23014 \begin_layout Plain Layout
23017 \begin_inset Quotes eld
23020 You're surprised to see me, sir,
23021 \begin_inset Quotes erd
23024 said he, in a strange, croaking voice.
23027 \begin_layout Plain Layout
23030 I acknowledged that I was.
23033 \begin_layout Plain Layout
23036 \begin_inset Quotes eld
23039 Well, I've a conscience, sir, and when I chanced to see you go into this
23040 house, as I came hobbling after you, I thought to myself, I'll just step
23041 in and see that kind gentleman, and tell him that if I was a bit gruff
23042 in my manner there was not any harm meant, and that I am much obliged to
23043 him for picking up my books.
23044 \begin_inset Quotes erd
23050 \begin_layout Plain Layout
23053 \begin_inset Quotes eld
23056 You make too much of a trifle,
23057 \begin_inset Quotes erd
23062 \begin_inset Quotes eld
23065 May I ask how you knew who I was?
23066 \begin_inset Quotes erd
23072 \begin_layout Plain Layout
23075 \begin_inset Quotes eld
23078 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23079 you'll find my little bookshop at the corner of Church Street, and very
23080 happy to see you, I am sure.
23081 Maybe you collect yourself, sir.
23085 \begin_inset space ~
23098 –a bargain, every one of them.
23099 With five volumes you could just fill that gap on that second shelf.
23100 It looks untidy, does it not, sir?
23101 \begin_inset Quotes erd
23112 \begin_layout Standard
23113 \begin_inset VSpace defskip
23119 \begin_layout Standard
23126 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23127 コードで以下のコマンドを挿入すれば,実現できます.
23128 \begin_inset Newline newline
23137 columnseprulecolor}{
23142 \begin_inset Newline newline
23149 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
23157 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23158 \begin_inset Newline newline
23167 columnseprulecolor}{
23172 \begin_inset Newline newline
23176 \begin_inset space \thinspace{}
23182 \begin_layout Standard
23186 \begin_layout Plain Layout
23195 \begin_layout Plain Layout
23201 columnseprulecolor}{
23211 \begin_layout Standard
23212 \begin_inset Flex Multiple Columns
23215 \begin_layout Plain Layout
23218 \begin_inset Quotes eld
23221 You're surprised to see me, sir,
23222 \begin_inset Quotes erd
23225 said he, in a strange, croaking voice.
23228 \begin_layout Plain Layout
23231 I acknowledged that I was.
23234 \begin_layout Plain Layout
23237 \begin_inset Quotes eld
23240 Well, I've a conscience, sir, and when I chanced to see you go into this
23241 house, as I came hobbling after you, I thought to myself, I'll just step
23242 in and see that kind gentleman, and tell him that if I was a bit gruff
23243 in my manner there was not any harm meant, and that I am much obliged to
23244 him for picking up my books.
23245 \begin_inset Quotes erd
23251 \begin_layout Plain Layout
23254 \begin_inset Quotes eld
23257 You make too much of a trifle,
23258 \begin_inset Quotes erd
23263 \begin_inset Quotes eld
23266 May I ask how you knew who I was?
23267 \begin_inset Quotes erd
23273 \begin_layout Plain Layout
23276 \begin_inset Quotes eld
23279 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23280 you'll find my little bookshop at the corner of Church Street, and very
23281 happy to see you, I am sure.
23282 Maybe you collect yourself, sir.
23286 \begin_inset space ~
23299 –a bargain, every one of them.
23300 With five volumes you could just fill that gap on that second shelf.
23301 It looks untidy, does it not, sir?
23302 \begin_inset Quotes erd
23313 \begin_layout Standard
23317 \begin_layout Plain Layout
23323 columnseprule}{0pt}
23326 \begin_layout Plain Layout
23332 columnseprulecolor}{
23340 \begin_inset Note Note
23343 \begin_layout Plain Layout
23346 go back to the default
23354 \begin_layout Standard
23355 \begin_inset Newpage newpage
23361 \begin_layout Section
23365 \begin_layout Standard
23368 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23373 モジュールを読み込んで,\SpecialChar LaTeX
23378 を使用させるようにすれば,実現できます.
23381 \begin_layout Subsection
23385 \begin_layout Standard
23393 \begin_layout Standard
23394 \begin_inset Tabular
23395 <lyxtabular version="3" rows="13" columns="3">
23396 <features booktabs="true" islongtable="true" longtabularalignment="center">
23397 <column alignment="center" valignment="middle" width="16col%">
23398 <column alignment="center" valignment="middle" width="40col%">
23399 <column alignment="center" valignment="middle" width="35col%">
23400 <row endhead="true">
23401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23404 \begin_layout Plain Layout
23410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23413 \begin_layout Plain Layout
23419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23422 \begin_layout Plain Layout
23430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23433 \begin_layout Plain Layout
23439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23442 \begin_layout Plain Layout
23443 丸い穴の開いたドーナツ型(CD/DVD大)
23448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23451 \begin_layout Plain Layout
23452 伸縮不可.多くの文字を入れられないことに注意.
23459 <cell alignment="center" valignment="top" topline="true" usebox="none">
23462 \begin_layout Plain Layout
23468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23471 \begin_layout Plain Layout
23477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23480 \begin_layout Plain Layout
23488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23491 \begin_layout Plain Layout
23497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23500 \begin_layout Plain Layout
23502 \begin_inset Quotes eld
23506 \begin_inset Quotes erd
23514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23517 \begin_layout Plain Layout
23525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23528 \begin_layout Plain Layout
23534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23537 \begin_layout Plain Layout
23543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23546 \begin_layout Plain Layout
23554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23557 \begin_layout Plain Layout
23563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23566 \begin_layout Plain Layout
23572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23575 \begin_layout Plain Layout
23583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23586 \begin_layout Plain Layout
23592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23595 \begin_layout Plain Layout
23601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23604 \begin_layout Plain Layout
23612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23615 \begin_layout Plain Layout
23621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23624 \begin_layout Plain Layout
23630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23633 \begin_layout Plain Layout
23641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23644 \begin_layout Plain Layout
23650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23653 \begin_layout Plain Layout
23659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23662 \begin_layout Plain Layout
23670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23673 \begin_layout Plain Layout
23679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23682 \begin_layout Plain Layout
23688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23691 \begin_layout Plain Layout
23699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23702 \begin_layout Plain Layout
23708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23711 \begin_layout Plain Layout
23717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23720 \begin_layout Plain Layout
23728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23731 \begin_layout Plain Layout
23738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23741 \begin_layout Plain Layout
23748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23751 \begin_layout Plain Layout
23759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23762 \begin_layout Plain Layout
23764 \begin_inset Newline newline
23772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23775 \begin_layout Plain Layout
23781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23784 \begin_layout Plain Layout
23798 \begin_layout Standard
23799 段落に形を適用するには,\SpecialChar LyX
23800 ツールバー中の環境プルダウンボックスから形を選んでください.
23803 \begin_layout Standard
23804 \begin_inset Newpage newpage
23810 \begin_layout Standard
23814 \begin_layout Standard
23815 \begin_inset VSpace bigskip
23824 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23825 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23827 At vero eos et accusam et justo duo dolores et ea rebum.
23828 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23830 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23831 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23835 \begin_layout Standard
23836 \begin_inset VSpace bigskip
23842 \begin_layout Standard
23843 \begin_inset Note Greyedout
23846 \begin_layout Plain Layout
23851 shapepar段落は改頁にまたがることはできません.
23859 \begin_layout Standard
23860 \begin_inset VSpace bigskip
23866 \begin_layout Standard
23871 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
23872 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
23875 \begin_layout Standard
23876 \begin_inset Newpage newpage
23885 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23886 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23888 At vero eos et accusam et justo duo dolores et ea rebum.
23889 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23891 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23892 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23894 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23895 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23897 At vero eos et accusam et justo duo dolores et ea rebum.
23898 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23900 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23901 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23905 \begin_layout Standard
23906 \begin_inset VSpace bigskip
23912 \begin_layout Standard
23917 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
23918 \begin_inset Newline newline
23929 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
23930 \begin_inset Quotes eld
23933 Arithmetic overflow
23934 \begin_inset Quotes erd
23937 という\SpecialChar LaTeX
23938 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
23941 \begin_layout Standard
23942 \begin_inset VSpace bigskip
23948 \begin_layout Standard
23949 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
23950 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
23955 arg "specialchar-insert hyphenation"
23960 )を指定することが往々にして必要になります.
23963 \begin_layout Standard
23964 \begin_inset VSpace bigskip
23970 \begin_layout Standard
23971 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
23972 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
23973 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
23974 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
23977 \begin_layout Standard
23978 \begin_inset Newpage newpage
23984 \begin_layout Heart
23988 Lo\SpecialChar softhyphen
23989 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23990 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23992 At vero eos et accusam et justo duo dolores et ea rebum.
23993 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23997 \begin_layout Standard
23998 \begin_inset VSpace bigskip
24004 \begin_layout Standard
24007 \begin_inset Box Frameless
24017 height_special "totalheight"
24022 backgroundcolor "none"
24025 \begin_layout Heart
24029 Lo\SpecialChar softhyphen
24030 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24031 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24033 At vero eos et accusam et justo duo dolores et ea rebum.
24034 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24043 \begin_layout Subsection
24047 \begin_layout Standard
24048 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24049 ように,コンピューターに座標を計算させる方法もあります.
24052 \begin_layout Enumerate
24054 \begin_inset CommandInset href
24057 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24064 \begin_layout Enumerate
24071 TeX/LaTeX\SpecialChar menuseparator
24072 Settings\SpecialChar menuseparator
24075 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24076 \begin_inset space \thinspace{}
24082 \begin_layout Enumerate
24086 \begin_layout Enumerate
24089 TeX/LaTeX\SpecialChar menuseparator
24092 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24096 \begin_layout Plain Layout
24098 \begin_inset CommandInset href
24100 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24112 \begin_layout Standard
24113 座標は\SpecialChar TeX
24114 ファイルに書き込まれます.これを\SpecialChar LyX
24118 \begin_layout Enumerate
24119 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24122 \begin_layout Enumerate
24126 挿入\SpecialChar menuseparator
24127 ファイル\SpecialChar menuseparator
24141 \begin_layout Standard
24142 \begin_inset VSpace defskip
24148 \begin_layout Standard
24149 \begin_inset Note Greyedout
24152 \begin_layout Plain Layout
24157 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24165 \begin_layout Standard
24166 \begin_inset VSpace bigskip
24172 \begin_layout Standard
24176 \begin_layout Standard
24177 \begin_inset VSpace bigskip
24183 \begin_layout Standard
24184 \begin_inset CommandInset include
24186 filename "../SpecialParagraphShape.tex"
24192 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24193 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24195 At vero eos et accusam et justo duo dolores et ea rebum.
24196 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24198 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24199 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24203 \begin_layout Standard
24204 \begin_inset VSpace bigskip
24210 \begin_layout Standard
24218 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24222 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24225 \begin_layout Standard
24226 \begin_inset VSpace bigskip
24232 \begin_layout Standard
24245 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24249 \begin_layout Plain Layout
24250 これらのコマンドは,上述の全ての形で内部的に使用されています.
24255 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24260 \begin_inset CommandInset citation
24269 \begin_layout Bibliography
24270 \begin_inset CommandInset bibitem
24271 LatexCommand bibitem
24278 \begin_inset CommandInset href
24281 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24288 \begin_layout Bibliography
24289 \begin_inset CommandInset bibitem
24290 LatexCommand bibitem
24297 \begin_inset CommandInset href
24300 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"