1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties false
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 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23 \pdfbookmark[1]{\contentsname}{}
26 \pagenumbering{arabic}}
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
31 % Improve line breaking
34 \emergencystretch 1.5em
37 % additional setting for Japanese manual
38 \IfFileExists{pxjahyper.sty}
39 {\usepackage{pxjahyper}}
43 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
44 \use_default_options false
52 \maintain_unincluded_children false
55 InsetLayout Flex:MenuItem
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
73 Decoration Conglomerate
77 Decoration Conglomerate
87 \IfFileExists{okumacro.sty}
88 {\usepackage{okumacro}}
89 {\newcommand{\ruby}[2]{#2}}
94 \language_package default
97 \font_roman "default" "default"
98 \font_sans "default" "default"
99 \font_typewriter "default" "default"
100 \font_math "auto" "auto"
101 \font_default_family default
102 \use_non_tex_fonts false
105 \font_sf_scale 100 100
106 \font_tt_scale 100 100
108 \use_dash_ligatures false
110 \default_output_format default
112 \bibtex_command default
113 \index_command default
117 \pdf_title "LyX's Additional Features manual"
118 \pdf_author "LyX Team"
119 \pdf_subject "LyX's additional features documentation"
120 \pdf_keywords "LyX, Documentation, Additional"
122 \pdf_bookmarksnumbered true
123 \pdf_bookmarksopen false
124 \pdf_bookmarksopenlevel 1
125 \pdf_breaklinks false
129 \pdf_pdfusetitle false
130 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
133 \use_package amsmath 1
134 \use_package amssymb 1
135 \use_package cancel 0
137 \use_package mathdots 1
138 \use_package mathtools 0
139 \use_package mhchem 1
140 \use_package stackrel 0
141 \use_package stmaryrd 0
142 \use_package undertilde 0
144 \cite_engine_type default
148 \paperorientation portrait
153 \notefontcolor #0000ff
160 \paragraph_separation indent
161 \paragraph_indentation default
163 \math_indentation default
164 \math_numbering_side default
165 \quotes_style english
169 \paperpagestyle headings
170 \tracking_changes false
171 \output_changes false
182 \begin_inset Newline newline
196 \begin_layout Plain Layout
197 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
199 \begin_inset Flex Code
202 \begin_layout Plain Layout
206 <lyx-docs@lists.lyx.org>
211 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
228 \begin_layout Chapter
232 \begin_layout Standard
242 』の第二部です.これらの文書を別部とした理由は,単純に『
250 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
251 プロジェクトチームは,\SpecialChar LyX
252 を各設定ファイルと外部パッケージによって拡張
253 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
254 パッケージをサポートしたい場合に,\SpecialChar LyX
255 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
256 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
257 な形での貢献を文書化する冊子として位置付けられています.
260 \begin_layout Standard
261 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
262 しています.さらに,\SpecialChar LaTeX
263 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
264 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
266 ることを企図しているため,\SpecialChar LaTeX
267 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
270 \begin_layout Standard
275 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
279 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
283 』をよくお読みになって,\SpecialChar LyX
287 \begin_layout Standard
288 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
290 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
291 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
293 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
297 \begin_layout Chapter
303 \begin_layout Section
309 \begin_layout Standard
320 熟練者と\SpecialChar LaTeX
321 に興味のある方向けの章です.ここでは,\SpecialChar LyX
323 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
325 を多少なりともご存知であることを前提とします.
328 \begin_layout Standard
339 は,「\SpecialChar LaTeX
358 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
359 のフロントエンドは,いくつも出回っています
363 \begin_layout Plain Layout
373 有名なものとしては,Linux上の\SpecialChar TeX
374 makerとkile,OSX上の\SpecialChar TeX
375 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
381 .これらは,基本的に\SpecialChar LaTeX
382 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
383 も,エディタであり,\SpecialChar LaTeX
385 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
404 を効果的に使うのに,\SpecialChar LaTeX
405 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
406 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
407 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
418 \begin_inset Flex MenuItem
421 \begin_layout Plain Layout
448 \begin_inset Flex MenuItem
451 \begin_layout Plain Layout
454 エクスポート\SpecialChar menuseparator
479 \begin_inset Flex MenuItem
482 \begin_layout Plain Layout
485 表示\SpecialChar menuseparator
501 \begin_inset Flex Code
504 \begin_layout Plain Layout
512 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
513 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
522 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
525 \begin_layout Standard
535 自動的に\SpecialChar LaTeX
536 を実行するコマンドが,以下のようにいくつかあります.
539 \begin_layout Itemize
540 \begin_inset Flex MenuItem
543 \begin_layout Plain Layout
544 表示\SpecialChar menuseparator
553 \begin_layout Itemize
556 \begin_inset Flex MenuItem
559 \begin_layout Plain Layout
562 表示\SpecialChar menuseparator
563 更新\SpecialChar menuseparator
574 \begin_layout Standard
584 これらは,最後に\SpecialChar LaTeX
585 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
589 \begin_layout Standard
600 が編集中のファイルを\SpecialChar LaTeX
601 にかけるとき,\SpecialChar LyX
605 \begin_layout Enumerate
615 文書を\SpecialChar LaTeX
617 \begin_inset Flex Code
620 \begin_layout Plain Layout
636 \begin_inset Flex Code
639 \begin_layout Plain Layout
657 \begin_layout Enumerate
668 \begin_inset Flex Code
671 \begin_layout Plain Layout
686 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
687 を実行し,\SpecialChar LaTeX
688 ファイルをコンパイルするのに必要な他のコマンド(
689 \begin_inset Flex Code
692 \begin_layout Plain Layout
708 \begin_inset Flex Code
711 \begin_layout Plain Layout
729 \begin_layout Enumerate
742 \begin_layout Standard
763 \begin_inset Flex MenuItem
766 \begin_layout Plain Layout
769 表示\SpecialChar menuseparator
784 を使用して実行した場合には,\SpecialChar LyX
785 はこの後,DVIビューアを実行してDVIファイルを表示します.
786 \begin_inset Flex MenuItem
789 \begin_layout Plain Layout
799 表示\SpecialChar menuseparator
805 を使用した場合には,\SpecialChar LyX
809 \begin_layout Itemize
819 \begin_inset Flex Code
822 \begin_layout Plain Layout
860 \begin_layout Itemize
870 \begin_inset Flex Code
873 \begin_layout Plain Layout
881 などのPostScriptビューアを実行して,PostScript
893 \begin_layout Standard
895 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
898 \begin_layout Section
900 ファイルを\SpecialChar LyX
904 \begin_layout Standard
909 \begin_inset Flex MenuItem
912 \begin_layout Plain Layout
915 ファイル\SpecialChar menuseparator
916 インポート\SpecialChar menuseparator
931 コマンドを使用すると,\SpecialChar LaTeX
949 にインポートすることができます.このコマンドは,
959 \begin_inset Flex Code
962 \begin_layout Plain Layout
989 \begin_inset Flex Code
992 \begin_layout Plain Layout
1003 \begin_inset Flex Code
1006 \begin_layout Plain Layout
1014 を生成します.\SpecialChar LyX
1019 \begin_layout Plain Layout
1020 \begin_inset Flex Code
1023 \begin_layout Plain Layout
1029 は,もちろんコマンドラインから実行することもできます.
1037 \begin_layout Standard
1040 \begin_inset Flex Code
1043 \begin_layout Plain Layout
1060 は,文法的に正しい\SpecialChar LaTeX
1061 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1071 \begin_inset Flex Code
1074 \begin_layout Plain Layout
1091 は,理解不能な部分は\SpecialChar TeX
1092 コードボックスの形で残しますので,ファイルを
1102 \begin_inset Flex Code
1105 \begin_layout Plain Layout
1122 で変換したのち,\SpecialChar TeX
1123 コードボックスを探して,手動で正しく編集してください.
1126 \begin_layout Standard
1137 コードボックスがなにかご存じなければ,次節をお読みください.
1140 \begin_layout Section
1144 \begin_inset CommandInset label
1146 name "sec:TeXコードを挿入する"
1153 \begin_layout Standard
1164 文書にもつねに\SpecialChar TeX
1165 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1166 にできることは,つねに\SpecialChar LyX
1167 でも行うことができます.一方,\SpecialChar LyX
1168 は,すべての\SpecialChar LaTeX
1169 構成物を\SpecialChar LyX
1171 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1172 コマンドを\SpecialChar LyX
1174 \begin_inset Flex Code
1177 \begin_layout Plain Layout
1203 \begin_inset Flex MenuItem
1206 \begin_layout Plain Layout
1209 挿入\SpecialChar menuseparator
1234 \begin_inset Flex Ruby
1237 \begin_layout Plain Layout
1257 \begin_inset Argument post:1
1260 \begin_layout Plain Layout
1272 \begin_inset Flex Ruby
1275 \begin_layout Plain Layout
1286 \begin_inset Argument post:1
1289 \begin_layout Plain Layout
1318 \begin_layout Standard
1319 以下は,\SpecialChar LaTeX
1320 コマンドを\SpecialChar LyX
1321 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1324 \begin_layout LyX-Code
1328 \begin_inset Newline newline
1333 begin{minipage}{5cm}
1334 \begin_inset Newline newline
1338 \begin_inset Newline newline
1342 \begin_inset Newline newline
1346 \begin_inset Newline newline
1350 \begin_inset Newline newline
1354 \begin_inset Newline newline
1360 \begin_inset Newline newline
1364 \begin_inset Newline newline
1369 begin{minipage}{5cm}
1370 \begin_inset Newline newline
1376 \begin_inset Newline newline
1381 begin{minipage}{5cm}
1382 \begin_inset Newline newline
1387 \begin_inset Newline newline
1393 \begin_inset Newline newline
1399 \begin_inset Newline newline
1405 \begin_inset Newline newline
1413 \begin_layout LyX-Code
1417 \begin_layout Standard
1419 \begin_inset Flex Code
1422 \begin_layout Plain Layout
1429 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1430 上でご覧になっていれば,\SpecialChar TeX
1431 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1435 \begin_layout Standard
1436 \begin_inset VSpace bigskip
1443 \begin_layout Plain Layout
1450 \begin_layout Plain Layout
1454 begin{minipage}{5cm}
1457 \begin_layout Plain Layout
1459 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます.
1464 \begin_layout Plain Layout
1469 \begin_layout Plain Layout
1473 begin{minipage}{5cm}
1476 \begin_layout Plain Layout
1483 \begin_layout Plain Layout
1487 begin{minipage}{5cm}
1490 \begin_layout Plain Layout
1498 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1512 \begin_layout Plain Layout
1522 \begin_inset VSpace bigskip
1528 \begin_layout Standard
1539 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1540 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1541 \begin_inset Flex MenuItem
1544 \begin_layout Plain Layout
1554 挿入\SpecialChar menuseparator
1555 ファイル\SpecialChar menuseparator
1561 を使用する方法もあります(取り込みの型として
1562 \begin_inset Flex Code
1565 \begin_layout Plain Layout
1580 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1598 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1599 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1602 \begin_layout Standard
1612 最後に,いくつか強調しておくべきことがあります.
1615 \begin_layout Itemize
1626 は,あなたの\SpecialChar LaTeX
1648 \begin_layout Itemize
1658 車輪の再発明をしないようにご注意ください.
1661 \begin_layout Standard
1671 二番目の点に関して,\SpecialChar LyX
1672 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1673 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1674 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1675 う膨大な数の\SpecialChar LaTeX
1686 \begin_inset CommandInset href
1689 target "http://www.ctan.org/"
1704 \begin_inset CommandInset ref
1706 reference "chap:Special-features"
1713 \begin_layout Standard
1723 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1724 関連書籍を参考とするようにしてください.『
1742 』の書誌情報に多くの\SpecialChar LaTeX
1746 \begin_layout Section
1752 \begin_layout Subsection
1757 \begin_layout Standard
1767 すでに\SpecialChar LaTeX
1768 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1769 ずです.詳しくは\SpecialChar LaTeX
1770 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1771 文書の\SpecialChar LaTeX
1772 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1776 \begin_layout Standard
1787 プリアンブルは,\SpecialChar LaTeX
1806 の部分に来ます.ここでは以下のことを行います.
1809 \begin_layout Itemize
1819 文書クラス(ドキュメントクラス)の宣言.
1820 \begin_inset Newline newline
1824 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1825 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1843 』をご覧になれば,\SpecialChar LyX
1844 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1847 \begin_layout Itemize
1858 \begin_inset Newline newline
1862 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1863 提供されることに加え,文書に変更を加えることができます.例えば
1882 \begin_inset Flex Code
1885 \begin_layout Plain Layout
1893 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1896 \begin_layout Itemize
1907 \begin_inset Newline newline
1911 のカウンタと変数の中には,プリアンブルでグローバルに
1931 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1932 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1935 \begin_layout Itemize
1946 \begin_inset Flex Code
1949 \begin_layout Plain Layout
1967 \begin_inset Flex Code
1970 \begin_layout Plain Layout
1988 \begin_inset Newline newline
1991 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1992 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
2010 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2011 コードがあふれている場合には便利でしょう.
2014 \begin_layout Standard
2026 \begin_inset Flex Code
2029 \begin_layout Plain Layout
2044 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2045 の生成する\SpecialChar LaTeX
2049 \begin_layout Subsection
2053 \begin_layout Standard
2065 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2066 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2067 \begin_inset Flex MenuItem
2070 \begin_layout Plain Layout
2080 文書\SpecialChar menuseparator
2087 \begin_inset Flex MenuItem
2090 \begin_layout Plain Layout
2106 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2117 \begin_inset Flex MenuItem
2120 \begin_layout Plain Layout
2137 ダイアログ内のすべてのものを,\SpecialChar LyX
2138 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2140 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2151 プリアンブルコードが正しいことを確認してください.
2164 \begin_inset Flex Code
2167 \begin_layout Plain Layout
2184 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2187 \begin_layout Subsection
2191 \begin_layout Standard
2201 以下は,プリアンブルに追加できるものとその効果を示す例です.
2204 \begin_layout Subsubsection
2208 \begin_layout Standard
2238 \begin_inset Flex Code
2241 \begin_layout Plain Layout
2261 \begin_inset Flex Code
2264 \begin_layout Plain Layout
2283 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2284 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2285 \begin_inset Flex Code
2288 \begin_layout Plain Layout
2308 \begin_inset Flex Code
2311 \begin_layout Plain Layout
2326 \begin_layout Standard
2336 \begin_inset Flex Code
2339 \begin_layout Plain Layout
2359 \begin_inset Flex Code
2362 \begin_layout Plain Layout
2381 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2382 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2383 を使用していて,シスアドがお馬鹿さんである
2385 \begin_inset Flex Code
2388 \begin_layout Plain Layout
2408 \begin_inset Flex Code
2411 \begin_layout Plain Layout
2430 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2433 \begin_layout LyX-Code
2441 \begin_layout LyX-Code
2449 \begin_layout Standard
2462 \begin_layout Subsubsection
2466 \begin_layout Standard
2476 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2477 \begin_inset Flex Code
2480 \begin_layout Plain Layout
2488 という\SpecialChar LaTeX
2489 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2490 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2494 \begin_layout Standard
2505 \begin_inset Flex Code
2508 \begin_layout Plain Layout
2516 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2519 \begin_layout LyX-Code
2525 \begin_layout LyX-Code
2531 \begin_layout LyX-Code
2537 \begin_layout LyX-Code
2543 \begin_layout LyX-Code
2549 \begin_layout LyX-Code
2555 \begin_layout LyX-Code
2561 \begin_layout Standard
2580 Averyラベルシートのストック5360
2589 番を使用する場合の設定です.これで,各宛名を
2590 \begin_inset Flex Code
2593 \begin_layout Plain Layout
2613 \begin_inset Flex Code
2616 \begin_layout Plain Layout
2635 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2636 \begin_inset Flex Code
2639 \begin_layout Plain Layout
2650 \begin_layout Standard
2660 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2661 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2664 \begin_layout Subsubsection
2668 \begin_layout Standard
2698 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2715 \begin_layout Standard
2725 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2743 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2747 \begin_layout Standard
2757 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2761 \begin_layout LyX-Code
2764 usepackage{indentfirst}
2767 \begin_layout Standard
2777 もしお使いの\SpecialChar TeX
2778 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2781 \begin_layout Subsubsection
2785 \begin_layout Standard
2795 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2805 \begin_inset CommandInset ref
2807 reference "chap:Special-features"
2820 章には,他の例や,\SpecialChar LaTeX
2824 \begin_layout Section
2826 および\SpecialChar LaTeX
2830 \begin_layout Standard
2842 を呼び出す際,\SpecialChar LyX
2844 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2845 は,\SpecialChar LaTeX
2846 の実行ログファイルを事後処理用に使います.ログファイルを分
2847 析したのち,\SpecialChar LyX
2848 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2849 ファイル中,そのエラーの発生した場所に表示を移動します
2853 \begin_layout Plain Layout
2863 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2864 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2866 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2867 ーのある場所よりも後ろでエラーが報告されるのです.
2884 \begin_layout Standard
2894 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2895 \begin_inset Flex MenuItem
2898 \begin_layout Plain Layout
2908 文書\SpecialChar menuseparator
2914 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2919 \begin_layout Itemize
2922 \begin_inset Flex Code
2925 \begin_layout Plain Layout
2943 \begin_inset Newline newline
2946 これで始まるメッセージは,\SpecialChar LaTeX
2947 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2949 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2952 \begin_layout Itemize
2955 \begin_inset Flex Code
2958 \begin_layout Plain Layout
2976 \begin_inset Newline newline
2980 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2981 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2985 \begin_layout Itemize
2995 \begin_inset Flex Code
2998 \begin_layout Plain Layout
3009 \begin_inset Newline newline
3031 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3051 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3052 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3054 \begin_inset Newline newline
3057 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3066 文書\SpecialChar menuseparator
3067 設定\SpecialChar menuseparator
3095 をクリックすると,大幅な改善が見込めます.さらに,
3104 文書\SpecialChar menuseparator
3105 設定\SpecialChar menuseparator
3134 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3138 \begin_layout LyX-Code
3142 \begin_inset Newline newline
3148 \begin_inset Newline newline
3153 emergencystretch 1.5em
3154 \begin_inset Newline newline
3162 \begin_layout Standard
3163 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3167 \begin_layout Plain Layout
3169 \begin_inset Flex URL
3172 \begin_layout Plain Layout
3174 http://www.tex.ac.uk/FAQ-overfull.html
3187 \begin_layout Standard
3188 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3192 \begin_layout Plain Layout
3195 文書\SpecialChar menuseparator
3198 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3208 \begin_layout Itemize
3211 \begin_inset Flex Code
3214 \begin_layout Plain Layout
3225 \begin_inset Newline newline
3237 これは上の警告と違ってあまり出てきません.これも,
3256 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3259 \begin_layout Itemize
3260 \begin_inset Flex Code
3263 \begin_layout Plain Layout
3276 \begin_inset Flex Code
3279 \begin_layout Plain Layout
3292 \begin_inset Newline newline
3304 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3307 \begin_layout Itemize
3310 \begin_inset Flex Code
3313 \begin_layout Plain Layout
3317 \begin_inset Quotes els
3321 \begin_inset Quotes ers
3339 \begin_inset Newline newline
3342 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3343 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3345 \begin_inset Flex Code
3348 \begin_layout Plain Layout
3358 コマンドも使用していないとすれば,\SpecialChar LyX
3359 が読み込もうしているパッケージに存在しないものがあるということです.
3369 \begin_inset Flex MenuItem
3372 \begin_layout Plain Layout
3373 ヘルプ\SpecialChar menuseparator
3389 を使用して,\SpecialChar LyX
3390 が認識しているパッケージの一覧を得てください.このファイルは,(
3391 \begin_inset Flex MenuItem
3394 \begin_layout Plain Layout
3404 ツール\SpecialChar menuseparator
3410 を使用して)\SpecialChar LyX
3411 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3412 \begin_inset Newline newline
3425 \begin_inset Flex Code
3428 \begin_layout Plain Layout
3447 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3450 \begin_layout Itemize
3453 \begin_inset Flex Code
3456 \begin_layout Plain Layout
3459 LaTeX Error: Unknown option
3474 \begin_inset Newline newline
3477 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3481 \begin_layout Itemize
3484 \begin_inset Flex Code
3487 \begin_layout Plain Layout
3490 Undefined control sequence
3505 \begin_inset Newline newline
3508 お使いの文書に\SpecialChar LaTeX
3509 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3510 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3513 \begin_layout Standard
3523 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3524 のメッセージです.何を言っているのかさっぱりわからないものもあ
3525 りますが,通常これらは,\SpecialChar TeX
3526 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3544 手がかりがありません.誰もわからないのです.
3547 \begin_layout Standard
3557 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3560 \begin_layout Enumerate
3570 ご自分で挿入した\SpecialChar LaTeX
3571 コードに打ち間違いがないかどうか確かめる.
3574 \begin_layout Enumerate
3584 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3587 \begin_layout Enumerate
3597 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3598 \begin_inset Flex Code
3601 \begin_layout Plain Layout
3618 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3621 \begin_layout Enumerate
3631 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3632 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3633 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3637 \begin_layout Enumerate
3647 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3648 を微調整するオプションを使用していますか.特に,手動で
3649 \begin_inset Flex Code
3652 \begin_layout Plain Layout
3656 \begin_inset space ~
3665 \begin_inset Flex Code
3668 \begin_layout Plain Layout
3686 \begin_inset Flex Code
3689 \begin_layout Plain Layout
3706 などをたくさん挿入するなど,微調整オプションを
3724 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3727 \begin_layout Enumerate
3737 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3738 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3741 \begin_layout Enumerate
3743 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3744 はかなり嫌います.可能であれば,問題が生じな
3745 いように段落を修正するのが望ましいでしょう.
3748 \begin_layout Enumerate
3758 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3759 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3760 が原因です(\SpecialChar LaTeX
3764 \begin_layout Enumerate
3774 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3778 \begin_layout Enumerate
3791 \begin_layout Enumerate
3804 \begin_layout Standard
3818 \begin_layout Enumerate
3819 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3822 \begin_layout Standard
3854 \begin_layout Chapter
3858 \begin_layout Section
3860 あるいはBiblatexによる書誌情報のカスタマイズ
3863 \begin_layout Standard
3877 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3878 でサポートされている書誌情報の特別な機能について説明することとします.
3881 \begin_layout Subsection
3885 \begin_layout Standard
3886 標準のBib\SpecialChar TeX
3887 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3888 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3890 \begin_inset Flex Code
3893 \begin_layout Plain Layout
3900 \begin_inset Flex Code
3903 \begin_layout Plain Layout
3910 \begin_inset Flex Code
3913 \begin_layout Plain Layout
3919 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3921 \begin_inset Flex Code
3924 \begin_layout Plain Layout
3930 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3931 \begin_inset Flex Code
3934 \begin_layout Plain Layout
3940 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3941 \begin_inset Flex Code
3944 \begin_layout Plain Layout
3950 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3951 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3952 \begin_inset Flex Code
3955 \begin_layout Plain Layout
3961 をぜひとも考えるべきでしょう.ただし,同時に
3962 \begin_inset Flex Code
3965 \begin_layout Plain Layout
3971 はたいへん重く,リソース消費量も多いことに注意してください.
3974 \begin_layout Standard
3976 での各パッケージの取扱い方は,ほぼ同じです.
3977 \begin_inset Flex MenuItem
3980 \begin_layout Plain Layout
3981 文書\SpecialChar menuseparator
3988 \begin_inset Flex MenuItem
3991 \begin_layout Plain Layout
3998 \begin_inset Flex Noun
4001 \begin_layout Plain Layout
4008 \begin_inset Flex Noun
4011 \begin_layout Plain Layout
4012 Biblatex (Natbibモード)
4018 \begin_inset Flex Noun
4021 \begin_layout Plain Layout
4028 \begin_inset Flex Noun
4031 \begin_layout Plain Layout
4037 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4038 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4039 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4041 \begin_inset Flex Code
4044 \begin_layout Plain Layout
4050 に至っては,対話的なスタイルファイルビルダーさえ存在します
4054 \begin_layout Plain Layout
4055 \begin_inset Flex URL
4058 \begin_layout Plain Layout
4060 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4073 \begin_layout Subsection
4077 \begin_layout Standard
4078 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4079 でさえあります.残念ながら,Bib\SpecialChar TeX
4080 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4081 パッケージの助けを借りると,Bib\SpecialChar TeX
4082 をこのような必要性を満たすように拡張するこ
4086 \begin_layout Standard
4089 \begin_inset Flex Code
4092 \begin_layout Plain Layout
4102 \begin_layout Plain Layout
4103 \begin_inset Flex URL
4106 \begin_layout Plain Layout
4108 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4118 をそのままでサポートします.このパッケージの長所は,(
4119 \begin_inset Flex Code
4122 \begin_layout Plain Layout
4128 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4129 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4130 \begin_inset Flex Code
4133 \begin_layout Plain Layout
4140 \begin_inset Flex Code
4143 \begin_layout Plain Layout
4152 \begin_layout Standard
4153 \begin_inset Flex MenuItem
4156 \begin_layout Plain Layout
4157 文書\SpecialChar menuseparator
4164 \begin_inset Flex MenuItem
4167 \begin_layout Plain Layout
4174 \begin_inset Flex MenuItem
4177 \begin_layout Plain Layout
4183 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4185 \begin_inset Flex Code
4188 \begin_layout Plain Layout
4195 \begin_inset Flex Code
4198 \begin_layout Plain Layout
4204 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4205 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4206 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4208 \begin_inset Flex Code
4211 \begin_layout Plain Layout
4217 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4220 \begin_layout Standard
4238 \begin_inset Flex Noun
4241 \begin_layout Plain Layout
4247 オプションは無効になります.しかしながら,
4251 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4252 \begin_inset Flex Code
4255 \begin_layout Plain Layout
4261 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4262 \begin_inset Flex Noun
4265 \begin_layout Plain Layout
4271 ボタンを右クリックすると開くダイアログで,
4272 \begin_inset Flex Noun
4275 \begin_layout Plain Layout
4282 \begin_inset Flex Code
4285 \begin_layout Plain Layout
4292 \begin_inset Flex Noun
4295 \begin_layout Plain Layout
4302 \begin_inset Flex Code
4305 \begin_layout Plain Layout
4312 \begin_inset Flex Code
4315 \begin_layout Plain Layout
4329 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4337 \begin_layout Subsection
4339 \begin_inset CommandInset label
4341 name "subsec:複数の書誌情報"
4348 \begin_layout Standard
4349 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4350 ではサポートされています.これを有効にするためには,
4351 \begin_inset Flex Noun
4354 \begin_layout Plain Layout
4355 文書\SpecialChar menuseparator
4356 設定\SpecialChar menuseparator
4363 \begin_inset Flex Noun
4366 \begin_layout Plain Layout
4372 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4373 書誌情報を加えてください.出力時に,現在
4374 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4377 \begin_layout Standard
4379 を使用する場合には,複数の書誌情報を生成するのに,
4380 \begin_inset Flex Code
4383 \begin_layout Plain Layout
4390 \begin_inset Flex Code
4393 \begin_layout Plain Layout
4399 パッケージが使用されます.「子文書毎」を選択し,
4400 \begin_inset Flex Noun
4403 \begin_layout Plain Layout
4413 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4414 \begin_inset Flex Code
4417 \begin_layout Plain Layout
4427 \begin_layout Plain Layout
4429 \begin_inset Flex Noun
4432 \begin_layout Plain Layout
4440 \begin_inset CommandInset ref
4442 reference "sec:TeXコードを挿入する"
4450 \begin_inset Flex Code
4453 \begin_layout Plain Layout
4465 \begin_inset Flex Code
4468 \begin_layout Plain Layout
4474 パッケージが使用される場合,\SpecialChar LyX
4475 は特定の単位を生成するために,その単位を
4476 \begin_inset Flex Code
4479 \begin_layout Plain Layout
4486 \begin_inset Flex Code
4489 \begin_layout Plain Layout
4498 \begin_inset Flex Code
4501 \begin_layout Plain Layout
4509 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4510 \begin_inset Flex Code
4513 \begin_layout Plain Layout
4519 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4521 \begin_inset Flex Code
4524 \begin_layout Plain Layout
4533 \begin_inset Flex Code
4536 \begin_layout Plain Layout
4545 コードで入力して,自前の単位を生成することもできます.ただし,
4546 \begin_inset Flex Code
4549 \begin_layout Plain Layout
4555 は入れ子にすることができないことに注意してください.第二の制限は,
4556 \begin_inset Flex Code
4559 \begin_layout Plain Layout
4565 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4566 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4569 \begin_layout Standard
4575 \begin_inset Flex Code
4578 \begin_layout Plain Layout
4584 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4586 \begin_inset Flex Code
4589 \begin_layout Plain Layout
4598 \begin_inset Flex Code
4601 \begin_layout Plain Layout
4609 と書きます.単位の終了箇所も制御したい場合には,代わりに
4610 \begin_inset Flex Code
4613 \begin_layout Plain Layout
4623 \begin_inset Flex Code
4626 \begin_layout Plain Layout
4635 \begin_inset Flex Code
4638 \begin_layout Plain Layout
4644 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4648 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4649 献参照単位全て」を選択してください.この話題についての詳細は,
4656 \begin_layout Section
4660 \begin_layout Subsection
4664 \begin_layout Standard
4665 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4666 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4667 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4668 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4672 \begin_layout Plain Layout
4677 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4683 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4684 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4685 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4686 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4687 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4689 \begin_inset Flex Code
4692 \begin_layout Plain Layout
4701 \begin_inset Flex Code
4704 \begin_layout Plain Layout
4712 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4715 \begin_layout Standard
4719 挿入\SpecialChar menuseparator
4720 ファイル\SpecialChar menuseparator
4723 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4724 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4727 \begin_layout Standard
4728 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4729 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4732 \begin_layout Enumerate
4733 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4736 \begin_layout Enumerate
4737 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4741 \begin_layout Enumerate
4742 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4743 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4747 \begin_layout Standard
4748 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4749 \begin_inset Flex Code
4752 \begin_layout Plain Layout
4758 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4759 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4763 \begin_inset Flex MenuItem
4766 \begin_layout Plain Layout
4776 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4779 \begin_layout Standard
4780 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4781 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4785 \begin_layout Subsection
4789 \begin_layout Standard
4790 \begin_inset Box Shadowbox
4800 height_special "totalheight"
4805 backgroundcolor "none"
4808 \begin_layout Plain Layout
4809 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4817 \begin_layout Standard
4818 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4819 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4823 \begin_layout Subsection
4827 \begin_layout Standard
4828 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4829 ことがあります.以下にその方法を説明します.
4832 \begin_layout Standard
4833 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4834 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4837 \begin_layout Standard
4838 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4839 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4841 挿入\SpecialChar menuseparator
4842 派生枝\SpecialChar menuseparator
4845 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4847 文書\SpecialChar menuseparator
4848 設定...\SpecialChar menuseparator
4853 文書\SpecialChar menuseparator
4854 設定...\SpecialChar menuseparator
4857 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4860 \begin_layout Standard
4861 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4862 \begin_inset CommandInset ref
4864 reference "subsec:複数の書誌情報"
4874 \begin_layout Section
4879 \begin_layout Standard
4880 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4881 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4883 2.0には,この過程を自動化するPythonスクリプト(
4884 \begin_inset Flex Code
4887 \begin_layout Plain Layout
4894 \begin_inset Flex Code
4897 \begin_layout Plain Layout
4904 \begin_inset Flex Code
4907 \begin_layout Plain Layout
4913 pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4914 \begin_inset Flex Code
4917 \begin_layout Plain Layout
4924 \begin_inset Flex Code
4927 \begin_layout Plain Layout
4933 ファイル形式が優先され,Windowsでは
4934 \begin_inset Flex Code
4937 \begin_layout Plain Layout
4946 \begin_layout Standard
4948 の環境構成時には,「\SpecialChar LyX
4949 書庫」を書き出すことができるようにスクリプトが準備され,
4950 \begin_inset Flex MenuItem
4953 \begin_layout Plain Layout
4954 ファイル\SpecialChar menuseparator
4963 \begin_layout Standard
4964 \begin_inset Flex MenuItem
4967 \begin_layout Plain Layout
4968 ツール\SpecialChar menuseparator
4969 設定\SpecialChar menuseparator
4970 ファイル処理\SpecialChar menuseparator
4977 \begin_inset Flex MenuItem
4980 \begin_layout Plain Layout
4982 \SpecialChar menuseparator
4990 \begin_inset Flex Code
4993 \begin_layout Plain Layout
5000 \begin_inset Flex Code
5003 \begin_layout Plain Layout
5009 スイッチを加えることで,プラットホームとは独立に,
5010 \begin_inset Flex Code
5013 \begin_layout Plain Layout
5020 \begin_inset Flex Code
5023 \begin_layout Plain Layout
5029 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5032 \begin_layout Section
5036 \begin_layout Standard
5037 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5038 \begin_inset Flex Code
5041 \begin_layout Plain Layout
5047 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5052 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5054 る必要のある\SpecialChar LaTeX
5058 \begin_layout Standard
5059 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5060 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5064 \begin_inset Flex Code
5067 \begin_layout Plain Layout
5082 \begin_inset Flex Code
5085 \begin_layout Plain Layout
5100 \begin_inset Flex Code
5103 \begin_layout Plain Layout
5116 \begin_inset Flex Code
5119 \begin_layout Plain Layout
5127 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5130 \begin_layout Standard
5138 \begin_layout Standard
5139 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5143 \begin_layout Standard
5149 \begin_inset Newline newline
5157 \begin_layout Standard
5158 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5159 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5162 \begin_layout Standard
5172 \begin_layout Standard
5180 \begin_layout Standard
5190 \begin_layout Standard
5198 \begin_layout Standard
5206 \begin_layout Standard
5216 \begin_layout Standard
5220 \begin_inset Flex Code
5223 \begin_layout Plain Layout
5240 \begin_inset Flex Code
5243 \begin_layout Plain Layout
5255 は,それぞれ\SpecialChar LaTeX
5256 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5257 \begin_inset Flex Code
5260 \begin_layout Plain Layout
5275 \begin_layout Standard
5276 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5277 フッタ罫線は0ptです.太さを変更するには,
5280 \begin_inset Flex Code
5283 \begin_layout Plain Layout
5290 headrulewidth}{0.4pt}
5300 \begin_inset Flex Code
5303 \begin_layout Plain Layout
5310 footrulewidth}{0.4pt}
5320 \begin_layout Standard
5321 \begin_inset Flex Code
5324 \begin_layout Plain Layout
5329 thispagestyle{empty}
5335 \begin_inset Flex Code
5338 \begin_layout Plain Layout
5343 thispagestyle{plain}
5349 \begin_inset Flex Code
5352 \begin_layout Plain Layout
5357 thispagestyle{fancy}
5362 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5364 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5365 (plain)になるように設定されているのです.
5368 \begin_layout Standard
5369 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5370 \begin_inset Flex Code
5373 \begin_layout Plain Layout
5381 パッケージの取扱説明書をご参照ください(
5382 \begin_inset Flex Code
5385 \begin_layout Plain Layout
5394 \begin_layout Standard
5395 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5398 \begin_layout Standard
5407 includegraphics{logo.eps}}}
5410 \begin_layout Standard
5412 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5413 \begin_inset Newline newline
5417 \begin_inset Flex Code
5420 \begin_layout Plain Layout
5426 usepackage{graphics}
5431 をプリアンブルに宣言する必要があります).
5434 \begin_layout Section
5436 \begin_inset CommandInset label
5445 \begin_layout Standard
5451 \begin_layout Subsection
5455 \begin_layout Standard
5457 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5458 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5462 \begin_layout Plain Layout
5463 正確には可能ですが,手動で行う必要があります.
5471 \begin_layout Subsection
5475 \begin_layout Standard
5477 \begin_inset Flex MenuItem
5480 \begin_layout Plain Layout
5481 文書\SpecialChar menuseparator
5488 \begin_inset Flex MenuItem
5491 \begin_layout Plain Layout
5500 \begin_layout Standard
5501 このダイアログは,ブリット形の一覧表を提示します.
5502 \begin_inset Flex MenuItem
5505 \begin_layout Plain Layout
5511 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5512 \begin_inset Flex MenuItem
5515 \begin_layout Plain Layout
5521 パネルは,変更したい階層を選択するものです.
5522 \begin_inset Flex MenuItem
5525 \begin_layout Plain Layout
5531 では,指定したい\SpecialChar LaTeX
5532 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5536 \begin_layout Standard
5537 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5541 \begin_layout Standard
5543 \begin_inset Tabular
5544 <lyxtabular version="3" rows="7" columns="2">
5545 <features tabularvalignment="middle">
5546 <column alignment="center" valignment="top" width="0pt">
5547 <column alignment="center" valignment="top" width="0pt">
5549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5552 \begin_layout Plain Layout
5558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5561 \begin_layout Plain Layout
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5581 \begin_layout Plain Layout
5589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5592 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5614 \begin_layout Plain Layout
5629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5632 \begin_layout Plain Layout
5649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5652 \begin_layout Plain Layout
5667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5670 \begin_layout Plain Layout
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5690 \begin_layout Plain Layout
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5708 \begin_layout Plain Layout
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5728 \begin_layout Plain Layout
5743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5746 \begin_layout Plain Layout
5763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5766 \begin_layout Plain Layout
5781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5784 \begin_layout Plain Layout
5807 \begin_layout Standard
5809 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5811 パッケージが導入されていない可能性が大です
5815 \begin_layout Plain Layout
5817 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5825 \begin_layout Subsection
5829 \begin_layout Standard
5830 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5831 上には反映されませんが,文書の表示を行えば確認されます.
5834 \begin_layout Standard
5835 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5839 \begin_layout Plain Layout
5844 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5845 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5846 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5849 \begin_layout Plain Layout
5853 \begin_layout Plain Layout
5869 \begin_layout Plain Layout
5873 \begin_layout Plain Layout
5895 \begin_layout Itemize
5896 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5898 \begin_inset Flex Code
5901 \begin_layout Plain Layout
5911 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5912 更するために,以下の\SpecialChar LaTeX
5917 \begin_layout LyX-Code
5929 \begin_layout LyX-Code
5948 \begin_layout Itemize
5950 \begin_inset Flex Code
5953 \begin_layout Plain Layout
5961 コマンドの一部にローマ数字で指定されていることに注意してください.
5964 \begin_layout Itemize
5965 \begin_inset Argument item:1
5968 \begin_layout Plain Layout
5972 \begin_layout Plain Layout
5991 \begin_inset Flex Code
5994 \begin_layout Plain Layout
6001 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
6002 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
6005 \begin_inset Flex Code
6008 \begin_layout Plain Layout
6027 \begin_layout Plain Layout
6031 \begin_layout Plain Layout
6047 \begin_layout Plain Layout
6048 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6051 \begin_layout LyX-Code
6068 \begin_layout Chapter
6073 \begin_layout Standard
6075 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6076 は,常に外部変換子を用いることで実現されていました
6080 \begin_layout Plain Layout
6082 で外部変換子を使うことについての詳細は,取扱説明書『
6095 .これらは2つのグループに大別できます.1つは,
6096 \begin_inset Flex Code
6099 \begin_layout Plain Layout
6106 \begin_inset Flex Code
6109 \begin_layout Plain Layout
6116 \begin_inset Flex Code
6119 \begin_layout Plain Layout
6125 のように,\SpecialChar LaTeX
6126 を中間形式として用い,その\SpecialChar LaTeX
6127 を生成するのに\SpecialChar LyX
6129 \begin_inset Flex Code
6132 \begin_layout Plain Layout
6139 のように,直接\SpecialChar LyX
6140 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6143 \begin_layout Standard
6145 ベースの変換子は,原則として,\SpecialChar LaTeX
6146 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6148 たのか,\SpecialChar TeX
6149 コードで書かれたのかについては気にしません.これらの変換子は,
6150 \begin_inset Flex Code
6153 \begin_layout Plain Layout
6159 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6161 \begin_inset Flex Code
6164 \begin_layout Plain Layout
6170 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6171 は解析の非常に難しい言語であり—\SpecialChar TeX
6172 自身だけが\SpecialChar TeX
6173 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6175 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6179 』は,他の変換子では書き出しができるのに,
6180 \begin_inset Flex Code
6183 \begin_layout Plain Layout
6189 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6190 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6191 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6192 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6195 \begin_layout Standard
6197 \begin_inset Flex Code
6200 \begin_layout Plain Layout
6208 \begin_inset CommandInset href
6210 name "http://elyxer.nongnu.org/"
6211 target "http://elyxer.nongnu.org/"
6216 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6217 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6218 \begin_inset Flex Code
6221 \begin_layout Plain Layout
6227 よりも質が落ちます.これはHTMLの限界を示しています
6231 \begin_layout Plain Layout
6233 \begin_inset Flex Code
6236 \begin_layout Plain Layout
6243 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6249 .さらに重要なことは(少なくとも第1.1.1版においては),
6250 \begin_inset Flex Code
6253 \begin_layout Plain Layout
6260 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6262 \begin_inset Flex Code
6265 \begin_layout Plain Layout
6272 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6273 開発陣は別の方法を採ることとし,\SpecialChar LyX
6276 ことができるのと同様に,\SpecialChar LyX
6277 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6280 \begin_layout Standard
6281 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6285 \begin_layout Plain Layout
6288 \begin_inset CommandInset href
6291 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6297 \begin_inset Flex Code
6300 \begin_layout Plain Layout
6301 development/HTML/HTML.notes
6306 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6307 \begin_inset CommandInset href
6310 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"
6315 にあるXHTML関連バグ一覧も参照のこと.
6320 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6323 \begin_layout Standard
6324 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6325 の一部となっているため,\SpecialChar LyX
6326 が出力する文書について\SpecialChar LyX
6327 が関知しているところのものは,すべて知り得るというところから来ていま
6332 \begin_layout Plain Layout
6333 他には,これらのルーチンが\SpecialChar LyX
6334 内部にあるため,\SpecialChar LyX
6335 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6340 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6341 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6342 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6343 1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6346 \begin_layout Standard
6347 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6348 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6349 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6350 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6354 生成します.もし節見出しが,\SpecialChar LyX
6355 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6356 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6358 式とを区別しません.どちらの場合も,\SpecialChar LyX
6359 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6363 \begin_layout Standard
6364 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6365 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6373 \begin_layout Standard
6374 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6377 \begin_layout Section
6381 \begin_layout Standard
6383 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6386 \begin_layout Itemize
6388 \begin_inset Newline newline
6391 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6392 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6394 \begin_inset Newline newline
6398 \begin_inset Flex Code
6401 \begin_layout Plain Layout
6407 パッケージを使用していたり,\SpecialChar TeX
6408 コードを使用しているなどで,もし\SpecialChar LyX
6409 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6414 \begin_layout Itemize
6416 \begin_inset Newline newline
6420 \begin_inset Flex Code
6423 \begin_layout Plain Layout
6429 は,数式をCSSで装飾したHTMLとして出力します
6433 \begin_layout Plain Layout
6436 \begin_inset Flex Code
6439 \begin_layout Plain Layout
6445 からのHTML出力のために,CSSの一部を拝借しています.
6450 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6451 \begin_inset Flex Code
6454 \begin_layout Plain Layout
6460 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6461 \begin_inset Newline newline
6465 \begin_inset Flex Code
6468 \begin_layout Plain Layout
6474 パッケージを使用していたり,\SpecialChar TeX
6475 コードを使用しているなどで,もし\SpecialChar LyX
6476 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6481 \begin_layout Itemize
6483 \begin_inset Newline newline
6487 \begin_inset Flex Code
6490 \begin_layout Plain Layout
6496 のように,\SpecialChar LyX
6497 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6501 \begin_layout Plain Layout
6502 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6511 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6512 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6513 かったり,コピーが出来なかったりといったことがあります.
6514 \begin_inset Newline newline
6518 \begin_inset Flex MenuItem
6521 \begin_layout Plain Layout
6522 文書\SpecialChar menuseparator
6523 設定\SpecialChar menuseparator
6529 の「数式画像の伸縮」パラメータを変更することで制御できます
6533 \begin_layout Plain Layout
6534 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6540 \begin_inset Newline newline
6544 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6545 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6549 \begin_layout Itemize
6552 \begin_inset Newline newline
6555 最後に,\SpecialChar LyX
6556 は,数式を\SpecialChar LaTeX
6557 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6560 \begin_inset CommandInset href
6563 target "http://www.math.union.edu/~dpvc/jsMath/"
6568 のようなツールとともに使用することもできます.\SpecialChar LyX
6569 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6571 \begin_inset Flex Code
6574 \begin_layout Plain Layout
6581 \begin_inset Flex Code
6584 \begin_layout Plain Layout
6591 \begin_inset Flex Code
6594 \begin_layout Plain Layout
6603 \begin_layout Standard
6605 \begin_inset Flex MenuItem
6608 \begin_layout Plain Layout
6609 文書\SpecialChar menuseparator
6610 設定\SpecialChar menuseparator
6616 で選択しなくてはなりません.既定では,\SpecialChar LyX
6617 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6620 \begin_layout Standard
6621 最後に,\SpecialChar LyX
6622 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6626 \begin_layout Plain Layout
6627 その他にも,\SpecialChar LyX
6628 は,差込枠に\SpecialChar TeX
6629 コードが含まれていると画像出力に回帰するので,数式中に
6630 \begin_inset Formula $a=b\relax$
6633 のような無害な\SpecialChar TeX
6634 コードを挿入することによって,画像出力を強制することができます.
6642 \begin_layout Section
6646 \begin_layout Standard
6647 XHTML出力は,書誌情報と引用を完全にサポートしています.
6650 \begin_layout Standard
6651 引用ラベルは,\SpecialChar LyX
6652 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6653 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6654 使用している場合には,\SpecialChar LyX
6655 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6656 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6657 は,Bib\SpecialChar TeX
6658 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6659 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6662 \begin_layout Standard
6663 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6664 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6668 \begin_layout Standard
6669 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6674 \begin_inset Quotes eld
6677 Context and Logical Form
6678 \begin_inset Quotes erd
6683 Language in Context: Selected Essays
6685 (Oxford: Oxford University Press, 2007), pp.
6691 \begin_inset Quotes eld
6694 Semantics in Context
6695 \begin_inset Quotes erd
6700 Language in Context: Selected Essays
6702 (Oxford: Oxford University Press, 2007), pp.
6706 \begin_layout Standard
6707 これは,遠くないうちに修正されるでしょう.
6710 \begin_layout Standard
6711 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6712 は同じ情報を繰り返し出力してしまいます.
6715 \begin_layout Section
6719 \begin_layout Standard
6721 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6724 \begin_layout Standard
6729 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6733 \begin_layout Plain Layout
6734 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6735 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6736 で入力しなくてはならないようなものをそのまま入力しているのです.
6741 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6744 \begin_layout Itemize
6745 索引項目のグループ化(下層項目): \SpecialChar LyX
6746 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6747 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6750 \begin_layout Itemize
6751 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6755 \begin_layout Itemize
6756 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6757 が「|see\SpecialChar ldots
6758 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6762 \begin_layout Itemize
6763 索引項目の整序: \SpecialChar LyX
6764 は整序順の変更をサポートします.\SpecialChar LyX
6765 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6766 出します.現在のところ,\SpecialChar LyX
6767 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6770 \begin_layout Itemize
6771 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6772 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6773 うな文法はサポートされません.\SpecialChar LyX
6774 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6777 \begin_layout Itemize
6778 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6779 を印字しますので,その索引は必ず置くようにしてください.
6782 \begin_layout Section
6786 \begin_layout Standard
6787 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6790 \begin_layout Chapter
6793 \begin_inset CommandInset label
6802 \begin_layout Section
6806 \begin_layout Standard
6808 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6809 と通信したり,\SpecialChar LyX
6810 コマンドを実行させたり,\SpecialChar LyX
6811 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6812 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6813 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6817 \begin_layout Section
6820 \begin_inset CommandInset label
6822 name "sec:サーバーを開始するには"
6829 \begin_layout Standard
6831 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6832 \begin_inset Flex Code
6835 \begin_layout Plain Layout
6841 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6846 \begin_inset Flex Code
6849 \begin_layout Plain Layout
6861 に特別なオブジェクトとして置かれます),「
6862 \begin_inset Flex Code
6865 \begin_layout Plain Layout
6872 \begin_inset Flex Code
6875 \begin_layout Plain Layout
6881 」という名前がついています.外部プログラムは,
6882 \begin_inset Flex Code
6885 \begin_layout Plain Layout
6892 \begin_inset Flex Code
6895 \begin_layout Plain Layout
6902 \begin_inset Flex MenuItem
6905 \begin_layout Plain Layout
6906 ツール\SpecialChar menuseparator
6913 \begin_inset Flex Code
6916 \begin_layout Plain Layout
6917 /home/myhome/lyxpipe
6923 \begin_inset Flex Code
6926 \begin_layout Plain Layout
6940 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6941 \begin_inset Flex Code
6944 \begin_layout Plain Layout
6962 なども使用できます).サーバーを開始するためには,これを
6969 \begin_layout Standard
6972 \begin_inset Flex Code
6975 \begin_layout Plain Layout
6982 \begin_inset Flex Code
6985 \begin_layout Plain Layout
6991 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6993 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6994 らかの理由で,\SpecialChar LyX
6995 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6996 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6997 プを削除したのちに,\SpecialChar LyX
6998 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7002 \begin_layout Standard
7003 サーバーを使用する\SpecialChar LyX
7004 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7005 \begin_inset Flex Code
7008 \begin_layout Plain Layout
7014 ファイルを使用させるなど,別々の設定を使用する必要があります.
7017 \begin_layout Standard
7018 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7019 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7020 \begin_inset Flex Code
7023 \begin_layout Plain Layout
7032 \begin_layout Standard
7033 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7034 \begin_inset Newline newline
7038 \begin_inset Flex Code
7041 \begin_layout Plain Layout
7042 development/lyxserver/server_monitor.cpp
7050 \begin_layout Standard
7052 \begin_inset Flex Code
7055 \begin_layout Plain Layout
7056 src/client/lyxclient
7061 にあるコマンドラインベースのクライアントがあります.
7064 \begin_layout Section
7068 \begin_layout Standard
7070 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7087 \begin_layout Description
7088 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7090 る際,クライアント名をエコーするときだけです.
7093 \begin_layout Description
7094 関数 は,\SpecialChar LyX
7095 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7098 \begin_layout Description
7099 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7102 \begin_layout Standard
7121 \begin_layout Standard
7130 は,コマンド要求からそのままエコーされますが,
7134 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7135 の内部状態に関する情報を返しますが,空のデータ応答
7136 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7139 \begin_layout Standard
7140 エラーが発生した場合の\SpecialChar LyX
7158 \begin_layout Standard
7163 には,なぜコマンドが失敗したかの説明が入っているはずです.
7166 \begin_layout Standard
7170 \begin_layout LyX-Code
7171 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7172 \begin_inset Newline newline
7175 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7176 \begin_inset Newline newline
7179 read a <~/.lyxpipe.out
7180 \begin_inset Newline newline
7186 \begin_layout Section
7190 \begin_layout Standard
7192 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7193 \begin_inset Flex Ruby
7196 \begin_layout Plain Layout
7198 \begin_inset Argument post:1
7201 \begin_layout Plain Layout
7212 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7213 はこの通知を行います.\SpecialChar LyX
7218 \begin_inset Flex Code
7221 \begin_layout Plain Layout
7232 \begin_layout Standard
7237 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7240 \begin_layout Standard
7241 この機構は,\SpecialChar LyX
7242 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7243 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7244 コマンドを発行する\SpecialChar LyX
7249 \begin_layout Section
7254 \begin_layout Standard
7256 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7269 \begin_layout Standard
7274 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7275 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7277 とをクライアントに伝えるのには,\SpecialChar LyX
7281 \begin_layout Section
7285 \begin_layout Standard
7290 \begin_layout Plain Layout
7291 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7295 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7300 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7301 特定の場所をクリックすることによって,\SpecialChar LyX
7302 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7308 )を使用するか,\SpecialChar LyX
7309 が作業ディレクトリに生成するUNIXドメインソケット(
7314 \begin_inset Flex Code
7317 \begin_layout Plain Layout
7323 プログラムが\SpecialChar LyX
7324 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7325 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7327 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7328 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7329 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7330 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7333 \begin_layout Subsection
7334 \begin_inset CommandInset label
7343 \begin_layout Standard
7347 arg "buffer-toggle-output-sync"
7350 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7351 がすべてをうまくこなしてくれます.あるいは,
7352 \begin_inset Flex MenuItem
7355 \begin_layout Plain Layout
7356 文書\SpecialChar menuseparator
7357 設定\SpecialChar menuseparator
7364 \begin_inset Flex MenuItem
7367 \begin_layout Plain Layout
7373 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7374 は,自動的に,必要なSync\SpecialChar TeX
7375 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7377 \begin_inset Flex MenuItem
7380 \begin_layout Plain Layout
7386 ツールバーからも容易にアクセスすることができます.
7389 \begin_layout Standard
7390 もし,これとは別の設定が必要な場合には,
7391 \begin_inset Flex MenuItem
7394 \begin_layout Plain Layout
7395 文書\SpecialChar menuseparator
7396 設定\SpecialChar menuseparator
7397 出力\SpecialChar menuseparator
7403 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7406 \begin_layout Standard
7408 \begin_inset Flex Code
7411 \begin_layout Plain Layout
7419 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7420 \begin_inset Flex Code
7423 \begin_layout Plain Layout
7434 \begin_layout Standard
7436 \begin_inset Flex Code
7439 \begin_layout Plain Layout
7446 \begin_inset Flex Code
7449 \begin_layout Plain Layout
7455 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7456 \begin_inset Flex Code
7459 \begin_layout Plain Layout
7466 \begin_inset Flex Code
7469 \begin_layout Plain Layout
7475 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7478 \begin_layout Standard
7479 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7480 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7481 \begin_inset CommandInset ref
7483 reference "subsec:特定のビューアを設定して使うには"
7490 \begin_layout Subsection
7494 \begin_layout Standard
7496 は,遡及検索のために複数の方法を提供しています.ある方法は
7497 \begin_inset Flex Code
7500 \begin_layout Plain Layout
7506 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7507 頒布版が既に特定の方法を提供しているか(組み込みによ
7508 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7511 \begin_layout Subsubsection*
7512 src-special経由のDVI組み込み検索(DVIのみ)
7515 \begin_layout Standard
7516 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7517 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7520 \begin_inset Flex MenuItem
7523 \begin_layout Plain Layout
7524 設定\SpecialChar menuseparator
7525 ファイル処理\SpecialChar menuseparator
7532 \begin_inset Flex MenuItem
7535 \begin_layout Plain Layout
7542 \begin_inset Flex MenuItem
7545 \begin_layout Plain Layout
7546 LaTeX (plain)->DraftDVI
7552 \begin_inset Flex Code
7555 \begin_layout Plain Layout
7556 latex -src-specials $$i
7561 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7562 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7565 \begin_layout Subsubsection*
7566 外部パッケージ(PDFSyncおよびsrcltx)
7569 \begin_layout Standard
7578 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7579 プリアンブルで以下のようにパッケージを読み込んで
7583 \begin_layout Itemize
7585 \begin_inset Flex Code
7588 \begin_layout Plain Layout
7599 \begin_layout Itemize
7601 \begin_inset Flex Code
7604 \begin_layout Plain Layout
7607 usepackage[active]{srcltx}
7615 \begin_layout Standard
7616 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7619 \begin_layout LyX-Code
7623 \begin_inset Newline newline
7629 \begin_inset Newline newline
7635 \begin_inset Newline newline
7641 \begin_inset Newline newline
7646 usepackage[active]{srcltx}
7647 \begin_inset Newline newline
7655 \begin_layout Standard
7656 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7659 \begin_layout Standard
7660 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7664 \begin_layout Subsubsection*
7665 Sync\SpecialChar TeX
7666 を使った組み込み遡及検索(DVIおよびPDF)
7669 \begin_layout Standard
7670 \begin_inset Flex Code
7673 \begin_layout Plain Layout
7679 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7681 Sync\SpecialChar TeX
7684 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7685 るためには,少なくとも\SpecialChar TeX
7686 Live 2008か最近のMik\SpecialChar TeX
7687 頒布版が必要です.また,既にSync\SpecialChar TeX
7688 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7689 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7692 \begin_layout Standard
7693 DVI出力でSync\SpecialChar TeX
7695 \begin_inset Flex MenuItem
7698 \begin_layout Plain Layout
7699 設定\SpecialChar menuseparator
7700 ファイル処理\SpecialChar menuseparator
7707 \begin_inset Flex Noun
7710 \begin_layout Plain Layout
7711 LaTeX (plain) -> DVI
7717 \begin_inset Flex Noun
7720 \begin_layout Plain Layout
7721 LaTeX (plain) -> DraftDVI
7727 \begin_inset Flex Code
7730 \begin_layout Plain Layout
7731 latex -synctex=1 $$i
7737 \begin_inset Flex Noun
7740 \begin_layout Plain Layout
7741 LaTeX (pdflatex) -> PDF (pdflatex)
7747 \begin_inset Flex Code
7750 \begin_layout Plain Layout
7751 pdflatex -synctex=1 $$i
7756 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7757 で使うのに設定を行う必要があるかどうか,お
7758 使いのビューアの取扱説明書をご確認ください.
7762 \begin_layout Plain Layout
7763 \begin_inset Flex Code
7766 \begin_layout Plain Layout
7772 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7773 \begin_inset Flex Code
7776 \begin_layout Plain Layout
7790 \begin_layout Subsection
7792 \begin_inset CommandInset label
7794 name "subsec:特定のビューアを設定して使うには"
7801 \begin_layout Subsubsection*
7805 \begin_layout Standard
7808 \begin_inset Flex Code
7811 \begin_layout Plain Layout
7817 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7818 \begin_inset Flex Code
7821 \begin_layout Plain Layout
7827 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7828 ,Mac OS X上ではAlt-クリックで始動します).
7831 \begin_layout Standard
7832 しかし,何らかの理由で,\SpecialChar LyX
7833 と通信するのにソケットではなく命名パイプを使用したい場合には,
7834 \begin_inset Flex MenuItem
7837 \begin_layout Plain Layout
7838 設定\SpecialChar menuseparator
7839 ファイル処理\SpecialChar menuseparator
7846 \begin_inset Flex Code
7849 \begin_layout Plain Layout
7850 xdvi -editor "lyxeditor.sh %f %l"
7856 \begin_inset Flex Code
7859 \begin_layout Plain Layout
7865 は適切なスクリプト名)に変更してください
7869 \begin_layout Plain Layout
7871 \begin_inset Flex Code
7874 \begin_layout Plain Layout
7875 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7888 \begin_layout LyX-Code
7890 \begin_inset Newline newline
7893 LYXPIPE="/path/to/lyxpipe"
7894 \begin_inset Newline newline
7897 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7898 \begin_inset Newline newline
7901 echo "$COMMAND" > "${LYXPIPE}".in || exit
7902 \begin_inset Newline newline
7905 read TMP < "${LYXPIPE}".out || exit
7908 \begin_layout Standard
7910 \begin_inset Flex Code
7913 \begin_layout Plain Layout
7920 \begin_inset Flex MenuItem
7923 \begin_layout Plain Layout
7924 設定\SpecialChar menuseparator
7930 で指定したLyXServerパイプのパスを指定してください.
7934 \begin_layout Plain Layout
7936 \begin_inset Flex Code
7939 \begin_layout Plain Layout
7950 \begin_inset Flex Code
7953 \begin_layout Plain Layout
7967 \begin_layout Subsubsection*
7971 \begin_layout Standard
7972 \begin_inset Flex Code
7975 \begin_layout Plain Layout
7976 /Applications/MacDviX_Folder/calleditor.script
7984 \begin_layout LyX-Code
7985 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7986 \begin_inset Newline newline
7992 \begin_layout Standard
7993 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7994 を導入した場合には,それに従って上記の行を修正してください.
7997 \begin_layout Standard
7998 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8001 \begin_layout Subsubsection*
8005 \begin_layout Standard
8006 \begin_inset Flex MenuItem
8009 \begin_layout Plain Layout
8010 設定\SpecialChar menuseparator
8011 ファイル処理\SpecialChar menuseparator
8012 ファイル書式\SpecialChar menuseparator
8019 \begin_inset Flex Code
8022 \begin_layout Plain Layout
8023 open -a Skim.app $$i
8029 \begin_inset Flex MenuItem
8032 \begin_layout Plain Layout
8033 Skim\SpecialChar menuseparator
8034 設定\SpecialChar menuseparator
8043 \begin_layout Standard
8044 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8047 \begin_layout Subsubsection*
8051 \begin_layout Standard
8052 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8053 \begin_inset CommandInset href
8055 target "http://wiki.lyx.org/LyX/SyncTeX"
8063 \begin_layout Subsubsection*
8067 \begin_layout Standard
8068 \begin_inset Flex Noun
8071 \begin_layout Plain Layout
8072 設定\SpecialChar menuseparator
8073 Okularを設定\SpecialChar menuseparator
8079 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8080 \begin_inset Flex Code
8083 \begin_layout Plain Layout
8092 \begin_layout Standard
8093 遡及検索は,SHIFT-クリックで始動します.
8096 \begin_layout Subsubsection*
8100 \begin_layout Standard
8101 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8103 \begin_inset Flex MenuItem
8106 \begin_layout Plain Layout
8107 Edit\SpecialChar menuseparator
8108 Settings\SpecialChar menuseparator
8114 を開いて「Source editor」項目の入力フィールドをクリックし,
8115 \begin_inset Flex Code
8118 \begin_layout Plain Layout
8127 \begin_layout Standard
8128 遡及検索は,ダブルクリックで始動します.
8131 \begin_layout Subsubsection*
8135 \begin_layout Standard
8137 \begin_inset Flex MenuItem
8140 \begin_layout Plain Layout
8141 View\SpecialChar menuseparator
8147 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8148 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8150 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8151 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8152 \begin_inset Flex Code
8155 \begin_layout Plain Layout
8161 (以下参照)のあるディレクトリを見つけます.
8162 \begin_inset Flex Code
8165 \begin_layout Plain Layout
8172 \begin_inset Flex Code
8175 \begin_layout Plain Layout
8182 \begin_inset Flex Code
8185 \begin_layout Plain Layout
8195 を通じて\SpecialChar LyX
8196 と通信するためのラッパとして使用され,以下のようになっています.
8199 \begin_layout LyX-Code
8201 \begin_inset Newline newline
8204 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2>
8213 \begin_inset Newline newline
8227 \begin_layout Standard
8229 で指定した\SpecialChar LyX
8231 \begin_inset Flex Code
8234 \begin_layout Plain Layout
8249 \begin_inset Flex Code
8252 \begin_layout Plain Layout
8261 \begin_layout Standard
8262 yapでは,遡及検索はダブルクリックで始動します.
8265 \begin_layout Subsubsection*
8269 \begin_layout Standard
8270 SumatraPDFを遡及検索で使用するためには,
8271 \begin_inset Flex MenuItem
8274 \begin_layout Plain Layout
8275 設定\SpecialChar menuseparator
8276 ファイル処理\SpecialChar menuseparator
8277 ファイル書式\SpecialChar menuseparator
8284 \begin_inset Flex Code
8287 \begin_layout Plain Layout
8288 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8294 \begin_inset Flex Code
8297 \begin_layout Plain Layout
8303 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8306 \begin_layout Standard
8310 \begin_layout Subsubsection*
8314 \begin_layout Standard
8315 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8316 \begin_inset Flex MenuItem
8319 \begin_layout Plain Layout
8320 View\SpecialChar menuseparator
8326 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8327 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8329 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8330 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8331 \begin_inset Flex Code
8334 \begin_layout Plain Layout
8340 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8341 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8342 \begin_inset Flex Code
8345 \begin_layout Plain Layout
8352 \begin_inset Flex Code
8355 \begin_layout Plain Layout
8361 と指定してください.これによって,\SpecialChar LyX
8366 が使用されるようになります.何らかの理由で
8371 \begin_inset Flex Code
8374 \begin_layout Plain Layout
8380 オプションを削除して,\SpecialChar LyX
8382 Serverパイプパスを指定することを忘れないでください.
8385 \begin_layout Standard
8386 yapでは,遡及検索はダブルクリックで始動します.
8389 \begin_layout Subsubsection*
8393 \begin_layout Standard
8394 SumatraPDFを遡及検索で使用するためには,
8395 \begin_inset Flex MenuItem
8398 \begin_layout Plain Layout
8399 設定\SpecialChar menuseparator
8400 ファイル処理\SpecialChar menuseparator
8401 ファイル書式\SpecialChar menuseparator
8408 \begin_inset Flex Code
8411 \begin_layout Plain Layout
8418 \begin_inset Flex Code
8421 \begin_layout Plain Layout
8427 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8428 \begin_inset Flex Code
8431 \begin_layout Plain Layout
8440 \begin_layout LyX-Code
8442 \begin_inset Newline newline
8446 \begin_inset Newline newline
8449 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8452 \begin_layout Standard
8453 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8454 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8455 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8456 \begin_inset Flex Code
8459 \begin_layout Plain Layout
8474 \begin_inset Flex Code
8477 \begin_layout Plain Layout
8483 オプションを削除して,\SpecialChar LyX
8485 Serverパイプパスを指定することを忘れないでください.
8488 \begin_layout Standard
8492 \begin_layout Section
8496 \begin_layout Standard
8497 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8498 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8499 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8501 \begin_inset Flex MenuItem
8504 \begin_layout Plain Layout
8505 移動\SpecialChar menuseparator
8511 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8512 \begin_inset Flex MenuItem
8515 \begin_layout Plain Layout
8521 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8524 \begin_layout Standard
8525 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8526 ソースに関する情報を追加する必要があります.これは,第
8527 \begin_inset CommandInset ref
8529 reference "subsec:遡及検索"
8533 節に述べられている方法で実行することができます.
8536 \begin_layout Standard
8538 \begin_inset Flex MenuItem
8541 \begin_layout Plain Layout
8542 ツール\SpecialChar menuseparator
8543 設定\SpecialChar menuseparator
8544 出力\SpecialChar menuseparator
8550 で自分の使うビューアを利用するように,\SpecialChar LyX
8551 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8552 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8555 \begin_layout Itemize
8556 \begin_inset Flex Code
8559 \begin_layout Plain Layout
8568 \begin_layout Itemize
8569 \begin_inset Flex Code
8572 \begin_layout Plain Layout
8578 :書き出された(一時).texファイル名(パスを除く)
8581 \begin_layout Itemize
8582 \begin_inset Flex Code
8585 \begin_layout Plain Layout
8591 :書き出された(一時).texファイル名(パスを含む)
8594 \begin_layout Itemize
8595 \begin_inset Flex Code
8598 \begin_layout Plain Layout
8604 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8607 \begin_layout Standard
8612 \begin_layout Plain Layout
8613 \begin_inset Flex Noun
8616 \begin_layout Plain Layout
8617 ツール\SpecialChar menuseparator
8618 設定\SpecialChar menuseparator
8619 ファイル処理\SpecialChar menuseparator
8626 \begin_inset Flex Code
8629 \begin_layout Plain Layout
8640 ・qpdfview・Sumatra PDF
8644 \begin_layout Plain Layout
8645 SumatraPDFは,外部プログラムCMCDDE(
8646 \begin_inset CommandInset href
8648 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8653 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8658 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8662 \begin_layout Plain Layout
8663 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8664 \begin_inset CommandInset href
8666 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8680 \begin_layout Plain Layout
8681 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8682 \begin_inset CommandInset href
8684 target "http://wiki.lyx.org/LyX/SyncTeX"
8694 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8695 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8696 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8699 \begin_layout Standard
8700 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8701 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8702 チェックして),その形式に適切な設定を選択します.
8705 \begin_layout Chapter
8709 \begin_layout Section
8713 \begin_layout Standard
8719 \begin_layout Subsection
8723 \begin_layout Standard
8730 Astronomy and Astrophysics
8733 \begin_inset Flex URL
8736 \begin_layout Plain Layout
8738 http://www.edpsciences.fr/aa/
8743 )に投稿する論文を執筆するための\SpecialChar LyX
8744 の使用法を説明します.このパッケージは,FTPサイト
8747 \begin_layout Standard
8749 \begin_inset VSpace medskip
8753 \begin_inset Flex URL
8756 \begin_layout Plain Layout
8758 ftp://ftp.edpsciences.org/pub/aa/readme.html
8764 \begin_inset VSpace medskip
8770 \begin_layout Standard
8775 \begin_layout Standard
8776 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8780 \begin_layout Standard
8781 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8782 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8783 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8784 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8791 Dir/layouts/aapaper.layout
8796 \begin_layout Subsection
8800 \begin_layout Standard
8802 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8805 \begin_layout Itemize
8808 文書\SpecialChar menuseparator
8815 を選択してください(まぁ,これは自明ですね).
8818 \begin_layout Itemize
8823 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8826 \begin_layout Subsection
8830 \begin_layout Standard
8831 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8834 \begin_layout Itemize
8842 \begin_layout Itemize
8850 \begin_layout Itemize
8858 \begin_layout Itemize
8866 \begin_layout Itemize
8871 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8874 \begin_layout Itemize
8879 :[非必須]連絡用の電子メールアドレス.
8882 \begin_layout Itemize
8889 Received: <日付>; Accepted <日付>
8894 \begin_layout Standard
8901 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8902 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8903 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8906 \begin_layout Standard
8907 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8909 挿入\SpecialChar menuseparator
8912 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8922 \begin_layout Standard
8925 編集\SpecialChar menuseparator
8928 の下に,タイトル関連の2つの差込枠があります.
8931 \begin_layout Itemize
8936 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8940 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8943 \begin_layout Itemize
8948 は,至急連絡用に電子メールアドレスを付するものです.
8951 \begin_layout Standard
8952 これらのトピックの他に,このマクロは,\SpecialChar LyX
8953 が対応していない,以下のもう一つの\SpecialChar LaTeX
8957 \begin_layout Itemize
8958 複数の著者名あるいは所属名を区切るための
8965 \begin_layout Standard
8967 中に対応したコマンドを入力し,\SpecialChar LaTeX
8968 コードとしてマークしてください.用例を参照のこと.
8971 \begin_layout Subsection
8975 \begin_layout Standard
8976 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8977 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8980 \begin_layout Subsection
8984 \begin_layout Standard
8985 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8988 \begin_layout Itemize
8994 \begin_layout Itemize
9000 \begin_layout Itemize
9006 \begin_layout Itemize
9012 \begin_layout Itemize
9018 \begin_layout Itemize
9024 \begin_layout Itemize
9030 \begin_layout Itemize
9036 \begin_layout Itemize
9042 \begin_layout Itemize
9048 \begin_layout Itemize
9054 \begin_layout Itemize
9061 \begin_layout Subsection
9066 \begin_layout Standard
9072 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9075 \begin_layout Itemize
9083 \begin_layout Itemize
9091 \begin_layout Itemize
9099 \begin_layout Itemize
9107 \begin_layout Standard
9108 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9110 これを\SpecialChar LaTeX
9111 コマンドとしてマークすることを忘れないで下さい.
9114 \begin_layout Subsection
9118 \begin_layout Standard
9136 をサポートしていますので,ここでは詳しい説明はしません.
9140 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9142 編集\SpecialChar menuseparator
9148 \begin_layout Standard
9149 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9152 \begin_layout Enumerate
9155 挿入\SpecialChar menuseparator
9156 フロート\SpecialChar menuseparator
9159 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9160 \begin_inset Flex MenuItem
9163 \begin_layout Plain Layout
9164 設定\SpecialChar ldots
9185 \begin_layout Enumerate
9189 \begin_layout Enumerate
9194 を押して,カーソルをキャプションの上に移動します.
9197 \begin_layout Enumerate
9201 \begin_layout Enumerate
9204 挿入\SpecialChar menuseparator
9205 整形\SpecialChar menuseparator
9223 \begin_layout Enumerate
9226 挿入\SpecialChar menuseparator
9229 を選択して,\SpecialChar TeX
9233 \begin_layout Enumerate
9246 \begin_layout Enumerate
9247 カーソルをキャプション文の後ろに移動し,
9249 挿入\SpecialChar menuseparator
9252 を選択して,別の\SpecialChar TeX
9253 差込枠を挿入し,その中に閉じ括弧を入力します .
9256 \begin_layout Standard
9260 \begin_layout Subsection
9264 \begin_layout Standard
9265 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9269 オプションを与える必要があります.これは,
9271 文書\SpecialChar menuseparator
9278 クラスオプションフィールドを使って行うことができます.この欄に
9285 \begin_layout Subsection
9289 \begin_layout Standard
9294 ディレクトリには,\SpecialChar LyX
9295 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9296 用に直したものです.これはヒントを得るために使用したり,元の
9298 コードと\SpecialChar LyX
9299 での書き方の比較に使ったりしてください.
9302 \begin_layout Section
9307 \begin_layout Standard
9315 \begin_layout Subsection
9319 \begin_layout Standard
9321 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9322 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9323 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9325 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9326 は,同マクロ第5.0版以降を必要としており,でき
9327 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9328 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9329 とは互換性がありません.AAS\SpecialChar TeX
9331 ,以下のAAS\SpecialChar TeX
9332 ウェブサイトからダウンロードできるでしょう.
9335 \begin_layout Standard
9337 \begin_inset VSpace medskip
9341 \begin_inset Flex URL
9344 \begin_layout Plain Layout
9346 https://aas.org/aastex/aastex-downloads
9352 \begin_inset VSpace medskip
9358 \begin_layout Standard
9359 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9360 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9362 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9363 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9364 いることを確認するのは,あなたの責任です.
9367 \begin_layout Subsection
9371 \begin_layout Standard
9372 論文を書き始めるには,AAS\SpecialChar TeX
9373 ひな型ファイルを土台に始めることを強くお勧めします.
9374 \begin_inset Flex MenuItem
9377 \begin_layout Plain Layout
9378 ファイル\SpecialChar menuseparator
9384 をクリックして,新しいファイル名を入力し,ひな型
9388 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9392 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9393 コマンド・AAS\SpecialChar TeX
9394 環境の多くは,\SpecialChar LyX
9395 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9397 コードを入力して,それを\SpecialChar TeX
9398 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9399 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9400 .AAS\SpecialChar TeX
9401 文書に必要とされる \SpecialChar TeX
9402 コードを最小にするようには努力しました.
9405 \begin_layout Subsection
9409 \begin_layout Standard
9410 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9413 \begin_layout Enumerate
9414 論文を \SpecialChar LaTeX
9417 ファイル\SpecialChar menuseparator
9418 書き出し\SpecialChar menuseparator
9424 \begin_layout Enumerate
9433 \begin_layout Enumerate
9440 コマンドよりも前のコメント行を削除します.
9443 \begin_layout Enumerate
9448 usepackage...{fontenc}
9465 \begin_layout Enumerate
9467 プリアンブル中に意図的に置いたコマンド(
9471 ファイル中,「User specified \SpecialChar LaTeX
9472 commands」というコメントの直後にあります)を除いて,
9484 の間のもの(これらのコマンドを含む)をすべて削除します.
9488 \begin_layout Enumerate
9489 編集後のファイルを \SpecialChar LaTeX
9490 にかけて,正しく処理されることを確認します.
9493 \begin_layout Enumerate
9494 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9497 \begin_layout Enumerate
9501 \begin_layout Subsection
9505 \begin_layout Standard
9511 )に,各AAS\SpecialChar TeX
9512 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9513 て,必要なところだけコメントを加えることにしましょう.
9516 \begin_layout Subsubsection
9520 \begin_layout Standard
9521 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9621 begin{thebibliography}
9629 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9680 \begin_layout Standard
9681 以下のスタイルオプションも正しく動作します.
9702 \begin_inset Flex MenuItem
9705 \begin_layout Plain Layout
9706 文書\SpecialChar menuseparator
9723 \begin_layout Subsubsection
9727 \begin_layout Standard
9728 以下のコマンドは動作しますが,若干の説明が必要です.
9731 \begin_layout Itemize
9732 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9764 \begin_layout Itemize
9765 以下の項目は,\SpecialChar LaTeX
9766 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9787 \begin_layout Itemize
9794 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9798 \begin_layout Itemize
9805 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9808 \begin_layout Itemize
9815 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9819 \begin_layout Itemize
9826 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9829 \begin_layout Itemize
9845 \begin_layout Itemize
9852 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9855 \begin_layout Itemize
9862 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9865 \begin_layout Itemize
9872 (2.14.2)―文章のはじめにカーソルを置いて
9873 \begin_inset Flex MenuItem
9876 \begin_layout Plain Layout
9877 挿入\SpecialChar menuseparator
9883 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9889 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9892 \begin_layout Itemize
9899 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9908 \begin_layout Itemize
9915 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9924 \begin_layout Subsubsection
9925 実装されていないため,\SpecialChar TeX
9929 \begin_layout Standard
9940 setcounter{equation}
9942 (2.12)・学術誌名略語(2.12.4)・
9978 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9991 (2.15.5)・補遺(2.17)の大半
10042 \begin_layout Subsubsection
10046 \begin_layout Standard
10047 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10048 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10049 \begin_inset Flex MenuItem
10052 \begin_layout Plain Layout
10053 挿入\SpecialChar menuseparator
10055 \begin_inset Formula $\text{\textipa{}}$
10058 \SpecialChar menuseparator
10064 を使用して,\SpecialChar LyX
10065 ファイルに読み込むことを推奨します.この実例は,
10072 \begin_layout Subsection
10076 \begin_layout Subsubsection
10078 をAAS\SpecialChar TeX
10082 \begin_layout Standard
10084 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10087 \begin_layout Enumerate
10089 が,AAS\SpecialChar TeX
10090 を検出できることを確認してください.AAS\SpecialChar TeX
10099 でも可)を,\SpecialChar LaTeX
10100 やAAS\SpecialChar TeX
10101 とまったく関係のないディレクトリにコピーして,
10105 を\SpecialChar LaTeX
10109 \begin_layout Enumerate
10119 フォルダにあることを確認してください.
10122 \begin_layout Enumerate
10126 ツール\SpecialChar menuseparator
10129 を再度実行し,\SpecialChar LyX
10133 \begin_layout Enumerate
10134 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10137 文書\SpecialChar menuseparator
10143 \begin_layout Standard
10144 既存のAAS\SpecialChar TeX
10145 文書を処理する際に,AAS\SpecialChar TeX
10146 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10150 \begin_layout Subsubsection
10151 表を処理する際の\SpecialChar LaTeX
10155 \begin_layout Standard
10156 既定では,\SpecialChar LyX
10157 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10158 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10161 編集\SpecialChar menuseparator
10172 に設定してください.私のところではこれで解決しました.
10175 \begin_layout Subsubsection
10179 \begin_layout Standard
10180 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10193 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10197 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10198 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10201 \begin_layout Subsubsection
10205 \begin_layout Standard
10206 AAS\SpecialChar TeX
10213 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10214 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10221 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10226 usepackage{graphics}
10228 コマンドを\SpecialChar LaTeX
10229 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10230 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10231 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10234 \begin_layout Subsubsection
10238 \begin_layout Standard
10239 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10241 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10242 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10245 \begin_layout Subsection
10249 \begin_layout Standard
10250 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10251 \begin_inset space \thinspace{}
10256 \begin_inset space \thinspace{}
10259 %が,\SpecialChar LaTeX
10260 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10264 \begin_layout Section
10265 AMS \SpecialChar LaTeX
10269 \begin_layout Standard
10279 \begin_inset VSpace bigskip
10285 \begin_layout Standard
10286 AMS \SpecialChar LaTeX
10287 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10288 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10290 必要があるだけです).AMSの説明書は,ウェブWeb上の
10291 \begin_inset Flex URL
10294 \begin_layout Plain Layout
10302 \begin_inset Flex URL
10305 \begin_layout Plain Layout
10307 ftp://ftp.ams.org/pub/tex/amslatex/
10312 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10315 \begin_layout Standard
10316 基本となるAMS \SpecialChar LaTeX
10317 レイアウトには,以下の二つがあります.
10320 \begin_layout Itemize
10321 amsart:標準のAMS article書式.
10324 \begin_layout Itemize
10325 amsbook:標準のAMS book(実際はモノグラフ)書式.
10328 \begin_layout Standard
10329 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10330 m」環境は,何一つ含まれていません.これらは,代わりに
10331 \begin_inset Flex Code
10334 \begin_layout Plain Layout
10340 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10341 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10342 \begin_inset Flex Code
10345 \begin_layout Plain Layout
10351 モジュールがあり,これは手動で読み込む必要があります.
10354 \begin_layout Standard
10355 既定では,定理類は,文書を通して連番が振られますが,これは
10356 \begin_inset Flex Code
10359 \begin_layout Plain Layout
10365 モジュールを読み込めば変更することができ,
10366 \begin_inset Flex Code
10369 \begin_layout Plain Layout
10376 \begin_inset Flex Code
10379 \begin_layout Plain Layout
10385 を用いても変更することができます.これらを用いると,出力は
10386 \begin_inset Formula $n.m$
10389 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10390 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10395 \begin_inset Flex Code
10398 \begin_layout Plain Layout
10407 \begin_layout Standard
10408 これらのモジュールは,AMSクラスで使用する
10413 \begin_inset Flex Code
10416 \begin_layout Plain Layout
10422 モジュールや上述の他のモジュールは,他のクラス,たとえば
10423 \begin_inset Flex Code
10426 \begin_layout Plain Layout
10433 \begin_inset Flex Code
10436 \begin_layout Plain Layout
10443 \begin_inset Flex Code
10446 \begin_layout Plain Layout
10452 などで問題なく使用することができます.
10455 \begin_layout Subsection
10459 \begin_layout Standard
10460 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10461 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10462 す.しかし,AMSは,\SpecialChar LyX
10463 で利用可能になっている環境のみを使用することを推奨しています.
10466 \begin_layout Standard
10467 \begin_inset Flex Code
10470 \begin_layout Plain Layout
10477 \begin_inset Flex Code
10480 \begin_layout Plain Layout
10487 \begin_inset space ~
10491 \begin_inset Flex Noun
10494 \begin_layout Plain Layout
10501 \begin_inset Flex Noun
10504 \begin_layout Plain Layout
10511 \begin_inset Flex Noun
10514 \begin_layout Plain Layout
10521 \begin_inset Flex Noun
10524 \begin_layout Plain Layout
10531 \begin_inset Flex Noun
10534 \begin_layout Plain Layout
10541 \begin_inset space ~
10545 \begin_inset space ~
10551 \begin_layout Description
10555 \begin_layout Description
10556 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10559 \begin_layout Description
10563 \begin_layout Description
10567 \begin_layout Description
10568 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10571 \begin_layout Description
10574 Mathematical Reviews
10576 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10580 \begin_layout Description
10584 \begin_layout Description
10588 \begin_layout Description
10592 \begin_layout Standard
10594 \begin_inset Flex Code
10597 \begin_layout Plain Layout
10604 \begin_inset Flex Code
10607 \begin_layout Plain Layout
10613 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10614 \begin_inset Flex Code
10617 \begin_layout Plain Layout
10623 モジュールでは,同環境の星付き版だけが提供されます.
10626 \begin_layout Theorem
10627 これは,通常,得られた主要な結果を叙述するのに使用されます.
10630 \begin_layout Corollary*
10631 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10634 \begin_layout Lemma
10635 他の叙述を証明するために必要とされる,比較的小さな結果です.
10638 \begin_layout Proposition
10639 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10642 \begin_layout Conjecture
10643 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10646 \begin_layout Definition*
10647 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10650 \begin_layout Problem
10651 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10654 \begin_layout Exercise*
10659 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10662 \begin_layout Claim*
10663 より大きな結果の証明を与える途中で,しばしば用いられます.
10667 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10671 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10674 \begin_layout Proof
10675 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10676 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10687 \begin_layout Standard
10689 \begin_inset Flex Code
10692 \begin_layout Plain Layout
10701 \begin_layout Criterion*
10705 \begin_layout Algorithm*
10709 \begin_layout Axiom*
10710 議論されている系内部で真と仮定される性質や命題です.
10713 \begin_layout Condition*
10714 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10717 \begin_layout Note*
10721 \begin_layout Notation*
10725 \begin_layout Summary
10729 \begin_layout Acknowledgement*
10730 謝辞(acknowledgement)です.
10733 \begin_layout Conclusion*
10738 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10741 \begin_layout Standard
10742 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10743 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10747 \begin_layout Section
10753 \begin_layout Standard
10761 \begin_layout Subsection
10765 \begin_layout Standard
10766 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10768 \begin_inset Flex URL
10771 \begin_layout Plain Layout
10773 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10778 にあります)が導入されていることが必要です.
10781 \begin_layout Subsection
10785 \begin_layout Standard
10794 は,定義し直されています.\SpecialChar LyX
10803 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10815 \begin_layout Standard
10852 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10855 \begin_layout Standard
10856 おそらく,これはまだ恐ろしく不完全です.
10859 \begin_layout Subsection
10863 \begin_layout Standard
10872 (Plate)が新しいフロートです.また,
10879 \begin_layout Subsection
10883 \begin_layout Itemize
10886 Journal of Geophysical Research
10895 \begin_layout Standard
10896 ここにあなたの作ったものを加えてください.難しくはありません.
10907 \begin_layout Subsection
10911 \begin_layout Standard
10912 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10915 \begin_layout Enumerate
10922 ツール\SpecialChar menuseparator
10925 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10932 \begin_layout Enumerate
10937 と入力してください(すみません,これはバグです).
10940 \begin_layout Enumerate
10941 Bib\SpecialChar TeX
10950 を使用していることを確認してください.標準スタイルはうまく動作しません.
10953 \begin_layout Section
10957 \begin_layout Standard
10965 \begin_layout Subsection
10969 \begin_layout Standard
10970 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10973 \begin_layout Subsection
10977 \begin_layout Standard
10981 \begin_layout Subsection
10985 \begin_layout Standard
10990 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10993 \begin_layout Subsection
10997 \begin_layout Standard
10998 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11001 \begin_layout Subsection
11005 \begin_layout Standard
11006 以下の環境を使うことができます.右に記してある
11007 \begin_inset Flex Ruby
11010 \begin_layout Plain Layout
11012 \begin_inset Argument post:1
11015 \begin_layout Plain Layout
11026 割当ては,broadway.bindを使った場合のものです.
11029 \begin_layout Itemize
11033 \begin_inset Newline newline
11038 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11041 \begin_layout Itemize
11045 \begin_inset space \hfill{}
11049 \begin_inset Newline newline
11054 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11057 \begin_layout Itemize
11061 \begin_inset space \hfill{}
11065 \begin_inset Newline newline
11070 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11073 \begin_layout Itemize
11077 \begin_inset space \hfill{}
11081 \begin_inset Newline newline
11086 幕の副題です.単に中央揃えの文になります.
11089 \begin_layout Itemize
11093 \begin_inset space \hfill{}
11097 \begin_inset Newline newline
11102 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11105 \begin_layout Itemize
11109 \begin_inset space \hfill{}
11113 \begin_inset Newline newline
11118 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11121 \begin_layout Itemize
11125 \begin_inset space \hfill{}
11129 \begin_inset Newline newline
11134 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11137 \begin_layout Itemize
11141 \begin_inset space \hfill{}
11145 \begin_inset Newline newline
11150 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11157 \begin_layout Itemize
11161 \begin_inset space \hfill{}
11165 \begin_inset Newline newline
11173 \begin_layout Itemize
11177 \begin_inset space \hfill{}
11181 \begin_inset Newline newline
11189 \begin_layout Itemize
11193 \begin_inset space \hfill{}
11199 \begin_layout Itemize
11203 \begin_inset space \hfill{}
11209 \begin_layout Itemize
11213 \begin_inset space \hfill{}
11219 \begin_layout Section
11223 \begin_layout Standard
11228 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11230 .../lyx/share/templates
11232 にあるので,それを土台として使用してください.
11235 \begin_layout Section
11241 \begin_layout Standard
11249 \begin_layout Subsection
11253 \begin_layout Standard
11254 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11259 \begin_inset Flex URL
11262 \begin_layout Plain Layout
11264 http://www.copernicus.org/
11272 \begin_layout Subsection
11276 \begin_layout Standard
11314 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11318 ファイルを読み込む形に変えた方が便利になると思われます.
11321 \begin_layout Section
11325 \begin_layout Standard
11331 を参照してください.必要な情報は全てそこにあります.
11334 \begin_layout Section
11335 Foils別名Foil\SpecialChar TeX
11337 \begin_inset CommandInset label
11346 \begin_layout Standard
11354 \begin_layout Subsection
11358 \begin_layout Standard
11359 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11360 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11362 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11365 \begin_layout Standard
11366 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11369 \begin_layout Standard
11370 \begin_inset VSpace bigskip
11376 \begin_layout Standard
11391 \begin_layout Standard
11392 \begin_inset VSpace bigskip
11398 \begin_layout Standard
11401 transparencies (slides)
11404 \begin_inset CommandInset ref
11406 reference "sec:slitex"
11410 節をご覧ください.お使いのコンピュータに
11429 \begin_layout Standard
11434 クラスは,\SpecialChar LaTeX2e
11435 の一部として含まれている\SpecialChar LaTeX
11440 の第2.1版とともに使われるように設計されています.
11443 \begin_layout Subsection
11447 \begin_layout Standard
11448 いうまでもなく,この文書クラスを使うには,
11450 文書\SpecialChar menuseparator
11451 設定\SpecialChar menuseparator
11466 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11469 \begin_layout Itemize
11482 オプションは変更しないでください.これらは
11489 \begin_layout Itemize
11490 既定のフォント寸法は20ptであり,17
11491 \begin_inset space \thinspace{}
11495 \begin_inset space \thinspace{}
11499 \begin_inset space \thinspace{}
11505 \begin_layout Itemize
11514 ですが,数式ではすべて,通常のローマン体が使用されます.
11517 \begin_layout Itemize
11518 Foil\SpecialChar TeX
11520 \begin_inset space \thinspace{}
11523 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11526 \begin_layout Itemize
11531 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11534 \begin_layout Itemize
11539 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11540 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11541 \begin_inset CommandInset ref
11543 reference "sec:foilfoot"
11547 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11551 付けられず,(ロゴが定義されていれば)ロゴは,
11555 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11559 \begin_layout Labeling
11560 \labelwidthstring MMMMMMM
11567 最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11570 \begin_layout Labeling
11571 \labelwidthstring MMMMMMM
11578 最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11581 \begin_layout Labeling
11582 \labelwidthstring MMMMMMM
11587 ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11590 \begin_layout Labeling
11591 \labelwidthstring MMMMMMM
11600 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11601 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11605 \begin_layout Subsubsection
11609 \begin_layout Standard
11614 ダイアログの任意設定クラスオプションボックスで使うことができます.
11617 \begin_layout Labeling
11618 \labelwidthstring MMMMMMx
11623 これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11624 \begin_inset space \space{}
11627 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11630 \begin_layout Labeling
11631 \labelwidthstring MMMMMMx
11636 タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11639 \begin_layout Labeling
11640 \labelwidthstring MMMMMMx
11645 タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11648 \begin_layout Labeling
11649 \labelwidthstring MMMMMMx
11658 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11662 \begin_layout Labeling
11663 \labelwidthstring MMMMMMx
11668 このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11669 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11677 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11680 \begin_layout Labeling
11681 \labelwidthstring MMMMMMx
11689 \begin_layout Labeling
11690 \labelwidthstring MMMMMMx
11698 \begin_layout Subsection
11702 \begin_layout Standard
11703 他のクラスで標準的にサポートされている環境は,
11707 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11708 が提供している環境と,\SpecialChar LyX
11709 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11712 \begin_layout Standard
11715 \begin_inset Flex Multiple Columns
11718 \begin_layout Itemize
11724 \begin_layout Itemize
11730 \begin_layout Itemize
11736 \begin_layout Itemize
11742 \begin_layout Itemize
11748 \begin_layout Itemize
11755 \begin_layout Itemize
11761 \begin_layout Itemize
11767 \begin_layout Itemize
11773 \begin_layout Itemize
11779 \begin_layout Itemize
11785 \begin_layout Itemize
11791 \begin_layout Itemize
11797 \begin_layout Itemize
11803 \begin_layout Itemize
11809 \begin_layout Itemize
11820 \begin_layout Standard
11821 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11826 は新しいスライドを始める以下のようなコマンドを備えています.
11829 \begin_layout Itemize
11835 \begin_layout Itemize
11838 横置きスライドタイトル(Rotatefoilhead)
11841 \begin_layout Standard
11843 は,以下のような,これらを若干修正した環境も用意しています.
11846 \begin_layout Itemize
11849 スライドタイトル(小)(ShortFoilhead)
11852 \begin_layout Itemize
11855 横置きスライドタイトル(小)(ShortRotatefoilhead)
11858 \begin_layout Standard
11862 \begin_layout Standard
11863 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11868 はそれらを説明するのに便利な環境を幅広く用意しています.
11871 \begin_layout Standard
11874 \begin_inset Flex Multiple Columns
11877 \begin_layout Itemize
11883 \begin_layout Itemize
11889 \begin_layout Itemize
11895 \begin_layout Itemize
11901 \begin_layout Itemize
11907 \begin_layout Itemize
11913 \begin_layout Itemize
11919 \begin_layout Itemize
11925 \begin_layout Itemize
11931 \begin_layout Itemize
11937 \begin_layout Itemize
11948 \begin_layout Standard
11949 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11950 で追加された以下の2つの箇条書き環境があります.
11953 \begin_layout Itemize
11959 \begin_layout Itemize
11965 \begin_layout Standard
11966 Foil\SpecialChar TeX
11967 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11968 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11971 \begin_layout Standard
11972 この目的のためには,以下のコマンドスタイルがあります(
11977 \begin_layout Standard
11978 \begin_inset Flex Multiple Columns
11981 \begin_layout Itemize
11987 \begin_layout Itemize
11993 \begin_layout Itemize
11999 \begin_layout Itemize
12005 \begin_layout Itemize
12012 \begin_layout Plain Layout
12013 \begin_inset space ~
12025 \begin_layout Standard
12026 Foil\SpecialChar TeX
12027 が提供しているコマンドで,\SpecialChar LyX
12028 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12029 \begin_inset CommandInset ref
12031 reference "sec:unsuppfoils"
12038 \begin_layout Subsection
12042 \begin_layout Standard
12043 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12055 \begin_layout Subsubsection
12059 \begin_layout Standard
12080 は独立したページにタイトルを作成します.
12084 環境を使用しなかった場合には,\SpecialChar LaTeX
12085 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12088 \begin_layout Subsubsection
12092 \begin_layout Standard
12093 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12099 スライドタイトル(小)(ShortFoilhead)
12101 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12104 \begin_layout Standard
12107 横向きスライドタイトル(Rotatefoilhead)
12111 ShortRotatefoilhead)
12113 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12117 \begin_layout Standard
12118 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12122 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12126 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12129 \begin_layout Subsubsection
12133 \begin_layout Standard
12134 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
12135 なく,いわゆる分離線を挿入する必要があります.
12146 \begin_layout Subsubsection
12150 \begin_layout Standard
12151 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12152 他の箇条書き環境について詳しく知りたい場合には,
12156 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12157 \begin_inset CommandInset ref
12159 reference "sec:ブリット"
12167 の節も,読まれることが望ましいでしょう.
12170 \begin_layout Standard
12180 \begin_inset Formula $\times$
12183 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12187 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12191 パッケージが導入済であることを要求します.
12194 \begin_layout Subsubsection
12198 \begin_layout Standard
12199 Foil\SpecialChar TeX
12200 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12201 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12204 \begin_layout Subsubsection
12206 \begin_inset CommandInset label
12208 name "sec:foilfoot"
12215 \begin_layout Standard
12224 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by
12229 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12232 \begin_layout Standard
12245 (左上)を使って文字を入れることができます.
12248 \begin_layout Subsection
12255 \begin_inset CommandInset label
12257 name "sec:unsuppfoils"
12264 \begin_layout Standard
12278 \begin_layout Subsubsection
12282 \begin_layout Standard
12305 は,変更したい長さに付けられている名前で置き換え,
12309 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12315 のように文書比あるいはフォント基準の長さで指定する必要があります.
12318 \begin_layout Standard
12325 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12326 \begin_inset space \space{}
12329 inだけスライド本文に近づけるには,プリアンブルに
12335 foilheadskip}{-0.5in}
12340 \begin_layout Standard
12341 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12344 \begin_layout Labeling
12345 \labelwidthstring MMMMMMMMMMM
12355 \begin_layout Labeling
12356 \labelwidthstring MMMMMMMMMMM
12366 \begin_layout Labeling
12367 \labelwidthstring MMMMMMMMMMM
12377 \begin_layout Labeling
12378 \labelwidthstring MMMMMMMMMMM
12385 この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12391 に対する相対的な長さで調整するのが最も良いでしょう.
12394 \begin_layout Standard
12395 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12398 \begin_layout Labeling
12399 \labelwidthstring MMMMMMMMMMM
12409 \begin_layout Labeling
12410 \labelwidthstring MMMMMMMMMMM
12428 \begin_layout Labeling
12429 \labelwidthstring MMMMMMMMMMM
12443 \begin_layout Labeling
12444 \labelwidthstring MMMMMMMMMMM
12462 \begin_layout Labeling
12463 \labelwidthstring MMMMMMMMMMM
12481 \begin_layout Standard
12482 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12488 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12494 を使う必要がないことに注意してください.
12497 \begin_layout Subsubsection
12501 \begin_layout Standard
12518 で定義したロゴを特定のページに入れるかどうかを制御します.
12524 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12530 を置き,次のスライドタイトルの直後に直接
12539 \begin_layout Standard
12548 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12562 パッケージが提供するページレイアウトと
12566 クラスの提供するページレイアウトの間に衝突が発生するためです.
12569 \begin_layout Section
12570 Hollywood(Hollywoodスペック・スクリプト)
12573 \begin_layout Standard
12581 \begin_layout Subsection
12585 \begin_layout Standard
12586 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12587 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12589 \begin_inset space \space{}
12592 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12595 \begin_layout Subsection
12599 \begin_layout Standard
12604 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12608 名を再度書き,その後に(Cont'd)と加えます.
12611 \begin_layout Subsection
12615 \begin_layout Standard
12620 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12621 きに話者名を挿入するのにも使用することができます.
12624 \begin_layout Subsection
12628 \begin_layout Standard
12629 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12632 \begin_layout Subsection
12636 \begin_layout Standard
12637 以下の環境が利用可能です.右に示されている
12638 \begin_inset Flex Ruby
12641 \begin_layout Plain Layout
12643 \begin_inset Argument post:1
12646 \begin_layout Plain Layout
12657 割当てを使用するには,hollywood.bindを使用してください.
12660 \begin_layout Itemize
12664 \begin_inset Newline newline
12669 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12672 \begin_layout Itemize
12674 \begin_inset space \hfill{}
12682 \begin_inset Newline newline
12685 通常,この後には「Sallyは目を覚ますと」のように続きます.
12688 \begin_layout Itemize
12692 \begin_inset space \hfill{}
12696 \begin_inset Newline newline
12701 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12705 \begin_layout Itemize
12709 \begin_inset space \hfill{}
12713 \begin_inset Newline newline
12718 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12721 \begin_layout Itemize
12725 \begin_inset space \hfill{}
12729 \begin_inset Newline newline
12737 \begin_layout Itemize
12741 \begin_inset space \hfill{}
12745 \begin_inset Newline newline
12750 への指示.自動的に括弧()が挿入されます.
12753 \begin_layout Itemize
12757 \begin_inset space \hfill{}
12761 \begin_inset Newline newline
12769 \begin_layout Itemize
12773 \begin_inset space \hfill{}
12777 \begin_inset Newline newline
12782 カメラの動きの指示.例:CUT TO:.
12785 \begin_layout Itemize
12789 \begin_inset space \hfill{}
12795 \begin_layout Itemize
12799 \begin_inset space \hfill{}
12805 \begin_layout Itemize
12809 \begin_inset space \hfill{}
12815 \begin_layout Itemize
12819 \begin_inset space \hfill{}
12825 \begin_layout Subsection
12829 \begin_layout Itemize
12833 \begin_layout Itemize
12837 \begin_layout Itemize
12842 \begin_layout Itemize
12847 \begin_layout Itemize
12848 PAN — camera movement
12851 \begin_layout Itemize
12852 INSERT — cut to close-up of
12855 \begin_layout Section
12859 \begin_layout Standard
12862 Panayotis Papasotiriou
12867 \begin_layout Subsection
12871 \begin_layout Standard
12874 International Journal of Modern Physics C
12876 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12878 International Journal of Modern Physics D
12880 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12888 です.これらのファイルは,著者のための指針とともに,
12889 \begin_inset Flex URL
12892 \begin_layout Plain Layout
12894 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12900 \begin_inset Flex URL
12903 \begin_layout Plain Layout
12905 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12910 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12912 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12913 で書き上げましたが,何らの問題も生じませんでした.
12916 \begin_layout Subsection
12920 \begin_layout Standard
12921 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12923 ファイル\SpecialChar menuseparator
12934 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12938 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12941 \begin_layout Enumerate
12942 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12943 中でこれらを変更することはできません.
12946 \begin_layout Enumerate
12947 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12950 arg "dialog-show document"
12955 \SpecialChar menuseparator
12965 \begin_layout Enumerate
12966 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12969 \begin_layout Enumerate
12970 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12971 ートされていませんので,ご注意ください.
12974 \begin_layout Enumerate
12975 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12976 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12977 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12980 \begin_layout Enumerate
12981 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12982 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12983 されます.引用に通常の本文を使用したい場合には,「See Ref.
12984 \begin_inset space \space{}
12994 \begin_inset Flex Ruby
12997 \begin_layout Plain Layout
13003 \begin_inset Argument post:1
13006 \begin_layout Plain Layout
13028 \begin_layout Enumerate
13029 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13032 \begin_layout Enumerate
13041 であれば,入れることができます.\SpecialChar LyX
13042 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13043 てはなりません.この環境は,\SpecialChar LaTeX
13044 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13045 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13046 付録であることを明示します.「付録領域」は,最初の付録の前に
13050 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13053 \begin_layout Enumerate
13054 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13058 コマンドを使用します.そのため,\SpecialChar LyX
13059 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13060 コードを少し使えば,この問題を回避して,キャプション
13061 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13068 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13073 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13078 ファイルに収め,このファイルを\SpecialChar LyX
13081 挿入\SpecialChar menuseparator
13082 ファイル\SpecialChar menuseparator
13085 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13096 \begin_layout Subsection
13100 \begin_layout Standard
13101 論文を投稿する前には,\SpecialChar LyX
13102 文書を\SpecialChar LaTeX
13105 ファイル\SpecialChar menuseparator
13106 書き出し\SpecialChar menuseparator
13114 \begin_layout Plain Layout
13115 実は,\SpecialChar LaTeX
13116 (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13117 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13126 ファイルに以下の変更を加える必要があります.
13129 \begin_layout Enumerate
13136 コマンドより前にあるコメント行を削除する.
13139 \begin_layout Enumerate
13140 自身で明示的に\SpecialChar LaTeX
13153 コマンドの間にあるものをすべて削除する.
13156 \begin_layout Standard
13161 ファイルを保存し,必要な回数\SpecialChar LaTeX
13162 で処理してください.それによって得られた
13166 文書も確認された方がよろしいでしょう.
13169 \begin_layout Section
13173 \begin_layout Standard
13181 \begin_layout Subsection
13185 \begin_layout Standard
13186 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13187 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13188 \begin_inset Flex URL
13191 \begin_layout Plain Layout
13193 ftp://ftp.iop.org/pub/journals/latex2e
13198 からiopartパッケージとともにダウンロード可能です.
13201 \begin_layout Subsection
13205 \begin_layout Standard
13206 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
13207 新規(ひな型使用)\SpecialChar ldots
13212 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13215 \begin_layout Itemize
13216 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13218 文書\SpecialChar menuseparator
13219 設定\SpecialChar ldots
13220 \SpecialChar menuseparator
13223 で,AMSパッケージが読み込まれていないことを確認してください!
13226 \begin_layout Itemize
13227 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13231 \begin_layout Itemize
13237 \begin_layout Itemize
13243 \begin_layout Itemize
13249 \begin_layout Itemize
13255 \begin_layout Itemize
13261 \begin_layout Itemize
13269 \begin_layout Itemize
13270 Preliminary communication用には
13275 \begin_layout Itemize
13276 Rapid communication用には
13281 \begin_layout Itemize
13288 \begin_layout Itemize
13293 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13296 \begin_layout Itemize
13298 では直接にサポートされていませんが,一般的なタイトル環境として
13302 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13303 コードでこれを指定することができます.
13306 \begin_layout Standard
13307 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13310 \begin_layout Section
13314 \begin_layout Standard
13317 Panayotis Papasotiriou
13322 \begin_layout Subsection
13326 \begin_layout Standard
13327 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13328 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13330 Astrophysics and Space Science
13336 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13337 \begin_inset Flex URL
13340 \begin_layout Plain Layout
13342 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13347 に全覧があります).Kluwerパッケージは,
13348 \begin_inset Flex URL
13351 \begin_layout Plain Layout
13353 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13358 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13361 \begin_layout Standard
13363 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13364 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13366 \begin_inset CommandInset ref
13368 reference "subsec:kluwer_peculiarities"
13372 参照).最近,私は\SpecialChar LyX
13375 Astrophysics and Space Science
13377 に投稿しましたが,何らの問題も発生しませんでした.
13380 \begin_layout Subsection
13384 \begin_layout Standard
13385 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13387 ファイル\SpecialChar menuseparator
13394 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13399 を含む)正しい情報で上書きしてください.
13402 \begin_layout Subsection
13406 \begin_layout Standard
13407 AAS\SpecialChar TeX
13408 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13411 \begin_layout Enumerate
13414 ファイル\SpecialChar menuseparator
13415 書き出し\SpecialChar menuseparator
13418 をクリックして,論文を\SpecialChar LaTeX
13422 \begin_layout Enumerate
13427 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13431 \begin_layout Enumerate
13438 コマンドより前にあるコメント行を削除する.
13441 \begin_layout Enumerate
13442 意図的に\SpecialChar LaTeX
13455 の間にあるものを,これらのコマンドも含め,すべて削除する.
13458 \begin_layout Standard
13467 \begin_layout Enumerate
13472 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13476 \begin_layout Enumerate
13485 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13488 \begin_layout Subsection
13489 Kluwerパッケージの「風変わり」な特徴
13490 \begin_inset CommandInset label
13492 name "subsec:kluwer_peculiarities"
13499 \begin_layout Standard
13500 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13503 \begin_layout Enumerate
13504 複数の論文を1つの\SpecialChar LaTeX
13509 \begin_layout Plain Layout
13510 わざわざこんなことをする必要はないでしょう.
13515 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13527 で終わります.この環境を\SpecialChar LyX
13528 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13540 )は,直接本文中に入力して,\SpecialChar LaTeX
13541 コード(「\SpecialChar TeX
13542 コード」のことです)としてマークする必要があります.
13545 \begin_layout Enumerate
13546 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13547 はなりません.これは\SpecialChar LyX
13548 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13564 \begin_layout Enumerate
13565 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13568 \begin_inset Newline newline
13592 \begin_layout Standard
13597 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13601 \begin_layout Enumerate
13602 ひな型にある\SpecialChar TeX
13606 \begin_layout Enumerate
13607 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13610 \begin_layout Section
13614 \begin_layout Standard
13622 \begin_layout Subsection
13626 \begin_layout Standard
13630 article (koma-script)
13634 report (koma-script)
13652 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13669 に対応しています.これらは,標準文書クラス
13685 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13688 \begin_layout Itemize
13691 article (koma-script)
13695 report (koma-script)
13703 letter (koma-script)
13708 \begin_layout Itemize
13709 見出しや箇条書き(記述)環境のラベル,および
13711 letter (koma-script)
13713 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13717 \begin_layout Plain Layout
13718 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13719 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13723 作の\SpecialChar LaTeX
13733 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13734 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13735 とができます(\SpecialChar LyX
13738 文書\SpecialChar menuseparator
13745 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13752 \begin_layout Itemize
13753 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13761 オプションを使う方法です(\SpecialChar LyX
13764 文書\SpecialChar menuseparator
13771 フィールドで指定します).これらのオプションは
13773 文書\SpecialChar menuseparator
13776 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13784 \begin_layout Itemize
13785 Koma-Scriptファミリーの\SpecialChar LaTeX
13786 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13787 で意味を持つものは,対応する段落環境として実装されています
13791 \begin_layout Standard
13792 Koma-Scriptファミリーの\SpecialChar LaTeX
13793 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13801 \begin_layout Plain Layout
13811 .以下の各節では,\SpecialChar LyX
13815 \begin_layout Subsection
13816 article (koma-script)・report (koma-script)・book (koma-script)
13819 \begin_layout Standard
13822 article (koma-script)
13826 report (koma-script)
13848 によって実装されています.これらは,対応する標準文書クラス
13860 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13865 環境は例外であり,同じ機能を持つ新しい
13873 環境以外にも,新しい段落環境が多く追加されています.これらは,
13875 letter (koma-script)
13877 には含まれていないのでご注意ください.
13880 \begin_layout Itemize
13905 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13915 article (koma-script)
13920 \begin_layout Itemize
13937 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13943 article (koma-script)
13949 \begin_layout Plain Layout
13956 report (koma-script)
13968 と同一なので,\SpecialChar LyX
13977 \begin_layout Itemize
13982 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13985 \begin_layout Itemize
13994 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13995 ねに表の上に置くべきでしょう).また,クラスオプション
13999 を用いれば,キャプションを指定すると,表には
14007 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14010 \begin_layout Itemize
14015 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14017 挿入\SpecialChar menuseparator
14020 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14026 article (koma-script)
14031 \begin_layout Standard
14044 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14048 \begin_layout Plain Layout
14049 つまり,対応する\SpecialChar LaTeX
14056 コマンドよりも前に現れなくてはなりません.
14061 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14073 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14076 \begin_layout Itemize
14093 )の上に,文書の主題用の中央揃えの段落を生成します.
14096 \begin_layout Itemize
14113 )の下に,出版社名用の中央揃えの段落を生成します.
14116 \begin_layout Itemize
14123 report (koma-script)
14129 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14131 article (koma-script)
14145 )の下に献辞用の中央揃えの段落を生成します.
14148 \begin_layout Itemize
14165 )の上に,文書頭書き用の左揃えの段落を生成します.
14168 \begin_layout Itemize
14175 report (koma-script)
14181 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14183 article (koma-script)
14188 \begin_layout Itemize
14195 report (koma-script)
14201 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14203 article (koma-script)
14208 \begin_layout Itemize
14213 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14216 \begin_layout Standard
14219 article (koma-script)
14223 report (koma-script)
14233 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14237 を,個人用レイアウトディレクトリにコピーして編集してください!
14240 \begin_layout Subsection
14241 letter (koma-script)
14244 \begin_layout Description
14254 KOMA-Script-Letter (v.
14255 \begin_inset space ~
14260 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
14262 KOMA-Script-Letter (v.
14263 \begin_inset space ~
14271 \begin_layout Standard
14275 letter (koma-script)
14281 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14285 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14303 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14320 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14323 \begin_layout Standard
14324 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14325 コマンドを\SpecialChar LaTeX
14326 プリアンブルに置くことで制御することができます
14330 \begin_layout Plain Layout
14331 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14335 \begin_layout LyX-Code
14345 \begin_layout LyX-Code
14361 \begin_layout LyX-Code
14371 \begin_layout LyX-Code
14387 \begin_layout LyX-Code
14395 .これらの\SpecialChar LaTeX
14396 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14400 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14403 \begin_layout Standard
14412 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14413 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14421 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14425 環境は,同じ受取人への書簡を新しく書き出すものであり,
14429 環境は,新しい受取人を生成するものです.
14445 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14448 \begin_layout Itemize
14453 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14456 \begin_layout Itemize
14461 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14464 \begin_layout Itemize
14472 \begin_layout Itemize
14480 \begin_layout Itemize
14488 \begin_layout Itemize
14496 \begin_layout Standard
14537 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14541 \begin_layout Plain Layout
14550 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14551 一文字をマークした通常の段落環境として実装しました.さらに,
14559 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14571 \begin_layout Standard
14572 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14577 環境で入力した署名は,標準的な挙動では,同じ書簡に
14581 環境も使用されているときのみ,書簡の出力に現れます.
14585 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14588 \begin_layout Standard
14589 入力環境は,空の段落として使うことができます.これは,たとえば
14597 環境を全く使用しない場合は,標準的な挙動では,
14601 環境の値が署名として使用されますが,空の
14605 環境を作成しておくと,署名の値は無定義となりません.
14608 \begin_layout Standard
14609 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14612 \begin_layout Itemize
14617 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14620 \begin_layout Itemize
14640 \begin_layout Itemize
14645 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14648 \begin_layout Itemize
14653 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14663 \begin_layout Itemize
14671 \begin_layout Itemize
14684 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14692 の値如何に関わらず,場所も日付も表示されません.
14696 環境を使用しない場合には,書簡を出力した日付が使用されます.
14699 \begin_layout Itemize
14704 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14707 \begin_layout Itemize
14712 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14715 \begin_layout Itemize
14720 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14723 \begin_layout Itemize
14728 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14731 \begin_layout Itemize
14743 \begin_layout Standard
14746 Yourref・Yourmail・Myref・顧客・インボイス
14752 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14753 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14757 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14761 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14768 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14776 \begin_layout Itemize
14784 \begin_layout Itemize
14792 \begin_layout Itemize
14800 \begin_layout Itemize
14808 \begin_layout Itemize
14816 \begin_layout Subsection
14817 新しいletterクラス:letter (koma-script v.2)
14820 \begin_layout Standard
14824 \begin_inset VSpace medskip
14830 \begin_layout Standard
14832 Koma-Script第2.8版では,新しいletterクラス
14840 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14841 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14843 ますが,新しい方のクラスを使用することを推奨します.
14846 \begin_layout Standard
14849 letter (koma-script)
14851 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14871 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14889 挿入\SpecialChar menuseparator
14896 を入れることができるようになった点です.
14899 \begin_layout Standard
14900 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14901 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14909 \begin_layout Plain Layout
14914 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14928 文書\SpecialChar menuseparator
14929 設定\SpecialChar menuseparator
14930 文書クラス\SpecialChar menuseparator
14937 を加えることで読み込むことができます.
14942 .用例としては,\SpecialChar LyX
14947 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14954 \begin_layout Subsection
14958 \begin_layout Standard
14959 Koma-Script文書クラスを\SpecialChar LyX
14960 上に表示する上で,\SpecialChar LyX
14964 \begin_layout Itemize
14969 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14973 ラベル型に対する\SpecialChar LyX
14977 \begin_layout Itemize
14986 環境の見出しは,「本当の」\SpecialChar LaTeX
14987 の目次には追加されますが,\SpecialChar LyX
14995 \begin_layout Itemize
15000 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15003 文書\SpecialChar menuseparator
15006 ダイアログでは,対応するラジオボタンは
15014 は,隙間を空けるために,文書に\SpecialChar LaTeX
15015 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15018 \begin_layout Section
15022 \begin_layout Standard
15030 \begin_layout Subsection
15034 \begin_layout Standard
15035 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15036 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15040 \begin_layout Standard
15041 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15042 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15043 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15044 は,これらすべての素晴らしい機能をネイティブでサポ
15045 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15049 \begin_layout Plain Layout
15051 \begin_inset Flex URL
15054 \begin_layout Plain Layout
15056 lyx-devel@lists.lyx.org
15067 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15068 コマンド(\SpecialChar TeX
15073 \begin_layout Plain Layout
15075 \begin_inset CommandInset ref
15077 reference "sec:TeXコードを挿入する"
15086 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15087 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15088 は,Memoirクラスの詳しい取扱説明書
15092 \begin_layout Plain Layout
15094 \begin_inset Flex URL
15097 \begin_layout Plain Layout
15099 CTAN:/macros/latex/memoir/memman.pdf
15109 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15113 \begin_layout Subsection
15117 \begin_layout Standard
15118 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15121 \begin_layout Description
15122 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15125 \begin_layout Description
15126 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15128 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15130 文書\SpecialChar menuseparator
15131 設定\SpecialChar menuseparator
15134 参照).これらを章題ページに使用したい場合には,コマンド
15140 を,本文またはプリアンブルに記述する必要があります(例えば,
15144 chapterstyle{companion}
15149 \begin_layout Description
15150 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15151 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15154 挿入\SpecialChar menuseparator
15157 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
15170 \begin_layout Description
15171 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15172 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15175 \begin_layout Description
15176 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15181 aliaspagestyle{title}{empty}
15186 \begin_layout Description
15193 文書\SpecialChar menuseparator
15194 設定\SpecialChar menuseparator
15195 文書クラス\SpecialChar menuseparator
15196 クラスオプション\SpecialChar menuseparator
15199 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15200 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15203 \begin_layout Description
15204 Oldfontcommands: \SpecialChar LaTeX
15205 旧2.09版で使用されていた旧いフォントコマンド(
15217 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15223 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15224 は停止しなくなります).まだ,多くのパッケージと,
15225 就中多くのBib\SpecialChar TeX
15226 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15229 \begin_layout Subsection
15233 \begin_layout Standard
15235 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15239 \begin_layout Plain Layout
15240 \begin_inset Flex URL
15243 \begin_layout Plain Layout
15245 CTAN:/macros/latex/memoir/memman.pdf
15258 \begin_layout Description
15259 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15260 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15263 \begin_layout Description
15264 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15265 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15268 \begin_layout Description
15269 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15270 出典:非必須)は,短い線で区切られます.著者(出典)は,
15272 挿入\SpecialChar menuseparator
15278 \begin_layout Description
15279 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15280 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15281 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15283 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15287 \begin_layout Description
15288 詩題*: 目次に現れない他は詩題と同じです.
15291 \begin_layout Section
15292 Article (mwart)・book (mwbk)・report (mwrep)
15293 \begin_inset Argument status
15296 \begin_layout Plain Layout
15309 \begin_layout Standard
15317 \begin_layout Standard
15325 report (mwrep)・book
15331 は,それぞれ\SpecialChar LaTeX
15356 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15359 \begin_layout Standard
15363 \begin_layout Itemize
15371 \begin_layout Itemize
15376 \begin_layout Description
15380 \begin_layout Description
15396 \begin_layout Description
15397 myuheadings 分離線付きカスタムヘッダ
15400 \begin_layout Description
15405 \begin_layout Itemize
15410 \begin_layout Description
15411 rmheadings セリフ体見出し — 既定
15414 \begin_layout Description
15415 sfheadings サンセリフ体見出し
15418 \begin_layout Description
15419 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15422 \begin_layout Description
15423 titleauthor タイトルページは,タイトル・著者名の順で配置
15426 \begin_layout Description
15427 withmarginpar ページ上に余白のための場所を確保
15431 \begin_layout Section
15435 \begin_layout Standard
15448 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15451 \begin_layout Section
15452 Rev\SpecialChar TeX
15456 \begin_layout Standard
15462 \begin_layout Standard
15463 \begin_inset VSpace bigskip
15469 \begin_layout Standard
15474 \begin_inset space ~
15479 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15481 \begin_inset Formula $\beta$
15487 \begin_layout Standard
15489 には,Rev\SpecialChar TeX
15494 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15495 2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15496 は\SpecialChar LaTeX2e
15497 を必要とすることから,第3.1版は\SpecialChar LyX
15499 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15500 4.0は,\SpecialChar LaTeX2e
15501 で素直に動作するようにデザインされているので,\SpecialChar LyX
15504 Rev\SpecialChar TeX
15506 \begin_inset space ~
15511 テキストクラスの組で使用するのは,たいへん簡単です.
15514 \begin_layout Standard
15515 この取扱説明書は,Rev\SpecialChar TeX
15520 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15521 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15525 \begin_layout Subsection
15529 \begin_layout Standard
15530 Rev\SpecialChar TeX
15531 4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15532 4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15535 \begin_inset Flex URL
15538 \begin_layout Plain Layout
15540 http://publish.aps.org/revtex4/
15545 から入手することができます.これを\SpecialChar LaTeX
15546 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15547 ィレクトリ)で簡単なRev\SpecialChar TeX
15548 4文書を \SpecialChar LaTeX
15549 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15550 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15555 \begin_layout Standard
15560 を使ってRev\SpecialChar TeX
15561 4文書を読み込むか,またはひな型ディレクトリにある
15564 \begin_inset space ~
15569 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15572 \begin_layout Subsection
15576 \begin_layout Standard
15583 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15585 文書\SpecialChar menuseparator
15586 設定\SpecialChar menuseparator
15593 フィールドに入れます.Rev\SpecialChar TeX
15594 では,少なくとも一つの非必須引数が必要なことに注意してください.
15597 \begin_layout Standard
15604 など他のプリアンブルは,他のクラス同様,
15606 文書\SpecialChar menuseparator
15607 設定\SpecialChar menuseparator
15614 \begin_layout Subsection
15618 \begin_layout Standard
15619 レイアウトは,基本的にRev\SpecialChar TeX
15620 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15626 に対応しています.(少なくともRev\SpecialChar TeX
15635 はまったく同じものなので,両方を使う必要はありません
15639 \begin_layout Plain Layout
15664 \begin_layout Subsection
15668 \begin_layout Standard
15669 Rev\SpecialChar TeX
15670 4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15671 ではさらに気をつけなくてはなりません.
15674 \begin_layout Standard
15675 Rev\SpecialChar TeX
15692 に来なくてはなりません.\SpecialChar LyX
15701 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15705 \begin_layout Standard
15726 )レイアウトの間に置かなければなりません.
15734 の後に置いてしまうと,\SpecialChar LaTeX
15738 \begin_layout Section
15744 \begin_layout Standard
15752 \begin_layout Subsection
15756 \begin_layout Standard
15757 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15758 \begin_inset Flex URL
15761 \begin_layout Plain Layout
15763 http://www.springer.de/author/tex/help-journals.html
15768 に必要なクラスファイル(\SpecialChar LaTeX2e
15769 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15773 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15780 \begin_layout Standard
15781 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15796 \begin_layout Standard
15797 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15805 は,標準\SpecialChar LyX
15806 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15807 を再設定した後(teTeXの場合は,必
15812 を実行します),\SpecialChar LyX
15816 \begin_layout Subsection
15820 \begin_layout Standard
15829 ・\SpecialChar ldots
15837 \begin_layout Standard
15848 サブタイトル・ヘッダ用\SpecialChar LaTeX
15849 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15852 .詳しくは Springerのクラスファイルの説明書を読んでください.
15855 \begin_layout Subsection
15859 \begin_layout Itemize
15871 \begin_layout Itemize
15874 Probability Theory and Related Fields
15880 — Jean-Marc Lasgouttes
15883 \begin_layout Standard
15884 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15887 \begin_layout Subsection
15891 \begin_layout Standard
15900 は Springerの\SpecialChar LaTeX
15901 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15902 Lasgouttesのおかげで \SpecialChar LyX
15903 のレイアウトファイルのメカニズムをよりよく理解することができました.
15906 \begin_layout Subsection
15910 \begin_layout Standard
15915 よりは少なくなっているとは思いますが.
15918 \begin_layout Section
15921 Sli\SpecialChar TeX
15928 \begin_layout Plain Layout
15929 (訳註)この節の内容は,全般的に古くなっています.
15935 \begin_inset CommandInset label
15944 \begin_layout Standard
15952 \begin_layout Subsection
15956 \begin_layout Standard
15957 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15958 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15960 Foil\SpecialChar TeX
15963 スライドクラスの2つがあります.本節は前者について説明を行います.
15966 \begin_layout Standard
15967 誤解のないように,正しく明確に,もう一度言っておきます.
15970 \begin_layout Standard
15971 \begin_inset VSpace bigskip
15977 \begin_layout Standard
15982 \begin_inset Quotes eld
15987 transparencies (slides)
15990 \begin_inset Quotes erd
16000 \begin_layout Standard
16001 \begin_inset VSpace bigskip
16007 \begin_layout Standard
16010 「slides (Foil\SpecialChar TeX
16014 \begin_inset CommandInset ref
16016 reference "sec:foiltex"
16026 slides (Foil\SpecialChar TeX
16037 \begin_layout Plain Layout
16041 Foil\SpecialChar TeX
16044 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16052 \begin_layout Standard
16053 このクラスは,旧SLI\SpecialChar TeX
16054 パッケージを\SpecialChar LaTeX2e
16055 用に改良したものです.\SpecialChar LaTeX2e
16056 頒布版すべてが,このクラス(以下では単に「
16060 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16064 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16069 ならばできることもあります.詳しくは以下をお読みください.
16072 \begin_layout Subsection
16074 \begin_inset CommandInset label
16076 name "sec:slidesetup"
16083 \begin_layout Standard
16084 当然ながら,この文書クラスを使用するには,
16086 文書\SpecialChar menuseparator
16091 transparencies (slides)
16093 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16096 \begin_layout Itemize
16105 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16109 クラスではサポートされていないので,効果がありません.
16112 \begin_layout Itemize
16117 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16121 \begin_layout Description
16122 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16125 \begin_layout Description
16130 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16133 \begin_layout Description
16134 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16138 \begin_layout Itemize
16147 というオプションがあります.これを使用するには,
16159 \begin_layout Standard
16164 にタイムマーカーを加えることができます.詳細は,第
16165 \begin_inset CommandInset ref
16167 reference "sec:スライド注釈"
16175 \begin_layout Standard
16180 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16184 」を使用することもできます(新規ファイルを開く際に
16186 ファイル\SpecialChar menuseparator
16189 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16192 \begin_layout Subsection
16196 \begin_layout Subsubsection
16202 \begin_layout Standard
16207 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16215 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16216 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16219 \begin_layout Standard
16220 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16225 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16228 \begin_layout Itemize
16234 \begin_layout Itemize
16240 \begin_layout Itemize
16246 \begin_layout Itemize
16252 \begin_layout Itemize
16258 \begin_layout Itemize
16264 \begin_layout Itemize
16270 \begin_layout Itemize
16276 \begin_layout Itemize
16282 \begin_layout Itemize
16289 \begin_layout Standard
16290 これ以外の標準的な環境,例えば節見出し用の環境などは
16297 \begin_layout Standard
16301 \begin_layout Itemize
16307 \begin_layout Itemize
16313 \begin_layout Itemize
16319 \begin_layout Itemize
16325 \begin_layout Itemize
16331 \begin_layout Standard
16332 これら5つの環境は,\SpecialChar LyX
16333 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16334 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16335 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16339 \begin_layout Subsubsection
16341 \begin_inset CommandInset label
16350 \begin_layout Standard
16351 5つの新しい環境にはすべて,\SpecialChar LyX
16352 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16353 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16361 』で述べられているような段落環境ではなくなっています.
16364 \begin_layout Standard
16377 は「疑似環境」だとお考えください.これらは節見出しや「
16381 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16389 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16392 \begin_layout Standard
16413 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16433 では,まったく意味がなく,\SpecialChar LyX
16434 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16437 \begin_layout Standard
16446 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16454 \begin_layout Standard
16455 一方,説明文を入れたくない場合には,\SpecialChar LyX
16456 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16457 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16461 \begin_layout Itemize
16489 \begin_layout Itemize
16493 \begin_layout Itemize
16501 \begin_layout Itemize
16525 \begin_layout Standard
16526 将来の\SpecialChar LyX
16527 では,このような癖が解決されることを祈っています\SpecialChar ldots
16532 \begin_layout Plain Layout
16533 (訳註)ここの記述は古くなっています.
16541 \begin_layout Subsection
16555 \begin_layout Subsubsection
16563 \begin_layout Standard
16564 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16569 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16573 \begin_layout Standard
16579 \begin_inset CommandInset ref
16581 reference "sec:スライドの癖"
16585 節参照のこと),\SpecialChar LyX
16586 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16587 環境は,すべて新規スライドに入ります.簡単ですよね.
16590 \begin_layout Standard
16591 Slidesは,おそらく\SpecialChar LyX
16592 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16596 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16597 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16605 \begin_layout Standard
16618 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16626 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16629 \begin_layout Standard
16642 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16650 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16653 \begin_layout Subsubsection
16659 \begin_layout Standard
16664 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16668 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16672 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16673 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16680 \begin_layout Standard
16697 \begin_layout Plain Layout
16698 想像できるように,複数のオーバーレイがあれば,「
16710 」などが親スライドのページ番号に付け加えられます.
16723 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16731 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16740 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16748 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16751 \begin_layout Standard
16752 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16753 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16754 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16765 \begin_layout Standard
16774 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16775 \begin_inset CommandInset ref
16777 reference "sec:スライドの癖"
16789 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16797 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16800 \begin_layout Standard
16805 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16821 は自動的に終了されることに注意してください.したがって,
16832 \begin_layout Standard
16849 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16852 \begin_layout Enumerate
16857 かに関わらず,スライド上に現れるすべてを含んだ
16864 \begin_layout Enumerate
16869 のみに表示するすべての図や段落の前に,
16884 \begin_layout Enumerate
16896 \begin_layout Enumerate
16908 \begin_layout Enumerate
16932 \begin_layout Standard
16940 \begin_layout Standard
16946 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16947 実現するためには,\SpecialChar LaTeX
16952 \begin_layout Plain Layout
16956 \begin_layout Itemize
16961 invisible \SpecialChar ldots
16965 \begin_layout Itemize
16970 visible \SpecialChar ldots
16974 \begin_layout Plain Layout
16976 のような形となり,\SpecialChar TeX
16977 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16989 コマンドの後ろ)に入れます.\SpecialChar TeX
16990 としてマークする方法がわからない場合は,
17002 \begin_layout Subsubsection
17008 \begin_inset CommandInset label
17017 \begin_layout Standard
17030 に関連付けられています.ここでも\SpecialChar LyX
17043 よりも短く(オーバーレイのラベルよりも長いですが),
17047 のラベルと同様,派手な赤紫色です.加えて,印刷した
17063 3」等を付けたページ番号が付けられます.1つの
17079 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17082 \begin_layout Standard
17091 に関して付け加えたいことを書き留めておくことです.特定の
17095 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17105 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17106 コードを使用することに頼らなくてはなりません.
17109 \begin_layout Standard
17110 タイムマーカを使用するには,クラスオプション「
17115 \begin_inset CommandInset ref
17117 reference "sec:slidesetup"
17121 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17125 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17138 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17144 」は,タイムマーカを特定の時間に設定し,「
17150 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17158 にどれだけの時間をかけるのか忘れないでいられます.
17161 \begin_layout Standard
17162 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17174 はすべて普通の紙に印刷したいはずです.しかしながら,
17182 .ユーザーはどうしたら良いのでしょうか.
17185 \begin_layout Standard
17186 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17187 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17203 のみが含まれるようにするものです.同様に,「
17215 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17216 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17225 のコメントを外して,現ファイル名に「*
17229 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17241 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17244 \begin_layout Standard
17257 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17261 \begin_layout Subsection
17269 \begin_layout Standard
17278 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17280 ファイル\SpecialChar menuseparator
17283 メニューを選択してください.すると新規ファイルには,
17311 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17314 \begin_layout LyX-Code
17315 % Uncomment to print out only slides and overlays
17318 \begin_layout LyX-Code
17322 \begin_layout LyX-Code
17328 \begin_inset Newline newline
17334 \begin_layout LyX-Code
17335 % Uncomment to print out only notes
17338 \begin_layout LyX-Code
17342 \begin_layout LyX-Code
17350 \begin_layout Standard
17351 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17354 Sli\SpecialChar TeX
17357 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17358 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17359 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17364 \begin_inset CommandInset ref
17366 reference "sec:foiltex"
17374 」パッケージ(一部の\SpecialChar TeX
17375 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17376 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17380 \begin_layout Chapter
17381 ソフトウェアを追加する必要がある \SpecialChar LyX
17385 \begin_layout Section
17390 \begin_layout Standard
17398 \begin_layout Subsection
17402 \begin_layout Standard
17411 \begin_layout Plain Layout
17413 頒布版としてMiK\SpecialChar TeX
17437 \begin_inset Newline newline
17441 \begin_inset CommandInset href
17443 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17451 \begin_layout Standard
17454 Chk\SpecialChar TeX
17457 パッケージは,\SpecialChar LaTeX
17458 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17459 \begin_inset Flex Noun
17462 \begin_layout Plain Layout
17469 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17470 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17477 \begin_layout Standard
17478 さて,\SpecialChar LyX
17479 はつねに正しい\SpecialChar LaTeX
17480 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17481 で何をするというのでしょうか.答えは簡単です.
17489 をチェックするだけでなく,打ち間違いによる
17495 Chk\SpecialChar TeX
17504 Chk\SpecialChar TeX
17507 は,以下のような誤りを検出することができます.
17510 \begin_layout Itemize
17512 \begin_inset Newline newline
17515 ...ではなく\SpecialChar ldots
17519 \begin_layout Itemize
17521 \begin_inset Newline newline
17524 ( wrong spacing ):誤った空白
17527 \begin_layout Itemize
17528 よく使われる省略形の後ろは通常スペースにする:
17529 \begin_inset Newline newline
17533 \begin_inset space \thinspace{}
17537 \begin_inset space \space{}
17540 is too wide spacing.:広すぎる空白
17543 \begin_layout Itemize
17544 直前の文章が大文字で終わっているときに,文末スペースに直す:
17545 \begin_inset Newline newline
17549 And this is wrong spacing.:誤った空白
17552 \begin_layout Itemize
17554 \begin_inset Newline newline
17557 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません.
17558 \begin_inset CommandInset label
17568 \begin_layout Plain Layout
17569 この脚注は,正しくないページに行ってしまう恐れがあります.
17577 \begin_layout Itemize
17578 参照の前にハードスペースではなくスペース:
17579 \begin_inset Newline newline
17582 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17583 \begin_inset CommandInset ref
17585 reference "sec:chktex"
17592 \begin_layout Itemize
17594 \begin_inset Formula $\times$
17598 \begin_inset Newline newline
17602 \begin_inset Formula $2\times2$
17608 \begin_layout Standard
17609 などなど\SpecialChar ldots
17612 Chk\SpecialChar TeX
17615 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17618 \begin_layout Subsection
17622 \begin_layout Standard
17623 このプログラムを導入したならば,使うのは
17625 ツール\SpecialChar menuseparator
17629 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17630 は使用中の文書の\SpecialChar LaTeX
17633 Chk\SpecialChar TeX
17636 を起動し,当該ファイルを検査しますが,
17638 Chk\SpecialChar TeX
17641 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17642 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17644 移動\SpecialChar menuseparator
17652 \begin_inset Flex Ruby
17655 \begin_layout Plain Layout
17657 \begin_inset Argument post:1
17660 \begin_layout Plain Layout
17672 \begin_inset Flex Ruby
17675 \begin_layout Plain Layout
17695 \begin_inset Argument post:1
17698 \begin_layout Plain Layout
17713 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17729 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17731 Chk\SpecialChar TeX
17734 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17738 \begin_layout Standard
17739 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17740 警告のほとんどは実際には警告に値しません.
17743 \begin_layout Subsection
17747 \begin_layout Standard
17750 Chk\SpecialChar TeX
17753 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17755 Chk\SpecialChar TeX
17758 を無効にするか,あなたにもう少し合うように
17760 Chk\SpecialChar TeX
17766 \begin_layout Standard
17769 Chk\SpecialChar TeX
17772 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17775 Chk\SpecialChar TeX
17778 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17781 Chk\SpecialChar TeX
17788 \begin_layout Plain Layout
17799 文書\SpecialChar menuseparator
17808 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17809 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17810 ためには,以下の2つの方法があります.
17813 \begin_layout Itemize
17816 \begin_inset Flex MenuItem
17819 \begin_layout Plain Layout
17822 ツール\SpecialChar menuseparator
17823 設定\SpecialChar menuseparator
17824 出力\SpecialChar menuseparator
17826 \SpecialChar menuseparator
17827 Check\SpecialChar TeX
17837 Chk\SpecialChar TeX
17840 起動コマンドラインを調整するか,グローバルな
17842 Chk\SpecialChar TeX
17846 \begin_inset Flex Code
17849 \begin_layout Plain Layout
17855 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17858 \begin_layout Itemize
17861 ファイル\SpecialChar menuseparator
17862 書き出し\SpecialChar menuseparator
17866 を使って文書を\SpecialChar LaTeX
17867 ファイルに変換し,そのファイルに対して
17871 を手動で実行します.このようにすると,\SpecialChar LyX
17872 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17875 \begin_layout Standard
17880 で有効化・無効化できる警告メッセージです.警告を無効にするには
17888 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17890 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17895 \begin_layout Standard
17901 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17904 \begin_layout Enumerate
17908 Command terminated with space.
17911 \begin_layout Enumerate
17914 Non-breaking space (
17915 \begin_inset Quotes eld
17923 \begin_inset Quotes erd
17926 ) should have been used.
17929 \begin_layout Enumerate
17933 You should enclose the previous parenthesis with
17934 \begin_inset Quotes eld
17942 \begin_inset Quotes erd
17948 \begin_layout Enumerate
17951 Italic correction (
17952 \begin_inset Quotes eld
17962 \begin_inset Quotes erd
17965 ) found in non-italic buffer.
17968 \begin_layout Enumerate
17971 Italic correction (
17972 \begin_inset Quotes eld
17982 \begin_inset Quotes erd
17985 ) found more than once.
17988 \begin_layout Enumerate
17992 No italic correction (
17993 \begin_inset Quotes eld
18003 \begin_inset Quotes erd
18009 \begin_layout Enumerate
18013 \begin_inset Quotes eld
18021 \begin_inset Quotes erd
18025 \begin_inset Quotes eld
18033 \begin_inset Quotes erd
18039 \begin_layout Enumerate
18042 Wrong length of dash may have been used.
18045 \begin_layout Enumerate
18049 \begin_inset Quotes eld
18057 \begin_inset Quotes erd
18061 \begin_inset Quotes eld
18069 \begin_inset Quotes erd
18075 \begin_layout Enumerate
18079 \begin_inset Quotes eld
18087 \begin_inset Quotes erd
18093 \begin_layout Enumerate
18097 \begin_inset Quotes eld
18105 \begin_inset Quotes erd
18108 to achieve an ellipsis.
18111 \begin_layout Enumerate
18114 Inter-word spacing (
18115 \begin_inset Quotes eld
18125 \begin_inset Quotes eld
18128 ) should perhaps be used.
18131 \begin_layout Enumerate
18134 Inter-sentence spacing (
18135 \begin_inset Quotes eld
18145 \begin_inset Quotes erd
18148 ) should perhaps be used.
18151 \begin_layout Enumerate
18154 Could not find argument for command.
18157 \begin_layout Enumerate
18161 \begin_inset Quotes eld
18169 \begin_inset Quotes erd
18175 \begin_layout Enumerate
18178 Math mode still on at end of \SpecialChar LaTeX
18182 \begin_layout Enumerate
18186 \begin_inset Quotes eld
18194 \begin_inset Quotes erd
18197 doesn't match the number of
18198 \begin_inset Quotes eld
18206 \begin_inset Quotes erd
18212 \begin_layout Enumerate
18215 You should use either
18218 \begin_inset Quotes eld
18226 \begin_inset Quotes erd
18231 as an alternative to
18232 \begin_inset Quotes eld
18240 \begin_inset Quotes erd
18246 \begin_layout Enumerate
18253 " (ASCII 39) instead of "" (ASCII 180).
18256 \begin_layout Enumerate
18259 User-specified pattern found.
18262 \begin_layout Enumerate
18265 This command might not be intended.
18268 \begin_layout Enumerate
18275 \begin_layout Enumerate
18293 \begin_layout Enumerate
18296 Delete this space to maintain correct page references.
18299 \begin_layout Enumerate
18303 You might wish to put this between a pair of
18304 \begin_inset Quotes eld
18312 \begin_inset Quotes erd
18318 \begin_layout Enumerate
18321 You ought to remove spaces in front of punctuation.
18324 \begin_layout Enumerate
18327 Could not execute \SpecialChar LaTeX
18331 \begin_layout Enumerate
18340 in front of small punctuation.
18343 \begin_layout Enumerate
18351 may look prettier here.
18354 \begin_layout Enumerate
18358 Multiple spaces detected in output.
18361 \begin_layout Enumerate
18364 This text may be ignored.
18367 \begin_layout Enumerate
18373 \begin_inset Quotes eld
18378 to begin quotation, not
18385 \begin_layout Enumerate
18392 to end quotation, not
18395 \begin_inset Quotes eld
18403 \begin_layout Enumerate
18409 \begin_layout Enumerate
18412 You should perhaps use
18413 \begin_inset Quotes eld
18421 \begin_inset Quotes erd
18427 \begin_layout Enumerate
18430 You should put a space in front of/after parenthesis.
18433 \begin_layout Enumerate
18436 You should avoid spaces in front of/after parenthesis.
18439 \begin_layout Enumerate
18443 You should not use punctuation in front of/after quotes.
18446 \begin_layout Enumerate
18449 Double space found.
18452 \begin_layout Enumerate
18455 You should put punctuation outside inner/inside display math mode.
18458 \begin_layout Enumerate
18461 You ought to not use primitive \SpecialChar TeX
18462 in \SpecialChar LaTeX
18466 \begin_layout Enumerate
18469 You should remove spaces in front of
18470 \begin_inset Quotes eld
18478 \begin_inset Quotes erd
18484 \begin_layout Enumerate
18487 \begin_inset Quotes eld
18495 \begin_inset Quotes erd
18498 is normally not followed by
18499 \begin_inset Quotes eld
18507 \begin_inset Quotes erd
18513 \begin_layout Standard
18515 の将来の版では,このツール(およびその縮小版
18519 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18520 書に使用してみていただければ,きっと驚かれることでしょう.
18523 \begin_layout Section
18528 \begin_layout Standard
18531 Lars Bullik Bjønnes
18540 \begin_layout Subsection
18544 \begin_layout Standard
18546 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18550 \begin_layout Standard
18551 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18556 \begin_layout Plain Layout
18557 \begin_inset CommandInset href
18559 target "http://svnbook.red-bean.com/"
18569 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18573 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18577 で終わるファイルです)の概念に注意を払ってください.
18580 \begin_layout Standard
18582 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18585 RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18586 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18588 表示\SpecialChar menuseparator
18589 ツールバー\SpecialChar menuseparator
18595 \begin_layout Standard
18596 自製の外部コマンドを導入したい場合には,
18602 \begin_inset Flex Code
18605 \begin_layout Plain Layout
18614 \begin_layout Standard
18615 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18617 文書\SpecialChar menuseparator
18620 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18621 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18624 \begin_layout Subsection
18629 \begin_layout Standard
18630 以下の節では\SpecialChar LyX
18631 でサポートされているRCSコマンドを説明します.それらのコマンドは
18633 ファイル\SpecialChar menuseparator
18636 のサブメニューにあります.\SpecialChar LyX
18637 は,RCS 5.7/5.8に対して試験されています.
18640 \begin_layout Subsubsection
18646 \begin_layout Standard
18647 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18654 \begin_layout Standard
18655 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18656 書は読み込み専用モードになるので,変更を加えるためには
18660 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18663 \begin_layout Standard
18667 \begin_layout LyX-Code
18670 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18673 \begin_layout Standard
18681 \begin_layout Subsubsection
18687 \begin_layout Standard
18688 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18689 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18692 \begin_layout Itemize
18695 ci -q -u -m"<説明文>" <ファイル名>
18698 \begin_layout Subsubsection
18704 \begin_layout Standard
18705 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18706 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18709 \begin_layout Itemize
18715 \begin_layout Subsubsection
18721 \begin_layout Standard
18722 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18725 \begin_layout Itemize
18728 co -f -u<バージョン> <ファイル名>
18731 \begin_layout Subsubsection
18737 \begin_layout Standard
18738 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18739 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18740 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18742 ファイル\SpecialChar menuseparator
18743 名前をつけて保存\SpecialChar ldots
18746 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18749 \begin_layout Labeling
18750 \labelwidthstring 00.00.0000
18752 \begin_inset space ~
18756 \begin_inset Newline newline
18760 \begin_inset Flex Code
18763 \begin_layout Plain Layout
18770 \begin_inset Flex Code
18773 \begin_layout Plain Layout
18780 \begin_inset Newline newline
18784 \begin_inset Flex Code
18787 \begin_layout Plain Layout
18788 ci -q -u -i "<新ファイル名>"
18796 \begin_layout Subsubsection
18802 \begin_layout Standard
18803 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18804 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18808 \begin_layout Itemize
18811 rcs -o<バージョン> <ファイル名>
18814 \begin_layout Subsubsection
18820 \begin_layout Standard
18821 RCS文書の完全な履歴を表示します.ブラウザ中に,
18832 \begin_layout Subsubsection
18836 \begin_layout Standard
18838 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18839 \begin_inset CommandInset ref
18841 reference "subsec:VCS改訂情報"
18848 \begin_layout Subsection
18853 \begin_layout Standard
18855 は,現在CVSを一部サポートしています.そのコマンドは,
18857 ファイル\SpecialChar menuseparator
18860 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18863 \begin_layout Subsubsection
18867 \begin_layout Standard
18868 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18869 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18872 \begin_layout Standard
18873 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18874 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18875 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18876 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18877 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18878 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18879 で予備付きチェックアウトを利用したい場合には,
18880 \begin_inset Flex Code
18883 \begin_layout Plain Layout
18890 \begin_inset Flex Code
18893 \begin_layout Plain Layout
18899 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18900 コピーを書き込み可能にしているとは限りません.
18903 \begin_layout Standard
18905 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18906 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18907 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18909 \begin_inset Flex MenuItem
18912 \begin_layout Plain Layout
18918 メニューを使用しなくてはなりません.その後,
18919 \begin_inset Flex MenuItem
18922 \begin_layout Plain Layout
18928 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18931 \begin_layout Standard
18933 \begin_inset Flex URL
18936 \begin_layout Plain Layout
18938 http://www.nongnu.org/cvs
18944 \begin_inset Flex URL
18947 \begin_layout Plain Layout
18949 http://ximbiot.com/cvs
18957 \begin_layout Standard
18958 以下に言及するサブコマンドとスイッチを理解するには,
18965 \begin_layout Subsubsection
18969 \begin_layout Standard
18970 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18977 \begin_layout Standard
18978 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18985 \begin_inset Flex Code
18988 \begin_layout Plain Layout
18994 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18995 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18999 \begin_layout Standard
19000 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19003 \begin_layout Standard
19006 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19011 \begin_layout Standard
19012 上記および他のすべてのCVSコマンドにおける
19016 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19019 \begin_layout Subsubsection
19023 \begin_layout Standard
19024 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19025 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19026 \begin_inset Flex MenuItem
19029 \begin_layout Plain Layout
19038 \begin_layout Labeling
19039 \labelwidthstring 00.00.0000
19041 \begin_inset space ~
19045 \begin_inset Newline newline
19049 \begin_inset Flex Code
19052 \begin_layout Plain Layout
19053 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19059 \begin_inset Newline newline
19063 \begin_inset Flex Code
19066 \begin_layout Plain Layout
19067 cvs -q unedit "<ファイル名>"
19075 \begin_layout Subsubsection
19079 \begin_layout Standard
19080 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19083 \begin_layout Standard
19086 cvs -q update "<ファイル名>"
19089 \begin_layout Standard
19090 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19093 \begin_layout Standard
19096 cvs -q edit "<ファイル名>"
19099 \begin_layout Subsubsection
19103 \begin_layout Standard
19104 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19108 \begin_layout Standard
19111 cvs -q update "<ファイル名>"
19114 \begin_layout Standard
19115 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19118 \begin_layout Standard
19121 cvs -q unedit "<ファイル名>"
19124 \begin_layout Subsubsection
19130 \begin_layout Standard
19131 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19132 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19133 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19135 ファイル\SpecialChar menuseparator
19136 名前をつけて保存\SpecialChar ldots
19139 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19142 \begin_layout Labeling
19143 \labelwidthstring 00.00.0000
19145 \begin_inset space ~
19149 \begin_inset Newline newline
19153 \begin_inset Flex Code
19156 \begin_layout Plain Layout
19163 \begin_inset Flex Code
19166 \begin_layout Plain Layout
19173 \begin_inset Newline newline
19177 \begin_inset Flex Code
19180 \begin_layout Plain Layout
19181 cvs -q add "<新ファイル名>"
19189 \begin_layout Subsubsection
19193 \begin_layout Standard
19194 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19195 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19196 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19199 ファイル\SpecialChar menuseparator
19200 名前をつけて保存\SpecialChar ldots
19203 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19206 \begin_layout Labeling
19207 \labelwidthstring 00.00.0000
19209 \begin_inset space ~
19213 \begin_inset Newline newline
19217 \begin_inset Flex Code
19220 \begin_layout Plain Layout
19227 \begin_inset Flex Code
19230 \begin_layout Plain Layout
19237 \begin_inset space ~
19241 \begin_inset Newline newline
19245 \begin_inset Flex Code
19248 \begin_layout Plain Layout
19249 cvs -q add "<新ファイル名>"
19255 \begin_inset space ~
19259 \begin_inset Newline newline
19263 \begin_inset Flex Code
19266 \begin_layout Plain Layout
19267 cvs -q remove "<ファイル名>"
19275 \begin_layout Subsubsection
19276 ローカルディレクトリチェックアウトのレポジトリからの更新
19279 \begin_layout Standard
19281 \begin_inset Flex Code
19284 \begin_layout Plain Layout
19290 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19291 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19292 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19293 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19297 \begin_layout Standard
19299 \begin_inset Flex Code
19302 \begin_layout Plain Layout
19308 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19309 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19310 \begin_inset Flex Code
19313 \begin_layout Plain Layout
19320 \begin_inset Flex Code
19323 \begin_layout Plain Layout
19330 \begin_inset Flex Code
19333 \begin_layout Plain Layout
19339 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19340 \begin_inset Flex Code
19343 \begin_layout Plain Layout
19349 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19352 \begin_layout Labeling
19353 \labelwidthstring 00.00.0000
19355 \begin_inset space ~
19359 \begin_inset Newline newline
19363 \begin_inset Flex Code
19366 \begin_layout Plain Layout
19367 cd $path; cvs diff "."
19373 \begin_inset Newline newline
19377 \begin_inset Flex Code
19380 \begin_layout Plain Layout
19381 cd $path; cvs -q update "."
19389 \begin_layout Standard
19391 \begin_inset Flex Code
19394 \begin_layout Plain Layout
19403 \begin_layout Subsubsection
19407 \begin_layout Standard
19408 これは,CVS文書の全履歴を表示します.
19409 \begin_inset Flex Code
19412 \begin_layout Plain Layout
19414 \begin_inset Quotes eld
19418 \begin_inset Quotes erd
19429 \begin_layout Subsubsection
19433 \begin_layout Standard
19435 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19439 によって抽出されます.詳細については,第
19440 \begin_inset CommandInset ref
19442 reference "subsec:VCS改訂情報"
19449 \begin_layout Subsection
19454 \begin_layout Standard
19456 は,現在SVNを一部サポートしています.そのコマンドは,
19457 \begin_inset Flex MenuItem
19460 \begin_layout Plain Layout
19461 ファイル\SpecialChar menuseparator
19467 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19469 1.5・1.6・1.7・1.8に対して試験されています
19473 \begin_layout Plain Layout
19474 ほとんどのコマンドは,1.4でも動作します.
19475 \begin_inset CommandInset ref
19477 reference "subsec:レポジトリからSVN同期"
19484 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19492 \begin_layout Subsubsection
19496 \begin_layout Standard
19497 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19504 \begin_layout Standard
19505 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19510 \begin_inset Flex Code
19513 \begin_layout Plain Layout
19519 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19522 \begin_layout Standard
19523 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19526 \begin_layout Standard
19528 \begin_inset Flex Code
19531 \begin_layout Plain Layout
19533 \begin_inset Quotes qld
19537 \begin_inset Quotes qld
19548 \begin_layout Standard
19550 \begin_inset Flex Code
19553 \begin_layout Plain Layout
19562 \begin_layout Subsubsection
19566 \begin_layout Standard
19567 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19570 \begin_layout Standard
19575 \begin_layout Plain Layout
19576 ロックが有効になっていない場合です.第
19577 \begin_inset CommandInset ref
19579 reference "subsec:SVNファイルロック"
19589 \begin_inset Flex Code
19592 \begin_layout Plain Layout
19593 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19601 \begin_layout Subsubsection
19605 \begin_layout Standard
19606 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19610 \begin_layout Standard
19615 \begin_layout Plain Layout
19622 \begin_inset Flex Code
19625 \begin_layout Plain Layout
19626 svn update –non-interactive
19627 \begin_inset Quotes qld
19631 \begin_inset Quotes qld
19642 \begin_layout Subsubsection
19646 \begin_layout Standard
19647 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19650 \begin_layout Standard
19652 \begin_inset Flex Code
19655 \begin_layout Plain Layout
19657 \begin_inset Quotes qld
19661 \begin_inset Quotes qld
19672 \begin_layout Subsubsection
19678 \begin_layout Standard
19679 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19680 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19683 ファイル\SpecialChar menuseparator
19684 名前をつけて保存\SpecialChar ldots
19687 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19690 \begin_layout Labeling
19691 \labelwidthstring 00.00.0000
19693 \begin_inset space ~
19697 \begin_inset Newline newline
19701 \begin_inset Flex Code
19704 \begin_layout Plain Layout
19705 svn copy -q "<ファイル名>" "<新ファイル名>"
19711 \begin_inset space ~
19715 \begin_inset Newline newline
19719 \begin_inset Flex Code
19722 \begin_layout Plain Layout
19731 \begin_layout Subsubsection
19735 \begin_layout Standard
19736 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19737 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19740 ファイル\SpecialChar menuseparator
19741 名前をつけて保存\SpecialChar ldots
19744 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19747 \begin_layout Labeling
19748 \labelwidthstring 00.00.0000
19750 \begin_inset space ~
19754 \begin_inset Newline newline
19758 \begin_inset Flex Code
19761 \begin_layout Plain Layout
19762 svn move -q add "<ファイル名>" "<新ファイル名>"
19768 \begin_inset Newline newline
19772 \begin_inset Flex Code
19775 \begin_layout Plain Layout
19784 \begin_layout Subsubsection
19785 \begin_inset CommandInset label
19787 name "subsec:レポジトリからSVN同期"
19791 レポジトリを使ったローカルディレクトリの同期
19795 \begin_layout Plain Layout
19797 \begin_inset Formula $\geqq1.5$
19800 でのみ動作することに注意してください.
19808 \begin_layout Standard
19809 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19810 \begin_inset Flex Code
19813 \begin_layout Plain Layout
19819 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19820 は,文書のおいてあるツリー全体の更新をサポートします
19824 \begin_layout Plain Layout
19825 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19830 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19834 \begin_layout Standard
19835 \begin_inset Flex Code
19838 \begin_layout Plain Layout
19844 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19845 場合には,更新が開始される前にユーザに警告が与えられます.
19848 \begin_layout Labeling
19849 \labelwidthstring 00.00.0000
19851 \begin_inset space ~
19855 \begin_inset Newline newline
19859 \begin_inset Flex Code
19862 \begin_layout Plain Layout
19863 svn diff $path(変更が発見された場合には通知します)
19864 \begin_inset Newline newline
19867 svn update –accept mine-full $path
19875 \begin_layout Standard
19877 \begin_inset Flex Code
19880 \begin_layout Plain Layout
19889 \begin_layout Subsubsection
19893 \begin_layout Standard
19894 これは,SVN文書の全履歴を表示します.
19895 \begin_inset Flex Code
19898 \begin_layout Plain Layout
19900 \begin_inset Quotes qld
19904 \begin_inset Quotes qld
19915 \begin_layout Subsubsection
19917 \begin_inset CommandInset label
19919 name "subsec:SVNファイルロック"
19926 \begin_layout Standard
19927 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19928 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19929 するための,何らかのロック機構を導入することが考えられます.
19932 \begin_layout Standard
19933 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19934 \begin_inset Flex Code
19937 \begin_layout Plain Layout
19943 svnファイル特性に依拠した書き込み権限の自動設定(第
19944 \begin_inset CommandInset ref
19946 reference "subsec:自動ロック特性"
19954 \begin_layout Plain Layout
19955 \begin_inset Flex URL
19958 \begin_layout Plain Layout
19960 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19970 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19971 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19972 り替わります.これは特に,\SpecialChar LyX
19973 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19976 \begin_layout Itemize
19977 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19981 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19984 \begin_layout Itemize
19985 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19989 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19993 \begin_layout Plain Layout
19994 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19999 ,書き込みロックの解放のみが行われます.
20002 \begin_layout Standard
20006 \begin_layout Labeling
20007 \labelwidthstring 00.00.0000
20009 \begin_inset Flex Code
20012 \begin_layout Plain Layout
20014 \begin_inset Quotes erd
20018 \begin_inset Quotes erd
20022 \begin_inset Quotes eld
20026 \begin_inset Quotes erd
20035 \begin_inset Newline newline
20039 \begin_inset Flex Code
20042 \begin_layout Plain Layout
20044 \begin_inset Quotes eld
20048 \begin_inset Quotes erd
20059 \begin_layout Labeling
20060 \labelwidthstring 00.00.0000
20062 \begin_inset Flex Code
20065 \begin_layout Plain Layout
20067 \begin_inset Quotes eld
20071 \begin_inset Quotes erd
20080 \begin_inset Newline newline
20084 \begin_inset Flex Code
20087 \begin_layout Plain Layout
20089 \begin_inset Quotes eld
20093 \begin_inset Quotes erd
20104 \begin_layout Subsubsection
20106 \begin_inset CommandInset label
20108 name "subsec:自動ロック特性"
20115 \begin_layout Standard
20117 \begin_inset Flex Code
20120 \begin_layout Plain Layout
20126 ファイルに対する書き込み権限の自動設定は,
20127 \begin_inset Flex MenuItem
20130 \begin_layout Plain Layout
20131 ファイル\SpecialChar menuseparator
20132 バージョン管理\SpecialChar menuseparator
20138 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20141 \begin_layout Standard
20145 \begin_layout Labeling
20146 \labelwidthstring 00.00.0000
20148 \begin_inset Flex Code
20151 \begin_layout Plain Layout
20152 svn propset svn:needs-lock ON
20153 \begin_inset Quotes eld
20157 \begin_inset Quotes erd
20168 \begin_layout Labeling
20169 \labelwidthstring 00.00.0000
20171 \begin_inset Flex Code
20174 \begin_layout Plain Layout
20175 svn propdel svn:needs-lock
20176 \begin_inset Quotes eld
20180 \begin_inset Quotes erd
20191 \begin_layout Subsubsection
20192 \begin_inset CommandInset label
20194 name "subsec:VCS改訂情報"
20201 \begin_layout Standard
20202 文書中で改訂情報を有効化するにはいくつかの方法があります.
20205 \begin_layout Itemize
20211 \begin_layout Itemize
20213 \begin_inset Flex Code
20216 \begin_layout Plain Layout
20223 \begin_inset Flex Code
20226 \begin_layout Plain Layout
20232 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
20235 \begin_layout Standard
20237 \begin_inset Tabular
20238 <lyxtabular version="3" rows="6" columns="2">
20239 <features tabularvalignment="middle">
20240 <column alignment="center" valignment="top">
20241 <column alignment="center" valignment="top">
20243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20246 \begin_layout Plain Layout
20252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20255 \begin_layout Plain Layout
20263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20266 \begin_layout Plain Layout
20272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20275 \begin_layout Plain Layout
20283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20286 \begin_layout Plain Layout
20292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20295 \begin_layout Plain Layout
20303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20306 \begin_layout Plain Layout
20312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20315 \begin_layout Plain Layout
20323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20326 \begin_layout Plain Layout
20332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20335 \begin_layout Plain Layout
20336 チェックアウト頻度が低かったことによる不完全な作業コピー
20343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20346 \begin_layout Plain Layout
20352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20355 \begin_layout Plain Layout
20356 改訂版が混合し,修正され,スイッチされた作業コピー
20369 \begin_layout Itemize
20371 \begin_inset Flex Code
20374 \begin_layout Plain Layout
20376 \begin_inset space ~
20380 \begin_inset space ~
20384 \begin_inset space ~
20392 の出力を解析したものが返されます.サポートされるフラグは
20396 \begin_layout Itemize
20398 \begin_inset Flex Code
20401 \begin_layout Plain Layout
20410 \begin_layout Itemize
20412 \begin_inset Flex Code
20415 \begin_layout Plain Layout
20424 \begin_layout Itemize
20426 \begin_inset Flex Code
20429 \begin_layout Plain Layout
20438 \begin_layout Itemize
20440 \begin_inset Flex Code
20443 \begin_layout Plain Layout
20453 \begin_layout Standard
20454 これらの情報は,情報差込枠で得ることができます(例:
20455 \begin_inset Flex Code
20458 \begin_layout Plain Layout
20459 info-insert buffer vcs-date
20464 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20465 \begin_inset Flex Code
20468 \begin_layout Plain Layout
20474 ディレクトリがあるときのみ)利用可能です.
20478 \begin_layout Itemize
20479 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20483 \begin_layout Plain Layout
20484 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20489 .簡単に言えば,ファイルキーワード特性を設定して(例:
20491 svn propset svn:keywords 'Rev' file.lyx
20493 ),文書中にキーワード\SpecialChar TeX
20498 \begin_layout Plain Layout
20499 これは,\SpecialChar LyX
20500 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20506 \begin_inset Flex Code
20509 \begin_layout Plain Layout
20515 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20516 \begin_inset Flex Code
20519 \begin_layout Plain Layout
20525 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20526 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20528 \begin_inset Formula $Rev$
20532 \begin_inset Formula $Rev:59$
20535 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20536 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20537 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20538 がこれを直接サポートすることは,難しそうです.
20541 \begin_layout Subsection
20545 \begin_layout Quote
20546 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20551 \begin_layout Subsubsection
20555 \begin_layout Standard
20557 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20558 トプログラムのWindows用インストーラは
20559 \begin_inset CommandInset href
20562 target "http://www.collab.net/nonav/downloads/subversion/"
20568 \begin_inset CommandInset href
20571 target "http://tortoisesvn.tigris.org/"
20576 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20578 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20579 自身が使用するクライアントプログラムの代わりとは成りませんので
20583 \begin_layout Subsubsection
20584 文書をSubversion管理下に置くには
20587 \begin_layout Standard
20589 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20590 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20591 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20593 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20594 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20596 \begin_inset Flex Code
20599 \begin_layout Plain Layout
20607 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20608 \begin_inset Flex Code
20611 \begin_layout Plain Layout
20620 \begin_layout Enumerate
20622 \begin_inset Flex Code
20625 \begin_layout Plain Layout
20634 \begin_inset Flex MenuItem
20637 \begin_layout Plain Layout
20638 TortoiseSVN\SpecialChar menuseparator
20644 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20647 \begin_layout Enumerate
20648 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20649 \begin_inset Flex MenuItem
20652 \begin_layout Plain Layout
20653 Create folder\SpecialChar ldots
20659 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20660 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20663 \begin_layout Enumerate
20665 \begin_inset Flex Code
20668 \begin_layout Plain Layout
20677 \begin_inset Flex MenuItem
20680 \begin_layout Plain Layout
20681 SVN Checkout\SpecialChar ldots
20687 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20688 \begin_inset Flex Code
20691 \begin_layout Plain Layout
20699 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20700 \begin_inset Flex Code
20703 \begin_layout Plain Layout
20712 \begin_inset Flex Code
20715 \begin_layout Plain Layout
20724 \begin_layout Enumerate
20727 \begin_inset Flex MenuItem
20730 \begin_layout Plain Layout
20731 ファイル\SpecialChar menuseparator
20732 バージョン管理\SpecialChar menuseparator
20738 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20741 \begin_layout Standard
20743 \begin_inset Flex MenuItem
20746 \begin_layout Plain Layout
20747 ファイル\SpecialChar menuseparator
20753 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20754 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20757 \begin_layout Subsubsection
20758 Windows下でSVNと共にSSHトンネルを使うには
20761 \begin_layout Standard
20762 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20763 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20767 \begin_layout Enumerate
20768 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20769 \begin_inset Flex Code
20772 \begin_layout Plain Layout
20778 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20781 \begin_layout Enumerate
20782 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20786 \begin_layout Plain Layout
20787 \begin_inset Flex URL
20790 \begin_layout Plain Layout
20792 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20802 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20804 \begin_inset Flex Ruby
20807 \begin_layout Plain Layout
20809 \begin_inset Argument post:1
20812 \begin_layout Plain Layout
20827 \begin_layout Enumerate
20828 \begin_inset Flex Code
20831 \begin_layout Plain Layout
20837 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20838 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20839 s file:」編集フィールドから,直接サーバの
20840 \begin_inset Flex Code
20843 \begin_layout Plain Layout
20844 ~/.ssh/authorized_keys
20850 \begin_inset Flex Code
20853 \begin_layout Plain Layout
20859 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20862 \begin_layout Enumerate
20863 Puttyのplinkを入手してください.SVNのconfigファイル
20867 \begin_layout Plain Layout
20868 正確なパスはWindowsのバージョンに依りますが,通常は
20869 \begin_inset Flex Code
20872 \begin_layout Plain Layout
20875 Documents and Settings
20889 \begin_inset Flex Code
20892 \begin_layout Plain Layout
20908 \begin_inset Flex Code
20911 \begin_layout Plain Layout
20917 セクションにsshコマンドを設定してください.例:
20918 \begin_inset Flex Code
20921 \begin_layout Plain Layout
20922 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20931 \begin_layout Plain Layout
20932 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20933 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20942 \begin_layout Enumerate
20943 SVNアーカイブをチェックアウトしてください.例:
20944 \begin_inset Newline newline
20948 \begin_inset Flex Code
20951 \begin_layout Plain Layout
20952 svn co svn+ssh://user@server/repository_path
20960 \begin_layout Subsubsection
20964 \begin_layout Standard
20965 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20966 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20968 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20969 \begin_inset Flex Code
20972 \begin_layout Plain Layout
20982 \begin_layout Plain Layout
20984 \begin_inset Flex Code
20987 \begin_layout Plain Layout
20988 svn propset svn:eol-style native FILE_NAME
20998 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21002 \begin_layout Plain Layout
21003 \begin_inset Flex URL
21006 \begin_layout Plain Layout
21008 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21021 \begin_layout Subsection
21026 \begin_layout Standard
21028 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21030 ファイル\SpecialChar menuseparator
21033 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21039 \begin_layout Plain Layout
21040 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
21043 ツール\SpecialChar menuseparator
21044 設定\SpecialChar menuseparator
21045 パス\SpecialChar menuseparator
21056 \begin_layout Standard
21057 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21058 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21059 ミットを行います.ローカルリポジトリは,GITコマンドの
21060 \begin_inset Flex Code
21063 \begin_layout Plain Layout
21070 \begin_inset Flex Code
21073 \begin_layout Plain Layout
21079 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21080 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21081 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21082 \begin_inset Flex Code
21085 \begin_layout Plain Layout
21092 \begin_inset Flex Code
21095 \begin_layout Plain Layout
21104 \begin_layout Subsubsection
21108 \begin_layout Standard
21109 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21116 \begin_layout Standard
21117 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21122 \begin_inset Flex Code
21125 \begin_layout Plain Layout
21131 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21134 \begin_layout Standard
21135 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21138 \begin_layout Standard
21140 \begin_inset Flex Code
21143 \begin_layout Plain Layout
21152 \begin_layout Standard
21154 \begin_inset Flex Code
21157 \begin_layout Plain Layout
21166 \begin_layout Subsubsection
21170 \begin_layout Standard
21171 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21174 \begin_layout Standard
21176 \begin_inset Flex Code
21179 \begin_layout Plain Layout
21181 \begin_inset Quotes erd
21185 \begin_inset Quotes erd
21196 \begin_layout Subsubsection
21200 \begin_layout Standard
21201 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21204 \begin_layout Standard
21206 \begin_inset Flex Code
21209 \begin_layout Plain Layout
21211 \begin_inset Quotes qld
21215 \begin_inset Quotes qld
21226 \begin_layout Subsubsection
21230 \begin_layout Standard
21231 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
21232 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
21235 ファイル\SpecialChar menuseparator
21236 名前をつけて保存\SpecialChar ldots
21239 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
21242 \begin_layout Labeling
21243 \labelwidthstring 00.00.0000
21245 \begin_inset space ~
21249 \begin_inset Newline newline
21253 \begin_inset Flex Code
21256 \begin_layout Plain Layout
21257 git mv "<ファイル名>" "<新ファイル名>"
21263 \begin_inset Newline newline
21267 \begin_inset Flex Code
21270 \begin_layout Plain Layout
21279 \begin_layout Subsubsection
21283 \begin_layout Standard
21284 これは,GIT文書の全履歴を表示します.
21285 \begin_inset Flex Code
21288 \begin_layout Plain Layout
21290 \begin_inset Quotes qld
21294 \begin_inset Quotes qld
21305 \begin_layout Subsubsection
21309 \begin_layout Standard
21311 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21313 git log -n 1 --pretty=format:%H%n%an%n%ai
21315 によって抽出されます.ツリーバージョン情報は,
21317 git describe --abbrev --dirty --long
21320 \begin_inset CommandInset ref
21322 reference "subsec:VCS改訂情報"
21329 \begin_layout Subsection
21333 \begin_layout Standard
21335 \begin_inset Flex Code
21338 \begin_layout Plain Layout
21344 機構が付け加えられたおかげで,\SpecialChar LyX
21345 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21348 \begin_layout Standard
21349 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21352 \begin_layout Description
21354 \begin_inset Flex Code
21357 \begin_layout Plain Layout
21358 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21366 \begin_layout Description
21368 \begin_inset Flex Code
21371 \begin_layout Plain Layout
21372 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21380 \begin_layout Subsection
21384 \begin_layout Standard
21386 \begin_inset Flex Code
21389 \begin_layout Plain Layout
21395 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21397 まり便利ではありません.そこで,\SpecialChar LyX
21398 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21400 \begin_inset Flex Code
21403 \begin_layout Plain Layout
21409 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21410 関数説明書を参照),もう1つはツールバーアイコン
21422 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21423 \begin_inset Flex MenuItem
21426 \begin_layout Plain Layout
21432 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21435 \begin_layout Standard
21436 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21437 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21438 \begin_inset Flex Code
21441 \begin_layout Plain Layout
21451 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21454 \begin_layout Section
21458 \begin_layout Standard
21463 (kayvan@sylvan.com)改訂
21465 Edmar Wienskoski Jr.
21467 (edmar-w-jr@technologist.com)原文
21470 \begin_layout Subsection
21474 \begin_layout Standard
21475 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21476 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21477 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21478 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21481 \begin_layout Standard
21482 また,あなたが,\SpecialChar LyX
21483 の設定を変更することを厭わない程度まで\SpecialChar LyX
21484 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21485 するトピックを扱っている,\SpecialChar LyX
21489 \begin_layout Subsection
21493 \begin_layout Standard
21494 以下は,文芸プログラミング FAQからの抜粋です.
21497 \begin_layout Quotation
21498 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21499 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21500 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21502 \begin_inset space \thinspace{}
21506 Knuthが,\SpecialChar TeX
21507 組版ソフトウエアを開発中に作り出したものです.
21510 \begin_layout Standard
21514 \begin_layout Quotation
21517 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21520 \begin_layout Quotation
21521 3つの際立った特徴があります.重要な順に列挙すれば,
21525 \begin_layout Itemize
21529 \begin_layout Itemize
21533 \begin_layout Itemize
21534 特に図式と数式を含んだドキュメンテーションの組版
21538 \begin_layout Quotation
21542 \begin_layout Standard
21543 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21546 \begin_layout Subsubsection
21550 \begin_layout Standard
21554 \begin_layout Quote
21555 Literate Programming FAQ
21556 \begin_inset Flex URL
21559 \begin_layout Plain Layout
21561 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21569 \begin_layout Standard
21573 \begin_layout Standard
21574 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21575 を持つものもあります.私は自分で使うのに,いくつかの理由から
21582 \begin_layout Itemize
21583 説明文書を\SpecialChar LaTeX
21587 \begin_layout Itemize
21588 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21592 \begin_layout Plain Layout
21597 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21598 ムコードや\SpecialChar LaTeX
21599 コードのみを含むファイルに変換することができます.
21604 ,自分が必要な特別な処理を実行することが容易である.
21607 \begin_layout Itemize
21608 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21611 \begin_layout Itemize
21615 \begin_layout Standard
21619 \begin_layout Quote
21621 \begin_inset Flex URL
21624 \begin_layout Plain Layout
21626 http://www.cs.virginia.edu/~nr/noweb/
21634 \begin_layout Standard
21635 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21638 \begin_layout Subsection
21640 とNowebを使った文芸プログラミング
21643 \begin_layout Standard
21645 における文芸プログラミングのサポートは,\SpecialChar LyX
21646 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21647 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21651 \begin_layout Subsubsection
21652 ドキュメントとコードの生成(weavingおよびtangling)
21655 \begin_layout Paragraph
21659 \begin_layout Standard
21660 Nowebと\SpecialChar LyX
21661 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21663 文書\SpecialChar menuseparator
21666 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21667 web」モジュールが表示され,文書に追加できるようになっています.
21670 \begin_layout Paragraph
21674 \begin_layout Standard
21677 \begin_inset Flex Noun
21680 \begin_layout Plain Layout
21686 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21689 \begin_layout LyX-Code
21693 \begin_layout LyX-Code
21697 \begin_layout LyX-Code
21701 \begin_layout LyX-Code
21705 \begin_layout LyX-Code
21709 \begin_layout Standard
21710 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21711 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21713 \begin_inset Flex Noun
21716 \begin_layout Plain Layout
21722 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21725 \begin_layout Standard
21726 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21729 \begin_layout LyX-Code
21733 \begin_layout LyX-Code
21734 def some_function(args):
21737 \begin_layout LyX-Code
21738 "This is the doc string for this function."
21741 \begin_layout LyX-Code
21742 print "My args: ", args
21745 \begin_layout LyX-Code
21746 @ %def some_function
21749 \begin_layout Standard
21750 これをどのように使って,その結果相互参照がどうなるかは
21752 LIBDIR/examples/listerrors.lyx
21754 の中の文芸pythonプログラムを見るとよくわかります.
21757 \begin_layout Paragraph
21761 \begin_layout Standard
21762 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21765 文書\SpecialChar menuseparator
21768 等を選ぶだけです.特別な手続きは必要ありません.
21771 \begin_layout Standard
21772 理解を助けるために,\SpecialChar LyX
21773 の内部で何が起っているかを説明しておきましょう.
21776 \begin_layout Enumerate
21779 文書\SpecialChar menuseparator
21782 が選択されると,\SpecialChar LaTeX
21787 \begin_layout Standard
21788 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21789 \begin_inset Flex MenuItem
21792 \begin_layout Plain Layout
21798 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21802 \begin_layout Enumerate
21803 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21805 \begin_inset Flex Noun
21808 \begin_layout Plain Layout
21814 差込枠でコードを入力するのだけがポイントです.
21817 \begin_layout Enumerate
21818 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21820 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21825 \begin_layout Plain Layout
21828 ツール\SpecialChar menuseparator
21831 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21844 を使って\SpecialChar LaTeX
21849 \begin_layout Standard
21850 それ以外の場合はこのステップを飛ばします.
21854 \begin_layout Enumerate
21855 最後に\SpecialChar LaTeX
21856 が実行され,通常の文書と同じ後処理が行われます.
21859 \begin_layout Standard
21860 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21863 \begin_layout Paragraph
21867 \begin_layout Standard
21868 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21869 ファイルが生成されます.それから\SpecialChar LyX
21874 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21877 \begin_layout Enumerate
21878 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21882 \begin_layout Enumerate
21883 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21884 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21885 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21888 \begin_layout Standard
21892 \begin_layout LyX-Code
21895 build-script $$i $$r
21898 \begin_layout Standard
21899 と指定します.これは基本的に,\SpecialChar LyX
21901 \begin_inset Quotes erd
21909 \begin_inset Quotes erd
21912 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21913 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21914 ファイルのディレクトリパスを使って呼び出すこ
21918 \begin_layout Standard
21919 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21922 \begin_layout LyX-Code
21928 \begin_layout LyX-Code
21934 \begin_layout LyX-Code
21937 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21940 \begin_layout Standard
21941 変換子設定の次の部分は「フラグ」で,これは
21944 \begin_layout LyX-Code
21947 parselog=$$s/scripts/listerrors
21950 \begin_layout Standard
21952 \begin_inset Newline newline
21956 \begin_inset Quotes erd
21960 \begin_inset Quotes erd
21964 \begin_inset Quotes erd
21968 \begin_inset Quotes erd
21974 \begin_layout Standard
21975 ビルドは,通常\SpecialChar LyX
21976 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21977 は,主要ファイルとみなされるものをコピーして取り出
21982 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21983 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21984 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21987 \begin_layout Paragraph
21991 \begin_layout Standard
21994 \begin_inset Quotes eld
21998 \begin_inset Quotes erd
22001 chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22002 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22005 \begin_layout Standard
22006 以下に典型的なchunkがどのようなものかを書いておきます.
22009 \begin_layout LyX-Code
22011 \begin_inset Newline newline
22017 \begin_layout LyX-Code
22019 \begin_inset Newline newline
22023 \begin_inset Newline newline
22026 if [ -z "${NOWEB_SOURCE}" ]
22027 \begin_inset Newline newline
22033 \begin_layout LyX-Code
22034 NOWEB_SOURCE=myfile.nw
22035 \begin_inset Newline newline
22039 \begin_inset Newline newline
22043 code to extract files ...
22044 use NOWEB_OUTPUT_DIR here ...]
22045 \begin_inset Newline newline
22049 code to compile files ...]
22050 \begin_inset Newline newline
22056 \begin_layout Standard
22059 LIBDIR/examples/listerrors.lyx
22063 LIBDIR/examples/Literate.lyx
22065 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22068 LIBDIR/examples/noweb2lyx.lyx
22070 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22071 の文芸プログラミングのサポートがプログラム言語に依存しない
22075 \begin_layout Subsubsection
22080 \begin_layout Standard
22081 すべての文芸プログラムのための設定は,
22083 ツール\SpecialChar menuseparator
22086 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22089 \begin_layout Description
22090 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22102 に設定してください.これによって,\SpecialChar LyX
22103 に変換プロセスの第一段階でつくられるファイルに
22107 という拡張子をつけることを指示します.
22110 \begin_layout Description
22111 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22114 \begin_layout Description
22124 この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22126 noweave -delay -index $$i > $$o
22131 \begin_layout Description
22140 これは「tangling」を行います.上述のように,変換子は「
22142 build-script $$i $$r
22146 parselog=$$s/scripts/listerrors
22151 \begin_layout Subsubsection
22155 \begin_layout Standard
22156 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22160 \begin_layout Standard
22161 ddd/gdbでデバッグしているとき,一つの
22162 \begin_inset Flex Ruby
22165 \begin_layout Plain Layout
22167 \begin_inset Argument post:1
22170 \begin_layout Plain Layout
22181 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22182 \begin_inset Flex MenuItem
22185 \begin_layout Plain Layout
22186 ツール\SpecialChar menuseparator
22187 設定\SpecialChar menuseparator
22194 \begin_inset Flex MenuItem
22197 \begin_layout Plain Layout
22203 エントリを変えると変えることができます.
22206 \begin_layout Standard
22207 新しい\SpecialChar LyX
22208 サーバの関数と,このdddの機能を使うために
22209 \begin_inset Flex MenuItem
22212 \begin_layout Plain Layout
22221 \begin_layout LyX-Code
22224 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22227 \begin_layout Standard
22228 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22229 サーバに情報を送り,\SpecialChar LyX
22231 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
22234 \begin_layout Standard
22235 この機能が動くには\SpecialChar LyX
22236 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22237 サーバーは使えないようになっています).
22240 \begin_layout Standard
22242 \begin_inset CommandInset ref
22244 reference "sec:サーバーを開始するには"
22251 \begin_layout Subsubsection
22255 \begin_layout Standard
22256 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
22270 の段落環境へのショートカットであり,1つは拡張差込枠
22274 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
22275 \begin_inset Flex Ruby
22278 \begin_layout Plain Layout
22298 \begin_inset Argument post:1
22301 \begin_layout Plain Layout
22315 \begin_layout Standard
22317 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22318 \begin_inset Flex MenuItem
22321 \begin_layout Plain Layout
22322 文書\SpecialChar menuseparator
22323 更新\SpecialChar menuseparator
22330 \begin_inset Flex MenuItem
22333 \begin_layout Plain Layout
22334 文書\SpecialChar menuseparator
22335 表示\SpecialChar menuseparator
22344 \begin_layout LyX-Code
22348 \begin_layout LyX-Code
22352 \begin_layout LyX-Code
22353 Icon "layout Standard"
22356 \begin_layout LyX-Code
22357 Icon "layout Section"
22360 \begin_layout LyX-Code
22361 Icon "layout latex"
22364 \begin_layout LyX-Code
22365 Icon "layout \SpecialChar LyX
22369 \begin_layout LyX-Code
22370 Icon "flex.insert Chunk"
22373 \begin_layout LyX-Code
22377 \begin_layout LyX-Code
22381 \begin_layout LyX-Code
22382 Icon "buffer-typeset"
22385 \begin_layout LyX-Code
22386 Icon "build-program"
22389 \begin_layout LyX-Code
22393 \begin_layout LyX-Code
22397 \begin_layout LyX-Code
22401 \begin_layout LyX-Code
22405 \begin_layout LyX-Code
22409 \begin_layout Subsubsection
22413 \begin_layout Standard
22416 \begin_inset Flex MenuItem
22419 \begin_layout Plain Layout
22425 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22426 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22427 フォントを使うことになっていて,文芸プログラミ
22428 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22429 \begin_inset Flex MenuItem
22432 \begin_layout Plain Layout
22433 操作性\SpecialChar menuseparator
22442 \begin_layout Standard
22443 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22444 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22447 \begin_layout Subsection
22452 \begin_layout Standard
22453 knitrとSweaveへのサポートについては,用例ファイル
22459 ヘルプ\SpecialChar menuseparator
22465 \begin_layout Chapter
22467 \begin_inset CommandInset label
22469 name "chap:Special-features"
22476 \begin_layout Standard
22478 では,\SpecialChar LaTeX
22479 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22480 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22481 コードを使用することはできます.本章は,ユーザの興味が
22482 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22489 \begin_layout Section
22493 \begin_layout Standard
22502 とは別の機能です.文書全体に二段組を行いたい場合には,
22506 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22509 \begin_layout Standard
22510 文書中で多段組を行うには,\SpecialChar LaTeX
22512 \begin_inset Flex Code
22515 \begin_layout Plain Layout
22522 \begin_inset Index idx
22525 \begin_layout Plain Layout
22527 ぱっけーじ @ \SpecialChar LaTeX
22535 文書\SpecialChar menuseparator
22536 設定\SpecialChar menuseparator
22546 \begin_layout Standard
22547 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22551 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22554 \begin_layout Subsection
22558 \begin_layout Standard
22559 文章中で二段組を使用したい場合には,段組を始める場所で
22561 挿入\SpecialChar menuseparator
22562 任意設定差込枠\SpecialChar menuseparator
22565 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22568 \begin_layout Standard
22572 \begin_layout Standard
22574 \begin_inset Flex Multiple Columns
22577 \begin_layout Plain Layout
22582 The Adventure of the Empty House
22585 \begin_inset Newline newline
22588 by Sir Arthur Conan Doyle
22591 \begin_layout Plain Layout
22594 It was in the spring of the year 1894 that all London was interested, and
22595 the fashionable world dismayed, by the murder of the Honourable Ronald
22596 Adair under most unusual and inexplicable circumstances.
22597 The public has already learned those particulars of the crime which came
22598 out in the police investigation, but a good deal was suppressed upon that
22599 occasion, since the case for the prosecution was so overwhelmingly strong
22600 that it was not necessary to bring forward all the facts.
22601 Only now, at the end of nearly ten years, am I allowed to supply those
22602 missing links which make up the whole of that remarkable chain.
22603 The crime was of interest in itself, but that interest was as nothing to
22604 me compared to the inconceivable sequel, which afforded me the greatest
22605 shock and surprise of any event in my adventurous life.
22606 Even now, after this long interval, I find myself thrilling as I think
22607 of it, and feeling once more that sudden flood of joy, amazement, and increduli
22608 ty which utterly submerged my mind.
22609 Let me say to that public, which has shown some interest in those glimpses
22610 which I have occasionally given them of the thoughts and actions of a very
22611 remarkable man, that they are not to blame me if I have not shared my knowledge
22612 with them, for I should have considered it my first duty to do so, had
22613 I not been barred by a positive prohibition from his own lips, which was
22614 only withdrawn upon the third of last month.
22622 \begin_layout Standard
22623 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22624 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22626 \begin_inset Newline newline
22632 \begin_layout Standard
22633 \begin_inset Flex Multiple Columns
22636 \begin_layout Plain Layout
22639 \begin_inset Argument 1
22642 \begin_layout Plain Layout
22648 It can be imagined that my close intimacy with Sherlock Holmes had interested
22649 me deeply in crime, and that after his disappearance I never failed to
22650 read with care the various problems which came before the public.
22651 And I even attempted, more than once, for my own private satisfaction,
22652 to employ his methods in their solution, though with indifferent success.
22653 There was none, however, which appealed to me like this tragedy of Ronald
22655 As I read the evidence at the inquest, which led up to a verdict of willful
22656 murder against some person or persons unknown, I realized more clearly
22657 than I had ever done the loss which the community had sustained by the
22658 death of Sherlock Holmes.
22659 There were points about this strange business which would, I was sure,
22660 have specially appealed to him, and the efforts of the police would have
22661 been supplemented, or more probably anticipated, by the trained observation
22662 and the alert mind of the first criminal agent in Europe.
22663 All day, as I drove upon my round, I turned over the case in my mind and
22664 found no explanation which appeared to me to be adequate.
22665 At the risk of telling a twice-told tale, I will recapitulate the facts
22666 as they were known to the public at the conclusion of the inquest.
22674 \begin_layout Standard
22675 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22678 \begin_layout Standard
22679 \begin_inset Newpage newpage
22685 \begin_layout Subsection
22689 \begin_layout Standard
22693 \begin_layout Standard
22694 \begin_inset Flex Multiple Columns
22697 \begin_layout Plain Layout
22700 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22701 at that time governor of one of the Australian colonies.
22702 Adair's mother had returned from Australia to undergo the operation for
22703 cataract, and she, her son Ronald, and her daughter Hilda were living together
22707 \begin_layout Plain Layout
22708 \begin_inset Flex Multiple Columns
22711 \begin_layout Plain Layout
22714 The youth moved in the best society–had, so far as was known, no enemies
22715 and no particular vices.
22716 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22717 had been broken off by mutual consent some months before, and there was
22718 no sign that it had left any very profound feeling behind it.
22719 For the rest {sic} the man's life moved in a narrow and conventional circle,
22720 for his habits were quiet and his nature unemotional.
22721 Yet it was upon this easy-going young aristocrat that death came, in most
22722 strange and unexpected form, between the hours of ten and eleven-twenty
22723 on the night of March 30, 1894.
22731 \begin_layout Plain Layout
22734 Ronald Adair was fond of cards–playing continually, but never for such stakes
22736 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22737 It was shown that, after dinner on the day of his death, he had played
22738 a rubber of whist at the latter club.
22739 He had also played there in the afternoon.
22744 The evidence of those who had played with him– Mr.
22745 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22746 and that there was a fairly equal fall of the cards.
22747 Adair might have lost five pounds, but not more.
22748 His fortune was a considerable one, and such a loss could not in any way
22750 He had played nearly every day at one club or other, but he was a cautious
22751 player, and usually rose a winner.
22752 It came out in evidence that, in partnership with Colonel Moran, he had
22753 actually won as much as four hundred and twenty pounds in a sitting, some
22754 weeks before, from Godfrey Milner and Lord Balmoral.
22755 So much for his recent history as it came out at the inquest.
22763 \begin_layout Subsection
22767 \begin_layout Standard
22768 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22771 \begin_layout Standard
22772 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22774 \begin_inset Flex Code
22777 \begin_layout Plain Layout
22784 \begin_inset CommandInset href
22787 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22795 \begin_layout Subsubsection
22799 \begin_layout Standard
22800 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22802 挿入\SpecialChar menuseparator
22805 メニューを使用してください.序文は,この差込枠内に書いてください.
22806 \begin_inset Newline newline
22812 \begin_layout Standard
22813 \begin_inset VSpace bigskip
22819 \begin_layout Standard
22820 \begin_inset Flex Multiple Columns
22823 \begin_layout Plain Layout
22824 \begin_inset Argument 2
22827 \begin_layout Plain Layout
22828 And the story continues and continues and continues and continues\SpecialChar ldots
22836 On the evening of the crime, he returned from the club exactly at ten.
22837 His mother and sister were out spending the evening with a relation.
22838 The servant deposed that she heard him enter the front room on the second
22839 floor, generally used as his sitting-room.
22840 She had lit a fire there, and as it smoked she had opened the window.
22841 No sound was heard from the room until eleven-twenty, the hour of the return
22842 of Lady Maynooth and her daughter.
22843 Desiring to say good-night, she attempted to enter her son's room.
22844 The door was locked on the inside, and no answer could be got to their
22845 cries and knocking.
22846 Help was obtained, and the door forced.
22847 The unfortunate young man was found lying near the table.
22848 His head had been horribly mutilated by an expanding revolver bullet, but
22849 no weapon of any sort was to be found in the room.
22857 \begin_layout Standard
22858 最初の\SpecialChar TeX
22859 コードの後に,節宣言コマンドを\SpecialChar TeX
22860 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22863 \begin_layout Standard
22871 \begin_layout Standard
22872 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22875 \begin_layout Standard
22876 \begin_inset Flex Multiple Columns
22879 \begin_layout Plain Layout
22880 \begin_inset Argument 2
22883 \begin_layout Plain Layout
22887 \begin_layout Plain Layout
22900 \begin_layout Plain Layout
22914 A minute examination of the circumstances served only to make the case more
22916 In the first place, no reason could be given why the young man should have
22917 fastened the door upon the inside.
22918 There was the possibility that the murderer had done this, and had afterwards
22919 escaped by the window.
22920 The drop was at least twenty feet, however, and a bed of crocuses in full
22922 Neither the flowers nor the earth showed any sign of having been disturbed,
22923 nor were there any marks upon the narrow strip of grass which separated
22924 the house from the road.
22925 Apparently, therefore, it was the young man himself who had fastened the
22927 But how did he come by his death? No one could have climbed up to the window
22928 without leaving traces.
22929 Suppose a man had fired through the window, he would indeed be a remarkable
22930 shot who could with a revolver inflict so deadly a wound.
22931 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22932 a hundred yards of the house.
22933 No one had heard a shot.
22941 \begin_layout Standard
22942 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22943 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22945 挿入\SpecialChar menuseparator
22948 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22951 \begin_layout Standard
22953 \begin_inset Flex Code
22956 \begin_layout Plain Layout
22964 を用いて,必要行数を7行に指定しています(コマンド
22965 \begin_inset Flex Code
22968 \begin_layout Plain Layout
22977 コードとして入力する必要があります).
22980 \begin_layout Standard
22981 \begin_inset Flex Multiple Columns
22984 \begin_layout Plain Layout
22985 \begin_inset Argument 3
22988 \begin_layout Plain Layout
22993 \begin_layout Plain Layout
23009 On the evening of the crime, he returned from the club exactly at ten.
23010 His mother and sister were out spending the evening with a relation.
23011 The servant deposed that she heard him enter the front room on the second
23012 floor, generally used as his sitting-room.
23013 She had lit a fire there, and as it smoked she had opened the window.
23014 No sound was heard from the room until eleven-twenty, the hour of the return
23015 of Lady Maynooth and her daughter.
23016 Desiring to say good-night, she attempted to enter her son's room.
23017 The door was locked on the inside, and no answer could be got to their
23018 cries and knocking.
23019 Help was obtained, and the door forced.
23020 The unfortunate young man was found lying near the table.
23021 His head had been horribly mutilated by an expanding revolver bullet, but
23022 no weapon of any sort was to be found in the room.
23030 \begin_layout Subsubsection
23034 \begin_layout Standard
23036 \begin_inset Flex Code
23039 \begin_layout Plain Layout
23047 を変えることで変更することができます.例えば,\SpecialChar TeX
23051 \begin_layout LyX-Code
23061 \begin_layout Standard
23063 \begin_inset space \thinspace{}
23066 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23067 \begin_inset space \thinspace{}
23073 \begin_layout Standard
23075 \begin_inset Flex Code
23078 \begin_layout Plain Layout
23087 \begin_inset space \thinspace{}
23093 \begin_layout Standard
23097 \begin_layout Plain Layout
23103 multicolsep}{2.5cm}
23111 \begin_layout Standard
23112 \begin_inset Flex Multiple Columns
23115 \begin_layout Plain Layout
23118 All day I turned these facts over in my mind, endeavouring to hit upon some
23119 theory which could reconcile them all, and to find that line of least resistanc
23120 e which my poor friend had declared to be the starting-point of every investigat
23122 I confess that I made little progress.
23123 In the evening I strolled across the Park, and found myself about six o'clock
23124 at the Oxford Street end of Park Lane.
23125 A group of loafers upon the pavements, all staring up at a particular window,
23126 directed me to the house which I had come to see.
23127 A tall, thin man with coloured glasses, whom I strongly suspected of being
23128 a plain-clothes detective, was pointing out some theory of his own, while
23129 the others crowded round to listen to what he said.
23130 I got as near him as I could, but his observations seemed to me to be absurd,
23131 so I withdrew again in some disgust.
23132 As I did so I struck against an elderly, deformed man, who had been behind
23133 me, and I knocked down several books which he was carrying.
23141 \begin_layout Standard
23142 \begin_inset Note Greyedout
23145 \begin_layout Plain Layout
23151 \begin_inset Flex Code
23154 \begin_layout Plain Layout
23162 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23170 \begin_layout Standard
23174 \begin_layout Plain Layout
23186 \begin_inset Note Note
23189 \begin_layout Plain Layout
23192 go back to the default
23200 \begin_layout Standard
23201 \begin_inset Newpage newpage
23207 \begin_layout Subsubsection
23211 \begin_layout Standard
23212 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
23214 \begin_inset Flex Code
23217 \begin_layout Plain Layout
23225 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
23226 \begin_inset Newline newline
23232 \begin_layout Standard
23233 \begin_inset Flex Multiple Columns
23236 \begin_layout Plain Layout
23239 \begin_inset Quotes eld
23242 You're surprised to see me, sir,
23243 \begin_inset Quotes erd
23246 said he, in a strange, croaking voice.
23249 \begin_layout Plain Layout
23252 I acknowledged that I was.
23255 \begin_layout Plain Layout
23258 \begin_inset Quotes eld
23261 Well, I've a conscience, sir, and when I chanced to see you go into this
23262 house, as I came hobbling after you, I thought to myself, I'll just step
23263 in and see that kind gentleman, and tell him that if I was a bit gruff
23264 in my manner there was not any harm meant, and that I am much obliged to
23265 him for picking up my books.
23266 \begin_inset Quotes erd
23272 \begin_layout Plain Layout
23275 \begin_inset Quotes eld
23278 You make too much of a trifle,
23279 \begin_inset Quotes erd
23284 \begin_inset Quotes eld
23287 May I ask how you knew who I was?
23288 \begin_inset Quotes erd
23291 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23295 \begin_layout Plain Layout
23307 \begin_layout Plain Layout
23310 \begin_inset Quotes eld
23313 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23314 you'll find my little bookshop at the corner of Church Street, and very
23315 happy to see you, I am sure.
23316 Maybe you collect yourself, sir.
23320 \begin_inset space ~
23333 –a bargain, every one of them.
23334 With five volumes you could just fill that gap on that second shelf.
23335 It looks untidy, does it not, sir?
23336 \begin_inset Quotes erd
23347 \begin_layout Subsubsection
23351 \begin_layout Standard
23352 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23353 \begin_inset Flex Code
23356 \begin_layout Plain Layout
23364 を変更することで実現できます.既定値は10
23365 \begin_inset space \thinspace{}
23369 \begin_inset Flex Code
23372 \begin_layout Plain Layout
23381 \begin_inset space \thinspace{}
23387 \begin_layout Standard
23391 \begin_layout Plain Layout
23405 \begin_layout Standard
23406 \begin_inset Flex Multiple Columns
23409 \begin_layout Plain Layout
23412 My observations of No.
23413 \begin_inset space \space{}
23416 427 Park Lane did little to clear up the problem in which I was interested.
23417 The house was separated from the street by a low wall and railing, the
23418 whole not more than five feet high.
23419 It was perfectly easy, therefore, for anyone to get into the garden, but
23420 the window was entirely inaccessible, since there was no water pipe or
23421 anything which could help the most active man to climb it.
23422 More puzzled than ever, I retraced my steps to Kensington.
23423 I had not been in my study five minutes when the maid entered to say that
23424 a person desired to see me.
23425 To my astonishment it was none other than my strange old book collector,
23426 his sharp, wizened face peering out from a frame of white hair, and his
23427 precious volumes, a dozen of them at least, wedged under his right arm.
23435 \begin_layout Standard
23439 \begin_layout Plain Layout
23451 \begin_inset Note Note
23454 \begin_layout Plain Layout
23457 go back to the default
23465 \begin_layout Subsubsection
23469 \begin_layout Standard
23471 \begin_inset Flex Code
23474 \begin_layout Plain Layout
23482 の幅を持つ罫線が描かれます.罫線幅を0
23483 \begin_inset space \thinspace{}
23486 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23487 \begin_inset space \thinspace{}
23493 \begin_layout Standard
23497 \begin_layout Plain Layout
23503 columnseprule}{2pt}
23511 \begin_layout Standard
23512 \begin_inset Flex Multiple Columns
23515 \begin_layout Plain Layout
23518 \begin_inset Quotes eld
23521 You're surprised to see me, sir,
23522 \begin_inset Quotes erd
23525 said he, in a strange, croaking voice.
23528 \begin_layout Plain Layout
23531 I acknowledged that I was.
23534 \begin_layout Plain Layout
23537 \begin_inset Quotes eld
23540 Well, I've a conscience, sir, and when I chanced to see you go into this
23541 house, as I came hobbling after you, I thought to myself, I'll just step
23542 in and see that kind gentleman, and tell him that if I was a bit gruff
23543 in my manner there was not any harm meant, and that I am much obliged to
23544 him for picking up my books.
23545 \begin_inset Quotes erd
23551 \begin_layout Plain Layout
23554 \begin_inset Quotes eld
23557 You make too much of a trifle,
23558 \begin_inset Quotes erd
23563 \begin_inset Quotes eld
23566 May I ask how you knew who I was?
23567 \begin_inset Quotes erd
23573 \begin_layout Plain Layout
23576 \begin_inset Quotes eld
23579 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23580 you'll find my little bookshop at the corner of Church Street, and very
23581 happy to see you, I am sure.
23582 Maybe you collect yourself, sir.
23586 \begin_inset space ~
23599 –a bargain, every one of them.
23600 With five volumes you could just fill that gap on that second shelf.
23601 It looks untidy, does it not, sir?
23602 \begin_inset Quotes erd
23613 \begin_layout Standard
23614 \begin_inset VSpace defskip
23620 \begin_layout Standard
23622 \begin_inset Flex Code
23625 \begin_layout Plain Layout
23633 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23634 コードで以下のコマンドを挿入すれば,実現できます.
23637 \begin_layout LyX-Code
23642 columnseprulecolor}{
23647 \begin_layout Standard
23649 \begin_inset Flex Code
23652 \begin_layout Plain Layout
23660 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23661 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23664 \begin_layout LyX-Code
23669 columnseprulecolor}{
23674 \begin_layout Standard
23676 \begin_inset space \thinspace{}
23682 \begin_layout Standard
23686 \begin_layout Plain Layout
23695 \begin_layout Plain Layout
23701 columnseprulecolor}{
23711 \begin_layout Standard
23712 \begin_inset Flex Multiple Columns
23715 \begin_layout Plain Layout
23718 \begin_inset Quotes eld
23721 You're surprised to see me, sir,
23722 \begin_inset Quotes erd
23725 said he, in a strange, croaking voice.
23728 \begin_layout Plain Layout
23731 I acknowledged that I was.
23734 \begin_layout Plain Layout
23737 \begin_inset Quotes eld
23740 Well, I've a conscience, sir, and when I chanced to see you go into this
23741 house, as I came hobbling after you, I thought to myself, I'll just step
23742 in and see that kind gentleman, and tell him that if I was a bit gruff
23743 in my manner there was not any harm meant, and that I am much obliged to
23744 him for picking up my books.
23745 \begin_inset Quotes erd
23751 \begin_layout Plain Layout
23754 \begin_inset Quotes eld
23757 You make too much of a trifle,
23758 \begin_inset Quotes erd
23763 \begin_inset Quotes eld
23766 May I ask how you knew who I was?
23767 \begin_inset Quotes erd
23773 \begin_layout Plain Layout
23776 \begin_inset Quotes eld
23779 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23780 you'll find my little bookshop at the corner of Church Street, and very
23781 happy to see you, I am sure.
23782 Maybe you collect yourself, sir.
23786 \begin_inset space ~
23799 –a bargain, every one of them.
23800 With five volumes you could just fill that gap on that second shelf.
23801 It looks untidy, does it not, sir?
23802 \begin_inset Quotes erd
23813 \begin_layout Standard
23817 \begin_layout Plain Layout
23823 columnseprule}{0pt}
23826 \begin_layout Plain Layout
23832 columnseprulecolor}{
23840 \begin_inset Note Note
23843 \begin_layout Plain Layout
23846 go back to the default
23854 \begin_layout Standard
23855 \begin_inset Newpage newpage
23861 \begin_layout Section
23865 \begin_layout Standard
23868 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23873 モジュールを読み込んで,\SpecialChar LaTeX
23875 \begin_inset Flex Code
23878 \begin_layout Plain Layout
23885 を使用させるようにすれば,実現できます.
23888 \begin_layout Subsection
23892 \begin_layout Standard
23900 \begin_layout Standard
23901 \begin_inset Tabular
23902 <lyxtabular version="3" rows="13" columns="3">
23903 <features booktabs="true" islongtable="true" longtabularalignment="center">
23904 <column alignment="center" valignment="middle" width="16col%">
23905 <column alignment="center" valignment="middle" width="40col%">
23906 <column alignment="center" valignment="middle" width="35col%">
23907 <row endhead="true">
23908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23911 \begin_layout Plain Layout
23917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23920 \begin_layout Plain Layout
23926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23929 \begin_layout Plain Layout
23937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23940 \begin_layout Plain Layout
23946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23949 \begin_layout Plain Layout
23950 丸い穴の開いたドーナツ型(CD/DVD大)
23955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23958 \begin_layout Plain Layout
23959 伸縮不可.多くの文字を入れられないことに注意.
23966 <cell alignment="center" valignment="top" topline="true" usebox="none">
23969 \begin_layout Plain Layout
23975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23978 \begin_layout Plain Layout
23984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23987 \begin_layout Plain Layout
23995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23998 \begin_layout Plain Layout
24004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24007 \begin_layout Plain Layout
24009 \begin_inset Quotes eld
24013 \begin_inset Quotes erd
24021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24024 \begin_layout Plain Layout
24032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24035 \begin_layout Plain Layout
24041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24044 \begin_layout Plain Layout
24050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24053 \begin_layout Plain Layout
24061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24064 \begin_layout Plain Layout
24070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24073 \begin_layout Plain Layout
24079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24082 \begin_layout Plain Layout
24090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24093 \begin_layout Plain Layout
24099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24102 \begin_layout Plain Layout
24108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24111 \begin_layout Plain Layout
24119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24122 \begin_layout Plain Layout
24128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24131 \begin_layout Plain Layout
24137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24140 \begin_layout Plain Layout
24148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24151 \begin_layout Plain Layout
24157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24160 \begin_layout Plain Layout
24166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24169 \begin_layout Plain Layout
24177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24180 \begin_layout Plain Layout
24186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24189 \begin_layout Plain Layout
24195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24198 \begin_layout Plain Layout
24206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24209 \begin_layout Plain Layout
24215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24218 \begin_layout Plain Layout
24224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24227 \begin_layout Plain Layout
24235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24238 \begin_layout Plain Layout
24245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24248 \begin_layout Plain Layout
24255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24258 \begin_layout Plain Layout
24266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24269 \begin_layout Plain Layout
24271 \begin_inset Newline newline
24279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24282 \begin_layout Plain Layout
24288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24291 \begin_layout Plain Layout
24305 \begin_layout Standard
24306 段落に形を適用するには,\SpecialChar LyX
24307 ツールバー中の環境プルダウンボックスから形を選んでください.
24310 \begin_layout Standard
24311 \begin_inset Newpage newpage
24317 \begin_layout Standard
24321 \begin_layout Standard
24322 \begin_inset VSpace bigskip
24331 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24332 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24334 At vero eos et accusam et justo duo dolores et ea rebum.
24335 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24337 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24338 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24342 \begin_layout Standard
24343 \begin_inset VSpace bigskip
24349 \begin_layout Standard
24350 \begin_inset Note Greyedout
24353 \begin_layout Plain Layout
24361 段落は改頁にまたがることはできません.
24369 \begin_layout Standard
24370 \begin_inset VSpace bigskip
24376 \begin_layout Standard
24377 \begin_inset Flex Code
24380 \begin_layout Plain Layout
24387 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24388 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24391 \begin_layout Standard
24392 \begin_inset Newpage newpage
24401 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24402 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24404 At vero eos et accusam et justo duo dolores et ea rebum.
24405 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24407 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24408 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24410 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24411 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24413 At vero eos et accusam et justo duo dolores et ea rebum.
24414 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24416 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24417 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24421 \begin_layout Standard
24422 \begin_inset VSpace bigskip
24428 \begin_layout Standard
24433 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24434 \begin_inset Newline newline
24445 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24446 \begin_inset Quotes eld
24449 Arithmetic overflow
24450 \begin_inset Quotes erd
24453 という\SpecialChar LaTeX
24454 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24457 \begin_layout Standard
24458 \begin_inset VSpace bigskip
24464 \begin_layout Standard
24465 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24466 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24471 arg "specialchar-insert hyphenation"
24476 )を指定することが往々にして必要になります.
24479 \begin_layout Standard
24480 \begin_inset VSpace bigskip
24486 \begin_layout Standard
24487 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24488 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24489 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24490 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24493 \begin_layout Standard
24494 \begin_inset Newpage newpage
24500 \begin_layout Heart
24504 Lo\SpecialChar softhyphen
24505 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24506 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24508 At vero eos et accusam et justo duo dolores et ea rebum.
24509 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24513 \begin_layout Standard
24514 \begin_inset VSpace bigskip
24520 \begin_layout Standard
24523 \begin_inset Box Frameless
24533 height_special "totalheight"
24538 backgroundcolor "none"
24541 \begin_layout Heart
24545 Lo\SpecialChar softhyphen
24546 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24547 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24549 At vero eos et accusam et justo duo dolores et ea rebum.
24550 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24559 \begin_layout Subsection
24563 \begin_layout Standard
24564 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24565 ように,コンピューターに座標を計算させる方法もあります.
24568 \begin_layout Enumerate
24570 \begin_inset CommandInset href
24573 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24581 \begin_layout Enumerate
24588 TeX/LaTeX\SpecialChar menuseparator
24589 Settings\SpecialChar menuseparator
24592 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24593 \begin_inset space \thinspace{}
24599 \begin_layout Enumerate
24603 \begin_layout Enumerate
24606 TeX/LaTeX\SpecialChar menuseparator
24609 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24613 \begin_layout Plain Layout
24615 \begin_inset CommandInset href
24617 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24630 \begin_layout Standard
24631 座標は\SpecialChar TeX
24632 ファイルに書き込まれます.これを\SpecialChar LyX
24636 \begin_layout Enumerate
24637 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24640 \begin_layout Enumerate
24644 挿入\SpecialChar menuseparator
24645 ファイル\SpecialChar menuseparator
24659 \begin_layout Standard
24660 \begin_inset VSpace defskip
24666 \begin_layout Standard
24667 \begin_inset Note Greyedout
24670 \begin_layout Plain Layout
24675 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24683 \begin_layout Standard
24684 \begin_inset VSpace bigskip
24690 \begin_layout Standard
24694 \begin_layout Standard
24695 \begin_inset VSpace bigskip
24701 \begin_layout Standard
24702 \begin_inset CommandInset include
24704 filename "/Applications/LyX-2.3.0dev.app/Contents/Resources/doc/SpecialParagraphShape.tex"
24710 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24711 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24713 At vero eos et accusam et justo duo dolores et ea rebum.
24714 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24716 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24717 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24721 \begin_layout Standard
24722 \begin_inset VSpace bigskip
24728 \begin_layout Standard
24736 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24740 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24743 \begin_layout Standard
24744 \begin_inset VSpace bigskip
24750 \begin_layout Standard
24763 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24767 \begin_layout Plain Layout
24768 これらのコマンドは,上述の全ての形で内部的に使用されています.
24773 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24774 \begin_inset Flex Code
24777 \begin_layout Plain Layout