1 #LyX 2.4 created this file. For more info see https://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,bookmarkpackage=false
44 \use_default_options false
53 \maintain_unincluded_children false
56 InsetLayout Flex:MenuItem
65 \newcommand*{\menuitem}[1]{{\sffamily #1}}
70 \language_package default
73 \font_roman "lmodern" "IPAexMincho"
74 \font_sans "default" "IPAexGothic"
75 \font_typewriter "default" "default"
76 \font_math "auto" "auto"
77 \font_default_family default
78 \use_non_tex_fonts false
81 \font_sf_scale 100 100
82 \font_tt_scale 100 100
84 \use_dash_ligatures false
86 \default_output_format default
88 \bibtex_command default
89 \index_command default
93 \pdf_title "LyX's Additional Features manual"
94 \pdf_author "LyX Team"
95 \pdf_subject "LyX's additional features documentation"
96 \pdf_keywords "LyX, Documentation, Additional"
98 \pdf_bookmarksnumbered true
99 \pdf_bookmarksopen false
100 \pdf_bookmarksopenlevel 1
101 \pdf_breaklinks false
105 \pdf_pdfusetitle false
106 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
109 \use_package amsmath 1
110 \use_package amssymb 1
111 \use_package cancel 1
113 \use_package mathdots 1
114 \use_package mathtools 1
115 \use_package mhchem 1
116 \use_package stackrel 1
117 \use_package stmaryrd 1
118 \use_package undertilde 1
120 \cite_engine_type default
124 \paperorientation portrait
129 \notefontcolor #0000ff
136 \paragraph_separation indent
137 \paragraph_indentation default
139 \math_indentation default
140 \math_numbering_side default
141 \quotes_style english
145 \paperpagestyle headings
147 \tracking_changes false
148 \output_changes false
159 \begin_inset Newline newline
173 \begin_layout Plain Layout
174 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
176 \begin_inset Flex Code
179 \begin_layout Plain Layout
182 <lyx-docs@lists.lyx.org>
187 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
195 \begin_layout Standard
196 \begin_inset CommandInset toc
197 LatexCommand tableofcontents
204 \begin_layout Chapter
208 \begin_layout Standard
218 』の第二部です.これらの文書を別部とした理由は,単純に『
226 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
227 プロジェクトチームは,\SpecialChar LyX
228 を各設定ファイルと外部パッケージによって拡張
229 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
230 パッケージをサポートしたい場合に,\SpecialChar LyX
231 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
232 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
233 な形での貢献を文書化する冊子として位置付けられています.
236 \begin_layout Standard
237 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
238 しています.さらに,\SpecialChar LaTeX
239 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
240 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
242 ることを企図しているため,\SpecialChar LaTeX
243 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
246 \begin_layout Standard
251 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
255 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
259 』をよくお読みになって,\SpecialChar LyX
263 \begin_layout Standard
264 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
266 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
267 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
269 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
273 \begin_layout Chapter
279 \begin_layout Section
285 \begin_layout Standard
296 熟練者と\SpecialChar LaTeX
297 に興味のある方向けの章です.ここでは,\SpecialChar LyX
299 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
301 を多少なりともご存知であることを前提とします.
304 \begin_layout Standard
315 は,「\SpecialChar LaTeX
334 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
335 のフロントエンドは,いくつも出回っています
339 \begin_layout Plain Layout
349 有名なものとしては,Linux上の\SpecialChar TeX
350 makerとkile,OSX上の\SpecialChar TeX
351 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
357 .これらは,基本的に\SpecialChar LaTeX
358 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
359 も,エディタであり,\SpecialChar LaTeX
361 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
380 を効果的に使うのに,\SpecialChar LaTeX
381 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
382 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
383 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
394 \begin_inset Flex MenuItem
397 \begin_layout Plain Layout
424 \begin_inset Flex MenuItem
427 \begin_layout Plain Layout
430 エクスポート\SpecialChar menuseparator
455 \begin_inset Flex MenuItem
458 \begin_layout Plain Layout
461 表示\SpecialChar menuseparator
477 \begin_inset Flex Code
480 \begin_layout Plain Layout
488 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
489 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
498 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
501 \begin_layout Standard
511 自動的に\SpecialChar LaTeX
512 を実行するコマンドが,以下のようにいくつかあります.
515 \begin_layout Itemize
516 \begin_inset Flex MenuItem
519 \begin_layout Plain Layout
520 表示\SpecialChar menuseparator
529 \begin_layout Itemize
532 \begin_inset Flex MenuItem
535 \begin_layout Plain Layout
538 表示\SpecialChar menuseparator
539 更新\SpecialChar menuseparator
550 \begin_layout Standard
560 これらは,最後に\SpecialChar LaTeX
561 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
565 \begin_layout Standard
576 が編集中のファイルを\SpecialChar LaTeX
577 にかけるとき,\SpecialChar LyX
581 \begin_layout Enumerate
591 文書を\SpecialChar LaTeX
593 \begin_inset Flex Code
596 \begin_layout Plain Layout
612 \begin_inset Flex Code
615 \begin_layout Plain Layout
633 \begin_layout Enumerate
644 \begin_inset Flex Code
647 \begin_layout Plain Layout
662 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
663 を実行し,\SpecialChar LaTeX
664 ファイルをコンパイルするのに必要な他のコマンド(
665 \begin_inset Flex Code
668 \begin_layout Plain Layout
684 \begin_inset Flex Code
687 \begin_layout Plain Layout
705 \begin_layout Enumerate
718 \begin_layout Standard
739 \begin_inset Flex MenuItem
742 \begin_layout Plain Layout
745 表示\SpecialChar menuseparator
760 を使用して実行した場合には,\SpecialChar LyX
761 はこの後,DVIビューアを実行してDVIファイルを表示します.
762 \begin_inset Flex MenuItem
765 \begin_layout Plain Layout
775 表示\SpecialChar menuseparator
781 を使用した場合には,\SpecialChar LyX
785 \begin_layout Itemize
795 \begin_inset Flex Code
798 \begin_layout Plain Layout
836 \begin_layout Itemize
846 \begin_inset Flex Code
849 \begin_layout Plain Layout
857 などのPostScriptビューアを実行して,PostScript
869 \begin_layout Standard
871 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
874 \begin_layout Section
876 ファイルを\SpecialChar LyX
880 \begin_layout Standard
885 \begin_inset Flex MenuItem
888 \begin_layout Plain Layout
891 ファイル\SpecialChar menuseparator
892 インポート\SpecialChar menuseparator
907 コマンドを使用すると,\SpecialChar LaTeX
925 にインポートすることができます.このコマンドは,
935 \begin_inset Flex Code
938 \begin_layout Plain Layout
965 \begin_inset Flex Code
968 \begin_layout Plain Layout
979 \begin_inset Flex Code
982 \begin_layout Plain Layout
990 を生成します.\SpecialChar LyX
995 \begin_layout Plain Layout
996 \begin_inset Flex Code
999 \begin_layout Plain Layout
1005 は,もちろんコマンドラインから実行することもできます.
1013 \begin_layout Standard
1016 \begin_inset Flex Code
1019 \begin_layout Plain Layout
1036 は,文法的に正しい\SpecialChar LaTeX
1037 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1047 \begin_inset Flex Code
1050 \begin_layout Plain Layout
1067 は,理解不能な部分は\SpecialChar TeX
1068 コードボックスの形で残しますので,ファイルを
1078 \begin_inset Flex Code
1081 \begin_layout Plain Layout
1098 で変換したのち,\SpecialChar TeX
1099 コードボックスを探して,手動で正しく編集してください.
1102 \begin_layout Standard
1113 コードボックスがなにかご存じなければ,次節をお読みください.
1116 \begin_layout Section
1120 \begin_inset CommandInset label
1122 name "sec:TeXコードを挿入する"
1129 \begin_layout Standard
1140 文書にもつねに\SpecialChar TeX
1141 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1142 にできることは,つねに\SpecialChar LyX
1143 でも行うことができます.一方,\SpecialChar LyX
1144 は,すべての\SpecialChar LaTeX
1145 構成物を\SpecialChar LyX
1147 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1148 コマンドを\SpecialChar LyX
1150 \begin_inset Flex Code
1153 \begin_layout Plain Layout
1179 \begin_inset Flex MenuItem
1182 \begin_layout Plain Layout
1185 挿入\SpecialChar menuseparator
1210 \begin_inset Flex Ruby
1213 \begin_layout Plain Layout
1233 \begin_inset Argument post:1
1236 \begin_layout Plain Layout
1248 \begin_inset Flex Ruby
1251 \begin_layout Plain Layout
1262 \begin_inset Argument post:1
1265 \begin_layout Plain Layout
1294 \begin_layout Standard
1295 以下は,\SpecialChar LaTeX
1296 コマンドを\SpecialChar LyX
1297 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1300 \begin_layout LyX-Code
1304 \begin_inset Newline newline
1309 begin{minipage}{5cm}
1310 \begin_inset Newline newline
1314 \begin_inset Newline newline
1318 \begin_inset Newline newline
1322 \begin_inset Newline newline
1326 \begin_inset Newline newline
1330 \begin_inset Newline newline
1336 \begin_inset Newline newline
1340 \begin_inset Newline newline
1345 begin{minipage}{5cm}
1346 \begin_inset Newline newline
1352 \begin_inset Newline newline
1357 begin{minipage}{5cm}
1358 \begin_inset Newline newline
1363 \begin_inset Newline newline
1369 \begin_inset Newline newline
1375 \begin_inset Newline newline
1381 \begin_inset Newline newline
1389 \begin_layout LyX-Code
1393 \begin_layout Standard
1395 \begin_inset Flex Code
1398 \begin_layout Plain Layout
1405 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1406 上でご覧になっていれば,\SpecialChar TeX
1407 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1411 \begin_layout Standard
1412 \begin_inset VSpace bigskip
1419 \begin_layout Plain Layout
1426 \begin_layout Plain Layout
1430 begin{minipage}{5cm}
1433 \begin_layout Plain Layout
1435 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます.
1440 \begin_layout Plain Layout
1445 \begin_layout Plain Layout
1449 begin{minipage}{5cm}
1452 \begin_layout Plain Layout
1459 \begin_layout Plain Layout
1463 begin{minipage}{5cm}
1466 \begin_layout Plain Layout
1474 \begin_layout Plain Layout
1481 \begin_layout Plain Layout
1488 \begin_layout Plain Layout
1498 \begin_inset VSpace bigskip
1504 \begin_layout Standard
1515 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1516 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1517 \begin_inset Flex MenuItem
1520 \begin_layout Plain Layout
1530 挿入\SpecialChar menuseparator
1531 ファイル\SpecialChar menuseparator
1537 を使用する方法もあります(取り込みの型として
1538 \begin_inset Flex Code
1541 \begin_layout Plain Layout
1556 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1574 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1575 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1578 \begin_layout Standard
1588 最後に,いくつか強調しておくべきことがあります.
1591 \begin_layout Itemize
1602 は,あなたの\SpecialChar LaTeX
1624 \begin_layout Itemize
1634 車輪の再発明をしないようにご注意ください.
1637 \begin_layout Standard
1647 二番目の点に関して,\SpecialChar LyX
1648 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1649 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1650 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1651 う膨大な数の\SpecialChar LaTeX
1662 \begin_inset CommandInset href
1665 target "http://www.ctan.org/"
1680 \begin_inset CommandInset ref
1682 reference "chap:Special-features"
1689 \begin_layout Standard
1699 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1700 関連書籍を参考とするようにしてください.『
1718 』の書誌情報に多くの\SpecialChar LaTeX
1722 \begin_layout Section
1728 \begin_layout Subsection
1733 \begin_layout Standard
1743 すでに\SpecialChar LaTeX
1744 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1745 ずです.詳しくは\SpecialChar LaTeX
1746 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1747 文書の\SpecialChar LaTeX
1748 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1752 \begin_layout Standard
1763 プリアンブルは,\SpecialChar LaTeX
1782 の部分に来ます.ここでは以下のことを行います.
1785 \begin_layout Itemize
1795 文書クラス(ドキュメントクラス)の宣言.
1796 \begin_inset Newline newline
1800 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1801 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1819 』をご覧になれば,\SpecialChar LyX
1820 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1823 \begin_layout Itemize
1834 \begin_inset Newline newline
1838 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1839 提供されることに加え,文書に変更を加えることができます.例えば
1858 \begin_inset Flex Code
1861 \begin_layout Plain Layout
1869 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1872 \begin_layout Itemize
1883 \begin_inset Newline newline
1887 のカウンタと変数の中には,プリアンブルでグローバルに
1907 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1908 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1911 \begin_layout Itemize
1922 \begin_inset Flex Code
1925 \begin_layout Plain Layout
1943 \begin_inset Flex Code
1946 \begin_layout Plain Layout
1964 \begin_inset Newline newline
1967 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1968 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1986 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1987 コードがあふれている場合には便利でしょう.
1990 \begin_layout Standard
2002 \begin_inset Flex Code
2005 \begin_layout Plain Layout
2020 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2021 の生成する\SpecialChar LaTeX
2025 \begin_layout Subsection
2029 \begin_layout Standard
2041 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2042 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2043 \begin_inset Flex MenuItem
2046 \begin_layout Plain Layout
2056 文書\SpecialChar menuseparator
2063 \begin_inset Flex MenuItem
2066 \begin_layout Plain Layout
2082 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2093 \begin_inset Flex MenuItem
2096 \begin_layout Plain Layout
2113 ダイアログ内のすべてのものを,\SpecialChar LyX
2114 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2116 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2127 プリアンブルコードが正しいことを確認してください.
2140 \begin_inset Flex Code
2143 \begin_layout Plain Layout
2160 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2163 \begin_layout Subsection
2167 \begin_layout Standard
2177 以下は,プリアンブルに追加できるものとその効果を示す例です.
2180 \begin_layout Subsubsection
2184 \begin_layout Standard
2214 \begin_inset Flex Code
2217 \begin_layout Plain Layout
2237 \begin_inset Flex Code
2240 \begin_layout Plain Layout
2259 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2260 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2261 \begin_inset Flex Code
2264 \begin_layout Plain Layout
2284 \begin_inset Flex Code
2287 \begin_layout Plain Layout
2302 \begin_layout Standard
2312 \begin_inset Flex Code
2315 \begin_layout Plain Layout
2335 \begin_inset Flex Code
2338 \begin_layout Plain Layout
2357 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2358 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2359 を使用していて,シスアドがお馬鹿さんである
2361 \begin_inset Flex Code
2364 \begin_layout Plain Layout
2384 \begin_inset Flex Code
2387 \begin_layout Plain Layout
2406 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2409 \begin_layout LyX-Code
2417 \begin_layout LyX-Code
2425 \begin_layout Standard
2438 \begin_layout Subsubsection
2442 \begin_layout Standard
2452 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2453 \begin_inset Flex Code
2456 \begin_layout Plain Layout
2464 という\SpecialChar LaTeX
2465 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2466 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2470 \begin_layout Standard
2481 \begin_inset Flex Code
2484 \begin_layout Plain Layout
2492 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2495 \begin_layout LyX-Code
2501 \begin_layout LyX-Code
2507 \begin_layout LyX-Code
2513 \begin_layout LyX-Code
2519 \begin_layout LyX-Code
2525 \begin_layout LyX-Code
2531 \begin_layout LyX-Code
2537 \begin_layout Standard
2556 Averyラベルシートのストック5360
2565 番を使用する場合の設定です.これで,各宛名を
2566 \begin_inset Flex Code
2569 \begin_layout Plain Layout
2589 \begin_inset Flex Code
2592 \begin_layout Plain Layout
2611 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2612 \begin_inset Flex Code
2615 \begin_layout Plain Layout
2626 \begin_layout Standard
2636 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2637 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2640 \begin_layout Subsubsection
2644 \begin_layout Standard
2674 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2691 \begin_layout Standard
2701 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2719 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2723 \begin_layout Standard
2733 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2737 \begin_layout LyX-Code
2740 usepackage{indentfirst}
2743 \begin_layout Standard
2753 もしお使いの\SpecialChar TeX
2754 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2757 \begin_layout Subsubsection
2761 \begin_layout Standard
2771 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2781 \begin_inset CommandInset ref
2783 reference "chap:Special-features"
2796 章には,他の例や,\SpecialChar LaTeX
2800 \begin_layout Section
2802 および\SpecialChar LaTeX
2806 \begin_layout Standard
2818 を呼び出す際,\SpecialChar LyX
2820 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2821 は,\SpecialChar LaTeX
2822 の実行ログファイルを事後処理用に使います.ログファイルを分
2823 析したのち,\SpecialChar LyX
2824 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2825 ファイル中,そのエラーの発生した場所に表示を移動します
2829 \begin_layout Plain Layout
2839 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2840 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2842 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2843 ーのある場所よりも後ろでエラーが報告されるのです.
2860 \begin_layout Standard
2870 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2871 \begin_inset Flex MenuItem
2874 \begin_layout Plain Layout
2884 文書\SpecialChar menuseparator
2890 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2895 \begin_layout Itemize
2898 \begin_inset Flex Code
2901 \begin_layout Plain Layout
2919 \begin_inset Newline newline
2922 これで始まるメッセージは,\SpecialChar LaTeX
2923 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2925 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2928 \begin_layout Itemize
2931 \begin_inset Flex Code
2934 \begin_layout Plain Layout
2952 \begin_inset Newline newline
2956 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2957 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2961 \begin_layout Itemize
2971 \begin_inset Flex Code
2974 \begin_layout Plain Layout
2985 \begin_inset Newline newline
3007 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3027 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3028 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3030 \begin_inset Newline newline
3033 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3042 文書\SpecialChar menuseparator
3043 設定\SpecialChar menuseparator
3071 をクリックすると,大幅な改善が見込めます.さらに,
3080 文書\SpecialChar menuseparator
3081 設定\SpecialChar menuseparator
3110 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3114 \begin_layout LyX-Code
3118 \begin_inset Newline newline
3124 \begin_inset Newline newline
3129 emergencystretch 1.5em
3130 \begin_inset Newline newline
3138 \begin_layout Standard
3139 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3143 \begin_layout Plain Layout
3145 \begin_inset Flex URL
3148 \begin_layout Plain Layout
3150 http://www.tex.ac.uk/FAQ-overfull.html
3163 \begin_layout Standard
3164 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3168 \begin_layout Plain Layout
3171 文書\SpecialChar menuseparator
3174 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3184 \begin_layout Itemize
3187 \begin_inset Flex Code
3190 \begin_layout Plain Layout
3201 \begin_inset Newline newline
3213 これは上の警告と違ってあまり出てきません.これも,
3232 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3235 \begin_layout Itemize
3236 \begin_inset Flex Code
3239 \begin_layout Plain Layout
3252 \begin_inset Flex Code
3255 \begin_layout Plain Layout
3268 \begin_inset Newline newline
3280 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3283 \begin_layout Itemize
3286 \begin_inset Flex Code
3289 \begin_layout Plain Layout
3293 \begin_inset Quotes els
3297 \begin_inset Quotes ers
3315 \begin_inset Newline newline
3318 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3319 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3321 \begin_inset Flex Code
3324 \begin_layout Plain Layout
3334 コマンドも使用していないとすれば,\SpecialChar LyX
3335 が読み込もうしているパッケージに存在しないものがあるということです.
3345 \begin_inset Flex MenuItem
3348 \begin_layout Plain Layout
3349 ヘルプ\SpecialChar menuseparator
3365 を使用して,\SpecialChar LyX
3366 が認識しているパッケージの一覧を得てください.このファイルは,(
3367 \begin_inset Flex MenuItem
3370 \begin_layout Plain Layout
3380 ツール\SpecialChar menuseparator
3386 を使用して)\SpecialChar LyX
3387 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3388 \begin_inset Newline newline
3401 \begin_inset Flex Code
3404 \begin_layout Plain Layout
3423 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3426 \begin_layout Itemize
3429 \begin_inset Flex Code
3432 \begin_layout Plain Layout
3435 LaTeX Error: Unknown option
3450 \begin_inset Newline newline
3453 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3457 \begin_layout Itemize
3460 \begin_inset Flex Code
3463 \begin_layout Plain Layout
3466 Undefined control sequence
3481 \begin_inset Newline newline
3484 お使いの文書に\SpecialChar LaTeX
3485 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3486 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3489 \begin_layout Standard
3499 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3500 のメッセージです.何を言っているのかさっぱりわからないものもあ
3501 りますが,通常これらは,\SpecialChar TeX
3502 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3520 手がかりがありません.誰もわからないのです.
3523 \begin_layout Standard
3533 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3536 \begin_layout Enumerate
3546 ご自分で挿入した\SpecialChar LaTeX
3547 コードに打ち間違いがないかどうか確かめる.
3550 \begin_layout Enumerate
3560 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3563 \begin_layout Enumerate
3573 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3574 \begin_inset Flex Code
3577 \begin_layout Plain Layout
3594 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3597 \begin_layout Enumerate
3607 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3608 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3609 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3613 \begin_layout Enumerate
3623 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3624 を微調整するオプションを使用していますか.特に,手動で
3625 \begin_inset Flex Code
3628 \begin_layout Plain Layout
3632 \begin_inset space ~
3641 \begin_inset Flex Code
3644 \begin_layout Plain Layout
3662 \begin_inset Flex Code
3665 \begin_layout Plain Layout
3682 などをたくさん挿入するなど,微調整オプションを
3700 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3703 \begin_layout Enumerate
3713 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3714 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3717 \begin_layout Enumerate
3719 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3720 はかなり嫌います.可能であれば,問題が生じな
3721 いように段落を修正するのが望ましいでしょう.
3724 \begin_layout Enumerate
3734 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3735 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3736 が原因です(\SpecialChar LaTeX
3740 \begin_layout Enumerate
3750 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3754 \begin_layout Enumerate
3767 \begin_layout Enumerate
3780 \begin_layout Standard
3794 \begin_layout Enumerate
3795 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3798 \begin_layout Standard
3830 \begin_layout Chapter
3834 \begin_layout Section
3836 あるいはBiblatexによる書誌情報のカスタマイズ
3839 \begin_layout Standard
3853 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3854 でサポートされている書誌情報の特別な機能について説明することとします.
3857 \begin_layout Subsection
3861 \begin_layout Standard
3862 標準のBib\SpecialChar TeX
3863 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3864 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3866 \begin_inset Flex Code
3869 \begin_layout Plain Layout
3876 \begin_inset Flex Code
3879 \begin_layout Plain Layout
3886 \begin_inset Flex Code
3889 \begin_layout Plain Layout
3895 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3897 \begin_inset Flex Code
3900 \begin_layout Plain Layout
3906 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3907 \begin_inset Flex Code
3910 \begin_layout Plain Layout
3916 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3917 \begin_inset Flex Code
3920 \begin_layout Plain Layout
3926 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3927 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3928 \begin_inset Flex Code
3931 \begin_layout Plain Layout
3937 をぜひとも考えるべきでしょう.ただし,同時に
3938 \begin_inset Flex Code
3941 \begin_layout Plain Layout
3947 はたいへん重く,リソース消費量も多いことに注意してください.
3950 \begin_layout Standard
3952 での各パッケージの取扱い方は,ほぼ同じです.
3953 \begin_inset Flex MenuItem
3956 \begin_layout Plain Layout
3957 文書\SpecialChar menuseparator
3964 \begin_inset Flex MenuItem
3967 \begin_layout Plain Layout
3974 \begin_inset Flex Noun
3977 \begin_layout Plain Layout
3984 \begin_inset Flex Noun
3987 \begin_layout Plain Layout
3988 Biblatex (Natbibモード)
3994 \begin_inset Flex Noun
3997 \begin_layout Plain Layout
4004 \begin_inset Flex Noun
4007 \begin_layout Plain Layout
4013 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4014 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4015 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4017 \begin_inset Flex Code
4020 \begin_layout Plain Layout
4026 に至っては,対話的なスタイルファイルビルダーさえ存在します
4030 \begin_layout Plain Layout
4031 \begin_inset Flex URL
4034 \begin_layout Plain Layout
4036 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4049 \begin_layout Subsection
4053 \begin_layout Standard
4054 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4055 でさえあります.残念ながら,Bib\SpecialChar TeX
4056 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4057 パッケージの助けを借りると,Bib\SpecialChar TeX
4058 をこのような必要性を満たすように拡張するこ
4062 \begin_layout Standard
4065 \begin_inset Flex Code
4068 \begin_layout Plain Layout
4078 \begin_layout Plain Layout
4079 \begin_inset Flex URL
4082 \begin_layout Plain Layout
4084 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4094 をそのままでサポートします.このパッケージの長所は,(
4095 \begin_inset Flex Code
4098 \begin_layout Plain Layout
4104 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4105 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4106 \begin_inset Flex Code
4109 \begin_layout Plain Layout
4116 \begin_inset Flex Code
4119 \begin_layout Plain Layout
4128 \begin_layout Standard
4129 \begin_inset Flex MenuItem
4132 \begin_layout Plain Layout
4133 文書\SpecialChar menuseparator
4140 \begin_inset Flex MenuItem
4143 \begin_layout Plain Layout
4150 \begin_inset Flex MenuItem
4153 \begin_layout Plain Layout
4159 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4161 \begin_inset Flex Code
4164 \begin_layout Plain Layout
4171 \begin_inset Flex Code
4174 \begin_layout Plain Layout
4180 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4181 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4182 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4184 \begin_inset Flex Code
4187 \begin_layout Plain Layout
4193 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4196 \begin_layout Standard
4214 \begin_inset Flex Noun
4217 \begin_layout Plain Layout
4223 オプションは無効になります.しかしながら,
4227 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4228 \begin_inset Flex Code
4231 \begin_layout Plain Layout
4237 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4238 \begin_inset Flex Noun
4241 \begin_layout Plain Layout
4247 ボタンを右クリックすると開くダイアログで,
4248 \begin_inset Flex Noun
4251 \begin_layout Plain Layout
4258 \begin_inset Flex Code
4261 \begin_layout Plain Layout
4268 \begin_inset Flex Noun
4271 \begin_layout Plain Layout
4278 \begin_inset Flex Code
4281 \begin_layout Plain Layout
4288 \begin_inset Flex Code
4291 \begin_layout Plain Layout
4305 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4313 \begin_layout Subsection
4315 \begin_inset CommandInset label
4317 name "subsec:複数の書誌情報"
4324 \begin_layout Standard
4325 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4326 ではサポートされています.これを有効にするためには,
4327 \begin_inset Flex Noun
4330 \begin_layout Plain Layout
4331 文書\SpecialChar menuseparator
4332 設定\SpecialChar menuseparator
4339 \begin_inset Flex Noun
4342 \begin_layout Plain Layout
4348 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4349 書誌情報を加えてください.出力時に,現在
4350 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4353 \begin_layout Standard
4355 を使用する場合には,複数の書誌情報を生成するのに,
4356 \begin_inset Flex Code
4359 \begin_layout Plain Layout
4366 \begin_inset Flex Code
4369 \begin_layout Plain Layout
4375 パッケージが使用されます.「子文書毎」を選択し,
4376 \begin_inset Flex Noun
4379 \begin_layout Plain Layout
4389 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4390 \begin_inset Flex Code
4393 \begin_layout Plain Layout
4403 \begin_layout Plain Layout
4405 \begin_inset Flex Noun
4408 \begin_layout Plain Layout
4416 \begin_inset CommandInset ref
4418 reference "sec:TeXコードを挿入する"
4426 \begin_inset Flex Code
4429 \begin_layout Plain Layout
4441 \begin_inset Flex Code
4444 \begin_layout Plain Layout
4450 パッケージが使用される場合,\SpecialChar LyX
4451 は特定の単位を生成するために,その単位を
4452 \begin_inset Flex Code
4455 \begin_layout Plain Layout
4462 \begin_inset Flex Code
4465 \begin_layout Plain Layout
4474 \begin_inset Flex Code
4477 \begin_layout Plain Layout
4485 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4486 \begin_inset Flex Code
4489 \begin_layout Plain Layout
4495 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4497 \begin_inset Flex Code
4500 \begin_layout Plain Layout
4509 \begin_inset Flex Code
4512 \begin_layout Plain Layout
4521 コードで入力して,自前の単位を生成することもできます.ただし,
4522 \begin_inset Flex Code
4525 \begin_layout Plain Layout
4531 は入れ子にすることができないことに注意してください.第二の制限は,
4532 \begin_inset Flex Code
4535 \begin_layout Plain Layout
4541 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4542 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4545 \begin_layout Standard
4551 \begin_inset Flex Code
4554 \begin_layout Plain Layout
4560 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4562 \begin_inset Flex Code
4565 \begin_layout Plain Layout
4574 \begin_inset Flex Code
4577 \begin_layout Plain Layout
4585 と書きます.単位の終了箇所も制御したい場合には,代わりに
4586 \begin_inset Flex Code
4589 \begin_layout Plain Layout
4599 \begin_inset Flex Code
4602 \begin_layout Plain Layout
4611 \begin_inset Flex Code
4614 \begin_layout Plain Layout
4620 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4624 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4625 献参照単位全て」を選択してください.この話題についての詳細は,
4632 \begin_layout Section
4636 \begin_layout Subsection
4640 \begin_layout Standard
4641 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4642 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4643 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4644 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4648 \begin_layout Plain Layout
4653 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4659 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4660 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4661 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4662 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4663 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4665 \begin_inset Flex Code
4668 \begin_layout Plain Layout
4677 \begin_inset Flex Code
4680 \begin_layout Plain Layout
4688 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4691 \begin_layout Standard
4695 挿入\SpecialChar menuseparator
4696 ファイル\SpecialChar menuseparator
4699 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4700 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4703 \begin_layout Standard
4704 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4705 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4708 \begin_layout Enumerate
4709 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4712 \begin_layout Enumerate
4713 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4717 \begin_layout Enumerate
4718 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4719 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4723 \begin_layout Standard
4724 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4725 \begin_inset Flex Code
4728 \begin_layout Plain Layout
4734 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4735 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4739 \begin_inset Flex MenuItem
4742 \begin_layout Plain Layout
4752 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4755 \begin_layout Standard
4756 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4757 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4761 \begin_layout Subsection
4765 \begin_layout Standard
4766 \begin_inset Box Shadowbox
4776 height_special "totalheight"
4781 backgroundcolor "none"
4784 \begin_layout Plain Layout
4785 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4793 \begin_layout Standard
4794 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4795 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4799 \begin_layout Subsection
4803 \begin_layout Standard
4804 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4805 ことがあります.以下にその方法を説明します.
4808 \begin_layout Standard
4809 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4810 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4813 \begin_layout Standard
4814 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4815 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4817 挿入\SpecialChar menuseparator
4818 派生枝\SpecialChar menuseparator
4821 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4823 文書\SpecialChar menuseparator
4824 設定...\SpecialChar menuseparator
4829 文書\SpecialChar menuseparator
4830 設定...\SpecialChar menuseparator
4833 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4836 \begin_layout Standard
4837 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4838 \begin_inset CommandInset ref
4840 reference "subsec:複数の書誌情報"
4850 \begin_layout Section
4855 \begin_layout Standard
4856 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4857 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4859 には,この過程を自動化するPythonスクリプト(
4860 \begin_inset Flex Code
4863 \begin_layout Plain Layout
4870 \begin_inset Flex Code
4873 \begin_layout Plain Layout
4880 \begin_inset Flex Code
4883 \begin_layout Plain Layout
4889 pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4890 \begin_inset Flex Code
4893 \begin_layout Plain Layout
4900 \begin_inset Flex Code
4903 \begin_layout Plain Layout
4909 ファイル形式が優先され,Windowsでは
4910 \begin_inset Flex Code
4913 \begin_layout Plain Layout
4922 \begin_layout Standard
4924 の環境構成時には,「\SpecialChar LyX
4925 書庫」を書き出すことができるようにスクリプトが準備され,
4926 \begin_inset Flex MenuItem
4929 \begin_layout Plain Layout
4930 ファイル\SpecialChar menuseparator
4939 \begin_layout Standard
4940 \begin_inset Flex MenuItem
4943 \begin_layout Plain Layout
4944 ツール\SpecialChar menuseparator
4945 設定\SpecialChar menuseparator
4946 ファイル処理\SpecialChar menuseparator
4953 \begin_inset Flex MenuItem
4956 \begin_layout Plain Layout
4958 \SpecialChar menuseparator
4966 \begin_inset Flex Code
4969 \begin_layout Plain Layout
4976 \begin_inset Flex Code
4979 \begin_layout Plain Layout
4985 スイッチを加えることで,プラットホームとは独立に,
4986 \begin_inset Flex Code
4989 \begin_layout Plain Layout
4996 \begin_inset Flex Code
4999 \begin_layout Plain Layout
5005 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5008 \begin_layout Section
5012 \begin_layout Standard
5013 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5014 \begin_inset Flex Code
5017 \begin_layout Plain Layout
5023 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5028 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5030 る必要のある\SpecialChar LaTeX
5034 \begin_layout Standard
5035 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5036 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5040 \begin_inset Flex Code
5043 \begin_layout Plain Layout
5058 \begin_inset Flex Code
5061 \begin_layout Plain Layout
5076 \begin_inset Flex Code
5079 \begin_layout Plain Layout
5092 \begin_inset Flex Code
5095 \begin_layout Plain Layout
5103 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5106 \begin_layout Standard
5114 \begin_layout Standard
5115 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5119 \begin_layout Standard
5125 \begin_inset Newline newline
5133 \begin_layout Standard
5134 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5135 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5138 \begin_layout Standard
5148 \begin_layout Standard
5156 \begin_layout Standard
5166 \begin_layout Standard
5174 \begin_layout Standard
5182 \begin_layout Standard
5192 \begin_layout Standard
5196 \begin_inset Flex Code
5199 \begin_layout Plain Layout
5216 \begin_inset Flex Code
5219 \begin_layout Plain Layout
5231 は,それぞれ\SpecialChar LaTeX
5232 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5233 \begin_inset Flex Code
5236 \begin_layout Plain Layout
5251 \begin_layout Standard
5252 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5253 フッタ罫線は0ptです.太さを変更するには,
5256 \begin_inset Flex Code
5259 \begin_layout Plain Layout
5266 headrulewidth}{0.4pt}
5276 \begin_inset Flex Code
5279 \begin_layout Plain Layout
5286 footrulewidth}{0.4pt}
5296 \begin_layout Standard
5297 \begin_inset Flex Code
5300 \begin_layout Plain Layout
5305 thispagestyle{empty}
5311 \begin_inset Flex Code
5314 \begin_layout Plain Layout
5319 thispagestyle{plain}
5325 \begin_inset Flex Code
5328 \begin_layout Plain Layout
5333 thispagestyle{fancy}
5338 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5340 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5341 (plain)になるように設定されているのです.
5344 \begin_layout Standard
5345 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5346 \begin_inset Flex Code
5349 \begin_layout Plain Layout
5357 パッケージの取扱説明書をご参照ください(
5358 \begin_inset Flex Code
5361 \begin_layout Plain Layout
5370 \begin_layout Standard
5371 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5374 \begin_layout Standard
5383 includegraphics{logo.eps}}}
5386 \begin_layout Standard
5388 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5389 \begin_inset Newline newline
5393 \begin_inset Flex Code
5396 \begin_layout Plain Layout
5401 usepackage{graphics}
5406 をプリアンブルに宣言する必要があります).
5409 \begin_layout Section
5411 \begin_inset CommandInset label
5420 \begin_layout Standard
5426 \begin_layout Subsection
5430 \begin_layout Standard
5432 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5433 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5437 \begin_layout Plain Layout
5438 正確には可能ですが,手動で行う必要があります.
5446 \begin_layout Subsection
5450 \begin_layout Standard
5452 \begin_inset Flex MenuItem
5455 \begin_layout Plain Layout
5456 文書\SpecialChar menuseparator
5463 \begin_inset Flex MenuItem
5466 \begin_layout Plain Layout
5475 \begin_layout Standard
5476 このダイアログは,ブリット形の一覧表を提示します.
5477 \begin_inset Flex MenuItem
5480 \begin_layout Plain Layout
5486 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5487 \begin_inset Flex MenuItem
5490 \begin_layout Plain Layout
5496 パネルは,変更したい階層を選択するものです.
5497 \begin_inset Flex MenuItem
5500 \begin_layout Plain Layout
5506 では,指定したい\SpecialChar LaTeX
5507 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5511 \begin_layout Standard
5512 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5516 \begin_layout Standard
5518 \begin_inset Tabular
5519 <lyxtabular version="3" rows="7" columns="2">
5520 <features tabularvalignment="middle">
5521 <column alignment="center" valignment="top" width="0pt">
5522 <column alignment="center" valignment="top" width="0pt">
5524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5527 \begin_layout Plain Layout
5533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5536 \begin_layout Plain Layout
5553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5556 \begin_layout Plain Layout
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5567 \begin_layout Plain Layout
5586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5589 \begin_layout Plain Layout
5604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5607 \begin_layout Plain Layout
5624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5627 \begin_layout Plain Layout
5642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5645 \begin_layout Plain Layout
5662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5665 \begin_layout Plain Layout
5680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5683 \begin_layout Plain Layout
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5703 \begin_layout Plain Layout
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5721 \begin_layout Plain Layout
5738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5741 \begin_layout Plain Layout
5756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5759 \begin_layout Plain Layout
5782 \begin_layout Standard
5784 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5786 パッケージが導入されていない可能性が大です
5790 \begin_layout Plain Layout
5792 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5800 \begin_layout Subsection
5804 \begin_layout Standard
5805 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5806 上には反映されませんが,文書の表示を行えば確認されます.
5809 \begin_layout Standard
5810 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5814 \begin_layout Plain Layout
5819 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5820 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5821 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5824 \begin_layout Plain Layout
5828 \begin_layout Plain Layout
5844 \begin_layout Plain Layout
5848 \begin_layout Plain Layout
5870 \begin_layout Itemize
5871 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5873 \begin_inset Flex Code
5876 \begin_layout Plain Layout
5886 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5887 更するために,以下の\SpecialChar LaTeX
5892 \begin_layout LyX-Code
5904 \begin_layout LyX-Code
5923 \begin_layout Itemize
5925 \begin_inset Flex Code
5928 \begin_layout Plain Layout
5936 コマンドの一部にローマ数字で指定されていることに注意してください.
5939 \begin_layout Itemize
5940 \begin_inset Argument item:1
5943 \begin_layout Plain Layout
5947 \begin_layout Plain Layout
5966 \begin_inset Flex Code
5969 \begin_layout Plain Layout
5976 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
5977 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
5980 \begin_inset Flex Code
5983 \begin_layout Plain Layout
6002 \begin_layout Plain Layout
6006 \begin_layout Plain Layout
6022 \begin_layout Plain Layout
6023 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6026 \begin_layout LyX-Code
6043 \begin_layout Chapter
6048 \begin_layout Standard
6050 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6051 は,常に外部変換子を用いることで実現されていました
6055 \begin_layout Plain Layout
6057 で外部変換子を使うことについての詳細は,取扱説明書『
6070 .これらは2つのグループに大別できます.1つは,
6071 \begin_inset Flex Code
6074 \begin_layout Plain Layout
6081 \begin_inset Flex Code
6084 \begin_layout Plain Layout
6091 \begin_inset Flex Code
6094 \begin_layout Plain Layout
6100 のように,\SpecialChar LaTeX
6101 を中間形式として用い,その\SpecialChar LaTeX
6102 を生成するのに\SpecialChar LyX
6104 \begin_inset Flex Code
6107 \begin_layout Plain Layout
6114 のように,直接\SpecialChar LyX
6115 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6118 \begin_layout Standard
6120 ベースの変換子は,原則として,\SpecialChar LaTeX
6121 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6123 たのか,\SpecialChar TeX
6124 コードで書かれたのかについては気にしません.これらの変換子は,
6125 \begin_inset Flex Code
6128 \begin_layout Plain Layout
6134 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6136 \begin_inset Flex Code
6139 \begin_layout Plain Layout
6145 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6146 は解析の非常に難しい言語であり—\SpecialChar TeX
6147 自身だけが\SpecialChar TeX
6148 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6150 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6154 』は,他の変換子では書き出しができるのに,
6155 \begin_inset Flex Code
6158 \begin_layout Plain Layout
6164 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6165 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6166 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6167 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6170 \begin_layout Standard
6172 \begin_inset Flex Code
6175 \begin_layout Plain Layout
6183 \begin_inset CommandInset href
6185 name "http://pinchito.es/elyxer/"
6186 target "http://pinchito.es/elyxer/"
6191 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6192 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6193 \begin_inset Flex Code
6196 \begin_layout Plain Layout
6202 よりも質が落ちます.これはHTMLの限界を示しています
6206 \begin_layout Plain Layout
6208 \begin_inset Flex Code
6211 \begin_layout Plain Layout
6218 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6224 .さらに重要なことは(少なくとも第1.1.1版においては),
6225 \begin_inset Flex Code
6228 \begin_layout Plain Layout
6235 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6237 \begin_inset Flex Code
6240 \begin_layout Plain Layout
6247 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6248 開発陣は別の方法を採ることとし,\SpecialChar LyX
6251 ことができるのと同様に,\SpecialChar LyX
6252 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6255 \begin_layout Standard
6256 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6260 \begin_layout Plain Layout
6263 \begin_inset CommandInset href
6266 target "https://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6272 \begin_inset Flex Code
6275 \begin_layout Plain Layout
6276 development/HTML/HTML.notes
6281 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6282 \begin_inset CommandInset href
6285 target "https://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"
6290 にあるXHTML関連バグ一覧も参照のこと.
6295 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6298 \begin_layout Standard
6299 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6300 の一部となっているため,\SpecialChar LyX
6301 が出力する文書について\SpecialChar LyX
6302 が関知しているところのものは,すべて知り得るというところから来ていま
6307 \begin_layout Plain Layout
6308 他には,これらのルーチンが\SpecialChar LyX
6309 内部にあるため,\SpecialChar LyX
6310 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6315 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6316 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6317 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6318 1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6321 \begin_layout Standard
6322 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6323 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6324 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6325 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6329 生成します.もし節見出しが,\SpecialChar LyX
6330 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6331 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6333 式とを区別しません.どちらの場合も,\SpecialChar LyX
6334 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6338 \begin_layout Standard
6339 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6340 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6348 \begin_layout Standard
6349 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6352 \begin_layout Section
6356 \begin_layout Standard
6358 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6361 \begin_layout Itemize
6363 \begin_inset Newline newline
6366 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6367 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6369 \begin_inset Newline newline
6373 \begin_inset Flex Code
6376 \begin_layout Plain Layout
6382 パッケージを使用していたり,\SpecialChar TeX
6383 コードを使用しているなどで,もし\SpecialChar LyX
6384 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6389 \begin_layout Itemize
6391 \begin_inset Newline newline
6395 \begin_inset Flex Code
6398 \begin_layout Plain Layout
6404 は,数式をCSSで装飾したHTMLとして出力します
6408 \begin_layout Plain Layout
6411 \begin_inset Flex Code
6414 \begin_layout Plain Layout
6420 からのHTML出力のために,CSSの一部を拝借しています.
6425 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6426 \begin_inset Flex Code
6429 \begin_layout Plain Layout
6435 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6436 \begin_inset Newline newline
6440 \begin_inset Flex Code
6443 \begin_layout Plain Layout
6449 パッケージを使用していたり,\SpecialChar TeX
6450 コードを使用しているなどで,もし\SpecialChar LyX
6451 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6456 \begin_layout Itemize
6458 \begin_inset Newline newline
6462 \begin_inset Flex Code
6465 \begin_layout Plain Layout
6471 のように,\SpecialChar LyX
6472 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6476 \begin_layout Plain Layout
6477 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6486 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6487 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6488 かったり,コピーが出来なかったりといったことがあります.
6489 \begin_inset Newline newline
6493 \begin_inset Flex MenuItem
6496 \begin_layout Plain Layout
6497 文書\SpecialChar menuseparator
6498 設定\SpecialChar menuseparator
6504 の「数式画像の伸縮」パラメータを変更することで制御できます
6508 \begin_layout Plain Layout
6509 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6515 \begin_inset Newline newline
6519 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6520 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6524 \begin_layout Itemize
6527 \begin_inset Newline newline
6530 最後に,\SpecialChar LyX
6531 は,数式を\SpecialChar LaTeX
6532 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6535 \begin_inset CommandInset href
6538 target "http://www.math.union.edu/~dpvc/jsMath/"
6543 のようなツールとともに使用することもできます.\SpecialChar LyX
6544 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6546 \begin_inset Flex Code
6549 \begin_layout Plain Layout
6556 \begin_inset Flex Code
6559 \begin_layout Plain Layout
6566 \begin_inset Flex Code
6569 \begin_layout Plain Layout
6578 \begin_layout Standard
6580 \begin_inset Flex MenuItem
6583 \begin_layout Plain Layout
6584 文書\SpecialChar menuseparator
6585 設定\SpecialChar menuseparator
6591 で選択しなくてはなりません.既定では,\SpecialChar LyX
6592 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6595 \begin_layout Standard
6596 最後に,\SpecialChar LyX
6597 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6601 \begin_layout Plain Layout
6602 その他にも,\SpecialChar LyX
6603 は,差込枠に\SpecialChar TeX
6604 コードが含まれていると画像出力に回帰するので,数式中に
6605 \begin_inset Formula $a=b\relax$
6608 のような無害な\SpecialChar TeX
6609 コードを挿入することによって,画像出力を強制することができます.
6617 \begin_layout Section
6621 \begin_layout Standard
6622 XHTML出力は,書誌情報と引用を完全にサポートしています.
6625 \begin_layout Standard
6626 引用ラベルは,\SpecialChar LyX
6627 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6628 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6629 使用している場合には,\SpecialChar LyX
6630 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6631 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6632 は,Bib\SpecialChar TeX
6633 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6634 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6637 \begin_layout Standard
6638 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6639 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6643 \begin_layout Standard
6644 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6649 \begin_inset Quotes eld
6652 Context and Logical Form
6653 \begin_inset Quotes erd
6658 Language in Context: Selected Essays
6660 (Oxford: Oxford University Press, 2007), pp.
6666 \begin_inset Quotes eld
6669 Semantics in Context
6670 \begin_inset Quotes erd
6675 Language in Context: Selected Essays
6677 (Oxford: Oxford University Press, 2007), pp.
6681 \begin_layout Standard
6682 これは,遠くないうちに修正されるでしょう.
6685 \begin_layout Standard
6686 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6687 は同じ情報を繰り返し出力してしまいます.
6690 \begin_layout Section
6694 \begin_layout Standard
6696 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6699 \begin_layout Standard
6704 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6708 \begin_layout Plain Layout
6709 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6710 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6711 で入力しなくてはならないようなものをそのまま入力しているのです.
6716 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6719 \begin_layout Itemize
6720 索引項目のグループ化(下層項目): \SpecialChar LyX
6721 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6722 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6725 \begin_layout Itemize
6726 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6730 \begin_layout Itemize
6731 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6732 が「|see\SpecialChar ldots
6733 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6737 \begin_layout Itemize
6738 索引項目の整序: \SpecialChar LyX
6739 は整序順の変更をサポートします.\SpecialChar LyX
6740 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6741 出します.現在のところ,\SpecialChar LyX
6742 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6745 \begin_layout Itemize
6746 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6747 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6748 うな文法はサポートされません.\SpecialChar LyX
6749 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6752 \begin_layout Itemize
6753 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6754 を印字しますので,その索引は必ず置くようにしてください.
6757 \begin_layout Section
6761 \begin_layout Standard
6762 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6765 \begin_layout Chapter
6770 \begin_layout Section
6774 \begin_layout Standard
6776 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6777 と通信したり,\SpecialChar LyX
6778 コマンドを実行させたり,\SpecialChar LyX
6779 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6780 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6781 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6785 \begin_layout Section
6788 \begin_inset CommandInset label
6790 name "sec:サーバーを開始するには"
6797 \begin_layout Standard
6799 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6800 \begin_inset Flex Code
6803 \begin_layout Plain Layout
6809 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6814 \begin_inset Flex Code
6817 \begin_layout Plain Layout
6829 に特別なオブジェクトとして置かれます),「
6830 \begin_inset Flex Code
6833 \begin_layout Plain Layout
6840 \begin_inset Flex Code
6843 \begin_layout Plain Layout
6849 」という名前がついています.外部プログラムは,
6850 \begin_inset Flex Code
6853 \begin_layout Plain Layout
6860 \begin_inset Flex Code
6863 \begin_layout Plain Layout
6870 \begin_inset Flex MenuItem
6873 \begin_layout Plain Layout
6874 ツール\SpecialChar menuseparator
6881 \begin_inset Flex Code
6884 \begin_layout Plain Layout
6885 /home/myhome/lyxpipe
6891 \begin_inset Flex Code
6894 \begin_layout Plain Layout
6908 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6909 \begin_inset Flex Code
6912 \begin_layout Plain Layout
6930 なども使用できます).サーバーを開始するためには,これを
6937 \begin_layout Standard
6940 \begin_inset Flex Code
6943 \begin_layout Plain Layout
6950 \begin_inset Flex Code
6953 \begin_layout Plain Layout
6959 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6961 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6962 らかの理由で,\SpecialChar LyX
6963 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6964 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6965 プを削除したのちに,\SpecialChar LyX
6966 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6970 \begin_layout Standard
6971 サーバーを使用する\SpecialChar LyX
6972 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6973 \begin_inset Flex Code
6976 \begin_layout Plain Layout
6982 ファイルを使用させるなど,別々の設定を使用する必要があります.
6985 \begin_layout Standard
6986 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6987 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6988 \begin_inset Flex Code
6991 \begin_layout Plain Layout
7000 \begin_layout Standard
7001 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7002 \begin_inset Newline newline
7006 \begin_inset Flex Code
7009 \begin_layout Plain Layout
7010 development/lyxserver/server_monitor.cpp
7018 \begin_layout Standard
7020 \begin_inset Flex Code
7023 \begin_layout Plain Layout
7024 src/client/lyxclient
7029 にあるコマンドラインベースのクライアントがあります.
7032 \begin_layout Section
7036 \begin_layout Standard
7038 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7055 \begin_layout Description
7056 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7058 る際,クライアント名をエコーするときだけです.
7061 \begin_layout Description
7062 関数 は,\SpecialChar LyX
7063 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7066 \begin_layout Description
7067 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7070 \begin_layout Standard
7089 \begin_layout Standard
7098 は,コマンド要求からそのままエコーされますが,
7102 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7103 の内部状態に関する情報を返しますが,空のデータ応答
7104 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7107 \begin_layout Standard
7108 エラーが発生した場合の\SpecialChar LyX
7126 \begin_layout Standard
7131 には,なぜコマンドが失敗したかの説明が入っているはずです.
7134 \begin_layout Standard
7138 \begin_layout LyX-Code
7139 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7140 \begin_inset Newline newline
7143 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7144 \begin_inset Newline newline
7147 read a <~/.lyxpipe.out
7148 \begin_inset Newline newline
7154 \begin_layout Section
7158 \begin_layout Standard
7160 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7161 \begin_inset Flex Ruby
7164 \begin_layout Plain Layout
7166 \begin_inset Argument post:1
7169 \begin_layout Plain Layout
7180 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7181 はこの通知を行います.\SpecialChar LyX
7186 \begin_inset Flex Code
7189 \begin_layout Plain Layout
7200 \begin_layout Standard
7205 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7208 \begin_layout Standard
7209 この機構は,\SpecialChar LyX
7210 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7211 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7212 コマンドを発行する\SpecialChar LyX
7217 \begin_layout Section
7222 \begin_layout Standard
7224 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7237 \begin_layout Standard
7242 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7243 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7245 とをクライアントに伝えるのには,\SpecialChar LyX
7249 \begin_layout Section
7253 \begin_layout Standard
7258 \begin_layout Plain Layout
7259 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7263 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7268 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7269 特定の場所をクリックすることによって,\SpecialChar LyX
7270 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7276 )を使用するか,\SpecialChar LyX
7277 が作業ディレクトリに生成するUNIXドメインソケット(
7282 \begin_inset Flex Code
7285 \begin_layout Plain Layout
7291 プログラムが\SpecialChar LyX
7292 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7293 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7295 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7296 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7297 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7298 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7301 \begin_layout Subsection
7302 \begin_inset CommandInset label
7311 \begin_layout Standard
7315 arg "buffer-toggle-output-sync"
7318 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7319 がすべてをうまくこなしてくれます.あるいは,
7320 \begin_inset Flex MenuItem
7323 \begin_layout Plain Layout
7324 文書\SpecialChar menuseparator
7325 設定\SpecialChar menuseparator
7332 \begin_inset Flex MenuItem
7335 \begin_layout Plain Layout
7341 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7342 は,自動的に,必要なSync\SpecialChar TeX
7343 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7345 \begin_inset Flex MenuItem
7348 \begin_layout Plain Layout
7354 ツールバーからも容易にアクセスすることができます.
7357 \begin_layout Standard
7358 もし,これとは別の設定が必要な場合には,
7359 \begin_inset Flex MenuItem
7362 \begin_layout Plain Layout
7363 文書\SpecialChar menuseparator
7364 設定\SpecialChar menuseparator
7365 出力\SpecialChar menuseparator
7371 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7374 \begin_layout Standard
7376 \begin_inset Flex Code
7379 \begin_layout Plain Layout
7387 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7388 \begin_inset Flex Code
7391 \begin_layout Plain Layout
7402 \begin_layout Standard
7404 \begin_inset Flex Code
7407 \begin_layout Plain Layout
7414 \begin_inset Flex Code
7417 \begin_layout Plain Layout
7423 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7424 \begin_inset Flex Code
7427 \begin_layout Plain Layout
7434 \begin_inset Flex Code
7437 \begin_layout Plain Layout
7443 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7446 \begin_layout Standard
7447 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7448 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7449 \begin_inset CommandInset ref
7451 reference "subsec:特定のビューアを設定して使うには"
7458 \begin_layout Subsection
7462 \begin_layout Standard
7464 は,遡及検索のために複数の方法を提供しています.ある方法は
7465 \begin_inset Flex Code
7468 \begin_layout Plain Layout
7474 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7475 頒布版が既に特定の方法を提供しているか(組み込みによ
7476 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7479 \begin_layout Subsubsection*
7480 src-special経由のDVI組み込み検索(DVIのみ)
7483 \begin_layout Standard
7484 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7485 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7488 \begin_inset Flex MenuItem
7491 \begin_layout Plain Layout
7492 設定\SpecialChar menuseparator
7493 ファイル処理\SpecialChar menuseparator
7500 \begin_inset Flex MenuItem
7503 \begin_layout Plain Layout
7510 \begin_inset Flex MenuItem
7513 \begin_layout Plain Layout
7514 LaTeX (plain)->DraftDVI
7520 \begin_inset Flex Code
7523 \begin_layout Plain Layout
7524 latex -src-specials $$i
7529 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7530 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7533 \begin_layout Subsubsection*
7534 外部パッケージ(PDFSyncおよびsrcltx)
7537 \begin_layout Standard
7546 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7547 プリアンブルで以下のようにパッケージを読み込んで
7551 \begin_layout Itemize
7553 \begin_inset Flex Code
7556 \begin_layout Plain Layout
7567 \begin_layout Itemize
7569 \begin_inset Flex Code
7572 \begin_layout Plain Layout
7575 usepackage[active]{srcltx}
7583 \begin_layout Standard
7584 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7587 \begin_layout LyX-Code
7591 \begin_inset Newline newline
7597 \begin_inset Newline newline
7603 \begin_inset Newline newline
7609 \begin_inset Newline newline
7614 usepackage[active]{srcltx}
7615 \begin_inset Newline newline
7623 \begin_layout Standard
7624 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7627 \begin_layout Standard
7628 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7632 \begin_layout Subsubsection*
7633 Sync\SpecialChar TeX
7634 を使った組み込み遡及検索(DVIおよびPDF)
7637 \begin_layout Standard
7638 \begin_inset Flex Code
7641 \begin_layout Plain Layout
7647 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7649 Sync\SpecialChar TeX
7652 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7653 るためには,少なくとも\SpecialChar TeX
7654 Live 2008か最近のMik\SpecialChar TeX
7655 頒布版が必要です.また,既にSync\SpecialChar TeX
7656 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7657 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7660 \begin_layout Standard
7661 DVI出力でSync\SpecialChar TeX
7663 \begin_inset Flex MenuItem
7666 \begin_layout Plain Layout
7667 設定\SpecialChar menuseparator
7668 ファイル処理\SpecialChar menuseparator
7675 \begin_inset Flex Noun
7678 \begin_layout Plain Layout
7679 LaTeX (plain) -> DVI
7685 \begin_inset Flex Noun
7688 \begin_layout Plain Layout
7689 LaTeX (plain) -> DraftDVI
7695 \begin_inset Flex Code
7698 \begin_layout Plain Layout
7699 latex -synctex=1 $$i
7705 \begin_inset Flex Noun
7708 \begin_layout Plain Layout
7709 LaTeX (pdflatex) -> PDF (pdflatex)
7715 \begin_inset Flex Code
7718 \begin_layout Plain Layout
7719 pdflatex -synctex=1 $$i
7724 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7725 で使うのに設定を行う必要があるかどうか,お
7726 使いのビューアの取扱説明書をご確認ください.
7730 \begin_layout Plain Layout
7731 \begin_inset Flex Code
7734 \begin_layout Plain Layout
7740 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7741 \begin_inset Flex Code
7744 \begin_layout Plain Layout
7758 \begin_layout Subsection
7760 \begin_inset CommandInset label
7762 name "subsec:特定のビューアを設定して使うには"
7769 \begin_layout Subsubsection*
7773 \begin_layout Standard
7776 \begin_inset Flex Code
7779 \begin_layout Plain Layout
7785 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7786 \begin_inset Flex Code
7789 \begin_layout Plain Layout
7795 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7796 ,Mac OS X上ではAlt-クリックで始動します).
7799 \begin_layout Standard
7800 しかし,何らかの理由で,\SpecialChar LyX
7801 と通信するのにソケットではなく命名パイプを使用したい場合には,
7802 \begin_inset Flex MenuItem
7805 \begin_layout Plain Layout
7806 設定\SpecialChar menuseparator
7807 ファイル処理\SpecialChar menuseparator
7814 \begin_inset Flex Code
7817 \begin_layout Plain Layout
7818 xdvi -editor "lyxeditor.sh %f %l"
7824 \begin_inset Flex Code
7827 \begin_layout Plain Layout
7833 は適切なスクリプト名)に変更してください
7837 \begin_layout Plain Layout
7839 \begin_inset Flex Code
7842 \begin_layout Plain Layout
7843 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7856 \begin_layout LyX-Code
7858 \begin_inset Newline newline
7861 LYXPIPE="/path/to/lyxpipe"
7862 \begin_inset Newline newline
7865 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7866 \begin_inset Newline newline
7869 echo "$COMMAND" > "${LYXPIPE}".in || exit
7870 \begin_inset Newline newline
7873 read TMP < "${LYXPIPE}".out || exit
7876 \begin_layout Standard
7878 \begin_inset Flex Code
7881 \begin_layout Plain Layout
7888 \begin_inset Flex MenuItem
7891 \begin_layout Plain Layout
7892 設定\SpecialChar menuseparator
7898 で指定したLyXServerパイプのパスを指定してください.
7902 \begin_layout Plain Layout
7904 \begin_inset Flex Code
7907 \begin_layout Plain Layout
7918 \begin_inset Flex Code
7921 \begin_layout Plain Layout
7935 \begin_layout Subsubsection*
7939 \begin_layout Standard
7940 \begin_inset Flex Code
7943 \begin_layout Plain Layout
7944 /Applications/MacDviX_Folder/calleditor.script
7952 \begin_layout LyX-Code
7953 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7954 \begin_inset Newline newline
7960 \begin_layout Standard
7961 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7962 を導入した場合には,それに従って上記の行を修正してください.
7965 \begin_layout Standard
7966 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7969 \begin_layout Subsubsection*
7973 \begin_layout Standard
7974 \begin_inset Flex MenuItem
7977 \begin_layout Plain Layout
7978 設定\SpecialChar menuseparator
7979 ファイル処理\SpecialChar menuseparator
7980 ファイル書式\SpecialChar menuseparator
7987 \begin_inset Flex Code
7990 \begin_layout Plain Layout
7991 open -a Skim.app $$i
7997 \begin_inset Flex MenuItem
8000 \begin_layout Plain Layout
8001 Skim\SpecialChar menuseparator
8002 設定\SpecialChar menuseparator
8011 \begin_layout Standard
8012 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8015 \begin_layout Subsubsection*
8019 \begin_layout Standard
8020 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8021 \begin_inset CommandInset href
8023 target "https://wiki.lyx.org/LyX/SyncTeX"
8031 \begin_layout Subsubsection*
8035 \begin_layout Standard
8036 \begin_inset Flex Noun
8039 \begin_layout Plain Layout
8040 設定\SpecialChar menuseparator
8041 Okularを設定\SpecialChar menuseparator
8047 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8048 \begin_inset Flex Code
8051 \begin_layout Plain Layout
8060 \begin_layout Standard
8061 遡及検索は,SHIFT-クリックで始動します.
8064 \begin_layout Subsubsection*
8068 \begin_layout Standard
8069 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8071 \begin_inset Flex MenuItem
8074 \begin_layout Plain Layout
8075 Edit\SpecialChar menuseparator
8076 Settings\SpecialChar menuseparator
8082 を開いて「Source editor」項目の入力フィールドをクリックし,
8083 \begin_inset Flex Code
8086 \begin_layout Plain Layout
8095 \begin_layout Standard
8096 遡及検索は,ダブルクリックで始動します.
8099 \begin_layout Subsubsection*
8103 \begin_layout Standard
8105 \begin_inset Flex MenuItem
8108 \begin_layout Plain Layout
8109 View\SpecialChar menuseparator
8115 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8116 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8118 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8119 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8120 \begin_inset Flex Code
8123 \begin_layout Plain Layout
8129 (以下参照)のあるディレクトリを見つけます.
8130 \begin_inset Flex Code
8133 \begin_layout Plain Layout
8140 \begin_inset Flex Code
8143 \begin_layout Plain Layout
8150 \begin_inset Flex Code
8153 \begin_layout Plain Layout
8163 を通じて\SpecialChar LyX
8164 と通信するためのラッパとして使用され,以下のようになっています.
8167 \begin_layout LyX-Code
8169 \begin_inset Newline newline
8172 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2>
8181 \begin_inset Newline newline
8195 \begin_layout Standard
8197 で指定した\SpecialChar LyX
8199 \begin_inset Flex Code
8202 \begin_layout Plain Layout
8217 \begin_inset Flex Code
8220 \begin_layout Plain Layout
8229 \begin_layout Standard
8230 yapでは,遡及検索はダブルクリックで始動します.
8233 \begin_layout Subsubsection*
8237 \begin_layout Standard
8238 SumatraPDFを遡及検索で使用するためには,
8239 \begin_inset Flex MenuItem
8242 \begin_layout Plain Layout
8243 設定\SpecialChar menuseparator
8244 ファイル処理\SpecialChar menuseparator
8245 ファイル書式\SpecialChar menuseparator
8252 \begin_inset Flex Code
8255 \begin_layout Plain Layout
8256 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8262 \begin_inset Flex Code
8265 \begin_layout Plain Layout
8271 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8274 \begin_layout Standard
8278 \begin_layout Subsubsection*
8282 \begin_layout Standard
8283 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8284 \begin_inset Flex MenuItem
8287 \begin_layout Plain Layout
8288 View\SpecialChar menuseparator
8294 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8295 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8297 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8298 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8299 \begin_inset Flex Code
8302 \begin_layout Plain Layout
8308 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8309 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8310 \begin_inset Flex Code
8313 \begin_layout Plain Layout
8320 \begin_inset Flex Code
8323 \begin_layout Plain Layout
8329 と指定してください.これによって,\SpecialChar LyX
8334 が使用されるようになります.何らかの理由で
8339 \begin_inset Flex Code
8342 \begin_layout Plain Layout
8348 オプションを削除して,\SpecialChar LyX
8350 Serverパイプパスを指定することを忘れないでください.
8353 \begin_layout Standard
8354 yapでは,遡及検索はダブルクリックで始動します.
8357 \begin_layout Subsubsection*
8361 \begin_layout Standard
8362 SumatraPDFを遡及検索で使用するためには,
8363 \begin_inset Flex MenuItem
8366 \begin_layout Plain Layout
8367 設定\SpecialChar menuseparator
8368 ファイル処理\SpecialChar menuseparator
8369 ファイル書式\SpecialChar menuseparator
8376 \begin_inset Flex Code
8379 \begin_layout Plain Layout
8386 \begin_inset Flex Code
8389 \begin_layout Plain Layout
8395 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8396 \begin_inset Flex Code
8399 \begin_layout Plain Layout
8408 \begin_layout LyX-Code
8410 \begin_inset Newline newline
8414 \begin_inset Newline newline
8417 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8420 \begin_layout Standard
8421 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8422 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8423 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8424 \begin_inset Flex Code
8427 \begin_layout Plain Layout
8442 \begin_inset Flex Code
8445 \begin_layout Plain Layout
8451 オプションを削除して,\SpecialChar LyX
8453 Serverパイプパスを指定することを忘れないでください.
8456 \begin_layout Standard
8460 \begin_layout Section
8464 \begin_layout Standard
8465 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8466 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8467 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8469 \begin_inset Flex MenuItem
8472 \begin_layout Plain Layout
8473 移動\SpecialChar menuseparator
8479 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8480 \begin_inset Flex MenuItem
8483 \begin_layout Plain Layout
8489 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8492 \begin_layout Standard
8493 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8494 ソースに関する情報を追加する必要があります.これは,第
8495 \begin_inset CommandInset ref
8497 reference "subsec:遡及検索"
8501 節に述べられている方法で実行することができます.
8504 \begin_layout Standard
8506 \begin_inset Flex MenuItem
8509 \begin_layout Plain Layout
8510 ツール\SpecialChar menuseparator
8511 設定\SpecialChar menuseparator
8512 出力\SpecialChar menuseparator
8518 で自分の使うビューアを利用するように,\SpecialChar LyX
8519 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8520 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8523 \begin_layout Itemize
8524 \begin_inset Flex Code
8527 \begin_layout Plain Layout
8536 \begin_layout Itemize
8537 \begin_inset Flex Code
8540 \begin_layout Plain Layout
8546 :書き出された(一時).texファイル名(パスを除く)
8549 \begin_layout Itemize
8550 \begin_inset Flex Code
8553 \begin_layout Plain Layout
8559 :書き出された(一時).texファイル名(パスを含む)
8562 \begin_layout Itemize
8563 \begin_inset Flex Code
8566 \begin_layout Plain Layout
8572 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8575 \begin_layout Standard
8580 \begin_layout Plain Layout
8581 \begin_inset Flex Noun
8584 \begin_layout Plain Layout
8585 ツール\SpecialChar menuseparator
8586 設定\SpecialChar menuseparator
8587 ファイル処理\SpecialChar menuseparator
8594 \begin_inset Flex Code
8597 \begin_layout Plain Layout
8608 ・qpdfview・Sumatra PDF
8612 \begin_layout Plain Layout
8613 SumatraPDFは,外部プログラムCMCDDE(
8614 \begin_inset CommandInset href
8616 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8621 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8626 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8630 \begin_layout Plain Layout
8631 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8632 \begin_inset CommandInset href
8634 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8648 \begin_layout Plain Layout
8649 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8650 \begin_inset CommandInset href
8652 target "https://wiki.lyx.org/LyX/SyncTeX"
8662 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8663 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8664 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8667 \begin_layout Standard
8668 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8669 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8670 チェックして),その形式に適切な設定を選択します.
8673 \begin_layout Chapter
8677 \begin_layout Section
8681 \begin_layout Standard
8687 \begin_layout Subsection
8691 \begin_layout Standard
8698 Astronomy and Astrophysics
8701 \begin_inset Flex URL
8704 \begin_layout Plain Layout
8706 https://www.aanda.org/
8711 )に投稿する論文を執筆するための\SpecialChar LyX
8712 の使用法を説明します.このパッケージは,FTPサイト
8715 \begin_layout Standard
8717 \begin_inset VSpace medskip
8721 \begin_inset Flex URL
8724 \begin_layout Plain Layout
8726 ftp://ftp.edpsciences.org/pub/aa/readme.html
8732 \begin_inset VSpace medskip
8738 \begin_layout Standard
8743 \begin_layout Standard
8744 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8748 \begin_layout Standard
8749 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8750 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8751 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8752 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8759 Dir/layouts/aapaper.layout
8764 \begin_layout Subsection
8768 \begin_layout Standard
8770 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8773 \begin_layout Itemize
8776 文書\SpecialChar menuseparator
8783 を選択してください(まぁ,これは自明ですね).
8786 \begin_layout Itemize
8791 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8794 \begin_layout Subsection
8798 \begin_layout Standard
8799 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8802 \begin_layout Itemize
8810 \begin_layout Itemize
8818 \begin_layout Itemize
8826 \begin_layout Itemize
8834 \begin_layout Itemize
8839 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8842 \begin_layout Itemize
8847 :[非必須]連絡用の電子メールアドレス.
8850 \begin_layout Itemize
8857 Received: <日付>; Accepted <日付>
8862 \begin_layout Standard
8869 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8870 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8871 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8874 \begin_layout Standard
8875 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8877 挿入\SpecialChar menuseparator
8880 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8890 \begin_layout Standard
8893 編集\SpecialChar menuseparator
8896 の下に,タイトル関連の2つの差込枠があります.
8899 \begin_layout Itemize
8904 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8908 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8911 \begin_layout Itemize
8916 は,至急連絡用に電子メールアドレスを付するものです.
8919 \begin_layout Standard
8920 これらのトピックの他に,このマクロは,\SpecialChar LyX
8921 が対応していない,以下のもう一つの\SpecialChar LaTeX
8925 \begin_layout Itemize
8926 複数の著者名あるいは所属名を区切るための
8933 \begin_layout Standard
8935 中に対応したコマンドを入力し,\SpecialChar LaTeX
8936 コードとしてマークしてください.用例を参照のこと.
8939 \begin_layout Subsection
8943 \begin_layout Standard
8944 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8945 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8948 \begin_layout Subsection
8952 \begin_layout Standard
8953 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8956 \begin_layout Itemize
8962 \begin_layout Itemize
8968 \begin_layout Itemize
8974 \begin_layout Itemize
8980 \begin_layout Itemize
8986 \begin_layout Itemize
8992 \begin_layout Itemize
8998 \begin_layout Itemize
9004 \begin_layout Itemize
9010 \begin_layout Itemize
9016 \begin_layout Itemize
9022 \begin_layout Itemize
9029 \begin_layout Subsection
9034 \begin_layout Standard
9040 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9043 \begin_layout Itemize
9051 \begin_layout Itemize
9059 \begin_layout Itemize
9067 \begin_layout Itemize
9075 \begin_layout Standard
9076 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9078 これを\SpecialChar LaTeX
9079 コマンドとしてマークすることを忘れないで下さい.
9082 \begin_layout Subsection
9086 \begin_layout Standard
9104 をサポートしていますので,ここでは詳しい説明はしません.
9108 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9110 編集\SpecialChar menuseparator
9116 \begin_layout Standard
9117 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9120 \begin_layout Enumerate
9123 挿入\SpecialChar menuseparator
9124 フロート\SpecialChar menuseparator
9127 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9128 \begin_inset Flex MenuItem
9131 \begin_layout Plain Layout
9132 設定\SpecialChar ldots
9153 \begin_layout Enumerate
9157 \begin_layout Enumerate
9162 を押して,カーソルをキャプションの上に移動します.
9165 \begin_layout Enumerate
9169 \begin_layout Enumerate
9172 挿入\SpecialChar menuseparator
9173 整形\SpecialChar menuseparator
9191 \begin_layout Enumerate
9194 挿入\SpecialChar menuseparator
9197 を選択して,\SpecialChar TeX
9201 \begin_layout Enumerate
9214 \begin_layout Enumerate
9215 カーソルをキャプション文の後ろに移動し,
9217 挿入\SpecialChar menuseparator
9220 を選択して,別の\SpecialChar TeX
9221 差込枠を挿入し,その中に閉じ括弧を入力します .
9224 \begin_layout Standard
9228 \begin_layout Subsection
9232 \begin_layout Standard
9233 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9237 オプションを与える必要があります.これは,
9239 文書\SpecialChar menuseparator
9246 クラスオプションフィールドを使って行うことができます.この欄に
9253 \begin_layout Subsection
9257 \begin_layout Standard
9262 ディレクトリには,\SpecialChar LyX
9263 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9264 用に直したものです.これはヒントを得るために使用したり,元の
9266 コードと\SpecialChar LyX
9267 での書き方の比較に使ったりしてください.
9270 \begin_layout Section
9275 \begin_layout Standard
9283 \begin_layout Subsection
9287 \begin_layout Standard
9289 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9290 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9291 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9293 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9294 は,同マクロ第5.0版以降を必要としており,でき
9295 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9296 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9297 とは互換性がありません.AAS\SpecialChar TeX
9299 ,以下のAAS\SpecialChar TeX
9300 ウェブサイトからダウンロードできるでしょう.
9303 \begin_layout Standard
9305 \begin_inset VSpace medskip
9309 \begin_inset Flex URL
9312 \begin_layout Plain Layout
9314 https://aas.org/aastex/aastex-downloads
9320 \begin_inset VSpace medskip
9326 \begin_layout Standard
9327 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9328 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9330 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9331 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9332 いることを確認するのは,あなたの責任です.
9335 \begin_layout Subsection
9339 \begin_layout Standard
9340 論文を書き始めるには,AAS\SpecialChar TeX
9341 ひな型ファイルを土台に始めることを強くお勧めします.
9342 \begin_inset Flex MenuItem
9345 \begin_layout Plain Layout
9346 ファイル\SpecialChar menuseparator
9352 をクリックして,新しいファイル名を入力し,ひな型
9356 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9360 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9361 コマンド・AAS\SpecialChar TeX
9362 環境の多くは,\SpecialChar LyX
9363 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9365 コードを入力して,それを\SpecialChar TeX
9366 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9367 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9368 .AAS\SpecialChar TeX
9369 文書に必要とされる \SpecialChar TeX
9370 コードを最小にするようには努力しました.
9373 \begin_layout Subsection
9377 \begin_layout Standard
9378 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9381 \begin_layout Enumerate
9382 論文を \SpecialChar LaTeX
9385 ファイル\SpecialChar menuseparator
9386 書き出し\SpecialChar menuseparator
9392 \begin_layout Enumerate
9401 \begin_layout Enumerate
9408 コマンドよりも前のコメント行を削除します.
9411 \begin_layout Enumerate
9416 usepackage...{fontenc}
9433 \begin_layout Enumerate
9435 プリアンブル中に意図的に置いたコマンド(
9439 ファイル中,「User specified \SpecialChar LaTeX
9440 commands」というコメントの直後にあります)を除いて,
9452 の間のもの(これらのコマンドを含む)をすべて削除します.
9456 \begin_layout Enumerate
9457 編集後のファイルを \SpecialChar LaTeX
9458 にかけて,正しく処理されることを確認します.
9461 \begin_layout Enumerate
9462 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9465 \begin_layout Enumerate
9469 \begin_layout Subsection
9473 \begin_layout Standard
9479 )に,各AAS\SpecialChar TeX
9480 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9481 て,必要なところだけコメントを加えることにしましょう.
9484 \begin_layout Subsubsection
9488 \begin_layout Standard
9489 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9589 begin{thebibliography}
9597 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9648 \begin_layout Standard
9649 以下のスタイルオプションも正しく動作します.
9670 \begin_inset Flex MenuItem
9673 \begin_layout Plain Layout
9674 文書\SpecialChar menuseparator
9691 \begin_layout Subsubsection
9695 \begin_layout Standard
9696 以下のコマンドは動作しますが,若干の説明が必要です.
9699 \begin_layout Itemize
9700 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9732 \begin_layout Itemize
9733 以下の項目は,\SpecialChar LaTeX
9734 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9755 \begin_layout Itemize
9762 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9766 \begin_layout Itemize
9773 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9776 \begin_layout Itemize
9783 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9787 \begin_layout Itemize
9794 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9797 \begin_layout Itemize
9813 \begin_layout Itemize
9820 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9823 \begin_layout Itemize
9830 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9833 \begin_layout Itemize
9840 (2.14.2)―文章のはじめにカーソルを置いて
9841 \begin_inset Flex MenuItem
9844 \begin_layout Plain Layout
9845 挿入\SpecialChar menuseparator
9851 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9857 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9860 \begin_layout Itemize
9867 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9876 \begin_layout Itemize
9883 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9892 \begin_layout Subsubsection
9893 実装されていないため,\SpecialChar TeX
9897 \begin_layout Standard
9908 setcounter{equation}
9910 (2.12)・学術誌名略語(2.12.4)・
9946 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9959 (2.15.5)・補遺(2.17)の大半
10010 \begin_layout Subsubsection
10014 \begin_layout Standard
10015 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10016 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10017 \begin_inset Flex MenuItem
10020 \begin_layout Plain Layout
10021 挿入\SpecialChar menuseparator
10023 \begin_inset Formula $\text{\textipa{}}$
10026 \SpecialChar menuseparator
10032 を使用して,\SpecialChar LyX
10033 ファイルに読み込むことを推奨します.この実例は,
10040 \begin_layout Subsection
10044 \begin_layout Subsubsection
10046 をAAS\SpecialChar TeX
10050 \begin_layout Standard
10052 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10055 \begin_layout Enumerate
10057 が,AAS\SpecialChar TeX
10058 を検出できることを確認してください.AAS\SpecialChar TeX
10067 でも可)を,\SpecialChar LaTeX
10068 やAAS\SpecialChar TeX
10069 とまったく関係のないディレクトリにコピーして,
10073 を\SpecialChar LaTeX
10077 \begin_layout Enumerate
10087 フォルダにあることを確認してください.
10090 \begin_layout Enumerate
10094 ツール\SpecialChar menuseparator
10097 を再度実行し,\SpecialChar LyX
10101 \begin_layout Enumerate
10102 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10105 文書\SpecialChar menuseparator
10111 \begin_layout Standard
10112 既存のAAS\SpecialChar TeX
10113 文書を処理する際に,AAS\SpecialChar TeX
10114 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10118 \begin_layout Subsubsection
10119 表を処理する際の\SpecialChar LaTeX
10123 \begin_layout Standard
10124 既定では,\SpecialChar LyX
10125 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10126 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10129 編集\SpecialChar menuseparator
10140 に設定してください.私のところではこれで解決しました.
10143 \begin_layout Subsubsection
10147 \begin_layout Standard
10148 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10161 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10165 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10166 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10169 \begin_layout Subsubsection
10173 \begin_layout Standard
10174 AAS\SpecialChar TeX
10181 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10182 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10189 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10194 usepackage{graphics}
10196 コマンドを\SpecialChar LaTeX
10197 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10198 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10199 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10202 \begin_layout Subsubsection
10206 \begin_layout Standard
10207 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10209 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10210 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10213 \begin_layout Subsection
10217 \begin_layout Standard
10218 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10219 \begin_inset space \thinspace{}
10224 \begin_inset space \thinspace{}
10227 %が,\SpecialChar LaTeX
10228 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10232 \begin_layout Section
10233 AMS \SpecialChar LaTeX
10237 \begin_layout Standard
10247 \begin_inset VSpace bigskip
10253 \begin_layout Standard
10254 AMS \SpecialChar LaTeX
10255 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10256 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10258 必要があるだけです).AMSの説明書は,ウェブWeb上の
10259 \begin_inset Flex URL
10262 \begin_layout Plain Layout
10270 \begin_inset Flex URL
10273 \begin_layout Plain Layout
10275 ftp://ftp.ams.org/pub/tex/amslatex/
10280 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10283 \begin_layout Standard
10284 基本となるAMS \SpecialChar LaTeX
10285 レイアウトには,以下の二つがあります.
10288 \begin_layout Itemize
10289 amsart:標準のAMS article書式.
10292 \begin_layout Itemize
10293 amsbook:標準のAMS book(実際はモノグラフ)書式.
10296 \begin_layout Standard
10297 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10298 m」環境は,何一つ含まれていません.これらは,代わりに
10299 \begin_inset Flex Code
10302 \begin_layout Plain Layout
10308 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10309 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10310 \begin_inset Flex Code
10313 \begin_layout Plain Layout
10319 モジュールがあり,これは手動で読み込む必要があります.
10322 \begin_layout Standard
10323 既定では,定理類は,文書を通して連番が振られますが,これは
10324 \begin_inset Flex Code
10327 \begin_layout Plain Layout
10333 モジュールを読み込めば変更することができ,
10334 \begin_inset Flex Code
10337 \begin_layout Plain Layout
10344 \begin_inset Flex Code
10347 \begin_layout Plain Layout
10353 を用いても変更することができます.これらを用いると,出力は
10354 \begin_inset Formula $n.m$
10357 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10358 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10363 \begin_inset Flex Code
10366 \begin_layout Plain Layout
10375 \begin_layout Standard
10376 これらのモジュールは,AMSクラスで使用する
10381 \begin_inset Flex Code
10384 \begin_layout Plain Layout
10390 モジュールや上述の他のモジュールは,他のクラス,たとえば
10391 \begin_inset Flex Code
10394 \begin_layout Plain Layout
10401 \begin_inset Flex Code
10404 \begin_layout Plain Layout
10411 \begin_inset Flex Code
10414 \begin_layout Plain Layout
10420 などで問題なく使用することができます.
10423 \begin_layout Subsection
10427 \begin_layout Standard
10428 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10429 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10430 す.しかし,AMSは,\SpecialChar LyX
10431 で利用可能になっている環境のみを使用することを推奨しています.
10434 \begin_layout Standard
10435 \begin_inset Flex Code
10438 \begin_layout Plain Layout
10445 \begin_inset Flex Code
10448 \begin_layout Plain Layout
10455 \begin_inset space ~
10459 \begin_inset Flex Noun
10462 \begin_layout Plain Layout
10469 \begin_inset Flex Noun
10472 \begin_layout Plain Layout
10479 \begin_inset Flex Noun
10482 \begin_layout Plain Layout
10489 \begin_inset Flex Noun
10492 \begin_layout Plain Layout
10499 \begin_inset Flex Noun
10502 \begin_layout Plain Layout
10509 \begin_inset space ~
10513 \begin_inset space ~
10519 \begin_layout Description
10523 \begin_layout Description
10524 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10527 \begin_layout Description
10531 \begin_layout Description
10535 \begin_layout Description
10536 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10539 \begin_layout Description
10542 Mathematical Reviews
10544 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10548 \begin_layout Description
10552 \begin_layout Description
10556 \begin_layout Description
10560 \begin_layout Standard
10562 \begin_inset Flex Code
10565 \begin_layout Plain Layout
10572 \begin_inset Flex Code
10575 \begin_layout Plain Layout
10581 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10582 \begin_inset Flex Code
10585 \begin_layout Plain Layout
10591 モジュールでは,同環境の星付き版だけが提供されます.
10594 \begin_layout Theorem
10595 これは,通常,得られた主要な結果を叙述するのに使用されます.
10598 \begin_layout Corollary*
10599 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10602 \begin_layout Lemma
10603 他の叙述を証明するために必要とされる,比較的小さな結果です.
10606 \begin_layout Proposition
10607 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10610 \begin_layout Conjecture
10611 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10614 \begin_layout Definition*
10615 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10618 \begin_layout Problem
10619 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10622 \begin_layout Exercise*
10627 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10630 \begin_layout Claim*
10631 より大きな結果の証明を与える途中で,しばしば用いられます.
10635 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10639 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10642 \begin_layout Proof
10643 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10644 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10655 \begin_layout Standard
10657 \begin_inset Flex Code
10660 \begin_layout Plain Layout
10669 \begin_layout Criterion*
10673 \begin_layout Algorithm*
10677 \begin_layout Axiom*
10678 議論されている系内部で真と仮定される性質や命題です.
10681 \begin_layout Condition*
10682 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10685 \begin_layout Note*
10689 \begin_layout Notation*
10693 \begin_layout Summary
10697 \begin_layout Acknowledgement*
10698 謝辞(acknowledgement)です.
10701 \begin_layout Conclusion*
10706 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10709 \begin_layout Standard
10710 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10711 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10715 \begin_layout Section
10719 \begin_layout Standard
10727 \begin_layout Subsection
10731 \begin_layout Standard
10732 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10735 \begin_layout Subsection
10739 \begin_layout Standard
10743 \begin_layout Subsection
10747 \begin_layout Standard
10752 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10755 \begin_layout Subsection
10759 \begin_layout Standard
10760 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10763 \begin_layout Subsection
10767 \begin_layout Standard
10768 以下の環境を使うことができます.右に記してある
10769 \begin_inset Flex Ruby
10772 \begin_layout Plain Layout
10774 \begin_inset Argument post:1
10777 \begin_layout Plain Layout
10788 割当ては,broadway.bindを使った場合のものです.
10791 \begin_layout Itemize
10795 \begin_inset Newline newline
10800 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10803 \begin_layout Itemize
10807 \begin_inset space \hfill{}
10811 \begin_inset Newline newline
10816 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10819 \begin_layout Itemize
10823 \begin_inset space \hfill{}
10827 \begin_inset Newline newline
10832 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10835 \begin_layout Itemize
10839 \begin_inset space \hfill{}
10843 \begin_inset Newline newline
10848 幕の副題です.単に中央揃えの文になります.
10851 \begin_layout Itemize
10855 \begin_inset space \hfill{}
10859 \begin_inset Newline newline
10864 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10867 \begin_layout Itemize
10871 \begin_inset space \hfill{}
10875 \begin_inset Newline newline
10880 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10883 \begin_layout Itemize
10887 \begin_inset space \hfill{}
10891 \begin_inset Newline newline
10896 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10899 \begin_layout Itemize
10903 \begin_inset space \hfill{}
10907 \begin_inset Newline newline
10912 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10919 \begin_layout Itemize
10923 \begin_inset space \hfill{}
10927 \begin_inset Newline newline
10935 \begin_layout Itemize
10939 \begin_inset space \hfill{}
10943 \begin_inset Newline newline
10951 \begin_layout Itemize
10955 \begin_inset space \hfill{}
10961 \begin_layout Itemize
10965 \begin_inset space \hfill{}
10971 \begin_layout Itemize
10975 \begin_inset space \hfill{}
10981 \begin_layout Section
10985 \begin_layout Standard
10990 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10992 .../lyx/share/templates
10994 にあるので,それを土台として使用してください.
10997 \begin_layout Section
11001 \begin_layout Standard
11007 を参照してください.必要な情報は全てそこにあります.
11010 \begin_layout Section
11011 Foils別名Foil\SpecialChar TeX
11013 \begin_inset CommandInset label
11022 \begin_layout Standard
11030 \begin_layout Subsection
11034 \begin_layout Standard
11035 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11036 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11038 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11041 \begin_layout Standard
11042 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11045 \begin_layout Standard
11046 \begin_inset VSpace bigskip
11052 \begin_layout Standard
11067 \begin_layout Standard
11068 \begin_inset VSpace bigskip
11074 \begin_layout Standard
11077 transparencies (slides)
11080 \begin_inset CommandInset ref
11082 reference "sec:slitex"
11086 節をご覧ください.お使いのコンピュータに
11105 \begin_layout Standard
11110 クラスは,\SpecialChar LaTeX2e
11111 の一部として含まれている\SpecialChar LaTeX
11116 の第2.1版とともに使われるように設計されています.
11119 \begin_layout Subsection
11123 \begin_layout Standard
11124 いうまでもなく,この文書クラスを使うには,
11126 文書\SpecialChar menuseparator
11127 設定\SpecialChar menuseparator
11142 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11145 \begin_layout Itemize
11158 オプションは変更しないでください.これらは
11165 \begin_layout Itemize
11166 既定のフォント寸法は20ptであり,17
11167 \begin_inset space \thinspace{}
11171 \begin_inset space \thinspace{}
11175 \begin_inset space \thinspace{}
11181 \begin_layout Itemize
11190 ですが,数式ではすべて,通常のローマン体が使用されます.
11193 \begin_layout Itemize
11194 Foil\SpecialChar TeX
11196 \begin_inset space \thinspace{}
11199 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11202 \begin_layout Itemize
11207 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11210 \begin_layout Itemize
11215 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11216 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11217 \begin_inset CommandInset ref
11219 reference "sec:foilfoot"
11223 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11227 付けられず,(ロゴが定義されていれば)ロゴは,
11231 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11235 \begin_layout Labeling
11236 \labelwidthstring MMMMMMM
11243 最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11246 \begin_layout Labeling
11247 \labelwidthstring MMMMMMM
11254 最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11257 \begin_layout Labeling
11258 \labelwidthstring MMMMMMM
11263 ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11266 \begin_layout Labeling
11267 \labelwidthstring MMMMMMM
11276 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11277 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11281 \begin_layout Subsubsection
11285 \begin_layout Standard
11290 ダイアログの任意設定クラスオプションボックスで使うことができます.
11293 \begin_layout Labeling
11294 \labelwidthstring MMMMMMx
11299 これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11300 \begin_inset space \space{}
11303 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11306 \begin_layout Labeling
11307 \labelwidthstring MMMMMMx
11312 タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11315 \begin_layout Labeling
11316 \labelwidthstring MMMMMMx
11321 タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11324 \begin_layout Labeling
11325 \labelwidthstring MMMMMMx
11334 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11338 \begin_layout Labeling
11339 \labelwidthstring MMMMMMx
11344 このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11345 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11353 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11356 \begin_layout Labeling
11357 \labelwidthstring MMMMMMx
11365 \begin_layout Labeling
11366 \labelwidthstring MMMMMMx
11374 \begin_layout Subsection
11378 \begin_layout Standard
11379 他のクラスで標準的にサポートされている環境は,
11383 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11384 が提供している環境と,\SpecialChar LyX
11385 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11388 \begin_layout Standard
11391 \begin_inset Flex Multiple Columns
11394 \begin_layout Itemize
11400 \begin_layout Itemize
11406 \begin_layout Itemize
11412 \begin_layout Itemize
11418 \begin_layout Itemize
11424 \begin_layout Itemize
11431 \begin_layout Itemize
11437 \begin_layout Itemize
11443 \begin_layout Itemize
11449 \begin_layout Itemize
11455 \begin_layout Itemize
11461 \begin_layout Itemize
11467 \begin_layout Itemize
11473 \begin_layout Itemize
11479 \begin_layout Itemize
11485 \begin_layout Itemize
11496 \begin_layout Standard
11497 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11502 は新しいスライドを始める以下のようなコマンドを備えています.
11505 \begin_layout Itemize
11511 \begin_layout Itemize
11514 横置きスライドタイトル(Rotatefoilhead)
11517 \begin_layout Standard
11519 は,以下のような,これらを若干修正した環境も用意しています.
11522 \begin_layout Itemize
11525 スライドタイトル(小)(ShortFoilhead)
11528 \begin_layout Itemize
11531 横置きスライドタイトル(小)(ShortRotatefoilhead)
11534 \begin_layout Standard
11538 \begin_layout Standard
11539 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11544 はそれらを説明するのに便利な環境を幅広く用意しています.
11547 \begin_layout Standard
11550 \begin_inset Flex Multiple Columns
11553 \begin_layout Itemize
11559 \begin_layout Itemize
11565 \begin_layout Itemize
11571 \begin_layout Itemize
11577 \begin_layout Itemize
11583 \begin_layout Itemize
11589 \begin_layout Itemize
11595 \begin_layout Itemize
11601 \begin_layout Itemize
11607 \begin_layout Itemize
11613 \begin_layout Itemize
11624 \begin_layout Standard
11625 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11626 で追加された以下の2つの箇条書き環境があります.
11629 \begin_layout Itemize
11635 \begin_layout Itemize
11641 \begin_layout Standard
11642 Foil\SpecialChar TeX
11643 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11644 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11647 \begin_layout Standard
11648 この目的のためには,以下のコマンドスタイルがあります(
11653 \begin_layout Standard
11654 \begin_inset Flex Multiple Columns
11657 \begin_layout Itemize
11663 \begin_layout Itemize
11669 \begin_layout Itemize
11675 \begin_layout Itemize
11681 \begin_layout Itemize
11688 \begin_layout Plain Layout
11689 \begin_inset space ~
11701 \begin_layout Standard
11702 Foil\SpecialChar TeX
11703 が提供しているコマンドで,\SpecialChar LyX
11704 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11705 \begin_inset CommandInset ref
11707 reference "sec:unsuppfoils"
11714 \begin_layout Subsection
11718 \begin_layout Standard
11719 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11731 \begin_layout Subsubsection
11735 \begin_layout Standard
11756 は独立したページにタイトルを作成します.
11760 環境を使用しなかった場合には,\SpecialChar LaTeX
11761 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11764 \begin_layout Subsubsection
11768 \begin_layout Standard
11769 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11775 スライドタイトル(小)(ShortFoilhead)
11777 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11780 \begin_layout Standard
11783 横向きスライドタイトル(Rotatefoilhead)
11787 ShortRotatefoilhead)
11789 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11793 \begin_layout Standard
11794 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11798 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11802 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11805 \begin_layout Subsubsection
11809 \begin_layout Standard
11810 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
11811 なく,いわゆる分離線を挿入する必要があります.
11822 \begin_layout Subsubsection
11826 \begin_layout Standard
11827 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11828 他の箇条書き環境について詳しく知りたい場合には,
11832 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11833 \begin_inset CommandInset ref
11835 reference "sec:ブリット"
11843 の節も,読まれることが望ましいでしょう.
11846 \begin_layout Standard
11856 \begin_inset Formula $\times$
11859 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11863 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11867 パッケージが導入済であることを要求します.
11870 \begin_layout Subsubsection
11874 \begin_layout Standard
11875 Foil\SpecialChar TeX
11876 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11877 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11880 \begin_layout Subsubsection
11882 \begin_inset CommandInset label
11884 name "sec:foilfoot"
11891 \begin_layout Standard
11900 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by
11905 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11908 \begin_layout Standard
11921 (左上)を使って文字を入れることができます.
11924 \begin_layout Subsection
11931 \begin_inset CommandInset label
11933 name "sec:unsuppfoils"
11940 \begin_layout Standard
11954 \begin_layout Subsubsection
11958 \begin_layout Standard
11981 は,変更したい長さに付けられている名前で置き換え,
11985 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11991 のように文書比あるいはフォント基準の長さで指定する必要があります.
11994 \begin_layout Standard
12001 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12002 \begin_inset space \space{}
12005 inだけスライド本文に近づけるには,プリアンブルに
12011 foilheadskip}{-0.5in}
12016 \begin_layout Standard
12017 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12020 \begin_layout Labeling
12021 \labelwidthstring MMMMMMMMMMM
12031 \begin_layout Labeling
12032 \labelwidthstring MMMMMMMMMMM
12042 \begin_layout Labeling
12043 \labelwidthstring MMMMMMMMMMM
12053 \begin_layout Labeling
12054 \labelwidthstring MMMMMMMMMMM
12061 この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12067 に対する相対的な長さで調整するのが最も良いでしょう.
12070 \begin_layout Standard
12071 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12074 \begin_layout Labeling
12075 \labelwidthstring MMMMMMMMMMM
12085 \begin_layout Labeling
12086 \labelwidthstring MMMMMMMMMMM
12104 \begin_layout Labeling
12105 \labelwidthstring MMMMMMMMMMM
12119 \begin_layout Labeling
12120 \labelwidthstring MMMMMMMMMMM
12138 \begin_layout Labeling
12139 \labelwidthstring MMMMMMMMMMM
12157 \begin_layout Standard
12158 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12164 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12170 を使う必要がないことに注意してください.
12173 \begin_layout Subsubsection
12177 \begin_layout Standard
12194 で定義したロゴを特定のページに入れるかどうかを制御します.
12200 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12206 を置き,次のスライドタイトルの直後に直接
12215 \begin_layout Standard
12224 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12238 パッケージが提供するページレイアウトと
12242 クラスの提供するページレイアウトの間に衝突が発生するためです.
12245 \begin_layout Section
12246 Hollywood(Hollywoodスペック・スクリプト)
12249 \begin_layout Standard
12257 \begin_layout Subsection
12261 \begin_layout Standard
12262 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12263 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12265 \begin_inset space \space{}
12268 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12271 \begin_layout Subsection
12275 \begin_layout Standard
12280 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12284 名を再度書き,その後に(Cont'd)と加えます.
12287 \begin_layout Subsection
12291 \begin_layout Standard
12296 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12297 きに話者名を挿入するのにも使用することができます.
12300 \begin_layout Subsection
12304 \begin_layout Standard
12305 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12308 \begin_layout Subsection
12312 \begin_layout Standard
12313 以下の環境が利用可能です.右に示されている
12314 \begin_inset Flex Ruby
12317 \begin_layout Plain Layout
12319 \begin_inset Argument post:1
12322 \begin_layout Plain Layout
12333 割当てを使用するには,hollywood.bindを使用してください.
12336 \begin_layout Itemize
12340 \begin_inset Newline newline
12345 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12348 \begin_layout Itemize
12350 \begin_inset space \hfill{}
12358 \begin_inset Newline newline
12361 通常,この後には「Sallyは目を覚ますと」のように続きます.
12364 \begin_layout Itemize
12368 \begin_inset space \hfill{}
12372 \begin_inset Newline newline
12377 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12381 \begin_layout Itemize
12385 \begin_inset space \hfill{}
12389 \begin_inset Newline newline
12394 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12397 \begin_layout Itemize
12401 \begin_inset space \hfill{}
12405 \begin_inset Newline newline
12413 \begin_layout Itemize
12417 \begin_inset space \hfill{}
12421 \begin_inset Newline newline
12426 への指示.自動的に括弧()が挿入されます.
12429 \begin_layout Itemize
12433 \begin_inset space \hfill{}
12437 \begin_inset Newline newline
12445 \begin_layout Itemize
12449 \begin_inset space \hfill{}
12453 \begin_inset Newline newline
12458 カメラの動きの指示.例:CUT TO:.
12461 \begin_layout Itemize
12465 \begin_inset space \hfill{}
12471 \begin_layout Itemize
12475 \begin_inset space \hfill{}
12481 \begin_layout Itemize
12485 \begin_inset space \hfill{}
12491 \begin_layout Itemize
12495 \begin_inset space \hfill{}
12501 \begin_layout Subsection
12505 \begin_layout Itemize
12509 \begin_layout Itemize
12513 \begin_layout Itemize
12518 \begin_layout Itemize
12523 \begin_layout Itemize
12524 PAN — camera movement
12527 \begin_layout Itemize
12528 INSERT — cut to close-up of
12531 \begin_layout Section
12535 \begin_layout Standard
12538 Panayotis Papasotiriou
12543 \begin_layout Subsection
12547 \begin_layout Standard
12550 International Journal of Modern Physics C
12552 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12554 International Journal of Modern Physics D
12556 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12564 です.これらのファイルは,著者のための指針とともに,
12565 \begin_inset Flex URL
12568 \begin_layout Plain Layout
12570 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12576 \begin_inset Flex URL
12579 \begin_layout Plain Layout
12581 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12586 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12588 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12589 で書き上げましたが,何らの問題も生じませんでした.
12592 \begin_layout Subsection
12596 \begin_layout Standard
12597 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12599 ファイル\SpecialChar menuseparator
12610 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12614 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12617 \begin_layout Enumerate
12618 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12619 中でこれらを変更することはできません.
12622 \begin_layout Enumerate
12623 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12626 arg "dialog-show document"
12631 \SpecialChar menuseparator
12641 \begin_layout Enumerate
12642 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12645 \begin_layout Enumerate
12646 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12647 ートされていませんので,ご注意ください.
12650 \begin_layout Enumerate
12651 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12652 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12653 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12656 \begin_layout Enumerate
12657 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12658 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12659 されます.引用に通常の本文を使用したい場合には,「See Ref.
12660 \begin_inset space \space{}
12670 \begin_inset Flex Ruby
12673 \begin_layout Plain Layout
12679 \begin_inset Argument post:1
12682 \begin_layout Plain Layout
12704 \begin_layout Enumerate
12705 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12708 \begin_layout Enumerate
12717 であれば,入れることができます.\SpecialChar LyX
12718 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12719 てはなりません.この環境は,\SpecialChar LaTeX
12720 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12721 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12722 付録であることを明示します.「付録領域」は,最初の付録の前に
12726 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12729 \begin_layout Enumerate
12730 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12734 コマンドを使用します.そのため,\SpecialChar LyX
12735 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12736 コードを少し使えば,この問題を回避して,キャプション
12737 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12744 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12749 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12754 ファイルに収め,このファイルを\SpecialChar LyX
12757 挿入\SpecialChar menuseparator
12758 ファイル\SpecialChar menuseparator
12761 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12772 \begin_layout Subsection
12776 \begin_layout Standard
12777 論文を投稿する前には,\SpecialChar LyX
12778 文書を\SpecialChar LaTeX
12781 ファイル\SpecialChar menuseparator
12782 書き出し\SpecialChar menuseparator
12790 \begin_layout Plain Layout
12791 実は,\SpecialChar LaTeX
12792 (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12793 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12802 ファイルに以下の変更を加える必要があります.
12805 \begin_layout Enumerate
12812 コマンドより前にあるコメント行を削除する.
12815 \begin_layout Enumerate
12816 自身で明示的に\SpecialChar LaTeX
12829 コマンドの間にあるものをすべて削除する.
12832 \begin_layout Standard
12837 ファイルを保存し,必要な回数\SpecialChar LaTeX
12838 で処理してください.それによって得られた
12842 文書も確認された方がよろしいでしょう.
12845 \begin_layout Section
12849 \begin_layout Standard
12857 \begin_layout Subsection
12861 \begin_layout Standard
12862 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12863 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12864 \begin_inset Flex URL
12867 \begin_layout Plain Layout
12869 ftp://ftp.iop.org/pub/journals/latex2e
12874 からiopartパッケージとともにダウンロード可能です.
12877 \begin_layout Subsection
12881 \begin_layout Standard
12882 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
12883 新規(ひな型使用)\SpecialChar ldots
12888 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
12891 \begin_layout Itemize
12892 文書がPDF・PS・DVIにコンパイルできるようにするためには,
12894 文書\SpecialChar menuseparator
12895 設定\SpecialChar menuseparator
12898 で,AMSパッケージが読み込まれていないことを確認してください!
12901 \begin_layout Itemize
12902 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12906 \begin_layout Itemize
12912 \begin_layout Itemize
12918 \begin_layout Itemize
12924 \begin_layout Itemize
12930 \begin_layout Itemize
12936 \begin_layout Itemize
12944 \begin_layout Itemize
12945 Preliminary communication用には
12950 \begin_layout Itemize
12951 Rapid communication用には
12956 \begin_layout Itemize
12963 \begin_layout Itemize
12968 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12971 \begin_layout Itemize
12973 では直接にサポートされていませんが,一般的なタイトル環境として
12977 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12978 コードでこれを指定することができます.
12981 \begin_layout Standard
12982 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12985 \begin_layout Section
12989 \begin_layout Standard
12992 Panayotis Papasotiriou
12997 \begin_layout Subsection
13001 \begin_layout Standard
13002 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13003 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13005 Astrophysics and Space Science
13011 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13012 \begin_inset Flex URL
13015 \begin_layout Plain Layout
13017 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13022 に全覧があります).Kluwerパッケージは,
13023 \begin_inset Flex URL
13026 \begin_layout Plain Layout
13028 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13033 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13036 \begin_layout Standard
13038 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13039 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13041 \begin_inset CommandInset ref
13043 reference "subsec:kluwer_peculiarities"
13047 参照).最近,私は\SpecialChar LyX
13050 Astrophysics and Space Science
13052 に投稿しましたが,何らの問題も発生しませんでした.
13055 \begin_layout Subsection
13059 \begin_layout Standard
13060 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13062 ファイル\SpecialChar menuseparator
13069 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13074 を含む)正しい情報で上書きしてください.
13077 \begin_layout Subsection
13081 \begin_layout Standard
13082 AAS\SpecialChar TeX
13083 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13086 \begin_layout Enumerate
13089 ファイル\SpecialChar menuseparator
13090 書き出し\SpecialChar menuseparator
13093 をクリックして,論文を\SpecialChar LaTeX
13097 \begin_layout Enumerate
13102 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13106 \begin_layout Enumerate
13113 コマンドより前にあるコメント行を削除する.
13116 \begin_layout Enumerate
13117 意図的に\SpecialChar LaTeX
13130 の間にあるものを,これらのコマンドも含め,すべて削除する.
13133 \begin_layout Standard
13142 \begin_layout Enumerate
13147 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13151 \begin_layout Enumerate
13160 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13163 \begin_layout Subsection
13164 Kluwerパッケージの「風変わり」な特徴
13165 \begin_inset CommandInset label
13167 name "subsec:kluwer_peculiarities"
13174 \begin_layout Standard
13175 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13178 \begin_layout Enumerate
13179 複数の論文を1つの\SpecialChar LaTeX
13184 \begin_layout Plain Layout
13185 わざわざこんなことをする必要はないでしょう.
13190 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13202 で終わります.この環境を\SpecialChar LyX
13203 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13215 )は,直接本文中に入力して,\SpecialChar LaTeX
13216 コード(「\SpecialChar TeX
13217 コード」のことです)としてマークする必要があります.
13220 \begin_layout Enumerate
13221 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13222 はなりません.これは\SpecialChar LyX
13223 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13239 \begin_layout Enumerate
13240 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13243 \begin_inset Newline newline
13267 \begin_layout Standard
13272 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13276 \begin_layout Enumerate
13277 ひな型にある\SpecialChar TeX
13281 \begin_layout Enumerate
13282 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13285 \begin_layout Section
13289 \begin_layout Standard
13297 \begin_layout Subsection
13301 \begin_layout Standard
13305 article (koma-script)
13309 report (koma-script)
13327 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13344 に対応しています.これらは,標準文書クラス
13360 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13363 \begin_layout Itemize
13366 article (koma-script)
13370 report (koma-script)
13378 letter (koma-script)
13383 \begin_layout Itemize
13384 見出しや箇条書き(記述)環境のラベル,および
13386 letter (koma-script)
13388 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13392 \begin_layout Plain Layout
13393 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13394 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13398 作の\SpecialChar LaTeX
13408 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13409 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13410 とができます(\SpecialChar LyX
13413 文書\SpecialChar menuseparator
13420 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13427 \begin_layout Itemize
13428 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13436 オプションを使う方法です(\SpecialChar LyX
13439 文書\SpecialChar menuseparator
13446 フィールドで指定します).これらのオプションは
13448 文書\SpecialChar menuseparator
13451 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13459 \begin_layout Itemize
13460 Koma-Scriptファミリーの\SpecialChar LaTeX
13461 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13462 で意味を持つものは,対応する段落環境として実装されています
13466 \begin_layout Standard
13467 Koma-Scriptファミリーの\SpecialChar LaTeX
13468 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13476 \begin_layout Plain Layout
13486 .以下の各節では,\SpecialChar LyX
13490 \begin_layout Subsection
13491 article (koma-script)・report (koma-script)・book (koma-script)
13494 \begin_layout Standard
13497 article (koma-script)
13501 report (koma-script)
13523 によって実装されています.これらは,対応する標準文書クラス
13535 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13540 環境は例外であり,同じ機能を持つ新しい
13548 環境以外にも,新しい段落環境が多く追加されています.これらは,
13550 letter (koma-script)
13552 には含まれていないのでご注意ください.
13555 \begin_layout Itemize
13580 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13590 article (koma-script)
13595 \begin_layout Itemize
13612 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13618 article (koma-script)
13624 \begin_layout Plain Layout
13631 report (koma-script)
13643 と同一なので,\SpecialChar LyX
13652 \begin_layout Itemize
13657 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13660 \begin_layout Itemize
13669 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13670 ねに表の上に置くべきでしょう).また,クラスオプション
13674 を用いれば,キャプションを指定すると,表には
13682 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13685 \begin_layout Itemize
13690 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13692 挿入\SpecialChar menuseparator
13695 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13701 article (koma-script)
13706 \begin_layout Standard
13719 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13723 \begin_layout Plain Layout
13724 つまり,対応する\SpecialChar LaTeX
13731 コマンドよりも前に現れなくてはなりません.
13736 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13748 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13751 \begin_layout Itemize
13768 )の上に,文書の主題用の中央揃えの段落を生成します.
13771 \begin_layout Itemize
13788 )の下に,出版社名用の中央揃えの段落を生成します.
13791 \begin_layout Itemize
13798 report (koma-script)
13804 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13806 article (koma-script)
13820 )の下に献辞用の中央揃えの段落を生成します.
13823 \begin_layout Itemize
13840 )の上に,文書頭書き用の左揃えの段落を生成します.
13843 \begin_layout Itemize
13850 report (koma-script)
13856 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13858 article (koma-script)
13863 \begin_layout Itemize
13870 report (koma-script)
13876 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13878 article (koma-script)
13883 \begin_layout Itemize
13888 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13891 \begin_layout Standard
13894 article (koma-script)
13898 report (koma-script)
13908 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13912 を,個人用レイアウトディレクトリにコピーして編集してください!
13915 \begin_layout Subsection
13916 letter (koma-script)
13919 \begin_layout Description
13929 KOMA-Script-Letter (v.
13930 \begin_inset space ~
13935 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
13937 KOMA-Script-Letter (v.
13938 \begin_inset space ~
13946 \begin_layout Standard
13950 letter (koma-script)
13956 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13960 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13978 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13995 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13998 \begin_layout Standard
13999 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14000 コマンドを\SpecialChar LaTeX
14001 プリアンブルに置くことで制御することができます
14005 \begin_layout Plain Layout
14006 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14010 \begin_layout LyX-Code
14020 \begin_layout LyX-Code
14036 \begin_layout LyX-Code
14046 \begin_layout LyX-Code
14062 \begin_layout LyX-Code
14070 .これらの\SpecialChar LaTeX
14071 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14075 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14078 \begin_layout Standard
14087 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14088 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14096 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14100 環境は,同じ受取人への書簡を新しく書き出すものであり,
14104 環境は,新しい受取人を生成するものです.
14120 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14123 \begin_layout Itemize
14128 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14131 \begin_layout Itemize
14136 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14139 \begin_layout Itemize
14147 \begin_layout Itemize
14155 \begin_layout Itemize
14163 \begin_layout Itemize
14171 \begin_layout Standard
14212 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14216 \begin_layout Plain Layout
14225 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14226 一文字をマークした通常の段落環境として実装しました.さらに,
14234 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14246 \begin_layout Standard
14247 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14252 環境で入力した署名は,標準的な挙動では,同じ書簡に
14256 環境も使用されているときのみ,書簡の出力に現れます.
14260 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14263 \begin_layout Standard
14264 入力環境は,空の段落として使うことができます.これは,たとえば
14272 環境を全く使用しない場合は,標準的な挙動では,
14276 環境の値が署名として使用されますが,空の
14280 環境を作成しておくと,署名の値は無定義となりません.
14283 \begin_layout Standard
14284 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14287 \begin_layout Itemize
14292 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14295 \begin_layout Itemize
14315 \begin_layout Itemize
14320 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14323 \begin_layout Itemize
14328 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14338 \begin_layout Itemize
14346 \begin_layout Itemize
14359 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14367 の値如何に関わらず,場所も日付も表示されません.
14371 環境を使用しない場合には,書簡を出力した日付が使用されます.
14374 \begin_layout Itemize
14379 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14382 \begin_layout Itemize
14387 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14390 \begin_layout Itemize
14395 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14398 \begin_layout Itemize
14403 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14406 \begin_layout Itemize
14418 \begin_layout Standard
14421 Yourref・Yourmail・Myref・顧客・インボイス
14427 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14428 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14432 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14436 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14443 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14451 \begin_layout Itemize
14459 \begin_layout Itemize
14467 \begin_layout Itemize
14475 \begin_layout Itemize
14483 \begin_layout Itemize
14491 \begin_layout Subsection
14492 新しいletterクラス:letter (koma-script v.2)
14495 \begin_layout Standard
14499 \begin_inset VSpace medskip
14505 \begin_layout Standard
14507 Koma-Script第2.8版では,新しいletterクラス
14515 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14516 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14518 ますが,新しい方のクラスを使用することを推奨します.
14521 \begin_layout Standard
14524 letter (koma-script)
14526 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14546 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14564 挿入\SpecialChar menuseparator
14571 を入れることができるようになった点です.
14574 \begin_layout Standard
14575 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14576 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14584 \begin_layout Plain Layout
14589 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14603 文書\SpecialChar menuseparator
14604 設定\SpecialChar menuseparator
14605 文書クラス\SpecialChar menuseparator
14612 を加えることで読み込むことができます.
14617 .用例としては,\SpecialChar LyX
14622 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14629 \begin_layout Subsection
14633 \begin_layout Standard
14634 Koma-Script文書クラスを\SpecialChar LyX
14635 上に表示する上で,\SpecialChar LyX
14639 \begin_layout Itemize
14644 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14648 ラベル型に対する\SpecialChar LyX
14652 \begin_layout Itemize
14661 環境の見出しは,「本当の」\SpecialChar LaTeX
14662 の目次には追加されますが,\SpecialChar LyX
14670 \begin_layout Itemize
14675 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14678 文書\SpecialChar menuseparator
14681 ダイアログでは,対応するラジオボタンは
14689 は,隙間を空けるために,文書に\SpecialChar LaTeX
14690 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14693 \begin_layout Section
14697 \begin_layout Standard
14705 \begin_layout Subsection
14709 \begin_layout Standard
14710 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14711 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14715 \begin_layout Standard
14716 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14717 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14718 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14719 は,これらすべての素晴らしい機能をネイティブでサポ
14720 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14724 \begin_layout Plain Layout
14726 \begin_inset Flex URL
14729 \begin_layout Plain Layout
14731 lyx-devel@lists.lyx.org
14742 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14743 コマンド(\SpecialChar TeX
14748 \begin_layout Plain Layout
14750 \begin_inset CommandInset ref
14752 reference "sec:TeXコードを挿入する"
14761 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14762 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14763 は,Memoirクラスの詳しい取扱説明書
14767 \begin_layout Plain Layout
14769 \begin_inset Flex URL
14772 \begin_layout Plain Layout
14774 CTAN:/macros/latex/memoir/memman.pdf
14784 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14788 \begin_layout Subsection
14792 \begin_layout Standard
14793 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14796 \begin_layout Description
14797 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14800 \begin_layout Description
14801 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14803 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14805 文書\SpecialChar menuseparator
14806 設定\SpecialChar menuseparator
14809 参照).これらを章題ページに使用したい場合には,コマンド
14815 を,本文またはプリアンブルに記述する必要があります(例えば,
14819 chapterstyle{companion}
14824 \begin_layout Description
14825 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14826 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14829 挿入\SpecialChar menuseparator
14832 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
14845 \begin_layout Description
14846 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14847 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14850 \begin_layout Description
14851 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14856 aliaspagestyle{title}{empty}
14861 \begin_layout Description
14868 文書\SpecialChar menuseparator
14869 設定\SpecialChar menuseparator
14870 文書クラス\SpecialChar menuseparator
14871 クラスオプション\SpecialChar menuseparator
14874 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14875 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14878 \begin_layout Description
14879 Oldfontcommands: \SpecialChar LaTeX
14880 旧2.09版で使用されていた旧いフォントコマンド(
14892 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14898 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14899 は停止しなくなります).まだ,多くのパッケージと,
14900 就中多くのBib\SpecialChar TeX
14901 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14904 \begin_layout Subsection
14908 \begin_layout Standard
14910 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14914 \begin_layout Plain Layout
14915 \begin_inset Flex URL
14918 \begin_layout Plain Layout
14920 CTAN:/macros/latex/memoir/memman.pdf
14933 \begin_layout Description
14934 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14935 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14938 \begin_layout Description
14939 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14940 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14943 \begin_layout Description
14944 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14945 出典:非必須)は,短い線で区切られます.著者(出典)は,
14947 挿入\SpecialChar menuseparator
14953 \begin_layout Description
14954 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14955 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14956 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14958 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14962 \begin_layout Description
14963 詩題*: 目次に現れない他は詩題と同じです.
14966 \begin_layout Section
14967 Article (mwart)・book (mwbk)・report (mwrep)
14968 \begin_inset Argument status
14971 \begin_layout Plain Layout
14984 \begin_layout Standard
14992 \begin_layout Standard
15000 report (mwrep)・book
15006 は,それぞれ\SpecialChar LaTeX
15031 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15034 \begin_layout Standard
15038 \begin_layout Itemize
15046 \begin_layout Itemize
15051 \begin_layout Description
15055 \begin_layout Description
15071 \begin_layout Description
15072 myuheadings 分離線付きカスタムヘッダ
15075 \begin_layout Description
15080 \begin_layout Itemize
15085 \begin_layout Description
15086 rmheadings セリフ体見出し — 既定
15089 \begin_layout Description
15090 sfheadings サンセリフ体見出し
15093 \begin_layout Description
15094 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15097 \begin_layout Description
15098 titleauthor タイトルページは,タイトル・著者名の順で配置
15101 \begin_layout Description
15102 withmarginpar ページ上に余白のための場所を確保
15106 \begin_layout Section
15110 \begin_layout Standard
15123 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15126 \begin_layout Section
15127 Rev\SpecialChar TeX
15131 \begin_layout Standard
15137 \begin_layout Standard
15138 \begin_inset VSpace bigskip
15144 \begin_layout Standard
15149 \begin_inset space ~
15154 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15156 \begin_inset Formula $\beta$
15162 \begin_layout Standard
15164 には,Rev\SpecialChar TeX
15169 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15170 2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15171 は\SpecialChar LaTeX2e
15172 を必要とすることから,第3.1版は\SpecialChar LyX
15174 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15175 4.0は,\SpecialChar LaTeX2e
15176 で素直に動作するようにデザインされているので,\SpecialChar LyX
15179 Rev\SpecialChar TeX
15181 \begin_inset space ~
15186 テキストクラスの組で使用するのは,たいへん簡単です.
15189 \begin_layout Standard
15190 この取扱説明書は,Rev\SpecialChar TeX
15195 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15196 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15200 \begin_layout Subsection
15204 \begin_layout Standard
15205 Rev\SpecialChar TeX
15206 4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15207 4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15210 \begin_inset Flex URL
15213 \begin_layout Plain Layout
15215 http://publish.aps.org/revtex4/
15220 から入手することができます.これを\SpecialChar LaTeX
15221 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15222 ィレクトリ)で簡単なRev\SpecialChar TeX
15223 4文書を \SpecialChar LaTeX
15224 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15225 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15230 \begin_layout Standard
15235 を使ってRev\SpecialChar TeX
15236 4文書を読み込むか,またはひな型ディレクトリにある
15239 \begin_inset space ~
15244 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15247 \begin_layout Subsection
15251 \begin_layout Standard
15258 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15260 文書\SpecialChar menuseparator
15261 設定\SpecialChar menuseparator
15268 フィールドに入れます.Rev\SpecialChar TeX
15269 では,少なくとも一つの非必須引数が必要なことに注意してください.
15272 \begin_layout Standard
15279 など他のプリアンブルは,他のクラス同様,
15281 文書\SpecialChar menuseparator
15282 設定\SpecialChar menuseparator
15289 \begin_layout Subsection
15293 \begin_layout Standard
15294 レイアウトは,基本的にRev\SpecialChar TeX
15295 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15301 に対応しています.(少なくともRev\SpecialChar TeX
15310 はまったく同じものなので,両方を使う必要はありません
15314 \begin_layout Plain Layout
15339 \begin_layout Subsection
15343 \begin_layout Standard
15344 Rev\SpecialChar TeX
15345 4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15346 ではさらに気をつけなくてはなりません.
15349 \begin_layout Standard
15350 Rev\SpecialChar TeX
15367 に来なくてはなりません.\SpecialChar LyX
15376 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15380 \begin_layout Standard
15401 )レイアウトの間に置かなければなりません.
15409 の後に置いてしまうと,\SpecialChar LaTeX
15413 \begin_layout Section
15419 \begin_layout Standard
15427 \begin_layout Subsection
15431 \begin_layout Standard
15432 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15433 \begin_inset Flex URL
15436 \begin_layout Plain Layout
15438 http://www.springer.de/author/tex/help-journals.html
15443 に必要なクラスファイル(\SpecialChar LaTeX2e
15444 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15448 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15455 \begin_layout Standard
15456 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15471 \begin_layout Standard
15472 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15480 は,標準\SpecialChar LyX
15481 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15482 を再設定した後(teTeXの場合は,必
15487 を実行します),\SpecialChar LyX
15491 \begin_layout Subsection
15495 \begin_layout Standard
15504 ・\SpecialChar ldots
15512 \begin_layout Standard
15523 サブタイトル・ヘッダ用\SpecialChar LaTeX
15524 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15527 .詳しくは Springerのクラスファイルの説明書を読んでください.
15530 \begin_layout Subsection
15534 \begin_layout Itemize
15546 \begin_layout Itemize
15549 Probability Theory and Related Fields
15555 — Jean-Marc Lasgouttes
15558 \begin_layout Standard
15559 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15562 \begin_layout Subsection
15566 \begin_layout Standard
15575 は Springerの\SpecialChar LaTeX
15576 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15577 Lasgouttesのおかげで \SpecialChar LyX
15578 のレイアウトファイルのメカニズムをよりよく理解することができました.
15581 \begin_layout Subsection
15585 \begin_layout Standard
15590 よりは少なくなっているとは思いますが.
15593 \begin_layout Section
15596 Sli\SpecialChar TeX
15603 \begin_layout Plain Layout
15604 (訳註)この節の内容は,全般的に古くなっています.
15610 \begin_inset CommandInset label
15619 \begin_layout Standard
15627 \begin_layout Subsection
15631 \begin_layout Standard
15632 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15633 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15635 Foil\SpecialChar TeX
15638 スライドクラスの2つがあります.本節は前者について説明を行います.
15641 \begin_layout Standard
15642 誤解のないように,正しく明確に,もう一度言っておきます.
15645 \begin_layout Standard
15646 \begin_inset VSpace bigskip
15652 \begin_layout Standard
15657 \begin_inset Quotes eld
15662 transparencies (slides)
15665 \begin_inset Quotes erd
15675 \begin_layout Standard
15676 \begin_inset VSpace bigskip
15682 \begin_layout Standard
15685 「slides (Foil\SpecialChar TeX
15689 \begin_inset CommandInset ref
15691 reference "sec:foiltex"
15701 slides (Foil\SpecialChar TeX
15712 \begin_layout Plain Layout
15716 Foil\SpecialChar TeX
15719 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15727 \begin_layout Standard
15728 このクラスは,旧SLI\SpecialChar TeX
15729 パッケージを\SpecialChar LaTeX2e
15730 用に改良したものです.\SpecialChar LaTeX2e
15731 頒布版すべてが,このクラス(以下では単に「
15735 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15739 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15744 ならばできることもあります.詳しくは以下をお読みください.
15747 \begin_layout Subsection
15749 \begin_inset CommandInset label
15751 name "sec:slidesetup"
15758 \begin_layout Standard
15759 当然ながら,この文書クラスを使用するには,
15761 文書\SpecialChar menuseparator
15766 transparencies (slides)
15768 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15771 \begin_layout Itemize
15780 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15784 クラスではサポートされていないので,効果がありません.
15787 \begin_layout Itemize
15792 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15796 \begin_layout Description
15797 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15800 \begin_layout Description
15805 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15808 \begin_layout Description
15809 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15813 \begin_layout Itemize
15822 というオプションがあります.これを使用するには,
15834 \begin_layout Standard
15839 にタイムマーカーを加えることができます.詳細は,第
15840 \begin_inset CommandInset ref
15842 reference "sec:スライド注釈"
15850 \begin_layout Standard
15855 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15859 」を使用することもできます(新規ファイルを開く際に
15861 ファイル\SpecialChar menuseparator
15864 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15867 \begin_layout Subsection
15871 \begin_layout Subsubsection
15877 \begin_layout Standard
15882 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15890 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15891 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15894 \begin_layout Standard
15895 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15900 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15903 \begin_layout Itemize
15909 \begin_layout Itemize
15915 \begin_layout Itemize
15921 \begin_layout Itemize
15927 \begin_layout Itemize
15933 \begin_layout Itemize
15939 \begin_layout Itemize
15945 \begin_layout Itemize
15951 \begin_layout Itemize
15957 \begin_layout Itemize
15964 \begin_layout Standard
15965 これ以外の標準的な環境,例えば節見出し用の環境などは
15972 \begin_layout Standard
15976 \begin_layout Itemize
15982 \begin_layout Itemize
15988 \begin_layout Itemize
15994 \begin_layout Itemize
16000 \begin_layout Itemize
16006 \begin_layout Standard
16007 これら5つの環境は,\SpecialChar LyX
16008 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16009 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16010 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16014 \begin_layout Subsubsection
16016 \begin_inset CommandInset label
16025 \begin_layout Standard
16026 5つの新しい環境にはすべて,\SpecialChar LyX
16027 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16028 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16036 』で述べられているような段落環境ではなくなっています.
16039 \begin_layout Standard
16052 は「疑似環境」だとお考えください.これらは節見出しや「
16056 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16064 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16067 \begin_layout Standard
16088 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16108 では,まったく意味がなく,\SpecialChar LyX
16109 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16112 \begin_layout Standard
16121 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16129 \begin_layout Standard
16130 一方,説明文を入れたくない場合には,\SpecialChar LyX
16131 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16132 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16136 \begin_layout Itemize
16164 \begin_layout Itemize
16168 \begin_layout Itemize
16176 \begin_layout Itemize
16200 \begin_layout Standard
16201 将来の\SpecialChar LyX
16202 では,このような癖が解決されることを祈っています\SpecialChar ldots
16207 \begin_layout Plain Layout
16208 (訳註)ここの記述は古くなっています.
16216 \begin_layout Subsection
16230 \begin_layout Subsubsection
16238 \begin_layout Standard
16239 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16244 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16248 \begin_layout Standard
16254 \begin_inset CommandInset ref
16256 reference "sec:スライドの癖"
16260 節参照のこと),\SpecialChar LyX
16261 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16262 環境は,すべて新規スライドに入ります.簡単ですよね.
16265 \begin_layout Standard
16266 Slidesは,おそらく\SpecialChar LyX
16267 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16271 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16272 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16280 \begin_layout Standard
16293 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16301 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16304 \begin_layout Standard
16317 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16325 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16328 \begin_layout Subsubsection
16334 \begin_layout Standard
16339 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16343 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16347 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16348 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16355 \begin_layout Standard
16372 \begin_layout Plain Layout
16373 想像できるように,複数のオーバーレイがあれば,「
16385 」などが親スライドのページ番号に付け加えられます.
16398 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16406 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16415 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16423 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16426 \begin_layout Standard
16427 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16428 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16429 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16440 \begin_layout Standard
16449 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16450 \begin_inset CommandInset ref
16452 reference "sec:スライドの癖"
16464 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16472 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16475 \begin_layout Standard
16480 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16496 は自動的に終了されることに注意してください.したがって,
16507 \begin_layout Standard
16524 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16527 \begin_layout Enumerate
16532 かに関わらず,スライド上に現れるすべてを含んだ
16539 \begin_layout Enumerate
16544 のみに表示するすべての図や段落の前に,
16559 \begin_layout Enumerate
16571 \begin_layout Enumerate
16583 \begin_layout Enumerate
16607 \begin_layout Standard
16615 \begin_layout Standard
16621 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16622 実現するためには,\SpecialChar LaTeX
16627 \begin_layout Plain Layout
16631 \begin_layout Itemize
16636 invisible \SpecialChar ldots
16640 \begin_layout Itemize
16645 visible \SpecialChar ldots
16649 \begin_layout Plain Layout
16651 のような形となり,\SpecialChar TeX
16652 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16664 コマンドの後ろ)に入れます.\SpecialChar TeX
16665 としてマークする方法がわからない場合は,
16677 \begin_layout Subsubsection
16683 \begin_inset CommandInset label
16692 \begin_layout Standard
16705 に関連付けられています.ここでも\SpecialChar LyX
16718 よりも短く(オーバーレイのラベルよりも長いですが),
16722 のラベルと同様,派手な赤紫色です.加えて,印刷した
16738 3」等を付けたページ番号が付けられます.1つの
16754 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16757 \begin_layout Standard
16766 に関して付け加えたいことを書き留めておくことです.特定の
16770 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16780 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16781 コードを使用することに頼らなくてはなりません.
16784 \begin_layout Standard
16785 タイムマーカを使用するには,クラスオプション「
16790 \begin_inset CommandInset ref
16792 reference "sec:slidesetup"
16796 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16800 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16813 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16819 」は,タイムマーカを特定の時間に設定し,「
16825 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16833 にどれだけの時間をかけるのか忘れないでいられます.
16836 \begin_layout Standard
16837 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16849 はすべて普通の紙に印刷したいはずです.しかしながら,
16857 .ユーザーはどうしたら良いのでしょうか.
16860 \begin_layout Standard
16861 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16862 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16878 のみが含まれるようにするものです.同様に,「
16890 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16891 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16900 のコメントを外して,現ファイル名に「*
16904 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16916 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16919 \begin_layout Standard
16932 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16936 \begin_layout Subsection
16944 \begin_layout Standard
16953 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16955 ファイル\SpecialChar menuseparator
16958 メニューを選択してください.すると新規ファイルには,
16986 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
16989 \begin_layout LyX-Code
16990 % Uncomment to print out only slides and overlays
16993 \begin_layout LyX-Code
16997 \begin_layout LyX-Code
17003 \begin_inset Newline newline
17009 \begin_layout LyX-Code
17010 % Uncomment to print out only notes
17013 \begin_layout LyX-Code
17017 \begin_layout LyX-Code
17025 \begin_layout Standard
17026 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17029 Sli\SpecialChar TeX
17032 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17033 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17034 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17039 \begin_inset CommandInset ref
17041 reference "sec:foiltex"
17049 」パッケージ(一部の\SpecialChar TeX
17050 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17051 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17055 \begin_layout Chapter
17056 ソフトウェアを追加する必要がある \SpecialChar LyX
17060 \begin_layout Section
17065 \begin_layout Standard
17073 \begin_layout Subsection
17077 \begin_layout Standard
17086 \begin_layout Plain Layout
17088 頒布版としてMiK\SpecialChar TeX
17112 \begin_inset Newline newline
17116 \begin_inset CommandInset href
17118 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17126 \begin_layout Standard
17129 Chk\SpecialChar TeX
17132 パッケージは,\SpecialChar LaTeX
17133 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17134 \begin_inset Flex Noun
17137 \begin_layout Plain Layout
17144 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17145 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17152 \begin_layout Standard
17153 さて,\SpecialChar LyX
17154 はつねに正しい\SpecialChar LaTeX
17155 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17156 で何をするというのでしょうか.答えは簡単です.
17164 をチェックするだけでなく,打ち間違いによる
17170 Chk\SpecialChar TeX
17179 Chk\SpecialChar TeX
17182 は,以下のような誤りを検出することができます.
17185 \begin_layout Itemize
17187 \begin_inset Newline newline
17190 ...ではなく\SpecialChar ldots
17194 \begin_layout Itemize
17196 \begin_inset Newline newline
17199 ( wrong spacing ):誤った空白
17202 \begin_layout Itemize
17203 よく使われる省略形の後ろは通常スペースにする:
17204 \begin_inset Newline newline
17208 \begin_inset space \thinspace{}
17212 \begin_inset space \space{}
17215 is too wide spacing.:広すぎる空白
17218 \begin_layout Itemize
17219 直前の文章が大文字で終わっているときに,文末スペースに直す:
17220 \begin_inset Newline newline
17224 And this is wrong spacing.:誤った空白
17227 \begin_layout Itemize
17229 \begin_inset Newline newline
17232 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません.
17233 \begin_inset CommandInset label
17243 \begin_layout Plain Layout
17244 この脚注は,正しくないページに行ってしまう恐れがあります.
17252 \begin_layout Itemize
17253 参照の前にハードスペースではなくスペース:
17254 \begin_inset Newline newline
17257 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17258 \begin_inset CommandInset ref
17260 reference "sec:chktex"
17267 \begin_layout Itemize
17269 \begin_inset Formula $\times$
17273 \begin_inset Newline newline
17277 \begin_inset Formula $2\times2$
17283 \begin_layout Standard
17284 などなど\SpecialChar ldots
17287 Chk\SpecialChar TeX
17290 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17293 \begin_layout Subsection
17297 \begin_layout Standard
17298 このプログラムを導入したならば,使うのは
17300 ツール\SpecialChar menuseparator
17304 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17305 は使用中の文書の\SpecialChar LaTeX
17308 Chk\SpecialChar TeX
17311 を起動し,当該ファイルを検査しますが,
17313 Chk\SpecialChar TeX
17316 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17317 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17319 移動\SpecialChar menuseparator
17327 \begin_inset Flex Ruby
17330 \begin_layout Plain Layout
17332 \begin_inset Argument post:1
17335 \begin_layout Plain Layout
17347 \begin_inset Flex Ruby
17350 \begin_layout Plain Layout
17370 \begin_inset Argument post:1
17373 \begin_layout Plain Layout
17388 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17404 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17406 Chk\SpecialChar TeX
17409 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17413 \begin_layout Standard
17414 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17415 警告のほとんどは実際には警告に値しません.
17418 \begin_layout Subsection
17422 \begin_layout Standard
17425 Chk\SpecialChar TeX
17428 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17430 Chk\SpecialChar TeX
17433 を無効にするか,あなたにもう少し合うように
17435 Chk\SpecialChar TeX
17441 \begin_layout Standard
17444 Chk\SpecialChar TeX
17447 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17450 Chk\SpecialChar TeX
17453 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17456 Chk\SpecialChar TeX
17463 \begin_layout Plain Layout
17474 文書\SpecialChar menuseparator
17483 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17484 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17485 ためには,以下の2つの方法があります.
17488 \begin_layout Itemize
17491 \begin_inset Flex MenuItem
17494 \begin_layout Plain Layout
17497 ツール\SpecialChar menuseparator
17498 設定\SpecialChar menuseparator
17499 出力\SpecialChar menuseparator
17501 \SpecialChar menuseparator
17502 Check\SpecialChar TeX
17512 Chk\SpecialChar TeX
17515 起動コマンドラインを調整するか,グローバルな
17517 Chk\SpecialChar TeX
17521 \begin_inset Flex Code
17524 \begin_layout Plain Layout
17530 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17533 \begin_layout Itemize
17536 ファイル\SpecialChar menuseparator
17537 書き出し\SpecialChar menuseparator
17541 を使って文書を\SpecialChar LaTeX
17542 ファイルに変換し,そのファイルに対して
17546 を手動で実行します.このようにすると,\SpecialChar LyX
17547 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17550 \begin_layout Standard
17555 で有効化・無効化できる警告メッセージです.警告を無効にするには
17563 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17565 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17570 \begin_layout Standard
17576 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17579 \begin_layout Enumerate
17583 Command terminated with space.
17586 \begin_layout Enumerate
17589 Non-breaking space (
17590 \begin_inset Quotes eld
17598 \begin_inset Quotes erd
17601 ) should have been used.
17604 \begin_layout Enumerate
17608 You should enclose the previous parenthesis with
17609 \begin_inset Quotes eld
17617 \begin_inset Quotes erd
17623 \begin_layout Enumerate
17626 Italic correction (
17627 \begin_inset Quotes eld
17637 \begin_inset Quotes erd
17640 ) found in non-italic buffer.
17643 \begin_layout Enumerate
17646 Italic correction (
17647 \begin_inset Quotes eld
17657 \begin_inset Quotes erd
17660 ) found more than once.
17663 \begin_layout Enumerate
17667 No italic correction (
17668 \begin_inset Quotes eld
17678 \begin_inset Quotes erd
17684 \begin_layout Enumerate
17688 \begin_inset Quotes eld
17696 \begin_inset Quotes erd
17700 \begin_inset Quotes eld
17708 \begin_inset Quotes erd
17714 \begin_layout Enumerate
17717 Wrong length of dash may have been used.
17720 \begin_layout Enumerate
17724 \begin_inset Quotes eld
17732 \begin_inset Quotes erd
17736 \begin_inset Quotes eld
17744 \begin_inset Quotes erd
17750 \begin_layout Enumerate
17754 \begin_inset Quotes eld
17762 \begin_inset Quotes erd
17768 \begin_layout Enumerate
17772 \begin_inset Quotes eld
17780 \begin_inset Quotes erd
17783 to achieve an ellipsis.
17786 \begin_layout Enumerate
17789 Inter-word spacing (
17790 \begin_inset Quotes eld
17800 \begin_inset Quotes eld
17803 ) should perhaps be used.
17806 \begin_layout Enumerate
17809 Inter-sentence spacing (
17810 \begin_inset Quotes eld
17820 \begin_inset Quotes erd
17823 ) should perhaps be used.
17826 \begin_layout Enumerate
17829 Could not find argument for command.
17832 \begin_layout Enumerate
17836 \begin_inset Quotes eld
17844 \begin_inset Quotes erd
17850 \begin_layout Enumerate
17853 Math mode still on at end of \SpecialChar LaTeX
17857 \begin_layout Enumerate
17861 \begin_inset Quotes eld
17869 \begin_inset Quotes erd
17872 doesn't match the number of
17873 \begin_inset Quotes eld
17881 \begin_inset Quotes erd
17887 \begin_layout Enumerate
17890 You should use either
17893 \begin_inset Quotes eld
17901 \begin_inset Quotes erd
17906 as an alternative to
17907 \begin_inset Quotes eld
17915 \begin_inset Quotes erd
17921 \begin_layout Enumerate
17928 " (ASCII 39) instead of "" (ASCII 180).
17931 \begin_layout Enumerate
17934 User-specified pattern found.
17937 \begin_layout Enumerate
17940 This command might not be intended.
17943 \begin_layout Enumerate
17950 \begin_layout Enumerate
17968 \begin_layout Enumerate
17971 Delete this space to maintain correct page references.
17974 \begin_layout Enumerate
17978 You might wish to put this between a pair of
17979 \begin_inset Quotes eld
17987 \begin_inset Quotes erd
17993 \begin_layout Enumerate
17996 You ought to remove spaces in front of punctuation.
17999 \begin_layout Enumerate
18002 Could not execute \SpecialChar LaTeX
18006 \begin_layout Enumerate
18015 in front of small punctuation.
18018 \begin_layout Enumerate
18026 may look prettier here.
18029 \begin_layout Enumerate
18033 Multiple spaces detected in output.
18036 \begin_layout Enumerate
18039 This text may be ignored.
18042 \begin_layout Enumerate
18048 \begin_inset Quotes eld
18053 to begin quotation, not
18060 \begin_layout Enumerate
18067 to end quotation, not
18070 \begin_inset Quotes eld
18078 \begin_layout Enumerate
18084 \begin_layout Enumerate
18087 You should perhaps use
18088 \begin_inset Quotes eld
18096 \begin_inset Quotes erd
18102 \begin_layout Enumerate
18105 You should put a space in front of/after parenthesis.
18108 \begin_layout Enumerate
18111 You should avoid spaces in front of/after parenthesis.
18114 \begin_layout Enumerate
18118 You should not use punctuation in front of/after quotes.
18121 \begin_layout Enumerate
18124 Double space found.
18127 \begin_layout Enumerate
18130 You should put punctuation outside inner/inside display math mode.
18133 \begin_layout Enumerate
18136 You ought to not use primitive \SpecialChar TeX
18137 in \SpecialChar LaTeX
18141 \begin_layout Enumerate
18144 You should remove spaces in front of
18145 \begin_inset Quotes eld
18153 \begin_inset Quotes erd
18159 \begin_layout Enumerate
18162 \begin_inset Quotes eld
18170 \begin_inset Quotes erd
18173 is normally not followed by
18174 \begin_inset Quotes eld
18182 \begin_inset Quotes erd
18188 \begin_layout Standard
18190 の将来の版では,このツール(およびその縮小版
18194 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18195 書に使用してみていただければ,きっと驚かれることでしょう.
18198 \begin_layout Section
18203 \begin_layout Standard
18206 Lars Bullik Bjønnes
18215 \begin_layout Subsection
18219 \begin_layout Standard
18221 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18225 \begin_layout Standard
18226 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18231 \begin_layout Plain Layout
18232 \begin_inset CommandInset href
18234 target "http://svnbook.red-bean.com/"
18244 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18248 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18252 で終わるファイルです)の概念に注意を払ってください.
18255 \begin_layout Standard
18257 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18260 RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18261 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18263 表示\SpecialChar menuseparator
18264 ツールバー\SpecialChar menuseparator
18270 \begin_layout Standard
18271 自製の外部コマンドを導入したい場合には,
18277 \begin_inset Flex Code
18280 \begin_layout Plain Layout
18289 \begin_layout Standard
18290 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18292 文書\SpecialChar menuseparator
18295 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18296 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18299 \begin_layout Subsection
18304 \begin_layout Standard
18305 以下の節では\SpecialChar LyX
18306 でサポートされているRCSコマンドを説明します.それらのコマンドは
18308 ファイル\SpecialChar menuseparator
18311 のサブメニューにあります.\SpecialChar LyX
18312 は,RCS 5.7/5.8に対して試験されています.
18315 \begin_layout Subsubsection
18321 \begin_layout Standard
18322 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18329 \begin_layout Standard
18330 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18331 書は読み込み専用モードになるので,変更を加えるためには
18335 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18338 \begin_layout Standard
18342 \begin_layout LyX-Code
18345 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18348 \begin_layout Standard
18356 \begin_layout Subsubsection
18362 \begin_layout Standard
18363 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18364 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18367 \begin_layout Itemize
18370 ci -q -u -m"<説明文>" <ファイル名>
18373 \begin_layout Subsubsection
18379 \begin_layout Standard
18380 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18381 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18384 \begin_layout Itemize
18390 \begin_layout Subsubsection
18396 \begin_layout Standard
18397 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18400 \begin_layout Itemize
18403 co -f -u<バージョン> <ファイル名>
18406 \begin_layout Subsubsection
18412 \begin_layout Standard
18413 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18414 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18415 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18417 ファイル\SpecialChar menuseparator
18418 名前をつけて保存\SpecialChar ldots
18421 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18424 \begin_layout Labeling
18425 \labelwidthstring 00.00.0000
18427 \begin_inset space ~
18431 \begin_inset Newline newline
18435 \begin_inset Flex Code
18438 \begin_layout Plain Layout
18445 \begin_inset Flex Code
18448 \begin_layout Plain Layout
18455 \begin_inset Newline newline
18459 \begin_inset Flex Code
18462 \begin_layout Plain Layout
18463 ci -q -u -i "<新ファイル名>"
18471 \begin_layout Subsubsection
18477 \begin_layout Standard
18478 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18479 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18483 \begin_layout Itemize
18486 rcs -o<バージョン> <ファイル名>
18489 \begin_layout Subsubsection
18495 \begin_layout Standard
18496 RCS文書の完全な履歴を表示します.ブラウザ中に,
18507 \begin_layout Subsubsection
18511 \begin_layout Standard
18513 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18514 \begin_inset CommandInset ref
18516 reference "subsec:VCS改訂情報"
18523 \begin_layout Subsection
18528 \begin_layout Standard
18530 は,現在CVSを一部サポートしています.そのコマンドは,
18532 ファイル\SpecialChar menuseparator
18535 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18538 \begin_layout Subsubsection
18542 \begin_layout Standard
18543 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18544 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18547 \begin_layout Standard
18548 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18549 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18550 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18551 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18552 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18553 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18554 で予備付きチェックアウトを利用したい場合には,
18555 \begin_inset Flex Code
18558 \begin_layout Plain Layout
18565 \begin_inset Flex Code
18568 \begin_layout Plain Layout
18574 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18575 コピーを書き込み可能にしているとは限りません.
18578 \begin_layout Standard
18580 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18581 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18582 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18584 \begin_inset Flex MenuItem
18587 \begin_layout Plain Layout
18593 メニューを使用しなくてはなりません.その後,
18594 \begin_inset Flex MenuItem
18597 \begin_layout Plain Layout
18603 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18606 \begin_layout Standard
18608 \begin_inset Flex URL
18611 \begin_layout Plain Layout
18613 http://www.nongnu.org/cvs
18619 \begin_inset Flex URL
18622 \begin_layout Plain Layout
18624 http://ximbiot.com/cvs
18632 \begin_layout Standard
18633 以下に言及するサブコマンドとスイッチを理解するには,
18640 \begin_layout Subsubsection
18644 \begin_layout Standard
18645 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18652 \begin_layout Standard
18653 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18660 \begin_inset Flex Code
18663 \begin_layout Plain Layout
18669 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18670 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18674 \begin_layout Standard
18675 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18678 \begin_layout Standard
18681 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18686 \begin_layout Standard
18687 上記および他のすべてのCVSコマンドにおける
18691 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18694 \begin_layout Subsubsection
18698 \begin_layout Standard
18699 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18700 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18701 \begin_inset Flex MenuItem
18704 \begin_layout Plain Layout
18713 \begin_layout Labeling
18714 \labelwidthstring 00.00.0000
18716 \begin_inset space ~
18720 \begin_inset Newline newline
18724 \begin_inset Flex Code
18727 \begin_layout Plain Layout
18728 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18734 \begin_inset Newline newline
18738 \begin_inset Flex Code
18741 \begin_layout Plain Layout
18742 cvs -q unedit "<ファイル名>"
18750 \begin_layout Subsubsection
18754 \begin_layout Standard
18755 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18758 \begin_layout Standard
18761 cvs -q update "<ファイル名>"
18764 \begin_layout Standard
18765 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18768 \begin_layout Standard
18771 cvs -q edit "<ファイル名>"
18774 \begin_layout Subsubsection
18778 \begin_layout Standard
18779 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18783 \begin_layout Standard
18786 cvs -q update "<ファイル名>"
18789 \begin_layout Standard
18790 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18793 \begin_layout Standard
18796 cvs -q unedit "<ファイル名>"
18799 \begin_layout Subsubsection
18805 \begin_layout Standard
18806 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18807 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18808 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18810 ファイル\SpecialChar menuseparator
18811 名前をつけて保存\SpecialChar ldots
18814 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18817 \begin_layout Labeling
18818 \labelwidthstring 00.00.0000
18820 \begin_inset space ~
18824 \begin_inset Newline newline
18828 \begin_inset Flex Code
18831 \begin_layout Plain Layout
18838 \begin_inset Flex Code
18841 \begin_layout Plain Layout
18848 \begin_inset Newline newline
18852 \begin_inset Flex Code
18855 \begin_layout Plain Layout
18856 cvs -q add "<新ファイル名>"
18864 \begin_layout Subsubsection
18868 \begin_layout Standard
18869 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18870 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18871 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18874 ファイル\SpecialChar menuseparator
18875 名前をつけて保存\SpecialChar ldots
18878 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18881 \begin_layout Labeling
18882 \labelwidthstring 00.00.0000
18884 \begin_inset space ~
18888 \begin_inset Newline newline
18892 \begin_inset Flex Code
18895 \begin_layout Plain Layout
18902 \begin_inset Flex Code
18905 \begin_layout Plain Layout
18912 \begin_inset space ~
18916 \begin_inset Newline newline
18920 \begin_inset Flex Code
18923 \begin_layout Plain Layout
18924 cvs -q add "<新ファイル名>"
18930 \begin_inset space ~
18934 \begin_inset Newline newline
18938 \begin_inset Flex Code
18941 \begin_layout Plain Layout
18942 cvs -q remove "<ファイル名>"
18950 \begin_layout Subsubsection
18951 ローカルディレクトリチェックアウトのレポジトリからの更新
18954 \begin_layout Standard
18956 \begin_inset Flex Code
18959 \begin_layout Plain Layout
18965 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18966 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18967 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18968 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18972 \begin_layout Standard
18974 \begin_inset Flex Code
18977 \begin_layout Plain Layout
18983 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18984 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18985 \begin_inset Flex Code
18988 \begin_layout Plain Layout
18995 \begin_inset Flex Code
18998 \begin_layout Plain Layout
19005 \begin_inset Flex Code
19008 \begin_layout Plain Layout
19014 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19015 \begin_inset Flex Code
19018 \begin_layout Plain Layout
19024 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19027 \begin_layout Labeling
19028 \labelwidthstring 00.00.0000
19030 \begin_inset space ~
19034 \begin_inset Newline newline
19038 \begin_inset Flex Code
19041 \begin_layout Plain Layout
19042 cd $path; cvs diff "."
19048 \begin_inset Newline newline
19052 \begin_inset Flex Code
19055 \begin_layout Plain Layout
19056 cd $path; cvs -q update "."
19064 \begin_layout Standard
19066 \begin_inset Flex Code
19069 \begin_layout Plain Layout
19078 \begin_layout Subsubsection
19082 \begin_layout Standard
19083 これは,CVS文書の全履歴を表示します.
19084 \begin_inset Flex Code
19087 \begin_layout Plain Layout
19089 \begin_inset Quotes eld
19093 \begin_inset Quotes erd
19104 \begin_layout Subsubsection
19108 \begin_layout Standard
19110 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19114 によって抽出されます.詳細については,第
19115 \begin_inset CommandInset ref
19117 reference "subsec:VCS改訂情報"
19124 \begin_layout Subsection
19129 \begin_layout Standard
19131 は,現在SVNを一部サポートしています.そのコマンドは,
19132 \begin_inset Flex MenuItem
19135 \begin_layout Plain Layout
19136 ファイル\SpecialChar menuseparator
19142 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19144 1.5・1.6・1.7・1.8に対して試験されています
19148 \begin_layout Plain Layout
19149 ほとんどのコマンドは,1.4でも動作します.
19150 \begin_inset CommandInset ref
19152 reference "subsec:レポジトリからSVN同期"
19159 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19167 \begin_layout Subsubsection
19171 \begin_layout Standard
19172 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19179 \begin_layout Standard
19180 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19185 \begin_inset Flex Code
19188 \begin_layout Plain Layout
19194 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19197 \begin_layout Standard
19198 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19201 \begin_layout Standard
19203 \begin_inset Flex Code
19206 \begin_layout Plain Layout
19208 \begin_inset Quotes qld
19212 \begin_inset Quotes qld
19223 \begin_layout Standard
19225 \begin_inset Flex Code
19228 \begin_layout Plain Layout
19237 \begin_layout Subsubsection
19241 \begin_layout Standard
19242 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19245 \begin_layout Standard
19250 \begin_layout Plain Layout
19251 ロックが有効になっていない場合です.第
19252 \begin_inset CommandInset ref
19254 reference "subsec:SVNファイルロック"
19264 \begin_inset Flex Code
19267 \begin_layout Plain Layout
19268 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19276 \begin_layout Subsubsection
19280 \begin_layout Standard
19281 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19285 \begin_layout Standard
19290 \begin_layout Plain Layout
19297 \begin_inset Flex Code
19300 \begin_layout Plain Layout
19301 svn update --non-interactive
19302 \begin_inset Quotes qld
19306 \begin_inset Quotes qld
19317 \begin_layout Subsubsection
19321 \begin_layout Standard
19322 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19325 \begin_layout Standard
19327 \begin_inset Flex Code
19330 \begin_layout Plain Layout
19332 \begin_inset Quotes qld
19336 \begin_inset Quotes qld
19347 \begin_layout Subsubsection
19353 \begin_layout Standard
19354 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19355 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19358 ファイル\SpecialChar menuseparator
19359 名前をつけて保存\SpecialChar ldots
19362 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19365 \begin_layout Labeling
19366 \labelwidthstring 00.00.0000
19368 \begin_inset space ~
19372 \begin_inset Newline newline
19376 \begin_inset Flex Code
19379 \begin_layout Plain Layout
19380 svn copy -q "<ファイル名>" "<新ファイル名>"
19386 \begin_inset space ~
19390 \begin_inset Newline newline
19394 \begin_inset Flex Code
19397 \begin_layout Plain Layout
19406 \begin_layout Subsubsection
19410 \begin_layout Standard
19411 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19412 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19415 ファイル\SpecialChar menuseparator
19416 名前をつけて保存\SpecialChar ldots
19419 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19422 \begin_layout Labeling
19423 \labelwidthstring 00.00.0000
19425 \begin_inset space ~
19429 \begin_inset Newline newline
19433 \begin_inset Flex Code
19436 \begin_layout Plain Layout
19437 svn move -q add "<ファイル名>" "<新ファイル名>"
19443 \begin_inset Newline newline
19447 \begin_inset Flex Code
19450 \begin_layout Plain Layout
19459 \begin_layout Subsubsection
19460 \begin_inset CommandInset label
19462 name "subsec:レポジトリからSVN同期"
19466 レポジトリを使ったローカルディレクトリの同期
19470 \begin_layout Plain Layout
19472 \begin_inset Formula $\geqq1.5$
19475 でのみ動作することに注意してください.
19483 \begin_layout Standard
19484 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19485 \begin_inset Flex Code
19488 \begin_layout Plain Layout
19494 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19495 は,文書のおいてあるツリー全体の更新をサポートします
19499 \begin_layout Plain Layout
19500 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19505 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19509 \begin_layout Standard
19510 \begin_inset Flex Code
19513 \begin_layout Plain Layout
19519 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19520 場合には,更新が開始される前にユーザに警告が与えられます.
19523 \begin_layout Labeling
19524 \labelwidthstring 00.00.0000
19526 \begin_inset space ~
19530 \begin_inset Newline newline
19534 \begin_inset Flex Code
19537 \begin_layout Plain Layout
19538 svn diff $path(変更が発見された場合には通知します)
19539 \begin_inset Newline newline
19542 svn update --accept mine-full $path
19550 \begin_layout Standard
19552 \begin_inset Flex Code
19555 \begin_layout Plain Layout
19564 \begin_layout Subsubsection
19568 \begin_layout Standard
19569 これは,SVN文書の全履歴を表示します.
19570 \begin_inset Flex Code
19573 \begin_layout Plain Layout
19575 \begin_inset Quotes qld
19579 \begin_inset Quotes qld
19590 \begin_layout Subsubsection
19592 \begin_inset CommandInset label
19594 name "subsec:SVNファイルロック"
19601 \begin_layout Standard
19602 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19603 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19604 するための,何らかのロック機構を導入することが考えられます.
19607 \begin_layout Standard
19608 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19609 \begin_inset Flex Code
19612 \begin_layout Plain Layout
19618 svnファイル特性に依拠した書き込み権限の自動設定(第
19619 \begin_inset CommandInset ref
19621 reference "subsec:自動ロック特性"
19629 \begin_layout Plain Layout
19630 \begin_inset Flex URL
19633 \begin_layout Plain Layout
19635 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19645 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19646 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19647 り替わります.これは特に,\SpecialChar LyX
19648 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19651 \begin_layout Itemize
19652 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19656 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19659 \begin_layout Itemize
19660 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19664 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19668 \begin_layout Plain Layout
19669 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19674 ,書き込みロックの解放のみが行われます.
19677 \begin_layout Standard
19681 \begin_layout Labeling
19682 \labelwidthstring 00.00.0000
19684 \begin_inset Flex Code
19687 \begin_layout Plain Layout
19689 \begin_inset Quotes erd
19693 \begin_inset Quotes erd
19697 \begin_inset Quotes eld
19701 \begin_inset Quotes erd
19710 \begin_inset Newline newline
19714 \begin_inset Flex Code
19717 \begin_layout Plain Layout
19719 \begin_inset Quotes eld
19723 \begin_inset Quotes erd
19734 \begin_layout Labeling
19735 \labelwidthstring 00.00.0000
19737 \begin_inset Flex Code
19740 \begin_layout Plain Layout
19742 \begin_inset Quotes eld
19746 \begin_inset Quotes erd
19755 \begin_inset Newline newline
19759 \begin_inset Flex Code
19762 \begin_layout Plain Layout
19764 \begin_inset Quotes eld
19768 \begin_inset Quotes erd
19779 \begin_layout Subsubsection
19781 \begin_inset CommandInset label
19783 name "subsec:自動ロック特性"
19790 \begin_layout Standard
19792 \begin_inset Flex Code
19795 \begin_layout Plain Layout
19801 ファイルに対する書き込み権限の自動設定は,
19802 \begin_inset Flex MenuItem
19805 \begin_layout Plain Layout
19806 ファイル\SpecialChar menuseparator
19807 バージョン管理\SpecialChar menuseparator
19813 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19816 \begin_layout Standard
19820 \begin_layout Labeling
19821 \labelwidthstring 00.00.0000
19823 \begin_inset Flex Code
19826 \begin_layout Plain Layout
19827 svn propset svn:needs-lock ON
19828 \begin_inset Quotes eld
19832 \begin_inset Quotes erd
19843 \begin_layout Labeling
19844 \labelwidthstring 00.00.0000
19846 \begin_inset Flex Code
19849 \begin_layout Plain Layout
19850 svn propdel svn:needs-lock
19851 \begin_inset Quotes eld
19855 \begin_inset Quotes erd
19866 \begin_layout Subsubsection
19867 \begin_inset CommandInset label
19869 name "subsec:VCS改訂情報"
19876 \begin_layout Standard
19877 文書中で改訂情報を有効化するにはいくつかの方法があります.
19880 \begin_layout Itemize
19886 \begin_layout Itemize
19888 \begin_inset Flex Code
19891 \begin_layout Plain Layout
19898 \begin_inset Flex Code
19901 \begin_layout Plain Layout
19907 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19910 \begin_layout Standard
19912 \begin_inset Tabular
19913 <lyxtabular version="3" rows="6" columns="2">
19914 <features tabularvalignment="middle">
19915 <column alignment="center" valignment="top">
19916 <column alignment="center" valignment="top">
19918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19921 \begin_layout Plain Layout
19927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19930 \begin_layout Plain Layout
19938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19941 \begin_layout Plain Layout
19947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19950 \begin_layout Plain Layout
19958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19961 \begin_layout Plain Layout
19967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19970 \begin_layout Plain Layout
19978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19981 \begin_layout Plain Layout
19987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19990 \begin_layout Plain Layout
19998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20001 \begin_layout Plain Layout
20007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20010 \begin_layout Plain Layout
20011 チェックアウト頻度が低かったことによる不完全な作業コピー
20018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20021 \begin_layout Plain Layout
20027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20030 \begin_layout Plain Layout
20031 改訂版が混合し,修正され,スイッチされた作業コピー
20044 \begin_layout Itemize
20046 \begin_inset Flex Code
20049 \begin_layout Plain Layout
20051 \begin_inset space ~
20055 \begin_inset space ~
20059 \begin_inset space ~
20067 の出力を解析したものが返されます.サポートされるフラグは
20071 \begin_layout Itemize
20073 \begin_inset Flex Code
20076 \begin_layout Plain Layout
20085 \begin_layout Itemize
20087 \begin_inset Flex Code
20090 \begin_layout Plain Layout
20099 \begin_layout Itemize
20101 \begin_inset Flex Code
20104 \begin_layout Plain Layout
20113 \begin_layout Itemize
20115 \begin_inset Flex Code
20118 \begin_layout Plain Layout
20128 \begin_layout Standard
20129 これらの情報は,情報差込枠で得ることができます(例:
20130 \begin_inset Flex Code
20133 \begin_layout Plain Layout
20134 info-insert buffer vcs-date
20139 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20140 \begin_inset Flex Code
20143 \begin_layout Plain Layout
20149 ディレクトリがあるときのみ)利用可能です.
20153 \begin_layout Itemize
20154 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20158 \begin_layout Plain Layout
20159 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20164 .簡単に言えば,ファイルキーワード特性を設定して(例:
20166 svn propset svn:keywords 'Rev' file.lyx
20168 ),文書中にキーワード\SpecialChar TeX
20173 \begin_layout Plain Layout
20174 これは,\SpecialChar LyX
20175 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20181 \begin_inset Flex Code
20184 \begin_layout Plain Layout
20190 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20191 \begin_inset Flex Code
20194 \begin_layout Plain Layout
20200 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20201 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20203 \begin_inset Formula $Rev$
20207 \begin_inset Formula $Rev:59$
20210 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20211 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20212 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20213 がこれを直接サポートすることは,難しそうです.
20216 \begin_layout Subsection
20220 \begin_layout Quote
20221 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20226 \begin_layout Subsubsection
20230 \begin_layout Standard
20232 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20233 トプログラムのWindows用インストーラは
20234 \begin_inset CommandInset href
20237 target "http://www.collab.net/nonav/downloads/subversion/"
20243 \begin_inset CommandInset href
20246 target "http://tortoisesvn.tigris.org/"
20251 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20253 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20254 自身が使用するクライアントプログラムの代わりとは成りませんので
20258 \begin_layout Subsubsection
20259 文書をSubversion管理下に置くには
20262 \begin_layout Standard
20264 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20265 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20266 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20268 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20269 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20271 \begin_inset Flex Code
20274 \begin_layout Plain Layout
20282 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20283 \begin_inset Flex Code
20286 \begin_layout Plain Layout
20295 \begin_layout Enumerate
20297 \begin_inset Flex Code
20300 \begin_layout Plain Layout
20309 \begin_inset Flex MenuItem
20312 \begin_layout Plain Layout
20313 TortoiseSVN\SpecialChar menuseparator
20319 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20322 \begin_layout Enumerate
20323 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20324 \begin_inset Flex MenuItem
20327 \begin_layout Plain Layout
20328 Create folder\SpecialChar ldots
20334 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20335 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20338 \begin_layout Enumerate
20340 \begin_inset Flex Code
20343 \begin_layout Plain Layout
20352 \begin_inset Flex MenuItem
20355 \begin_layout Plain Layout
20356 SVN Checkout\SpecialChar ldots
20362 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20363 \begin_inset Flex Code
20366 \begin_layout Plain Layout
20374 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20375 \begin_inset Flex Code
20378 \begin_layout Plain Layout
20387 \begin_inset Flex Code
20390 \begin_layout Plain Layout
20399 \begin_layout Enumerate
20402 \begin_inset Flex MenuItem
20405 \begin_layout Plain Layout
20406 ファイル\SpecialChar menuseparator
20407 バージョン管理\SpecialChar menuseparator
20413 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20416 \begin_layout Standard
20418 \begin_inset Flex MenuItem
20421 \begin_layout Plain Layout
20422 ファイル\SpecialChar menuseparator
20428 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20429 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20432 \begin_layout Subsubsection
20433 Windows下でSVNと共にSSHトンネルを使うには
20436 \begin_layout Standard
20437 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20438 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20442 \begin_layout Enumerate
20443 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20444 \begin_inset Flex Code
20447 \begin_layout Plain Layout
20453 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20456 \begin_layout Enumerate
20457 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20461 \begin_layout Plain Layout
20462 \begin_inset Flex URL
20465 \begin_layout Plain Layout
20467 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20477 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20479 \begin_inset Flex Ruby
20482 \begin_layout Plain Layout
20484 \begin_inset Argument post:1
20487 \begin_layout Plain Layout
20502 \begin_layout Enumerate
20503 \begin_inset Flex Code
20506 \begin_layout Plain Layout
20512 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20513 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20514 s file:」編集フィールドから,直接サーバの
20515 \begin_inset Flex Code
20518 \begin_layout Plain Layout
20519 ~/.ssh/authorized_keys
20525 \begin_inset Flex Code
20528 \begin_layout Plain Layout
20534 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20537 \begin_layout Enumerate
20538 Puttyのplinkを入手してください.SVNのconfigファイル
20542 \begin_layout Plain Layout
20543 正確なパスはWindowsのバージョンに依りますが,通常は
20544 \begin_inset Flex Code
20547 \begin_layout Plain Layout
20550 Documents and Settings
20564 \begin_inset Flex Code
20567 \begin_layout Plain Layout
20583 \begin_inset Flex Code
20586 \begin_layout Plain Layout
20592 セクションにsshコマンドを設定してください.例:
20593 \begin_inset Flex Code
20596 \begin_layout Plain Layout
20597 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20606 \begin_layout Plain Layout
20607 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20608 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20617 \begin_layout Enumerate
20618 SVNアーカイブをチェックアウトしてください.例:
20619 \begin_inset Newline newline
20623 \begin_inset Flex Code
20626 \begin_layout Plain Layout
20627 svn co svn+ssh://user@server/repository_path
20635 \begin_layout Subsubsection
20639 \begin_layout Standard
20640 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20641 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20643 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20644 \begin_inset Flex Code
20647 \begin_layout Plain Layout
20657 \begin_layout Plain Layout
20659 \begin_inset Flex Code
20662 \begin_layout Plain Layout
20663 svn propset svn:eol-style native FILE_NAME
20673 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20677 \begin_layout Plain Layout
20678 \begin_inset Flex URL
20681 \begin_layout Plain Layout
20683 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20696 \begin_layout Subsection
20701 \begin_layout Standard
20703 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20705 ファイル\SpecialChar menuseparator
20708 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20714 \begin_layout Plain Layout
20715 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
20718 ツール\SpecialChar menuseparator
20719 設定\SpecialChar menuseparator
20720 パス\SpecialChar menuseparator
20731 \begin_layout Standard
20732 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20733 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20734 ミットを行います.ローカルリポジトリは,GITコマンドの
20735 \begin_inset Flex Code
20738 \begin_layout Plain Layout
20745 \begin_inset Flex Code
20748 \begin_layout Plain Layout
20754 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20755 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20756 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20757 \begin_inset Flex Code
20760 \begin_layout Plain Layout
20767 \begin_inset Flex Code
20770 \begin_layout Plain Layout
20779 \begin_layout Subsubsection
20783 \begin_layout Standard
20784 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20791 \begin_layout Standard
20792 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20797 \begin_inset Flex Code
20800 \begin_layout Plain Layout
20806 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20809 \begin_layout Standard
20810 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20813 \begin_layout Standard
20815 \begin_inset Flex Code
20818 \begin_layout Plain Layout
20827 \begin_layout Standard
20829 \begin_inset Flex Code
20832 \begin_layout Plain Layout
20841 \begin_layout Subsubsection
20845 \begin_layout Standard
20846 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20849 \begin_layout Standard
20851 \begin_inset Flex Code
20854 \begin_layout Plain Layout
20856 \begin_inset Quotes erd
20860 \begin_inset Quotes erd
20871 \begin_layout Subsubsection
20875 \begin_layout Standard
20876 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20879 \begin_layout Standard
20881 \begin_inset Flex Code
20884 \begin_layout Plain Layout
20886 \begin_inset Quotes qld
20890 \begin_inset Quotes qld
20901 \begin_layout Subsubsection
20905 \begin_layout Standard
20906 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20907 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20910 ファイル\SpecialChar menuseparator
20911 名前をつけて保存\SpecialChar ldots
20914 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20917 \begin_layout Labeling
20918 \labelwidthstring 00.00.0000
20920 \begin_inset space ~
20924 \begin_inset Newline newline
20928 \begin_inset Flex Code
20931 \begin_layout Plain Layout
20932 git mv "<ファイル名>" "<新ファイル名>"
20938 \begin_inset Newline newline
20942 \begin_inset Flex Code
20945 \begin_layout Plain Layout
20954 \begin_layout Subsubsection
20958 \begin_layout Standard
20959 これは,GIT文書の全履歴を表示します.
20960 \begin_inset Flex Code
20963 \begin_layout Plain Layout
20965 \begin_inset Quotes qld
20969 \begin_inset Quotes qld
20980 \begin_layout Subsubsection
20984 \begin_layout Standard
20986 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20987 \begin_inset Flex Code
20990 \begin_layout Plain Layout
20991 git log -n 1 --pretty=format:%H%n%an%n%ai
20996 によって抽出されます.ツリーバージョン情報は,
20997 \begin_inset Flex Code
21000 \begin_layout Plain Layout
21001 git describe --abbrev --dirty --long
21007 \begin_inset CommandInset ref
21009 reference "subsec:VCS改訂情報"
21016 \begin_layout Subsection
21020 \begin_layout Standard
21022 \begin_inset Flex Code
21025 \begin_layout Plain Layout
21031 機構が付け加えられたおかげで,\SpecialChar LyX
21032 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21035 \begin_layout Standard
21036 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21039 \begin_layout Description
21041 \begin_inset Flex Code
21044 \begin_layout Plain Layout
21045 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21053 \begin_layout Description
21055 \begin_inset Flex Code
21058 \begin_layout Plain Layout
21059 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21067 \begin_layout Subsection
21071 \begin_layout Standard
21073 \begin_inset Flex Code
21076 \begin_layout Plain Layout
21082 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21084 まり便利ではありません.そこで,\SpecialChar LyX
21085 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21087 \begin_inset Flex Code
21090 \begin_layout Plain Layout
21096 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21097 関数説明書を参照),もう1つはツールバーアイコン
21109 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21110 \begin_inset Flex MenuItem
21113 \begin_layout Plain Layout
21119 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21122 \begin_layout Standard
21123 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21124 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21125 \begin_inset Flex Code
21128 \begin_layout Plain Layout
21138 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21141 \begin_layout Section
21145 \begin_layout Standard
21150 (kayvan@sylvan.com)改訂
21152 Edmar Wienskoski Jr.
21154 (edmar-w-jr@technologist.com)原文
21157 \begin_layout Subsection
21161 \begin_layout Standard
21162 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21163 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21164 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21165 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21168 \begin_layout Standard
21169 また,あなたが,\SpecialChar LyX
21170 の設定を変更することを厭わない程度まで\SpecialChar LyX
21171 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21172 するトピックを扱っている,\SpecialChar LyX
21176 \begin_layout Subsection
21180 \begin_layout Standard
21181 以下は,文芸プログラミング FAQからの抜粋です.
21184 \begin_layout Quotation
21185 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21186 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21187 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21189 \begin_inset space \thinspace{}
21193 Knuthが,\SpecialChar TeX
21194 組版ソフトウエアを開発中に作り出したものです.
21197 \begin_layout Standard
21201 \begin_layout Quotation
21204 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21207 \begin_layout Quotation
21208 3つの際立った特徴があります.重要な順に列挙すれば,
21212 \begin_layout Itemize
21216 \begin_layout Itemize
21220 \begin_layout Itemize
21221 特に図式と数式を含んだドキュメンテーションの組版
21225 \begin_layout Quotation
21229 \begin_layout Standard
21230 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21233 \begin_layout Subsubsection
21237 \begin_layout Standard
21241 \begin_layout Quote
21242 Literate Programming FAQ
21243 \begin_inset Flex URL
21246 \begin_layout Plain Layout
21248 http://www.literateprogramming.com/lpfaq.pdf
21256 \begin_layout Standard
21260 \begin_layout Standard
21261 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21262 を持つものもあります.私は自分で使うのに,いくつかの理由から
21269 \begin_layout Itemize
21270 説明文書を\SpecialChar LaTeX
21274 \begin_layout Itemize
21275 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21279 \begin_layout Plain Layout
21284 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21285 ムコードや\SpecialChar LaTeX
21286 コードのみを含むファイルに変換することができます.
21291 ,自分が必要な特別な処理を実行することが容易である.
21294 \begin_layout Itemize
21295 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21298 \begin_layout Itemize
21302 \begin_layout Standard
21306 \begin_layout Quote
21308 \begin_inset Flex URL
21311 \begin_layout Plain Layout
21313 https://www.cs.tufts.edu/~nr/noweb/
21321 \begin_layout Standard
21322 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21325 \begin_layout Subsection
21327 とNowebを使った文芸プログラミング
21330 \begin_layout Standard
21332 における文芸プログラミングのサポートは,\SpecialChar LyX
21333 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21334 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21338 \begin_layout Subsubsection
21339 ドキュメントとコードの生成(weavingおよびtangling)
21342 \begin_layout Paragraph
21346 \begin_layout Standard
21347 Nowebと\SpecialChar LyX
21348 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21350 文書\SpecialChar menuseparator
21353 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21354 web」モジュールが表示され,文書に追加できるようになっています.
21357 \begin_layout Paragraph
21361 \begin_layout Standard
21364 \begin_inset Flex Noun
21367 \begin_layout Plain Layout
21373 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21376 \begin_layout LyX-Code
21380 \begin_layout LyX-Code
21384 \begin_layout LyX-Code
21388 \begin_layout LyX-Code
21392 \begin_layout LyX-Code
21396 \begin_layout Standard
21397 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21398 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21400 \begin_inset Flex Noun
21403 \begin_layout Plain Layout
21409 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21412 \begin_layout Standard
21413 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21416 \begin_layout LyX-Code
21420 \begin_layout LyX-Code
21421 def some_function(args):
21424 \begin_layout LyX-Code
21425 "This is the doc string for this function."
21428 \begin_layout LyX-Code
21429 print "My args: ", args
21432 \begin_layout LyX-Code
21433 @ %def some_function
21436 \begin_layout Standard
21437 これをどのように使って,その結果相互参照がどうなるかは
21439 LIBDIR/examples/listerrors.lyx
21441 の中の文芸pythonプログラムを見るとよくわかります.
21444 \begin_layout Paragraph
21448 \begin_layout Standard
21449 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21452 文書\SpecialChar menuseparator
21455 等を選ぶだけです.特別な手続きは必要ありません.
21458 \begin_layout Standard
21459 理解を助けるために,\SpecialChar LyX
21460 の内部で何が起っているかを説明しておきましょう.
21463 \begin_layout Enumerate
21466 文書\SpecialChar menuseparator
21469 が選択されると,\SpecialChar LaTeX
21474 \begin_layout Standard
21475 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21476 \begin_inset Flex MenuItem
21479 \begin_layout Plain Layout
21485 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21489 \begin_layout Enumerate
21490 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21492 \begin_inset Flex Noun
21495 \begin_layout Plain Layout
21501 差込枠でコードを入力するのだけがポイントです.
21504 \begin_layout Enumerate
21505 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21507 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21512 \begin_layout Plain Layout
21515 ツール\SpecialChar menuseparator
21518 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21531 を使って\SpecialChar LaTeX
21536 \begin_layout Standard
21537 それ以外の場合はこのステップを飛ばします.
21541 \begin_layout Enumerate
21542 最後に\SpecialChar LaTeX
21543 が実行され,通常の文書と同じ後処理が行われます.
21546 \begin_layout Standard
21547 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21550 \begin_layout Paragraph
21554 \begin_layout Standard
21555 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21556 ファイルが生成されます.それから\SpecialChar LyX
21561 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21564 \begin_layout Enumerate
21565 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21569 \begin_layout Enumerate
21570 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21571 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21572 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21575 \begin_layout Standard
21579 \begin_layout LyX-Code
21582 build-script $$i $$r
21585 \begin_layout Standard
21586 と指定します.これは基本的に,\SpecialChar LyX
21588 \begin_inset Quotes erd
21596 \begin_inset Quotes erd
21599 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21600 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21601 ファイルのディレクトリパスを使って呼び出すこ
21605 \begin_layout Standard
21606 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21609 \begin_layout LyX-Code
21615 \begin_layout LyX-Code
21621 \begin_layout LyX-Code
21624 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21627 \begin_layout Standard
21628 変換子設定の次の部分は「フラグ」で,これは
21631 \begin_layout LyX-Code
21634 parselog=$$s/scripts/listerrors
21637 \begin_layout Standard
21639 \begin_inset Newline newline
21643 \begin_inset Quotes erd
21647 \begin_inset Quotes erd
21651 \begin_inset Quotes erd
21655 \begin_inset Quotes erd
21661 \begin_layout Standard
21662 ビルドは,通常\SpecialChar LyX
21663 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21664 は,主要ファイルとみなされるものをコピーして取り出
21669 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21670 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21671 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21674 \begin_layout Paragraph
21678 \begin_layout Standard
21681 \begin_inset Quotes eld
21685 \begin_inset Quotes erd
21688 chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21689 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21692 \begin_layout Standard
21693 以下に典型的なchunkがどのようなものかを書いておきます.
21696 \begin_layout LyX-Code
21698 \begin_inset Newline newline
21704 \begin_layout LyX-Code
21706 \begin_inset Newline newline
21710 \begin_inset Newline newline
21713 if [ -z "${NOWEB_SOURCE}" ]
21714 \begin_inset Newline newline
21720 \begin_layout LyX-Code
21721 NOWEB_SOURCE=myfile.nw
21722 \begin_inset Newline newline
21726 \begin_inset Newline newline
21730 code to extract files ...
21731 use NOWEB_OUTPUT_DIR here ...]
21732 \begin_inset Newline newline
21736 code to compile files ...]
21737 \begin_inset Newline newline
21743 \begin_layout Standard
21746 LIBDIR/examples/listerrors.lyx
21750 LIBDIR/examples/Literate.lyx
21752 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21755 LIBDIR/examples/noweb2lyx.lyx
21757 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21758 の文芸プログラミングのサポートがプログラム言語に依存しない
21762 \begin_layout Subsubsection
21767 \begin_layout Standard
21768 すべての文芸プログラムのための設定は,
21770 ツール\SpecialChar menuseparator
21773 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21776 \begin_layout Description
21777 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21789 に設定してください.これによって,\SpecialChar LyX
21790 に変換プロセスの第一段階でつくられるファイルに
21794 という拡張子をつけることを指示します.
21797 \begin_layout Description
21798 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21801 \begin_layout Description
21811 この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21813 noweave -delay -index $$i > $$o
21818 \begin_layout Description
21827 これは「tangling」を行います.上述のように,変換子は「
21829 build-script $$i $$r
21833 parselog=$$s/scripts/listerrors
21838 \begin_layout Subsubsection
21842 \begin_layout Standard
21843 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21847 \begin_layout Standard
21848 ddd/gdbでデバッグしているとき,一つの
21849 \begin_inset Flex Ruby
21852 \begin_layout Plain Layout
21854 \begin_inset Argument post:1
21857 \begin_layout Plain Layout
21868 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21869 \begin_inset Flex MenuItem
21872 \begin_layout Plain Layout
21873 ツール\SpecialChar menuseparator
21874 設定\SpecialChar menuseparator
21881 \begin_inset Flex MenuItem
21884 \begin_layout Plain Layout
21890 エントリを変えると変えることができます.
21893 \begin_layout Standard
21894 新しい\SpecialChar LyX
21895 サーバの関数と,このdddの機能を使うために
21896 \begin_inset Flex MenuItem
21899 \begin_layout Plain Layout
21908 \begin_layout LyX-Code
21911 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21914 \begin_layout Standard
21915 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21916 サーバに情報を送り,\SpecialChar LyX
21918 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21921 \begin_layout Standard
21922 この機能が動くには\SpecialChar LyX
21923 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21924 サーバーは使えないようになっています).
21927 \begin_layout Standard
21929 \begin_inset CommandInset ref
21931 reference "sec:サーバーを開始するには"
21938 \begin_layout Subsubsection
21942 \begin_layout Standard
21943 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
21957 の段落環境へのショートカットであり,1つは拡張差込枠
21961 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
21962 \begin_inset Flex Ruby
21965 \begin_layout Plain Layout
21985 \begin_inset Argument post:1
21988 \begin_layout Plain Layout
22002 \begin_layout Standard
22004 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22005 \begin_inset Flex MenuItem
22008 \begin_layout Plain Layout
22009 文書\SpecialChar menuseparator
22010 更新\SpecialChar menuseparator
22017 \begin_inset Flex MenuItem
22020 \begin_layout Plain Layout
22021 文書\SpecialChar menuseparator
22022 表示\SpecialChar menuseparator
22031 \begin_layout LyX-Code
22035 \begin_layout LyX-Code
22039 \begin_layout LyX-Code
22040 Icon "layout Standard"
22043 \begin_layout LyX-Code
22044 Icon "layout Section"
22047 \begin_layout LyX-Code
22048 Icon "layout latex"
22051 \begin_layout LyX-Code
22052 Icon "layout \SpecialChar LyX
22056 \begin_layout LyX-Code
22057 Icon "flex.insert Chunk"
22060 \begin_layout LyX-Code
22064 \begin_layout LyX-Code
22068 \begin_layout LyX-Code
22069 Icon "buffer-typeset"
22072 \begin_layout LyX-Code
22073 Icon "build-program"
22076 \begin_layout LyX-Code
22080 \begin_layout LyX-Code
22084 \begin_layout LyX-Code
22088 \begin_layout LyX-Code
22092 \begin_layout LyX-Code
22096 \begin_layout Subsubsection
22100 \begin_layout Standard
22103 \begin_inset Flex MenuItem
22106 \begin_layout Plain Layout
22112 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22113 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22114 フォントを使うことになっていて,文芸プログラミ
22115 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22116 \begin_inset Flex MenuItem
22119 \begin_layout Plain Layout
22120 操作性\SpecialChar menuseparator
22129 \begin_layout Standard
22130 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22131 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22134 \begin_layout Subsection
22139 \begin_layout Standard
22140 knitrとSweaveへのサポートについては,用例ファイル
22146 ヘルプ\SpecialChar menuseparator
22152 \begin_layout Chapter
22154 \begin_inset CommandInset label
22156 name "chap:Special-features"
22163 \begin_layout Standard
22165 では,\SpecialChar LaTeX
22166 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22167 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22168 コードを使用することはできます.本章は,ユーザの興味が
22169 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22176 \begin_layout Section
22180 \begin_layout Standard
22189 とは別の機能です.文書全体に二段組を行いたい場合には,
22193 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22196 \begin_layout Standard
22197 文書中で多段組を行うには,\SpecialChar LaTeX
22199 \begin_inset Flex Code
22202 \begin_layout Plain Layout
22209 \begin_inset Index idx
22212 \begin_layout Plain Layout
22214 ぱっけーじ @ \SpecialChar LaTeX
22222 文書\SpecialChar menuseparator
22223 設定\SpecialChar menuseparator
22233 \begin_layout Standard
22234 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22238 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22241 \begin_layout Subsection
22245 \begin_layout Standard
22246 文章中で二段組を使用したい場合には,段組を始める場所で
22248 挿入\SpecialChar menuseparator
22249 任意設定差込枠\SpecialChar menuseparator
22252 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22255 \begin_layout Standard
22259 \begin_layout Standard
22261 \begin_inset Flex Multiple Columns
22264 \begin_layout Plain Layout
22269 The Adventure of the Empty House
22272 \begin_inset Newline newline
22275 by Sir Arthur Conan Doyle
22278 \begin_layout Plain Layout
22281 It was in the spring of the year 1894 that all London was interested, and
22282 the fashionable world dismayed, by the murder of the Honourable Ronald
22283 Adair under most unusual and inexplicable circumstances.
22284 The public has already learned those particulars of the crime which came
22285 out in the police investigation, but a good deal was suppressed upon that
22286 occasion, since the case for the prosecution was so overwhelmingly strong
22287 that it was not necessary to bring forward all the facts.
22288 Only now, at the end of nearly ten years, am I allowed to supply those
22289 missing links which make up the whole of that remarkable chain.
22290 The crime was of interest in itself, but that interest was as nothing to
22291 me compared to the inconceivable sequel, which afforded me the greatest
22292 shock and surprise of any event in my adventurous life.
22293 Even now, after this long interval, I find myself thrilling as I think
22294 of it, and feeling once more that sudden flood of joy, amazement, and increduli
22295 ty which utterly submerged my mind.
22296 Let me say to that public, which has shown some interest in those glimpses
22297 which I have occasionally given them of the thoughts and actions of a very
22298 remarkable man, that they are not to blame me if I have not shared my knowledge
22299 with them, for I should have considered it my first duty to do so, had
22300 I not been barred by a positive prohibition from his own lips, which was
22301 only withdrawn upon the third of last month.
22309 \begin_layout Standard
22310 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22311 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22313 \begin_inset Newline newline
22319 \begin_layout Standard
22320 \begin_inset Flex Multiple Columns
22323 \begin_layout Plain Layout
22326 \begin_inset Argument 1
22329 \begin_layout Plain Layout
22336 It can be imagined that my close intimacy with Sherlock Holmes had interested
22337 me deeply in crime, and that after his disappearance I never failed to
22338 read with care the various problems which came before the public.
22339 And I even attempted, more than once, for my own private satisfaction,
22340 to employ his methods in their solution, though with indifferent success.
22341 There was none, however, which appealed to me like this tragedy of Ronald
22343 As I read the evidence at the inquest, which led up to a verdict of willful
22344 murder against some person or persons unknown, I realized more clearly
22345 than I had ever done the loss which the community had sustained by the
22346 death of Sherlock Holmes.
22347 There were points about this strange business which would, I was sure,
22348 have specially appealed to him, and the efforts of the police would have
22349 been supplemented, or more probably anticipated, by the trained observation
22350 and the alert mind of the first criminal agent in Europe.
22351 All day, as I drove upon my round, I turned over the case in my mind and
22352 found no explanation which appeared to me to be adequate.
22353 At the risk of telling a twice-told tale, I will recapitulate the facts
22354 as they were known to the public at the conclusion of the inquest.
22362 \begin_layout Standard
22363 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22366 \begin_layout Standard
22367 \begin_inset Newpage newpage
22373 \begin_layout Subsection
22377 \begin_layout Standard
22381 \begin_layout Standard
22382 \begin_inset Flex Multiple Columns
22385 \begin_layout Plain Layout
22388 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22389 at that time governor of one of the Australian colonies.
22390 Adair's mother had returned from Australia to undergo the operation for
22391 cataract, and she, her son Ronald, and her daughter Hilda were living together
22395 \begin_layout Plain Layout
22396 \begin_inset Flex Multiple Columns
22399 \begin_layout Plain Layout
22402 The youth moved in the best society
22403 \begin_inset space ~
22406 – had, so far as was known, no enemies and no particular vices.
22407 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22408 had been broken off by mutual consent some months before, and there was
22409 no sign that it had left any very profound feeling behind it.
22410 For the rest {sic} the man's life moved in a narrow and conventional circle,
22411 for his habits were quiet and his nature unemotional.
22412 Yet it was upon this easy-going young aristocrat that death came, in most
22413 strange and unexpected form, between the hours of ten and eleven-twenty
22414 on the night of March 30, 1894.
22422 \begin_layout Plain Layout
22425 Ronald Adair was fond of cards
22426 \begin_inset space ~
22429 – playing continually, but never for such stakes as would hurt him.
22430 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22431 It was shown that, after dinner on the day of his death, he had played
22432 a rubber of whist at the latter club.
22433 He had also played there in the afternoon.
22438 The evidence of those who had played with him
22439 \begin_inset space ~
22443 Murray, Sir John Hardy, and Colonel Moran
22444 \begin_inset space ~
22447 – showed that the game was whist, and that there was a fairly equal fall
22449 Adair might have lost five pounds, but not more.
22450 His fortune was a considerable one, and such a loss could not in any way
22452 He had played nearly every day at one club or other, but he was a cautious
22453 player, and usually rose a winner.
22454 It came out in evidence that, in partnership with Colonel Moran, he had
22455 actually won as much as four hundred and twenty pounds in a sitting, some
22456 weeks before, from Godfrey Milner and Lord Balmoral.
22457 So much for his recent history as it came out at the inquest.
22465 \begin_layout Subsection
22469 \begin_layout Standard
22470 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22473 \begin_layout Standard
22474 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22476 \begin_inset Flex Code
22479 \begin_layout Plain Layout
22486 \begin_inset CommandInset href
22489 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22497 \begin_layout Subsubsection
22501 \begin_layout Standard
22502 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22504 挿入\SpecialChar menuseparator
22507 メニューを使用してください.序文は,この差込枠内に書いてください.
22508 \begin_inset Newline newline
22514 \begin_layout Standard
22515 \begin_inset VSpace bigskip
22521 \begin_layout Standard
22522 \begin_inset Flex Multiple Columns
22525 \begin_layout Plain Layout
22526 \begin_inset Argument 2
22529 \begin_layout Plain Layout
22530 And the story continues and continues and continues and continues\SpecialChar ldots
22538 On the evening of the crime, he returned from the club exactly at ten.
22539 His mother and sister were out spending the evening with a relation.
22540 The servant deposed that she heard him enter the front room on the second
22541 floor, generally used as his sitting-room.
22542 She had lit a fire there, and as it smoked she had opened the window.
22543 No sound was heard from the room until eleven-twenty, the hour of the return
22544 of Lady Maynooth and her daughter.
22545 Desiring to say good-night, she attempted to enter her son's room.
22546 The door was locked on the inside, and no answer could be got to their
22547 cries and knocking.
22548 Help was obtained, and the door forced.
22549 The unfortunate young man was found lying near the table.
22550 His head had been horribly mutilated by an expanding revolver bullet, but
22551 no weapon of any sort was to be found in the room.
22559 \begin_layout Standard
22560 最初の\SpecialChar TeX
22561 コードの後に,節宣言コマンドを\SpecialChar TeX
22562 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22565 \begin_layout Standard
22573 \begin_layout Standard
22574 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22577 \begin_layout Standard
22578 \begin_inset Flex Multiple Columns
22581 \begin_layout Plain Layout
22582 \begin_inset Argument 2
22585 \begin_layout Plain Layout
22589 \begin_layout Plain Layout
22602 \begin_layout Plain Layout
22616 A minute examination of the circumstances served only to make the case more
22618 In the first place, no reason could be given why the young man should have
22619 fastened the door upon the inside.
22620 There was the possibility that the murderer had done this, and had afterwards
22621 escaped by the window.
22622 The drop was at least twenty feet, however, and a bed of crocuses in full
22624 Neither the flowers nor the earth showed any sign of having been disturbed,
22625 nor were there any marks upon the narrow strip of grass which separated
22626 the house from the road.
22627 Apparently, therefore, it was the young man himself who had fastened the
22629 But how did he come by his death? No one could have climbed up to the window
22630 without leaving traces.
22631 Suppose a man had fired through the window, he would indeed be a remarkable
22632 shot who could with a revolver inflict so deadly a wound.
22633 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22634 a hundred yards of the house.
22635 No one had heard a shot.
22643 \begin_layout Standard
22644 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22645 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22647 挿入\SpecialChar menuseparator
22650 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22653 \begin_layout Standard
22655 \begin_inset Flex Code
22658 \begin_layout Plain Layout
22666 を用いて,必要行数を7行に指定しています(コマンド
22667 \begin_inset Flex Code
22670 \begin_layout Plain Layout
22679 コードとして入力する必要があります).
22682 \begin_layout Standard
22683 \begin_inset Flex Multiple Columns
22686 \begin_layout Plain Layout
22687 \begin_inset Argument 3
22690 \begin_layout Plain Layout
22695 \begin_layout Plain Layout
22711 On the evening of the crime, he returned from the club exactly at ten.
22712 His mother and sister were out spending the evening with a relation.
22713 The servant deposed that she heard him enter the front room on the second
22714 floor, generally used as his sitting-room.
22715 She had lit a fire there, and as it smoked she had opened the window.
22716 No sound was heard from the room until eleven-twenty, the hour of the return
22717 of Lady Maynooth and her daughter.
22718 Desiring to say good-night, she attempted to enter her son's room.
22719 The door was locked on the inside, and no answer could be got to their
22720 cries and knocking.
22721 Help was obtained, and the door forced.
22722 The unfortunate young man was found lying near the table.
22723 His head had been horribly mutilated by an expanding revolver bullet, but
22724 no weapon of any sort was to be found in the room.
22732 \begin_layout Subsubsection
22736 \begin_layout Standard
22738 \begin_inset Flex Code
22741 \begin_layout Plain Layout
22749 を変えることで変更することができます.例えば,\SpecialChar TeX
22753 \begin_layout LyX-Code
22763 \begin_layout Standard
22765 \begin_inset space \thinspace{}
22768 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22769 \begin_inset space \thinspace{}
22775 \begin_layout Standard
22777 \begin_inset Flex Code
22780 \begin_layout Plain Layout
22789 \begin_inset space \thinspace{}
22795 \begin_layout Standard
22799 \begin_layout Plain Layout
22805 multicolsep}{2.5cm}
22813 \begin_layout Standard
22814 \begin_inset Flex Multiple Columns
22817 \begin_layout Plain Layout
22820 All day I turned these facts over in my mind, endeavouring to hit upon some
22821 theory which could reconcile them all, and to find that line of least resistanc
22822 e which my poor friend had declared to be the starting-point of every investigat
22824 I confess that I made little progress.
22825 In the evening I strolled across the Park, and found myself about six o'clock
22826 at the Oxford Street end of Park Lane.
22827 A group of loafers upon the pavements, all staring up at a particular window,
22828 directed me to the house which I had come to see.
22829 A tall, thin man with coloured glasses, whom I strongly suspected of being
22830 a plain-clothes detective, was pointing out some theory of his own, while
22831 the others crowded round to listen to what he said.
22832 I got as near him as I could, but his observations seemed to me to be absurd,
22833 so I withdrew again in some disgust.
22834 As I did so I struck against an elderly, deformed man, who had been behind
22835 me, and I knocked down several books which he was carrying.
22843 \begin_layout Standard
22844 \begin_inset Note Greyedout
22847 \begin_layout Plain Layout
22853 \begin_inset Flex Code
22856 \begin_layout Plain Layout
22864 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22872 \begin_layout Standard
22876 \begin_layout Plain Layout
22888 \begin_inset Note Note
22891 \begin_layout Plain Layout
22894 go back to the default
22902 \begin_layout Standard
22903 \begin_inset Newpage newpage
22909 \begin_layout Subsubsection
22913 \begin_layout Standard
22914 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22916 \begin_inset Flex Code
22919 \begin_layout Plain Layout
22927 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22928 \begin_inset Newline newline
22934 \begin_layout Standard
22935 \begin_inset Flex Multiple Columns
22938 \begin_layout Plain Layout
22941 \begin_inset Quotes eld
22944 You're surprised to see me, sir,
22945 \begin_inset Quotes erd
22948 said he, in a strange, croaking voice.
22951 \begin_layout Plain Layout
22954 I acknowledged that I was.
22957 \begin_layout Plain Layout
22960 \begin_inset Quotes eld
22963 Well, I've a conscience, sir, and when I chanced to see you go into this
22964 house, as I came hobbling after you, I thought to myself, I'll just step
22965 in and see that kind gentleman, and tell him that if I was a bit gruff
22966 in my manner there was not any harm meant, and that I am much obliged to
22967 him for picking up my books.
22968 \begin_inset Quotes erd
22974 \begin_layout Plain Layout
22977 \begin_inset Quotes eld
22980 You make too much of a trifle,
22981 \begin_inset Quotes erd
22986 \begin_inset Quotes eld
22989 May I ask how you knew who I was?
22990 \begin_inset Quotes erd
22993 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22997 \begin_layout Plain Layout
23009 \begin_layout Plain Layout
23012 \begin_inset Quotes eld
23015 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23016 you'll find my little bookshop at the corner of Church Street, and very
23017 happy to see you, I am sure.
23018 Maybe you collect yourself, sir.
23022 \begin_inset space ~
23036 \begin_inset space ~
23039 – a bargain, every one of them.
23040 With five volumes you could just fill that gap on that second shelf.
23041 It looks untidy, does it not, sir?
23042 \begin_inset Quotes erd
23053 \begin_layout Subsubsection
23057 \begin_layout Standard
23058 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23059 \begin_inset Flex Code
23062 \begin_layout Plain Layout
23070 を変更することで実現できます.既定値は10
23071 \begin_inset space \thinspace{}
23075 \begin_inset Flex Code
23078 \begin_layout Plain Layout
23087 \begin_inset space \thinspace{}
23093 \begin_layout Standard
23097 \begin_layout Plain Layout
23111 \begin_layout Standard
23112 \begin_inset Flex Multiple Columns
23115 \begin_layout Plain Layout
23118 My observations of No.
23119 \begin_inset space \space{}
23122 427 Park Lane did little to clear up the problem in which I was interested.
23123 The house was separated from the street by a low wall and railing, the
23124 whole not more than five feet high.
23125 It was perfectly easy, therefore, for anyone to get into the garden, but
23126 the window was entirely inaccessible, since there was no water pipe or
23127 anything which could help the most active man to climb it.
23128 More puzzled than ever, I retraced my steps to Kensington.
23129 I had not been in my study five minutes when the maid entered to say that
23130 a person desired to see me.
23131 To my astonishment it was none other than my strange old book collector,
23132 his sharp, wizened face peering out from a frame of white hair, and his
23133 precious volumes, a dozen of them at least, wedged under his right arm.
23141 \begin_layout Standard
23145 \begin_layout Plain Layout
23157 \begin_inset Note Note
23160 \begin_layout Plain Layout
23163 go back to the default
23171 \begin_layout Subsubsection
23175 \begin_layout Standard
23177 \begin_inset Flex Code
23180 \begin_layout Plain Layout
23188 の幅を持つ罫線が描かれます.罫線幅を0
23189 \begin_inset space \thinspace{}
23192 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23193 \begin_inset space \thinspace{}
23199 \begin_layout Standard
23203 \begin_layout Plain Layout
23209 columnseprule}{2pt}
23217 \begin_layout Standard
23218 \begin_inset Flex Multiple Columns
23221 \begin_layout Plain Layout
23224 \begin_inset Quotes eld
23227 You're surprised to see me, sir,
23228 \begin_inset Quotes erd
23231 said he, in a strange, croaking voice.
23234 \begin_layout Plain Layout
23237 I acknowledged that I was.
23240 \begin_layout Plain Layout
23243 \begin_inset Quotes eld
23246 Well, I've a conscience, sir, and when I chanced to see you go into this
23247 house, as I came hobbling after you, I thought to myself, I'll just step
23248 in and see that kind gentleman, and tell him that if I was a bit gruff
23249 in my manner there was not any harm meant, and that I am much obliged to
23250 him for picking up my books.
23251 \begin_inset Quotes erd
23257 \begin_layout Plain Layout
23260 \begin_inset Quotes eld
23263 You make too much of a trifle,
23264 \begin_inset Quotes erd
23269 \begin_inset Quotes eld
23272 May I ask how you knew who I was?
23273 \begin_inset Quotes erd
23279 \begin_layout Plain Layout
23282 \begin_inset Quotes eld
23285 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23286 you'll find my little bookshop at the corner of Church Street, and very
23287 happy to see you, I am sure.
23288 Maybe you collect yourself, sir.
23292 \begin_inset space ~
23306 \begin_inset space ~
23309 – a bargain, every one of them.
23310 With five volumes you could just fill that gap on that second shelf.
23311 It looks untidy, does it not, sir?
23312 \begin_inset Quotes erd
23323 \begin_layout Standard
23324 \begin_inset VSpace defskip
23330 \begin_layout Standard
23332 \begin_inset Flex Code
23335 \begin_layout Plain Layout
23343 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23344 コードで以下のコマンドを挿入すれば,実現できます.
23347 \begin_layout LyX-Code
23352 columnseprulecolor}{
23357 \begin_layout Standard
23359 \begin_inset Flex Code
23362 \begin_layout Plain Layout
23370 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23371 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23374 \begin_layout LyX-Code
23379 columnseprulecolor}{
23384 \begin_layout Standard
23386 \begin_inset space \thinspace{}
23392 \begin_layout Standard
23396 \begin_layout Plain Layout
23405 \begin_layout Plain Layout
23411 columnseprulecolor}{
23421 \begin_layout Standard
23422 \begin_inset Flex Multiple Columns
23425 \begin_layout Plain Layout
23428 \begin_inset Quotes eld
23431 You're surprised to see me, sir,
23432 \begin_inset Quotes erd
23435 said he, in a strange, croaking voice.
23438 \begin_layout Plain Layout
23441 I acknowledged that I was.
23444 \begin_layout Plain Layout
23447 \begin_inset Quotes eld
23450 Well, I've a conscience, sir, and when I chanced to see you go into this
23451 house, as I came hobbling after you, I thought to myself, I'll just step
23452 in and see that kind gentleman, and tell him that if I was a bit gruff
23453 in my manner there was not any harm meant, and that I am much obliged to
23454 him for picking up my books.
23455 \begin_inset Quotes erd
23461 \begin_layout Plain Layout
23464 \begin_inset Quotes eld
23467 You make too much of a trifle,
23468 \begin_inset Quotes erd
23473 \begin_inset Quotes eld
23476 May I ask how you knew who I was?
23477 \begin_inset Quotes erd
23483 \begin_layout Plain Layout
23486 \begin_inset Quotes eld
23489 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23490 you'll find my little bookshop at the corner of Church Street, and very
23491 happy to see you, I am sure.
23492 Maybe you collect yourself, sir.
23496 \begin_inset space ~
23510 \begin_inset space ~
23513 – a bargain, every one of them.
23514 With five volumes you could just fill that gap on that second shelf.
23515 It looks untidy, does it not, sir?
23516 \begin_inset Quotes erd
23527 \begin_layout Standard
23531 \begin_layout Plain Layout
23537 columnseprule}{0pt}
23540 \begin_layout Plain Layout
23546 columnseprulecolor}{
23554 \begin_inset Note Note
23557 \begin_layout Plain Layout
23560 go back to the default
23568 \begin_layout Standard
23569 \begin_inset Newpage newpage
23575 \begin_layout Section
23579 \begin_layout Standard
23582 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23587 モジュールを読み込んで,\SpecialChar LaTeX
23589 \begin_inset Flex Code
23592 \begin_layout Plain Layout
23598 を使用させるようにすれば,実現できます.
23601 \begin_layout Subsection
23605 \begin_layout Standard
23613 \begin_layout Standard
23614 \begin_inset Tabular
23615 <lyxtabular version="3" rows="13" columns="3">
23616 <features booktabs="true" islongtable="true" longtabularalignment="center">
23617 <column alignment="center" valignment="middle" width="16col%">
23618 <column alignment="center" valignment="middle" width="40col%">
23619 <column alignment="center" valignment="middle" width="35col%">
23620 <row endhead="true">
23621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23624 \begin_layout Plain Layout
23630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23633 \begin_layout Plain Layout
23639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23642 \begin_layout Plain Layout
23650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23653 \begin_layout Plain Layout
23659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23662 \begin_layout Plain Layout
23663 丸い穴の開いたドーナツ型(CD/DVD大)
23668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23671 \begin_layout Plain Layout
23672 伸縮不可.多くの文字を入れられないことに注意.
23679 <cell alignment="center" valignment="top" topline="true" usebox="none">
23682 \begin_layout Plain Layout
23688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23691 \begin_layout Plain Layout
23697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23700 \begin_layout Plain Layout
23708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23711 \begin_layout Plain Layout
23717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23720 \begin_layout Plain Layout
23722 \begin_inset Quotes eld
23726 \begin_inset Quotes erd
23734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23737 \begin_layout Plain Layout
23745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23748 \begin_layout Plain Layout
23754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23757 \begin_layout Plain Layout
23763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23766 \begin_layout Plain Layout
23774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23777 \begin_layout Plain Layout
23783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23786 \begin_layout Plain Layout
23792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23795 \begin_layout Plain Layout
23803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23806 \begin_layout Plain Layout
23812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23815 \begin_layout Plain Layout
23821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23824 \begin_layout Plain Layout
23832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23835 \begin_layout Plain Layout
23841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23844 \begin_layout Plain Layout
23850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23853 \begin_layout Plain Layout
23861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23864 \begin_layout Plain Layout
23870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23873 \begin_layout Plain Layout
23879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23882 \begin_layout Plain Layout
23890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23893 \begin_layout Plain Layout
23899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23902 \begin_layout Plain Layout
23908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23911 \begin_layout Plain Layout
23919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23922 \begin_layout Plain Layout
23928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23931 \begin_layout Plain Layout
23937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23940 \begin_layout Plain Layout
23948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23951 \begin_layout Plain Layout
23958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23961 \begin_layout Plain Layout
23968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23971 \begin_layout Plain Layout
23979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23982 \begin_layout Plain Layout
23984 \begin_inset Newline newline
23992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23995 \begin_layout Plain Layout
24001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24004 \begin_layout Plain Layout
24018 \begin_layout Standard
24019 段落に形を適用するには,\SpecialChar LyX
24020 ツールバー中の環境プルダウンボックスから形を選んでください.
24023 \begin_layout Standard
24024 \begin_inset Newpage newpage
24030 \begin_layout Standard
24034 \begin_layout Standard
24035 \begin_inset VSpace bigskip
24044 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24045 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24047 At vero eos et accusam et justo duo dolores et ea rebum.
24048 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24050 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24051 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24055 \begin_layout Standard
24056 \begin_inset VSpace bigskip
24062 \begin_layout Standard
24063 \begin_inset Note Greyedout
24066 \begin_layout Plain Layout
24074 段落は改頁にまたがることはできません.
24082 \begin_layout Standard
24083 \begin_inset VSpace bigskip
24089 \begin_layout Standard
24090 \begin_inset Flex Code
24093 \begin_layout Plain Layout
24099 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24100 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24103 \begin_layout Standard
24104 \begin_inset Newpage newpage
24113 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24114 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24116 At vero eos et accusam et justo duo dolores et ea rebum.
24117 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24119 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24120 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24122 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24123 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24125 At vero eos et accusam et justo duo dolores et ea rebum.
24126 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24128 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24129 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24133 \begin_layout Standard
24134 \begin_inset VSpace bigskip
24140 \begin_layout Standard
24145 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24146 \begin_inset Newline newline
24157 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24158 \begin_inset Quotes eld
24161 Arithmetic overflow
24162 \begin_inset Quotes erd
24165 という\SpecialChar LaTeX
24166 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24169 \begin_layout Standard
24170 \begin_inset VSpace bigskip
24176 \begin_layout Standard
24177 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24178 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24183 arg "specialchar-insert hyphenation"
24188 )を指定することが往々にして必要になります.
24191 \begin_layout Standard
24192 \begin_inset VSpace bigskip
24198 \begin_layout Standard
24199 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24200 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24201 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24202 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24205 \begin_layout Standard
24206 \begin_inset Newpage newpage
24212 \begin_layout Heart
24216 Lo\SpecialChar softhyphen
24217 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24218 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24220 At vero eos et accusam et justo duo dolores et ea rebum.
24221 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24225 \begin_layout Standard
24226 \begin_inset VSpace bigskip
24232 \begin_layout Standard
24235 \begin_inset Box Frameless
24245 height_special "totalheight"
24250 backgroundcolor "none"
24253 \begin_layout Heart
24257 Lo\SpecialChar softhyphen
24258 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24259 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24261 At vero eos et accusam et justo duo dolores et ea rebum.
24262 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24271 \begin_layout Subsection
24275 \begin_layout Standard
24276 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24277 ように,コンピューターに座標を計算させる方法もあります.
24280 \begin_layout Enumerate
24282 \begin_inset CommandInset href
24285 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
24293 \begin_layout Enumerate
24300 TeX/LaTeX\SpecialChar menuseparator
24301 Settings\SpecialChar menuseparator
24304 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24305 \begin_inset space \thinspace{}
24311 \begin_layout Enumerate
24315 \begin_layout Enumerate
24318 TeX/LaTeX\SpecialChar menuseparator
24321 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24325 \begin_layout Plain Layout
24327 \begin_inset CommandInset href
24329 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24342 \begin_layout Standard
24343 座標は\SpecialChar TeX
24344 ファイルに書き込まれます.これを\SpecialChar LyX
24348 \begin_layout Enumerate
24349 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24352 \begin_layout Enumerate
24356 挿入\SpecialChar menuseparator
24357 ファイル\SpecialChar menuseparator
24371 \begin_layout Standard
24372 \begin_inset VSpace defskip
24378 \begin_layout Standard
24379 \begin_inset Note Greyedout
24382 \begin_layout Plain Layout
24387 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24395 \begin_layout Standard
24396 \begin_inset VSpace bigskip
24402 \begin_layout Standard
24406 \begin_layout Standard
24407 \begin_inset VSpace bigskip
24413 \begin_layout Standard
24414 \begin_inset CommandInset include
24416 filename "../SpecialParagraphShape.tex"
24423 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24424 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24426 At vero eos et accusam et justo duo dolores et ea rebum.
24427 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24429 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24430 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24434 \begin_layout Standard
24435 \begin_inset VSpace bigskip
24441 \begin_layout Standard
24449 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24453 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24456 \begin_layout Standard
24457 \begin_inset VSpace bigskip
24463 \begin_layout Standard
24476 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24480 \begin_layout Plain Layout
24481 これらのコマンドは,上述の全ての形で内部的に使用されています.
24486 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24487 \begin_inset Flex Code
24490 \begin_layout Plain Layout