1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26 \pdfbookmark[1]{\contentsname}{}
29 \pagenumbering{arabic}}
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
36 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
45 \maintain_unincluded_children false
48 InsetLayout Flex:MenuItem
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 Decoration Conglomerate
70 Decoration Conglomerate
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
87 \language_package default
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
101 \use_dash_ligatures false
103 \default_output_format pdf3
105 \bibtex_command default
106 \index_command default
110 \pdf_title "LyX's Additional Features manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX's additional features documentation"
113 \pdf_keywords "LyX, Documentation, Additional"
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen false
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
126 \use_package amsmath 1
127 \use_package amssymb 1
128 \use_package cancel 0
130 \use_package mathdots 1
131 \use_package mathtools 0
132 \use_package mhchem 1
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
137 \cite_engine_type default
141 \paperorientation portrait
146 \notefontcolor #0000ff
153 \paragraph_separation indent
154 \paragraph_indentation default
156 \math_indentation default
157 \math_numbering_side default
158 \quotes_style english
162 \paperpagestyle headings
163 \tracking_changes true
164 \output_changes false
168 \author -712698321 "Jürgen Spitzmüller"
169 \author 34634807 "Jean-Pierre"
177 \begin_inset Newline newline
183 \change_deleted 34634807 1499890737
185 \change_inserted 34634807 1499890737
197 \begin_layout Plain Layout
198 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
200 \begin_inset Flex Code
203 \begin_layout Plain Layout
207 <lyx-docs@lists.lyx.org>
212 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
220 \begin_layout Standard
221 \begin_inset CommandInset toc
222 LatexCommand tableofcontents
229 \begin_layout Chapter
233 \begin_layout Standard
243 』の第二部です.これらの文書を別部とした理由は,単純に『
251 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
252 プロジェクトチームは,\SpecialChar LyX
253 を各設定ファイルと外部パッケージによって拡張
254 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
255 パッケージをサポートしたい場合に,\SpecialChar LyX
256 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
257 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
258 な形での貢献を文書化する冊子として位置付けられています.
261 \begin_layout Standard
262 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
263 しています.さらに,\SpecialChar LaTeX
264 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
265 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
267 ることを企図しているため,\SpecialChar LaTeX
268 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
271 \begin_layout Standard
276 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
280 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
284 』をよくお読みになって,\SpecialChar LyX
288 \begin_layout Standard
289 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
291 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
292 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
294 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
298 \begin_layout Chapter
304 \begin_layout Section
310 \begin_layout Standard
321 熟練者と\SpecialChar LaTeX
322 に興味のある方向けの章です.ここでは,\SpecialChar LyX
324 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
326 を多少なりともご存知であることを前提とします.
329 \begin_layout Standard
340 は,「\SpecialChar LaTeX
359 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
360 のフロントエンドは,いくつも出回っています
364 \begin_layout Plain Layout
374 有名なものとしては,Linux上の\SpecialChar TeX
375 makerとkile,OSX上の\SpecialChar TeX
376 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
382 .これらは,基本的に\SpecialChar LaTeX
383 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
384 も,エディタであり,\SpecialChar LaTeX
386 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
405 を効果的に使うのに,\SpecialChar LaTeX
406 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
407 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
408 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
419 \begin_inset Flex MenuItem
422 \begin_layout Plain Layout
449 \begin_inset Flex MenuItem
452 \begin_layout Plain Layout
455 エクスポート\SpecialChar menuseparator
480 \begin_inset Flex MenuItem
483 \begin_layout Plain Layout
486 表示\SpecialChar menuseparator
502 \begin_inset Flex Code
505 \begin_layout Plain Layout
513 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
514 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
523 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
526 \begin_layout Standard
536 自動的に\SpecialChar LaTeX
537 を実行するコマンドが,以下のようにいくつかあります.
540 \begin_layout Itemize
541 \begin_inset Flex MenuItem
544 \begin_layout Plain Layout
545 表示\SpecialChar menuseparator
554 \begin_layout Itemize
557 \begin_inset Flex MenuItem
560 \begin_layout Plain Layout
563 表示\SpecialChar menuseparator
564 更新\SpecialChar menuseparator
575 \begin_layout Standard
585 これらは,最後に\SpecialChar LaTeX
586 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
590 \begin_layout Standard
601 が編集中のファイルを\SpecialChar LaTeX
602 にかけるとき,\SpecialChar LyX
606 \begin_layout Enumerate
616 文書を\SpecialChar LaTeX
618 \begin_inset Flex Code
621 \begin_layout Plain Layout
637 \begin_inset Flex Code
640 \begin_layout Plain Layout
658 \begin_layout Enumerate
669 \begin_inset Flex Code
672 \begin_layout Plain Layout
687 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
688 を実行し,\SpecialChar LaTeX
689 ファイルをコンパイルするのに必要な他のコマンド(
690 \begin_inset Flex Code
693 \begin_layout Plain Layout
709 \begin_inset Flex Code
712 \begin_layout Plain Layout
730 \begin_layout Enumerate
743 \begin_layout Standard
764 \begin_inset Flex MenuItem
767 \begin_layout Plain Layout
770 表示\SpecialChar menuseparator
785 を使用して実行した場合には,\SpecialChar LyX
786 はこの後,DVIビューアを実行してDVIファイルを表示します.
787 \begin_inset Flex MenuItem
790 \begin_layout Plain Layout
800 表示\SpecialChar menuseparator
806 を使用した場合には,\SpecialChar LyX
810 \begin_layout Itemize
820 \begin_inset Flex Code
823 \begin_layout Plain Layout
861 \begin_layout Itemize
871 \begin_inset Flex Code
874 \begin_layout Plain Layout
882 などのPostScriptビューアを実行して,PostScript
894 \begin_layout Standard
896 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
899 \begin_layout Section
901 ファイルを\SpecialChar LyX
905 \begin_layout Standard
910 \begin_inset Flex MenuItem
913 \begin_layout Plain Layout
916 ファイル\SpecialChar menuseparator
917 インポート\SpecialChar menuseparator
932 コマンドを使用すると,\SpecialChar LaTeX
950 にインポートすることができます.このコマンドは,
960 \begin_inset Flex Code
963 \begin_layout Plain Layout
990 \begin_inset Flex Code
993 \begin_layout Plain Layout
1004 \begin_inset Flex Code
1007 \begin_layout Plain Layout
1015 を生成します.\SpecialChar LyX
1020 \begin_layout Plain Layout
1021 \begin_inset Flex Code
1024 \begin_layout Plain Layout
1030 は,もちろんコマンドラインから実行することもできます.
1038 \begin_layout Standard
1041 \begin_inset Flex Code
1044 \begin_layout Plain Layout
1061 は,文法的に正しい\SpecialChar LaTeX
1062 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1072 \begin_inset Flex Code
1075 \begin_layout Plain Layout
1092 は,理解不能な部分は\SpecialChar TeX
1093 コードボックスの形で残しますので,ファイルを
1103 \begin_inset Flex Code
1106 \begin_layout Plain Layout
1123 で変換したのち,\SpecialChar TeX
1124 コードボックスを探して,手動で正しく編集してください.
1127 \begin_layout Standard
1138 コードボックスがなにかご存じなければ,次節をお読みください.
1141 \begin_layout Section
1144 \begin_inset CommandInset label
1146 name "sec:LaTeXコードを挿入する"
1153 \begin_layout Standard
1164 文書にもつねに\SpecialChar TeX
1165 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1166 にできることは,つねに\SpecialChar LyX
1167 でも行うことができます.一方,\SpecialChar LyX
1168 は,すべての\SpecialChar LaTeX
1169 構成物を\SpecialChar LyX
1171 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1172 コマンドを\SpecialChar LyX
1174 \begin_inset Flex Code
1177 \begin_layout Plain Layout
1203 \begin_inset Flex MenuItem
1206 \begin_layout Plain Layout
1209 挿入\SpecialChar menuseparator
1234 \begin_inset Flex Ruby
1237 \begin_layout Plain Layout
1257 \begin_inset Argument post:1
1260 \begin_layout Plain Layout
1272 \begin_inset Flex Ruby
1275 \begin_layout Plain Layout
1286 \begin_inset Argument post:1
1289 \begin_layout Plain Layout
1318 \begin_layout Standard
1319 以下は,\SpecialChar LaTeX
1320 コマンドを\SpecialChar LyX
1321 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1324 \begin_layout LyX-Code
1328 \begin_inset Newline newline
1333 begin{minipage}{5cm}
1334 \begin_inset Newline newline
1338 \begin_inset Newline newline
1342 \begin_inset Newline newline
1346 \begin_inset Newline newline
1350 \begin_inset Newline newline
1354 \begin_inset Newline newline
1360 \begin_inset Newline newline
1364 \begin_inset Newline newline
1369 begin{minipage}{5cm}
1370 \begin_inset Newline newline
1376 \begin_inset Newline newline
1381 begin{minipage}{5cm}
1382 \begin_inset Newline newline
1387 \begin_inset Newline newline
1393 \begin_inset Newline newline
1399 \begin_inset Newline newline
1405 \begin_inset Newline newline
1413 \begin_layout LyX-Code
1417 \begin_layout Standard
1419 \begin_inset Flex Code
1422 \begin_layout Plain Layout
1429 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1430 上でご覧になっていれば,\SpecialChar TeX
1431 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1435 \begin_layout Standard
1436 \begin_inset VSpace bigskip
1443 \begin_layout Plain Layout
1450 \begin_layout Plain Layout
1454 begin{minipage}{5cm}
1457 \begin_layout Plain Layout
1459 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます.
1464 \begin_layout Plain Layout
1469 \begin_layout Plain Layout
1473 begin{minipage}{5cm}
1476 \begin_layout Plain Layout
1483 \begin_layout Plain Layout
1487 begin{minipage}{5cm}
1490 \begin_layout Plain Layout
1498 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1512 \begin_layout Plain Layout
1522 \begin_inset VSpace bigskip
1528 \begin_layout Standard
1539 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1540 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1541 \begin_inset Flex MenuItem
1544 \begin_layout Plain Layout
1554 挿入\SpecialChar menuseparator
1555 ファイル\SpecialChar menuseparator
1561 を使用する方法もあります(取り込みの型として
1562 \begin_inset Flex Code
1565 \begin_layout Plain Layout
1580 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1598 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1599 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1602 \begin_layout Standard
1612 最後に,いくつか強調しておくべきことがあります.
1615 \begin_layout Itemize
1626 は,あなたの\SpecialChar LaTeX
1648 \begin_layout Itemize
1658 車輪の再発明をしないようにご注意ください.
1661 \begin_layout Standard
1671 二番目の点に関して,\SpecialChar LyX
1672 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1673 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1674 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1675 う膨大な数の\SpecialChar LaTeX
1686 \begin_inset CommandInset href
1689 target "http://www.ctan.org/"
1704 \begin_inset CommandInset ref
1706 reference "chap:Special-features"
1713 \begin_layout Standard
1723 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1724 関連書籍を参考とするようにしてください.『
1742 』の書誌情報に多くの\SpecialChar LaTeX
1746 \begin_layout Section
1752 \begin_layout Subsection
1757 \begin_layout Standard
1767 すでに\SpecialChar LaTeX
1768 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1769 ずです.詳しくは\SpecialChar LaTeX
1770 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1771 文書の\SpecialChar LaTeX
1772 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1776 \begin_layout Standard
1787 プリアンブルは,\SpecialChar LaTeX
1806 の部分に来ます.ここでは以下のことを行います.
1809 \begin_layout Itemize
1819 文書クラス(ドキュメントクラス)の宣言.
1820 \begin_inset Newline newline
1824 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1825 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1843 』をご覧になれば,\SpecialChar LyX
1844 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1847 \begin_layout Itemize
1858 \begin_inset Newline newline
1862 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1863 提供されることに加え,文書に変更を加えることができます.例えば
1882 \begin_inset Flex Code
1885 \begin_layout Plain Layout
1893 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1896 \begin_layout Itemize
1907 \begin_inset Newline newline
1911 のカウンタと変数の中には,プリアンブルでグローバルに
1931 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1932 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1935 \begin_layout Itemize
1946 \begin_inset Flex Code
1949 \begin_layout Plain Layout
1967 \begin_inset Flex Code
1970 \begin_layout Plain Layout
1988 \begin_inset Newline newline
1991 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1992 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
2010 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2011 コードがあふれている場合には便利でしょう.
2014 \begin_layout Standard
2026 \begin_inset Flex Code
2029 \begin_layout Plain Layout
2044 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2045 の生成する\SpecialChar LaTeX
2049 \begin_layout Subsection
2053 \begin_layout Standard
2065 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2066 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2067 \begin_inset Flex MenuItem
2070 \begin_layout Plain Layout
2080 文書\SpecialChar menuseparator
2087 \begin_inset Flex MenuItem
2090 \begin_layout Plain Layout
2106 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2117 \begin_inset Flex MenuItem
2120 \begin_layout Plain Layout
2137 ダイアログ内のすべてのものを,\SpecialChar LyX
2138 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2140 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2151 プリアンブルコードが正しいことを確認してください.
2164 \begin_inset Flex Code
2167 \begin_layout Plain Layout
2184 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2187 \begin_layout Subsection
2191 \begin_layout Standard
2201 以下は,プリアンブルに追加できるものとその効果を示す例です.
2204 \begin_layout Subsubsection
2208 \begin_layout Standard
2238 \begin_inset Flex Code
2241 \begin_layout Plain Layout
2261 \begin_inset Flex Code
2264 \begin_layout Plain Layout
2283 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2284 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2285 \begin_inset Flex Code
2288 \begin_layout Plain Layout
2308 \begin_inset Flex Code
2311 \begin_layout Plain Layout
2326 \begin_layout Standard
2336 \begin_inset Flex Code
2339 \begin_layout Plain Layout
2359 \begin_inset Flex Code
2362 \begin_layout Plain Layout
2381 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2382 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2383 を使用していて,シスアドがお馬鹿さんである
2385 \begin_inset Flex Code
2388 \begin_layout Plain Layout
2408 \begin_inset Flex Code
2411 \begin_layout Plain Layout
2430 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2433 \begin_layout LyX-Code
2441 \begin_layout LyX-Code
2449 \begin_layout Standard
2462 \begin_layout Subsubsection
2466 \begin_layout Standard
2476 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2477 \begin_inset Flex Code
2480 \begin_layout Plain Layout
2488 という\SpecialChar LaTeX
2489 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2490 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2494 \begin_layout Standard
2505 \begin_inset Flex Code
2508 \begin_layout Plain Layout
2516 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2519 \begin_layout LyX-Code
2525 \begin_layout LyX-Code
2531 \begin_layout LyX-Code
2537 \begin_layout LyX-Code
2543 \begin_layout LyX-Code
2549 \begin_layout LyX-Code
2555 \begin_layout LyX-Code
2561 \begin_layout Standard
2580 Averyラベルシートのストック5360
2589 番を使用する場合の設定です.これで,各宛名を
2590 \begin_inset Flex Code
2593 \begin_layout Plain Layout
2613 \begin_inset Flex Code
2616 \begin_layout Plain Layout
2635 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2636 \begin_inset Flex Code
2639 \begin_layout Plain Layout
2650 \begin_layout Standard
2660 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2661 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2664 \begin_layout Subsubsection
2668 \begin_layout Standard
2698 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2715 \begin_layout Standard
2725 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2743 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2747 \begin_layout Standard
2757 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2761 \begin_layout LyX-Code
2764 usepackage{indentfirst}
2767 \begin_layout Standard
2777 もしお使いの\SpecialChar TeX
2778 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2781 \begin_layout Subsubsection
2785 \begin_layout Standard
2795 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2805 \begin_inset CommandInset ref
2807 reference "chap:Special-features"
2820 章には,他の例や,\SpecialChar LaTeX
2824 \begin_layout Section
2826 および\SpecialChar LaTeX
2830 \begin_layout Standard
2842 を呼び出す際,\SpecialChar LyX
2844 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2845 は,\SpecialChar LaTeX
2846 の実行ログファイルを事後処理用に使います.ログファイルを分
2847 析したのち,\SpecialChar LyX
2848 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2849 ファイル中,そのエラーの発生した場所に表示を移動します
2853 \begin_layout Plain Layout
2863 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2864 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2866 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2867 ーのある場所よりも後ろでエラーが報告されるのです.
2884 \begin_layout Standard
2894 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2895 \begin_inset Flex MenuItem
2898 \begin_layout Plain Layout
2908 文書\SpecialChar menuseparator
2914 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2919 \begin_layout Itemize
2922 \begin_inset Flex Code
2925 \begin_layout Plain Layout
2943 \begin_inset Newline newline
2946 これで始まるメッセージは,\SpecialChar LaTeX
2947 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2949 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2952 \begin_layout Itemize
2955 \begin_inset Flex Code
2958 \begin_layout Plain Layout
2976 \begin_inset Newline newline
2980 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2981 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2985 \begin_layout Itemize
2995 \begin_inset Flex Code
2998 \begin_layout Plain Layout
3009 \begin_inset Newline newline
3031 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3032 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3033 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3034 \begin_inset Newline newline
3037 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3041 \begin_layout Plain Layout
3043 \begin_inset Flex MenuItem
3046 \begin_layout Plain Layout
3047 文書\SpecialChar menuseparator
3053 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3054 は,overfullの発生した行の余白に黒い四角を描画します.
3062 \begin_layout Itemize
3065 \begin_inset Flex Code
3068 \begin_layout Plain Layout
3079 \begin_inset Newline newline
3091 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3092 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3095 \begin_layout Itemize
3096 \begin_inset Flex Code
3099 \begin_layout Plain Layout
3112 \begin_inset Flex Code
3115 \begin_layout Plain Layout
3128 \begin_inset Newline newline
3140 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3143 \begin_layout Itemize
3146 \begin_inset Flex Code
3149 \begin_layout Plain Layout
3153 \begin_inset Quotes els
3157 \begin_inset Quotes ers
3175 \begin_inset Newline newline
3178 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3179 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3181 \begin_inset Flex Code
3184 \begin_layout Plain Layout
3194 コマンドも使用していないとすれば,\SpecialChar LyX
3195 が読み込もうしているパッケージに存在しないものがあるということです.
3205 \begin_inset Flex MenuItem
3208 \begin_layout Plain Layout
3209 ヘルプ\SpecialChar menuseparator
3225 を使用して,\SpecialChar LyX
3226 が認識しているパッケージの一覧を得てください.このファイルは,(
3227 \begin_inset Flex MenuItem
3230 \begin_layout Plain Layout
3240 ツール\SpecialChar menuseparator
3246 を使用して)\SpecialChar LyX
3247 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3248 \begin_inset Newline newline
3261 \begin_inset Flex Code
3264 \begin_layout Plain Layout
3283 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3286 \begin_layout Itemize
3289 \begin_inset Flex Code
3292 \begin_layout Plain Layout
3295 LaTeX Error: Unknown option
3310 \begin_inset Newline newline
3313 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3317 \begin_layout Itemize
3320 \begin_inset Flex Code
3323 \begin_layout Plain Layout
3326 Undefined control sequence
3341 \begin_inset Newline newline
3344 お使いの文書に\SpecialChar LaTeX
3345 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3346 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3349 \begin_layout Standard
3359 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3360 のメッセージです.何を言っているのかさっぱりわからないものもあ
3361 りますが,通常これらは,\SpecialChar TeX
3362 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3380 手がかりがありません.誰もわからないのです.
3383 \begin_layout Standard
3393 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3396 \begin_layout Enumerate
3406 ご自分で挿入した\SpecialChar LaTeX
3407 コードに打ち間違いがないかどうか確かめる.
3410 \begin_layout Enumerate
3420 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3423 \begin_layout Enumerate
3433 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3434 \begin_inset Flex Code
3437 \begin_layout Plain Layout
3454 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3457 \begin_layout Enumerate
3467 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3468 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3469 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3473 \begin_layout Enumerate
3483 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3484 を微調整するオプションを使用していますか.特に,手動で
3485 \begin_inset Flex Code
3488 \begin_layout Plain Layout
3492 \begin_inset space ~
3501 \begin_inset Flex Code
3504 \begin_layout Plain Layout
3522 \begin_inset Flex Code
3525 \begin_layout Plain Layout
3542 などをたくさん挿入するなど,微調整オプションを
3560 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3563 \begin_layout Enumerate
3573 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3574 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3577 \begin_layout Enumerate
3579 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3580 はかなり嫌います.可能であれば,問題が生じな
3581 いように段落を修正するのが望ましいでしょう.
3584 \begin_layout Enumerate
3594 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3595 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3596 が原因です(\SpecialChar LaTeX
3600 \begin_layout Enumerate
3610 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3614 \begin_layout Enumerate
3627 \begin_layout Enumerate
3640 \begin_layout Standard
3654 \begin_layout Enumerate
3655 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3658 \begin_layout Standard
3690 \begin_layout Chapter
3694 \begin_layout Section
3697 \change_inserted 34634807 1499889868
3707 \begin_layout Standard
3710 \change_inserted 34634807 1499889904
3728 \change_deleted 34634807 1499889896
3729 (Bib\SpecialChar TeX
3734 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3735 でサポートされている書誌情報の特別な機能について説明することとします.
3738 \begin_layout Subsection
3742 \begin_layout Standard
3743 標準のBib\SpecialChar TeX
3745 \change_deleted 34634807 1499890024
3746 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっともよく見られる
3747 のは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3749 \begin_inset Flex Code
3752 \begin_layout Plain Layout
3759 \begin_inset Flex Code
3762 \begin_layout Plain Layout
3768 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3770 \begin_inset Flex Code
3773 \begin_layout Plain Layout
3779 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3780 \begin_inset Flex Code
3783 \begin_layout Plain Layout
3789 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3794 \begin_inset Flex Code
3797 \begin_layout Plain Layout
3803 パッケージの利用を考えるとよいかもしれません.
3806 \begin_layout Standard
3808 \change_deleted 34634807 1499890024
3810 での両パッケージの取扱い方は,ほぼ同じです.
3811 \begin_inset Flex MenuItem
3814 \begin_layout Plain Layout
3815 文書\SpecialChar menuseparator
3822 \begin_inset Flex MenuItem
3825 \begin_layout Plain Layout
3832 \begin_inset Flex MenuItem
3835 \begin_layout Plain Layout
3842 \begin_inset Flex MenuItem
3845 \begin_layout Plain Layout
3851 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3852 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3853 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3854 \begin_inset Flex Code
3857 \begin_layout Plain Layout
3863 に至っては,対話的なスタイルファイルビルダーさえ存在します
3867 \begin_layout Plain Layout
3868 \begin_inset Flex URL
3871 \begin_layout Plain Layout
3873 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3884 \change_inserted 34634807 1499890031
3888 \begin_layout Standard
3890 \change_inserted 34634807 1499890044
3893 Standard Bib\SpecialChar TeX
3895 \begin_inset space \thinspace{}
3899 \begin_inset space \space{}
3903 \begin_inset Quotes eld
3907 \begin_inset Quotes erd
3910 ) to refer to a cited work.
3911 However, in many scientific disciplines, other citation styles are in use.
3912 The most common one is the author-year style (e.
3913 \begin_inset space \thinspace{}
3917 \begin_inset space \space{}
3921 \begin_inset Quotes eld
3925 \begin_inset Quotes erd
3930 supports three packages that provide this style,
3931 \begin_inset Flex Code
3934 \begin_layout Plain Layout
3936 \change_inserted 34634807 1499890044
3945 \begin_inset Flex Code
3948 \begin_layout Plain Layout
3950 \change_inserted 34634807 1499890044
3959 \begin_inset Flex Code
3962 \begin_layout Plain Layout
3964 \change_inserted 34634807 1499890044
3973 Each of these packages has their pros and cons, which cannot be listed
3975 If you only want to have simple author-year (or author-numerical) style,
3976 or if you want to use one of the countless style files for
3977 \begin_inset Flex Code
3980 \begin_layout Plain Layout
3982 \change_inserted 34634807 1499890044
3990 , then the established
3991 \begin_inset Flex Code
3994 \begin_layout Plain Layout
3996 \change_inserted 34634807 1499890044
4004 package is probably your choice.
4005 If you look for specific citation styles common in law studies, you might
4007 \begin_inset Flex Code
4010 \begin_layout Plain Layout
4012 \change_inserted 34634807 1499890044
4021 If you want to have full control over the formatting or look for advanced
4022 features such as ibidem, footnote citations, full title citations, advanced
4023 date formats (such as 400 BC) or full localization to other languages than
4024 English, you should definitely consider
4025 \begin_inset Flex Code
4028 \begin_layout Plain Layout
4030 \change_inserted 34634807 1499890044
4038 , which exceeds all other packages in terms of features, but is also quite
4039 heavy and more resource-hungry.
4042 \begin_layout Standard
4044 \change_inserted 34634807 1499890044
4047 The handling of these packages in \SpecialChar LyX
4048 is basically the same.
4050 \begin_inset Flex Noun
4053 \begin_layout Plain Layout
4055 \change_inserted 34634807 1499890044
4058 Document\SpecialChar menuseparator
4065 \begin_inset Flex Noun
4068 \begin_layout Plain Layout
4070 \change_inserted 34634807 1499890044
4079 \begin_inset Flex Noun
4082 \begin_layout Plain Layout
4084 \change_inserted 34634807 1499890044
4093 \begin_inset Flex Noun
4096 \begin_layout Plain Layout
4098 \change_inserted 34634807 1499890044
4107 \begin_inset Flex Noun
4110 \begin_layout Plain Layout
4112 \change_inserted 34634807 1499890044
4115 Biblatex (Natbib mode)
4121 \begin_inset Flex Noun
4124 \begin_layout Plain Layout
4126 \change_inserted 34634807 1499890044
4135 \begin_inset Flex Noun
4138 \begin_layout Plain Layout
4140 \change_inserted 34634807 1499890044
4149 \begin_inset space ~
4152 6.5.3 in the User's Guide for more information on these choices).
4153 With all these packages, you will get some extra features in the citation
4154 dialog and you can select the style of the reference (
4155 \begin_inset Quotes eld
4159 \begin_inset Quotes erd
4163 \begin_inset Quotes eld
4167 \begin_inset Quotes erd
4171 \begin_inset Quotes eld
4175 \begin_inset Quotes erd
4179 \begin_inset Quotes eld
4183 \begin_inset Quotes erd
4187 Note that either package needs specifically designed style files.
4188 They all ship their own, but there are lots of additional style files,
4189 and there is even an interactive style file builder
4193 \begin_layout Plain Layout
4195 \change_inserted 34634807 1499890044
4199 \begin_inset Flex URL
4202 \begin_layout Plain Layout
4204 \change_inserted 34634807 1499890044
4206 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4217 \begin_inset Flex Code
4220 \begin_layout Plain Layout
4222 \change_inserted 34634807 1499890044
4235 \begin_layout Subsection
4237 \change_inserted 34634807 1499890054
4240 Subdivided Bibliographies
4245 \begin_layout Standard
4246 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4247 でさえあります.残念ながら,Bib\SpecialChar TeX
4248 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4249 パッケージの助けを借りると,Bib\SpecialChar TeX
4250 をこのような必要性を満たすように拡張するこ
4254 \begin_layout Standard
4257 \begin_inset Flex Code
4260 \begin_layout Plain Layout
4270 \begin_layout Plain Layout
4271 \begin_inset Flex URL
4274 \begin_layout Plain Layout
4276 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4286 をそのままでサポートします.このパッケージの長所は,(
4287 \begin_inset Flex Code
4290 \begin_layout Plain Layout
4296 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4297 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4298 \begin_inset Flex Code
4301 \begin_layout Plain Layout
4308 \begin_inset Flex Code
4311 \begin_layout Plain Layout
4320 \begin_layout Standard
4321 \begin_inset Flex MenuItem
4324 \begin_layout Plain Layout
4325 文書\SpecialChar menuseparator
4332 \begin_inset Flex MenuItem
4335 \begin_layout Plain Layout
4342 \begin_inset Flex MenuItem
4345 \begin_layout Plain Layout
4352 \change_inserted 34634807 1499890087
4356 \begin_inset Flex Noun
4359 \begin_layout Plain Layout
4361 \change_inserted 34634807 1499890087
4364 Subdivided bibliography
4373 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4375 \begin_inset Flex Code
4378 \begin_layout Plain Layout
4385 \begin_inset Flex Code
4388 \begin_layout Plain Layout
4394 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4395 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4396 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4398 \begin_inset Flex Code
4401 \begin_layout Plain Layout
4407 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4408 \change_inserted 34634807 1499890105
4412 \begin_layout Standard
4414 \change_inserted 34634807 1499890107
4421 , the procedure is a bit different.
4430 , the aforementioned
4431 \begin_inset Flex Noun
4434 \begin_layout Plain Layout
4436 \change_inserted 34634807 1499890107
4439 Subdivided bibliography
4444 option is disabled if you use
4453 provides its own means to generate subdivided bibliographies.
4454 You can either add keywords to bibliography entries via the
4455 \begin_inset Flex Code
4458 \begin_layout Plain Layout
4460 \change_inserted 34634807 1499890107
4468 entry option and then filter bibliography sections by keyword (by adding
4470 \begin_inset Flex Code
4473 \begin_layout Plain Layout
4475 \change_inserted 34634807 1499890107
4484 \begin_inset Flex Noun
4487 \begin_layout Plain Layout
4489 \change_inserted 34634807 1499890107
4497 field of the dialog that opens if you right-click on the
4498 \begin_inset Flex Noun
4501 \begin_layout Plain Layout
4503 \change_inserted 34634807 1499890107
4506 Biblatex Generated Bibliography
4511 button), or you can filter by entry types (such as
4520 \begin_inset space \thinspace{}
4525 \begin_inset Flex Code
4528 \begin_layout Plain Layout
4530 \change_inserted 34634807 1499890107
4539 \begin_inset Flex Code
4542 \begin_layout Plain Layout
4544 \change_inserted 34634807 1499890107
4553 \begin_inset Flex Noun
4556 \begin_layout Plain Layout
4558 \change_inserted 34634807 1499890107
4566 field, or you can create so-called
4567 \begin_inset Quotes eld
4570 Bibliography Categories
4571 \begin_inset Quotes erd
4574 to which you can assign individual entries.
4575 Please refer to the Biblatex manual, section
4577 Subdivided Bibliographies
4584 \begin_layout Subsection
4586 \change_deleted 34634807 1499890126
4590 \begin_layout Standard
4592 \change_deleted 34634807 1499890126
4593 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4594 自身ではサポートされていません.しかしながら,もし若干の
4595 \begin_inset Flex Code
4598 \begin_layout Plain Layout
4606 \begin_inset CommandInset ref
4608 reference "sec:LaTeXコードを挿入する"
4612 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4613 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4614 \begin_inset Flex Code
4617 \begin_layout Plain Layout
4623 パッケージが,この課題を解決する簡単な方法を提供します
4627 \begin_layout Plain Layout
4629 \begin_inset Flex Code
4632 \begin_layout Plain Layout
4639 \begin_inset Flex Code
4642 \begin_layout Plain Layout
4656 \begin_layout Standard
4658 \change_deleted 34634807 1499890126
4660 \begin_inset Flex MenuItem
4663 \begin_layout Plain Layout
4664 文書\SpecialChar menuseparator
4671 \begin_inset Flex MenuItem
4674 \begin_layout Plain Layout
4681 \begin_inset Flex MenuItem
4684 \begin_layout Plain Layout
4690 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4692 \begin_inset Flex Code
4695 \begin_layout Plain Layout
4704 \begin_inset Flex Code
4707 \begin_layout Plain Layout
4715 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4716 コードとして挿入する必要があります).書誌情報には,現在位置の
4717 \begin_inset Flex Code
4720 \begin_layout Plain Layout
4726 において引用されたすべての参照が含まれることになります.
4730 この方法を用いる場合には,すべての参照はいずれかの
4731 \begin_inset Flex Code
4734 \begin_layout Plain Layout
4741 \begin_inset Flex Code
4744 \begin_layout Plain Layout
4751 \change_inserted 34634807 1499890142
4755 \begin_layout Standard
4757 \change_inserted 34634807 1499890144
4760 Multiple bibliographies, e.
4761 \begin_inset space \thinspace{}
4765 \begin_inset space \space{}
4768 a bibliography for each part, chapter, section, subsection or child (sub-documen
4769 t) of the document, are also supported by \SpecialChar LyX
4771 In order to enable it, go to
4772 \begin_inset Flex Noun
4775 \begin_layout Plain Layout
4777 \change_inserted 34634807 1499890144
4780 Document\SpecialChar menuseparator
4781 Settings\SpecialChar menuseparator
4787 and select the relevant unit (e.
4788 \begin_inset space \thinspace{}
4792 \begin_inset Quotes eld
4796 \begin_inset Quotes erd
4800 \begin_inset Flex Noun
4803 \begin_layout Plain Layout
4805 \change_inserted 34634807 1499890144
4808 Multiple Bibliographies
4814 Then add a Bib(la)\SpecialChar TeX
4815 bibliography to each unit (e.
4816 \begin_inset space \thinspace{}
4819 g., section) of your document.
4820 In the output, a separate bibliography, containing only the references
4821 done in the current unit is generated.
4824 \begin_layout Standard
4826 \change_inserted 34634807 1499890144
4829 If you use Bib\SpecialChar TeX
4831 \begin_inset Flex Code
4834 \begin_layout Plain Layout
4836 \change_inserted 34634807 1499890144
4845 \begin_inset Flex Code
4848 \begin_layout Plain Layout
4850 \change_inserted 34634807 1499890144
4858 package is used to create multiple bibliographies.
4859 The former package is used if you select
4860 \begin_inset Quotes eld
4864 \begin_inset Quotes erd
4872 \begin_inset Flex Noun
4875 \begin_layout Plain Layout
4877 \change_inserted 34634807 1499890144
4880 Sectioned Bibliography
4887 \begin_inset Flex Code
4890 \begin_layout Plain Layout
4892 \change_inserted 34634807 1499890144
4904 \begin_layout Plain Layout
4906 \change_inserted 34634807 1499890144
4909 An alternative approach, if you are willing to use some
4910 \begin_inset Flex Noun
4913 \begin_layout Plain Layout
4915 \change_inserted 34634807 1499890144
4925 \begin_inset space ~
4929 \begin_inset CommandInset ref
4931 reference "sec:Inserting-TeX-Code"
4936 \begin_inset Flex Code
4939 \begin_layout Plain Layout
4941 \change_inserted 34634807 1499890144
4955 \begin_inset Flex Code
4958 \begin_layout Plain Layout
4960 \change_inserted 34634807 1499890144
4968 is used, \SpecialChar LyX
4969 encloses the specified units in
4970 \begin_inset Flex Code
4973 \begin_layout Plain Layout
4975 \change_inserted 34634807 1499890144
4984 \begin_inset Flex Code
4987 \begin_layout Plain Layout
4989 \change_inserted 34634807 1499890144
5000 \begin_inset Flex Code
5003 \begin_layout Plain Layout
5005 \change_inserted 34634807 1499890144
5015 in order to create the units.
5016 Note that this approach has some limitations.
5017 First, every citation reference has to be inside some
5018 \begin_inset Flex Code
5021 \begin_layout Plain Layout
5023 \change_inserted 34634807 1499890144
5032 So citations outside a defined unit (e.
5033 \begin_inset space \thinspace{}
5036 g., before the first section if you use
5037 \begin_inset Quotes eld
5041 \begin_inset Quotes erd
5045 \begin_inset Quotes eld
5049 \begin_inset Quotes erd
5053 You can also create your own units by entering
5054 \begin_inset Flex Code
5057 \begin_layout Plain Layout
5059 \change_inserted 34634807 1499890144
5070 \begin_inset Flex Code
5073 \begin_layout Plain Layout
5075 \change_inserted 34634807 1499890144
5086 code (for instance to work around the mentioned limitation).
5088 \begin_inset Flex Code
5091 \begin_layout Plain Layout
5093 \change_inserted 34634807 1499890144
5102 A second limitation is that
5103 \begin_inset Flex Code
5106 \begin_layout Plain Layout
5108 \change_inserted 34634807 1499890144
5116 always processes all references of a bibliography database, even if they
5118 This can result in odd labels (e.
5119 \begin_inset space \thinspace{}
5124 \begin_inset Quotes eld
5128 \begin_inset Quotes erd
5131 if two works of this author from 2014 are in the database, even if only
5135 \begin_layout Standard
5137 \change_inserted 34634807 1499890144
5145 \begin_inset Flex Code
5148 \begin_layout Plain Layout
5150 \change_inserted 34634807 1499890144
5158 option is used instead.
5159 If you need specific units, you can start them with the \SpecialChar TeX
5161 \begin_inset Flex Code
5164 \begin_layout Plain Layout
5166 \change_inserted 34634807 1499890144
5177 \begin_inset Flex Code
5180 \begin_layout Plain Layout
5182 \change_inserted 34634807 1499890144
5193 If you also want to control the end of the unit, use the environment
5194 \begin_inset Flex Code
5197 \begin_layout Plain Layout
5199 \change_inserted 34634807 1499890144
5211 \begin_inset Flex Code
5214 \begin_layout Plain Layout
5216 \change_inserted 34634807 1499890144
5228 \begin_inset Flex Code
5231 \begin_layout Plain Layout
5233 \change_inserted 34634807 1499890144
5242 In addition to the individual bibliography of the current unit,
5246 also provides an easy way to output all bibliographies, subsequently, at
5248 \begin_inset space \thinspace{}
5251 g., at the end of the document).
5253 \begin_inset Quotes eld
5257 \begin_inset Quotes erd
5260 from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
5266 manual for more information on this topic.
5271 \begin_layout Section
5275 \begin_layout Subsection
5279 \begin_layout Standard
5280 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
5281 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
5282 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
5283 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
5287 \begin_layout Plain Layout
5292 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
5298 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
5299 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
5300 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
5301 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
5302 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
5304 \begin_inset Flex Code
5307 \begin_layout Plain Layout
5316 \begin_inset Flex Code
5319 \begin_layout Plain Layout
5327 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
5330 \begin_layout Standard
5334 挿入\SpecialChar menuseparator
5335 ファイル\SpecialChar menuseparator
5338 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
5339 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
5342 \begin_layout Standard
5343 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
5344 「input」の違いは,正確には\SpecialChar LaTeX
5345 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
5346 れるのに対し,「input」されたファイルは現在のページから組版される点です.
5349 \begin_layout Standard
5350 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
5351 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
5355 \begin_layout Standard
5356 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
5357 \begin_inset Flex Code
5360 \begin_layout Plain Layout
5366 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
5367 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
5371 \begin_inset Flex MenuItem
5374 \begin_layout Plain Layout
5384 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
5387 \begin_layout Subsection
5391 \begin_layout Standard
5392 \begin_inset Box Shadowbox
5402 height_special "totalheight"
5407 backgroundcolor "none"
5410 \begin_layout Plain Layout
5411 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
5419 \begin_layout Standard
5420 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
5421 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
5425 \begin_layout Subsection
5429 \begin_layout Standard
5430 \begin_inset Box Shadowbox
5440 height_special "totalheight"
5445 backgroundcolor "none"
5448 \begin_layout Plain Layout
5449 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
5457 \begin_layout Standard
5458 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
5459 は.bibファイルを見つけることができ,書誌情報
5460 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
5463 \begin_layout Standard
5464 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
5465 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
5466 クルードする\SpecialChar LaTeX
5468 \begin_inset Flex Code
5471 \begin_layout Plain Layout
5477 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
5480 \begin_layout LyX-Code
5486 \begin_layout LyX-Code
5489 includecomment{comment}
5492 \begin_layout Standard
5493 \begin_inset Flex URL
5496 \begin_layout Plain Layout
5498 http://wiki.lyx.org/FAQ/Unsorted#toc31
5506 \begin_layout Section
5511 \begin_layout Standard
5512 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
5513 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
5515 2.0には,この過程を自動化するPythonスクリプト(
5516 \begin_inset Flex Code
5519 \begin_layout Plain Layout
5526 \begin_inset Flex Code
5529 \begin_layout Plain Layout
5536 \begin_inset Flex Code
5539 \begin_layout Plain Layout
5545 pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
5546 \begin_inset Flex Code
5549 \begin_layout Plain Layout
5556 \begin_inset Flex Code
5559 \begin_layout Plain Layout
5565 ファイル形式が優先され,Windowsでは
5566 \begin_inset Flex Code
5569 \begin_layout Plain Layout
5578 \begin_layout Standard
5580 の環境構成時には,「\SpecialChar LyX
5581 書庫」を書き出すことができるようにスクリプトが準備され,
5582 \begin_inset Flex MenuItem
5585 \begin_layout Plain Layout
5586 ファイル\SpecialChar menuseparator
5595 \begin_layout Standard
5596 \begin_inset Flex MenuItem
5599 \begin_layout Plain Layout
5600 ツール\SpecialChar menuseparator
5601 設定\SpecialChar menuseparator
5602 ファイル処理\SpecialChar menuseparator
5609 \begin_inset Flex MenuItem
5612 \begin_layout Plain Layout
5614 \SpecialChar menuseparator
5622 \begin_inset Flex Code
5625 \begin_layout Plain Layout
5632 \begin_inset Flex Code
5635 \begin_layout Plain Layout
5641 スイッチを加えることで,プラットホームとは独立に,
5642 \begin_inset Flex Code
5645 \begin_layout Plain Layout
5652 \begin_inset Flex Code
5655 \begin_layout Plain Layout
5661 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5664 \begin_layout Section
5668 \begin_layout Standard
5669 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5670 \begin_inset Flex Code
5673 \begin_layout Plain Layout
5679 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5684 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5686 る必要のある\SpecialChar LaTeX
5690 \begin_layout Standard
5691 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5692 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5696 \begin_inset Flex Code
5699 \begin_layout Plain Layout
5714 \begin_inset Flex Code
5717 \begin_layout Plain Layout
5732 \begin_inset Flex Code
5735 \begin_layout Plain Layout
5748 \begin_inset Flex Code
5751 \begin_layout Plain Layout
5759 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5762 \begin_layout Standard
5770 \begin_layout Standard
5771 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5775 \begin_layout Standard
5781 \begin_inset Newline newline
5789 \begin_layout Standard
5790 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5791 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5794 \begin_layout Standard
5804 \begin_layout Standard
5812 \begin_layout Standard
5822 \begin_layout Standard
5830 \begin_layout Standard
5838 \begin_layout Standard
5848 \begin_layout Standard
5852 \begin_inset Flex Code
5855 \begin_layout Plain Layout
5872 \begin_inset Flex Code
5875 \begin_layout Plain Layout
5887 は,それぞれ\SpecialChar LaTeX
5888 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5889 \begin_inset Flex Code
5892 \begin_layout Plain Layout
5907 \begin_layout Standard
5908 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5909 フッタ罫線は0ptです.太さを変更するには,
5912 \begin_inset Flex Code
5915 \begin_layout Plain Layout
5922 headrulewidth}{0.4pt}
5932 \begin_inset Flex Code
5935 \begin_layout Plain Layout
5942 footrulewidth}{0.4pt}
5952 \begin_layout Standard
5953 \begin_inset Flex Code
5956 \begin_layout Plain Layout
5961 thispagestyle{empty}
5967 \begin_inset Flex Code
5970 \begin_layout Plain Layout
5975 thispagestyle{plain}
5981 \begin_inset Flex Code
5984 \begin_layout Plain Layout
5989 thispagestyle{fancy}
5994 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5996 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5997 (plain)になるように設定されているのです.
6000 \begin_layout Standard
6001 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
6002 \begin_inset Flex Code
6005 \begin_layout Plain Layout
6013 パッケージの取扱説明書をご参照ください(
6014 \begin_inset Flex Code
6017 \begin_layout Plain Layout
6026 \begin_layout Standard
6027 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
6030 \begin_layout Standard
6039 includegraphics{logo.eps}}}
6042 \begin_layout Standard
6044 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
6045 \begin_inset Newline newline
6049 \begin_inset Flex Code
6052 \begin_layout Plain Layout
6058 usepackage{graphics}
6063 をプリアンブルに宣言する必要があります).
6066 \begin_layout Section
6068 \begin_inset CommandInset label
6077 \begin_layout Standard
6083 \begin_layout Subsection
6087 \begin_layout Standard
6089 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
6090 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
6094 \begin_layout Plain Layout
6095 正確には可能ですが,手動で行う必要があります.
6103 \begin_layout Subsection
6107 \begin_layout Standard
6109 \begin_inset Flex MenuItem
6112 \begin_layout Plain Layout
6113 文書\SpecialChar menuseparator
6120 \begin_inset Flex MenuItem
6123 \begin_layout Plain Layout
6132 \begin_layout Standard
6133 このダイアログは,ブリット形の一覧表を提示します.
6134 \begin_inset Flex MenuItem
6137 \begin_layout Plain Layout
6143 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
6144 \begin_inset Flex MenuItem
6147 \begin_layout Plain Layout
6153 パネルは,変更したい階層を選択するものです.
6154 \begin_inset Flex MenuItem
6157 \begin_layout Plain Layout
6163 では,指定したい\SpecialChar LaTeX
6164 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
6168 \begin_layout Standard
6169 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
6173 \begin_layout Standard
6175 \begin_inset Tabular
6176 <lyxtabular version="3" rows="7" columns="2">
6177 <features tabularvalignment="middle">
6178 <column alignment="center" valignment="top" width="0pt">
6179 <column alignment="center" valignment="top" width="0pt">
6181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6193 \begin_layout Plain Layout
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Plain Layout
6221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6224 \begin_layout Plain Layout
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Plain Layout
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6264 \begin_layout Plain Layout
6281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6284 \begin_layout Plain Layout
6299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6302 \begin_layout Plain Layout
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6322 \begin_layout Plain Layout
6337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6340 \begin_layout Plain Layout
6357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6360 \begin_layout Plain Layout
6375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6378 \begin_layout Plain Layout
6395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6398 \begin_layout Plain Layout
6413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6416 \begin_layout Plain Layout
6439 \begin_layout Standard
6441 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
6443 パッケージが導入されていない可能性が大です
6447 \begin_layout Plain Layout
6449 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
6457 \begin_layout Subsection
6461 \begin_layout Standard
6462 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
6463 上には反映されませんが,文書の表示を行えば確認されます.
6466 \begin_layout Standard
6467 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
6471 \begin_layout Plain Layout
6476 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
6477 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
6478 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
6481 \begin_layout Plain Layout
6485 \begin_layout Plain Layout
6501 \begin_layout Plain Layout
6505 \begin_layout Plain Layout
6527 \begin_layout Itemize
6528 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
6530 \begin_inset Flex Code
6533 \begin_layout Plain Layout
6543 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
6544 更するために,以下の\SpecialChar LaTeX
6549 \begin_layout LyX-Code
6561 \begin_layout LyX-Code
6580 \begin_layout Itemize
6582 \begin_inset Flex Code
6585 \begin_layout Plain Layout
6593 コマンドの一部にローマ数字で指定されていることに注意してください.
6596 \begin_layout Itemize
6600 \begin_layout Plain Layout
6613 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
6614 \begin_inset Flex Code
6617 \begin_layout Plain Layout
6624 として挿入してください.たとえば,この項目の行頭には
6627 \begin_inset Flex Code
6630 \begin_layout Plain Layout
6649 \begin_layout Plain Layout
6653 \begin_layout Plain Layout
6669 \begin_layout Plain Layout
6670 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6673 \begin_layout LyX-Code
6690 \begin_layout Chapter
6695 \begin_layout Standard
6697 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6698 は,常に外部変換子を用いることで実現されていました
6702 \begin_layout Plain Layout
6704 で外部変換子を使うことについての詳細は,取扱説明書『
6717 .これらは2つのグループに大別できます.1つは,
6718 \begin_inset Flex Code
6721 \begin_layout Plain Layout
6728 \begin_inset Flex Code
6731 \begin_layout Plain Layout
6738 \begin_inset Flex Code
6741 \begin_layout Plain Layout
6747 のように,\SpecialChar LaTeX
6748 を中間形式として用い,その\SpecialChar LaTeX
6749 を生成するのに\SpecialChar LyX
6751 \begin_inset Flex Code
6754 \begin_layout Plain Layout
6761 のように,直接\SpecialChar LyX
6762 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6765 \begin_layout Standard
6767 ベースの変換子は,原則として,\SpecialChar LaTeX
6768 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6770 たのか,\SpecialChar TeX
6771 コードで書かれたのかについては気にしません.これらの変換子は,
6772 \begin_inset Flex Code
6775 \begin_layout Plain Layout
6781 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6783 \begin_inset Flex Code
6786 \begin_layout Plain Layout
6792 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6793 は解析の非常に難しい言語であり—\SpecialChar TeX
6794 自身だけが\SpecialChar TeX
6795 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6797 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6801 』は,他の変換子では書き出しができるのに,
6802 \begin_inset Flex Code
6805 \begin_layout Plain Layout
6811 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6812 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6813 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6814 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6817 \begin_layout Standard
6819 \begin_inset Flex Code
6822 \begin_layout Plain Layout
6830 \begin_inset CommandInset href
6832 name "http://elyxer.nongnu.org/"
6833 target "http://elyxer.nongnu.org/"
6838 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6839 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6840 \begin_inset Flex Code
6843 \begin_layout Plain Layout
6849 よりも質が落ちます.これはHTMLの限界を示しています
6853 \begin_layout Plain Layout
6855 \begin_inset Flex Code
6858 \begin_layout Plain Layout
6865 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6871 .さらに重要なことは(少なくとも第1.1.1版においては),
6872 \begin_inset Flex Code
6875 \begin_layout Plain Layout
6882 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6884 \begin_inset Flex Code
6887 \begin_layout Plain Layout
6894 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6895 開発陣は別の方法を採ることとし,\SpecialChar LyX
6898 ことができるのと同様に,\SpecialChar LyX
6899 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6902 \begin_layout Standard
6903 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6907 \begin_layout Plain Layout
6910 \begin_inset CommandInset href
6913 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6919 \begin_inset Flex Code
6922 \begin_layout Plain Layout
6923 development/HTML.notes
6928 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6929 \begin_inset CommandInset href
6932 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
6937 にあるXHTML関連バグ一覧も参照のこと.
6942 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6945 \begin_layout Standard
6946 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6947 の一部となっているため,\SpecialChar LyX
6948 が出力する文書について\SpecialChar LyX
6949 が関知しているところのものは,すべて知り得るというところから来ていま
6954 \begin_layout Plain Layout
6955 他には,これらのルーチンが\SpecialChar LyX
6956 内部にあるため,\SpecialChar LyX
6957 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6962 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6963 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6964 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6965 1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6968 \begin_layout Standard
6969 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6970 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6971 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6972 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6976 生成します.もし節見出しが,\SpecialChar LyX
6977 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6978 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6980 式とを区別しません.どちらの場合も,\SpecialChar LyX
6981 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6985 \begin_layout Standard
6986 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6987 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6995 \begin_layout Standard
6996 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6999 \begin_layout Section
7003 \begin_layout Standard
7005 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
7008 \begin_layout Itemize
7010 \begin_inset Newline newline
7013 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
7014 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
7016 \begin_inset Newline newline
7020 \begin_inset Flex Code
7023 \begin_layout Plain Layout
7029 パッケージを使用していたり,\SpecialChar TeX
7030 コードを使用しているなどで,もし\SpecialChar LyX
7031 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
7036 \begin_layout Itemize
7038 \begin_inset Newline newline
7042 \begin_inset Flex Code
7045 \begin_layout Plain Layout
7051 は,数式をCSSで装飾したHTMLとして出力します
7055 \begin_layout Plain Layout
7058 \begin_inset Flex Code
7061 \begin_layout Plain Layout
7067 からのHTML出力のために,CSSの一部を拝借しています.
7072 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
7073 \begin_inset Flex Code
7076 \begin_layout Plain Layout
7082 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
7083 \begin_inset Newline newline
7087 \begin_inset Flex Code
7090 \begin_layout Plain Layout
7096 パッケージを使用していたり,\SpecialChar TeX
7097 コードを使用しているなどで,もし\SpecialChar LyX
7098 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
7103 \begin_layout Itemize
7105 \begin_inset Newline newline
7109 \begin_inset Flex Code
7112 \begin_layout Plain Layout
7118 のように,\SpecialChar LyX
7119 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
7123 \begin_layout Plain Layout
7124 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
7133 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
7134 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
7135 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
7136 \begin_inset CommandInset href
7139 target "http://www.lyx.org/trac/ticket/6894"
7145 \begin_inset Newline newline
7149 \begin_inset Flex MenuItem
7152 \begin_layout Plain Layout
7153 文書\SpecialChar menuseparator
7154 設定\SpecialChar menuseparator
7160 の「数式画像の伸縮」パラメータを変更することで制御できます
7164 \begin_layout Plain Layout
7165 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
7171 \begin_inset Newline newline
7175 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
7176 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
7180 \begin_layout Itemize
7183 \begin_inset Newline newline
7186 最後に,\SpecialChar LyX
7187 は,数式を\SpecialChar LaTeX
7188 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
7191 \begin_inset CommandInset href
7194 target "http://www.math.union.edu/~dpvc/jsMath/"
7199 のようなツールとともに使用することもできます.\SpecialChar LyX
7200 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
7202 \begin_inset Flex Code
7205 \begin_layout Plain Layout
7212 \begin_inset Flex Code
7215 \begin_layout Plain Layout
7222 \begin_inset Flex Code
7225 \begin_layout Plain Layout
7234 \begin_layout Standard
7236 \begin_inset Flex MenuItem
7239 \begin_layout Plain Layout
7240 文書\SpecialChar menuseparator
7241 設定\SpecialChar menuseparator
7247 で選択しなくてはなりません.既定では,\SpecialChar LyX
7248 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
7251 \begin_layout Standard
7252 最後に,\SpecialChar LyX
7253 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
7257 \begin_layout Plain Layout
7258 その他にも,\SpecialChar LyX
7259 は,差込枠に\SpecialChar TeX
7260 コードが含まれていると画像出力に回帰するので,数式中に
7261 \begin_inset Formula $a=b\relax$
7264 のような無害な\SpecialChar TeX
7265 コードを挿入することによって,画像出力を強制することができます.
7273 \begin_layout Section
7277 \begin_layout Standard
7278 XHTML出力は,書誌情報と引用を完全にサポートしています.
7281 \begin_layout Standard
7282 引用ラベルは,\SpecialChar LyX
7283 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
7284 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
7285 使用している場合には,\SpecialChar LyX
7286 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
7287 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
7288 は,Bib\SpecialChar TeX
7289 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
7290 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
7293 \begin_layout Standard
7294 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
7295 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
7299 \begin_layout Standard
7300 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
7305 \begin_inset Quotes eld
7308 Context and Logical Form
7309 \begin_inset Quotes erd
7314 Language in Context: Selected Essays
7316 (Oxford: Oxford University Press, 2007), pp.
7322 \begin_inset Quotes eld
7325 Semantics in Context
7326 \begin_inset Quotes erd
7331 Language in Context: Selected Essays
7333 (Oxford: Oxford University Press, 2007), pp.
7337 \begin_layout Standard
7338 これは,遠くないうちに修正されるでしょう.
7341 \begin_layout Standard
7342 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
7343 は同じ情報を繰り返し出力してしまいます.
7346 \begin_layout Section
7350 \begin_layout Standard
7352 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
7355 \begin_layout Standard
7360 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
7364 \begin_layout Plain Layout
7365 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
7366 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
7367 で入力しなくてはならないようなものをそのまま入力しているのです.
7372 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
7375 \begin_layout Itemize
7376 索引項目のグループ化(下層項目): \SpecialChar LyX
7377 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
7378 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
7381 \begin_layout Itemize
7382 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
7386 \begin_layout Itemize
7387 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
7388 が「|see\SpecialChar ldots
7389 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
7393 \begin_layout Itemize
7394 索引項目の整序: \SpecialChar LyX
7395 は整序順の変更をサポートします.\SpecialChar LyX
7396 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
7397 出します.現在のところ,\SpecialChar LyX
7398 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
7401 \begin_layout Itemize
7402 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
7403 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
7404 うな文法はサポートされません.\SpecialChar LyX
7405 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
7408 \begin_layout Itemize
7409 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
7410 を印字しますので,その索引は必ず置くようにしてください.
7413 \begin_layout Section
7417 \begin_layout Standard
7418 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
7421 \begin_layout Chapter
7424 \begin_inset CommandInset label
7433 \begin_layout Section
7437 \begin_layout Standard
7439 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
7440 と通信したり,\SpecialChar LyX
7441 コマンドを実行させたり,\SpecialChar LyX
7442 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
7443 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
7444 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
7448 \begin_layout Section
7453 \begin_layout Standard
7455 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
7456 \begin_inset Flex Code
7459 \begin_layout Plain Layout
7465 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
7470 \begin_inset Flex Code
7473 \begin_layout Plain Layout
7485 に特別なオブジェクトとして置かれます),「
7486 \begin_inset Flex Code
7489 \begin_layout Plain Layout
7496 \begin_inset Flex Code
7499 \begin_layout Plain Layout
7505 」という名前がついています.外部プログラムは,
7506 \begin_inset Flex Code
7509 \begin_layout Plain Layout
7516 \begin_inset Flex Code
7519 \begin_layout Plain Layout
7526 \begin_inset Flex MenuItem
7529 \begin_layout Plain Layout
7530 ツール\SpecialChar menuseparator
7537 \begin_inset Flex Code
7540 \begin_layout Plain Layout
7541 /home/myhome/lyxpipe
7547 \begin_inset Flex Code
7550 \begin_layout Plain Layout
7564 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
7565 \begin_inset Flex Code
7568 \begin_layout Plain Layout
7586 なども使用できます).サーバーを開始するためには,これを
7593 \begin_layout Standard
7596 \begin_inset Flex Code
7599 \begin_layout Plain Layout
7606 \begin_inset Flex Code
7609 \begin_layout Plain Layout
7615 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
7617 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
7618 らかの理由で,\SpecialChar LyX
7619 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
7620 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
7621 プを削除したのちに,\SpecialChar LyX
7622 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7626 \begin_layout Standard
7627 サーバーを使用する\SpecialChar LyX
7628 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7629 \begin_inset Flex Code
7632 \begin_layout Plain Layout
7638 ファイルを使用させるなど,別々の設定を使用する必要があります.
7641 \begin_layout Standard
7642 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7643 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7644 \begin_inset Flex Code
7647 \begin_layout Plain Layout
7656 \begin_layout Standard
7657 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7658 \begin_inset Newline newline
7662 \begin_inset Flex Code
7665 \begin_layout Plain Layout
7666 development/lyxserver/server_monitor.cpp
7674 \begin_layout Standard
7676 \begin_inset Flex Code
7679 \begin_layout Plain Layout
7680 src/client/lyxclient
7685 にあるコマンドラインベースのクライアントがあります.
7688 \begin_layout Section
7692 \begin_layout Standard
7694 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7711 \begin_layout Description
7712 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7714 る際,クライアント名をエコーするときだけです.
7717 \begin_layout Description
7718 関数 は,\SpecialChar LyX
7719 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7722 \begin_layout Description
7723 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7726 \begin_layout Standard
7745 \begin_layout Standard
7754 は,コマンド要求からそのままエコーされますが,
7758 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7759 の内部状態に関する情報を返しますが,空のデータ応答
7760 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7763 \begin_layout Standard
7764 エラーが発生した場合の\SpecialChar LyX
7782 \begin_layout Standard
7787 には,なぜコマンドが失敗したかの説明が入っているはずです.
7790 \begin_layout Standard
7794 \begin_layout LyX-Code
7795 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7796 \begin_inset Newline newline
7799 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7800 \begin_inset Newline newline
7803 read a <~/.lyxpipe.out
7804 \begin_inset Newline newline
7810 \begin_layout Section
7814 \begin_layout Standard
7816 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7817 \begin_inset Flex Ruby
7820 \begin_layout Plain Layout
7822 \begin_inset Argument post:1
7825 \begin_layout Plain Layout
7836 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7837 はこの通知を行います.\SpecialChar LyX
7842 \begin_inset Flex Code
7845 \begin_layout Plain Layout
7856 \begin_layout Standard
7861 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7864 \begin_layout Standard
7865 この機構は,\SpecialChar LyX
7866 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7867 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7868 コマンドを発行する\SpecialChar LyX
7873 \begin_layout Section
7878 \begin_layout Standard
7880 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7893 \begin_layout Standard
7898 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7899 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7901 とをクライアントに伝えるのには,\SpecialChar LyX
7905 \begin_layout Section
7909 \begin_layout Standard
7914 \begin_layout Plain Layout
7915 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7919 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7924 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7925 特定の場所をクリックすることによって,\SpecialChar LyX
7926 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7932 )を使用するか,\SpecialChar LyX
7933 が作業ディレクトリに生成するUNIXドメインソケット(
7938 \begin_inset Flex Code
7941 \begin_layout Plain Layout
7947 プログラムが\SpecialChar LyX
7948 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7949 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7951 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7952 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7953 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7954 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7957 \begin_layout Subsection
7958 \begin_inset CommandInset label
7967 \begin_layout Standard
7968 \begin_inset Flex MenuItem
7971 \begin_layout Plain Layout
7972 文書\SpecialChar menuseparator
7973 設定\SpecialChar menuseparator
7980 \begin_inset Flex MenuItem
7983 \begin_layout Plain Layout
7989 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
7990 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
7991 は,自動的に,必要なSync\SpecialChar TeX
7992 マクロ(PDFの場合)や,srcltxパッケー
7993 ジ(DVIの場合)を挿入してくれます.このオプションは,
7994 \begin_inset Flex MenuItem
7997 \begin_layout Plain Layout
8003 ツールバーからも容易にアクセスすることができます.
8006 \begin_layout Standard
8007 もし,これとは別の設定が必要な場合には,
8008 \begin_inset Flex MenuItem
8011 \begin_layout Plain Layout
8012 文書\SpecialChar menuseparator
8013 設定\SpecialChar menuseparator
8014 出力\SpecialChar menuseparator
8020 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
8023 \begin_layout Standard
8025 \begin_inset Flex Code
8028 \begin_layout Plain Layout
8036 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
8037 \begin_inset Flex Code
8040 \begin_layout Plain Layout
8051 \begin_layout Standard
8053 \begin_inset Flex Code
8056 \begin_layout Plain Layout
8063 \begin_inset Flex Code
8066 \begin_layout Plain Layout
8072 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
8073 \begin_inset Flex Code
8076 \begin_layout Plain Layout
8083 \begin_inset Flex Code
8086 \begin_layout Plain Layout
8092 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
8095 \begin_layout Standard
8096 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
8097 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
8098 \begin_inset CommandInset ref
8100 reference "subsec:特定のビューアを設定して使うには"
8107 \begin_layout Subsection
8111 \begin_layout Standard
8113 は,遡及検索のために複数の方法を提供しています.ある方法は
8114 \begin_inset Flex Code
8117 \begin_layout Plain Layout
8123 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
8124 頒布版が既に特定の方法を提供しているか(組み込みによ
8125 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
8128 \begin_layout Subsubsection*
8129 src-special経由のDVI組み込み検索(DVIのみ)
8132 \begin_layout Standard
8133 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
8134 から利用可能となっており(比較的最近の\SpecialChar LaTeX
8137 \begin_inset Flex MenuItem
8140 \begin_layout Plain Layout
8141 設定\SpecialChar menuseparator
8142 ファイル処理\SpecialChar menuseparator
8149 \begin_inset Flex MenuItem
8152 \begin_layout Plain Layout
8159 \begin_inset Flex MenuItem
8162 \begin_layout Plain Layout
8163 LaTeX (plain)->DraftDVI
8169 \begin_inset Flex Code
8172 \begin_layout Plain Layout
8173 latex -src-specials $$i
8178 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
8179 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
8182 \begin_layout Subsubsection*
8183 外部パッケージ(PDFSyncおよびsrcltx)
8186 \begin_layout Standard
8195 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
8196 プリアンブルで以下のようにパッケージを読み込んで
8200 \begin_layout Itemize
8202 \begin_inset Flex Code
8205 \begin_layout Plain Layout
8216 \begin_layout Itemize
8218 \begin_inset Flex Code
8221 \begin_layout Plain Layout
8224 usepackage[active]{srcltx}
8232 \begin_layout Standard
8233 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
8236 \begin_layout LyX-Code
8240 \begin_inset Newline newline
8246 \begin_inset Newline newline
8252 \begin_inset Newline newline
8258 \begin_inset Newline newline
8263 usepackage[active]{srcltx}
8264 \begin_inset Newline newline
8272 \begin_layout Standard
8273 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
8276 \begin_layout Standard
8277 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
8281 \begin_layout Subsubsection*
8282 Sync\SpecialChar TeX
8283 を使った組み込み遡及検索(DVIおよびPDF)
8286 \begin_layout Standard
8287 \begin_inset Flex Code
8290 \begin_layout Plain Layout
8296 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
8298 Sync\SpecialChar TeX
8301 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
8302 るためには,少なくとも\SpecialChar TeX
8303 Live 2008か最近のMik\SpecialChar TeX
8304 頒布版が必要です.また,既にSync\SpecialChar TeX
8305 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
8306 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
8309 \begin_layout Standard
8310 DVI出力でSync\SpecialChar TeX
8312 \begin_inset Flex MenuItem
8315 \begin_layout Plain Layout
8316 設定\SpecialChar menuseparator
8317 ファイル処理\SpecialChar menuseparator
8324 \begin_inset Flex MenuItem
8327 \begin_layout Plain Layout
8334 \begin_inset Flex MenuItem
8337 \begin_layout Plain Layout
8338 LaTeX (plain)->DraftDVI
8344 \begin_inset Flex Code
8347 \begin_layout Plain Layout
8348 latex -synctex=1 $$i
8354 \begin_inset Flex MenuItem
8357 \begin_layout Plain Layout
8358 LaTeX (pdflatex)->PDF (pdflatex)
8364 \begin_inset Flex Code
8367 \begin_layout Plain Layout
8368 pdflatex -synctex=1 $$i
8373 に変更してください.また,ビューアをSync\SpecialChar TeX
8374 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
8378 \begin_layout Plain Layout
8379 \begin_inset Flex Code
8382 \begin_layout Plain Layout
8388 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
8389 \begin_inset Flex Code
8392 \begin_layout Plain Layout
8406 \begin_layout Subsection
8408 \begin_inset CommandInset label
8410 name "subsec:特定のビューアを設定して使うには"
8417 \begin_layout Subsubsection*
8421 \begin_layout Standard
8424 \begin_inset Flex Code
8427 \begin_layout Plain Layout
8433 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
8434 \begin_inset Flex Code
8437 \begin_layout Plain Layout
8443 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
8444 ,Mac OS X上ではAlt-クリックで始動します).
8447 \begin_layout Standard
8448 しかし,何らかの理由で,\SpecialChar LyX
8449 と通信するのにソケットではなく命名パイプを使用したい場合には,
8450 \begin_inset Flex MenuItem
8453 \begin_layout Plain Layout
8454 設定\SpecialChar menuseparator
8455 ファイル処理\SpecialChar menuseparator
8462 \begin_inset Flex Code
8465 \begin_layout Plain Layout
8466 xdvi -editor "lyxeditor.sh %f %l"
8472 \begin_inset Flex Code
8475 \begin_layout Plain Layout
8481 は適切なスクリプト名)に変更してください
8485 \begin_layout Plain Layout
8487 \begin_inset Flex Code
8490 \begin_layout Plain Layout
8491 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8504 \begin_layout LyX-Code
8506 \begin_inset Newline newline
8509 LYXPIPE="/path/to/lyxpipe"
8510 \begin_inset Newline newline
8513 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8514 \begin_inset Newline newline
8517 echo "$COMMAND" > "${LYXPIPE}".in || exit
8518 \begin_inset Newline newline
8521 read TMP < "${LYXPIPE}".out || exit
8524 \begin_layout Standard
8526 \begin_inset Flex Code
8529 \begin_layout Plain Layout
8536 \begin_inset Flex MenuItem
8539 \begin_layout Plain Layout
8540 設定\SpecialChar menuseparator
8546 で指定したLyXServerパイプのパスを指定してください.
8550 \begin_layout Plain Layout
8552 \begin_inset Flex Code
8555 \begin_layout Plain Layout
8566 \begin_inset Flex Code
8569 \begin_layout Plain Layout
8583 \begin_layout Subsubsection*
8587 \begin_layout Standard
8588 \begin_inset Flex Code
8591 \begin_layout Plain Layout
8592 /Applications/MacDviX_Folder/calleditor.script
8600 \begin_layout LyX-Code
8601 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8602 \begin_inset Newline newline
8608 \begin_layout Standard
8609 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
8610 を導入した場合には,それに従って上記の行を修正してください.
8613 \begin_layout Standard
8614 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8617 \begin_layout Subsubsection*
8621 \begin_layout Standard
8622 \begin_inset Flex MenuItem
8625 \begin_layout Plain Layout
8626 設定\SpecialChar menuseparator
8627 ファイル処理\SpecialChar menuseparator
8628 ファイル書式\SpecialChar menuseparator
8635 \begin_inset Flex Code
8638 \begin_layout Plain Layout
8639 open -a Skim.app $$i
8645 \begin_inset Flex MenuItem
8648 \begin_layout Plain Layout
8649 Skim\SpecialChar menuseparator
8650 設定\SpecialChar menuseparator
8659 \begin_layout Standard
8660 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8663 \begin_layout Subsubsection*
8665 \change_inserted -712698321 1500965366
8671 \begin_layout Standard
8673 \change_inserted -712698321 1500965366
8676 Reverse search with evince does not work out of the box, but it can be achieved
8677 by means of some third party helper scripts.
8679 \begin_inset CommandInset href
8681 target "http://wiki.lyx.org/LyX/SyncTeX"
8689 \begin_layout Subsubsection*
8693 \begin_layout Standard
8694 \begin_inset Flex MenuItem
8697 \begin_layout Plain Layout
8698 設定\SpecialChar menuseparator
8699 Okularを設定\SpecialChar ldots
8700 \SpecialChar menuseparator
8706 で「カスタムテキストエディタ」を選択し,コマンドに
8707 \begin_inset Flex Code
8710 \begin_layout Plain Layout
8719 \begin_layout Standard
8720 遡及検索は,SHIFT-クリックで始動します.
8723 \begin_layout Subsubsection*
8727 \begin_layout Standard
8728 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8730 \begin_inset Flex MenuItem
8733 \begin_layout Plain Layout
8734 Edit\SpecialChar menuseparator
8735 Settings\SpecialChar menuseparator
8741 を開いて「Source editor」項目の入力フィールドをクリックし,
8742 \begin_inset Flex Code
8745 \begin_layout Plain Layout
8754 \begin_layout Standard
8755 遡及検索は,ダブルクリックで始動します.
8758 \begin_layout Subsubsection*
8762 \begin_layout Standard
8764 \begin_inset Flex MenuItem
8767 \begin_layout Plain Layout
8768 View\SpecialChar menuseparator
8774 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8775 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8777 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8778 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8779 \begin_inset Flex Code
8782 \begin_layout Plain Layout
8788 (以下参照)のあるディレクトリを見つけます.
8789 \begin_inset Flex Code
8792 \begin_layout Plain Layout
8799 \begin_inset Flex Code
8802 \begin_layout Plain Layout
8809 \begin_inset Flex Code
8812 \begin_layout Plain Layout
8822 を通じて\SpecialChar LyX
8823 と通信するためのラッパとして使用され,以下のようになっています.
8826 \begin_layout LyX-Code
8828 \begin_inset Newline newline
8831 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2>
8840 \begin_inset Newline newline
8854 \begin_layout Standard
8856 で指定した\SpecialChar LyX
8858 \begin_inset Flex Code
8861 \begin_layout Plain Layout
8876 \begin_inset Flex Code
8879 \begin_layout Plain Layout
8888 \begin_layout Standard
8889 yapでは,遡及検索はダブルクリックで始動します.
8892 \begin_layout Subsubsection*
8896 \begin_layout Standard
8897 SumatraPDFを遡及検索で使用するためには,
8898 \begin_inset Flex MenuItem
8901 \begin_layout Plain Layout
8902 設定\SpecialChar menuseparator
8903 ファイル処理\SpecialChar menuseparator
8904 ファイル書式\SpecialChar menuseparator
8911 \begin_inset Flex Code
8914 \begin_layout Plain Layout
8915 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8921 \begin_inset Flex Code
8924 \begin_layout Plain Layout
8930 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8933 \begin_layout Standard
8937 \begin_layout Subsubsection*
8941 \begin_layout Standard
8942 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8943 \begin_inset Flex MenuItem
8946 \begin_layout Plain Layout
8947 View\SpecialChar menuseparator
8953 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8954 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8956 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8957 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8958 \begin_inset Flex Code
8961 \begin_layout Plain Layout
8967 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8968 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8969 \begin_inset Flex Code
8972 \begin_layout Plain Layout
8979 \begin_inset Flex Code
8982 \begin_layout Plain Layout
8988 と指定してください.これによって,\SpecialChar LyX
8993 が使用されるようになります.何らかの理由で
8998 \begin_inset Flex Code
9001 \begin_layout Plain Layout
9007 オプションを削除して,\SpecialChar LyX
9009 Serverパイプパスを指定することを忘れないでください.
9012 \begin_layout Standard
9013 yapでは,遡及検索はダブルクリックで始動します.
9016 \begin_layout Subsubsection*
9020 \begin_layout Standard
9021 SumatraPDFを遡及検索で使用するためには,
9022 \begin_inset Flex MenuItem
9025 \begin_layout Plain Layout
9026 設定\SpecialChar menuseparator
9027 ファイル処理\SpecialChar menuseparator
9028 ファイル書式\SpecialChar menuseparator
9035 \begin_inset Flex Code
9038 \begin_layout Plain Layout
9045 \begin_inset Flex Code
9048 \begin_layout Plain Layout
9054 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
9055 \begin_inset Flex Code
9058 \begin_layout Plain Layout
9067 \begin_layout LyX-Code
9069 \begin_inset Newline newline
9073 \begin_inset Newline newline
9076 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
9079 \begin_layout Standard
9080 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
9081 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
9082 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
9083 \begin_inset Flex Code
9086 \begin_layout Plain Layout
9101 \begin_inset Flex Code
9104 \begin_layout Plain Layout
9110 オプションを削除して,\SpecialChar LyX
9112 Serverパイプパスを指定することを忘れないでください.
9115 \begin_layout Standard
9119 \begin_layout Section
9123 \begin_layout Standard
9124 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
9125 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
9126 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
9128 \begin_inset Flex MenuItem
9131 \begin_layout Plain Layout
9132 移動\SpecialChar menuseparator
9138 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
9139 \begin_inset Flex MenuItem
9142 \begin_layout Plain Layout
9148 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
9151 \begin_layout Standard
9152 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
9153 ソースに関する情報を追加する必要があります.これは,第
9154 \begin_inset CommandInset ref
9156 reference "subsec:遡及検索"
9160 節に述べられている方法で実行することができます.
9163 \begin_layout Standard
9165 \begin_inset Flex MenuItem
9168 \begin_layout Plain Layout
9169 ツール\SpecialChar menuseparator
9170 設定\SpecialChar menuseparator
9171 出力\SpecialChar menuseparator
9177 で自分の使うビューアを利用するように,\SpecialChar LyX
9178 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
9179 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
9182 \begin_layout Itemize
9183 \begin_inset Flex Code
9186 \begin_layout Plain Layout
9195 \begin_layout Itemize
9196 \begin_inset Flex Code
9199 \begin_layout Plain Layout
9205 :書き出された(一時).texファイル名(パスを除く)
9208 \begin_layout Itemize
9209 \begin_inset Flex Code
9212 \begin_layout Plain Layout
9218 :書き出された(一時).texファイル名(パスを含む)
9221 \begin_layout Itemize
9222 \begin_inset Flex Code
9225 \begin_layout Plain Layout
9231 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
9234 \begin_layout Standard
9236 \change_inserted -712698321 1500965418
9237 \begin_inset Note Note
9240 \begin_layout Plain Layout
9242 \change_inserted -712698321 1500965453
9245 [Revision 2017-07-25]
9248 \begin_layout Plain Layout
9250 \change_inserted -712698321 1500965440
9253 Note that only some of the viewers provide full and usable forward search
9254 functionality out of the box, among them yap, xdvi, okular
9258 \begin_layout Plain Layout
9260 \change_inserted -712698321 1500965419
9263 You might want to set
9264 \begin_inset Flex Code
9267 \begin_layout Plain Layout
9269 \change_inserted -712698321 1500965419
9278 \begin_inset Flex Noun
9281 \begin_layout Plain Layout
9283 \change_inserted -712698321 1500965419
9286 Tools\SpecialChar menuseparator
9287 Preferences\SpecialChar menuseparator
9288 File Handling\SpecialChar menuseparator
9290 \begin_inset space ~
9303 , qpdfview, and SumatraPDF
9307 \begin_layout Plain Layout
9309 \change_inserted -712698321 1500965419
9312 SumatraPDF can also use DDE commands through the external program CMCDDE
9314 \begin_inset CommandInset href
9316 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9327 Others, such as evince
9331 \begin_layout Plain Layout
9332 \paragraph_spacing single
9334 \change_inserted -712698321 1500965419
9337 Forward search with evince can be achieved by means of third party helper
9340 \begin_inset CommandInset href
9342 target "http://wiki.lyx.org/LyX/SyncTeX"
9352 , require some extra tools in order to use forward search.
9353 While many of the widespread PDF viewers (most notably Adobe Reader) do
9354 not support forward search at all, some other viewers – e.
9355 \begin_inset space \thinspace{}
9359 xpdf – allow at least to reload the document and jump to a specific page
9360 of the file, so you can at least navigate
9361 \begin_inset Quotes eld
9365 \begin_inset Quotes erd
9369 This latter functionality is provided by an external call of synctex (see
9370 the predefined example configurations).
9383 \begin_layout Plain Layout
9384 \begin_inset Flex MenuItem
9387 \begin_layout Plain Layout
9388 ツール\SpecialChar menuseparator
9389 設定\SpecialChar menuseparator
9390 ファイル処理\SpecialChar menuseparator
9397 \begin_inset Flex Code
9400 \begin_layout Plain Layout
9411 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
9415 \begin_layout Plain Layout
9416 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
9417 \begin_inset CommandInset href
9419 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9429 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
9430 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
9431 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
9434 \begin_layout Standard
9435 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
9436 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
9437 チェックして),その形式に適切な設定を選択します.
9440 \begin_layout Chapter
9444 \begin_layout Section
9448 \begin_layout Standard
9454 \begin_layout Subsection
9458 \begin_layout Standard
9465 Astronomy and Astrophysics
9468 \begin_inset Flex URL
9471 \begin_layout Plain Layout
9473 http://www.edpsciences.fr/aa/
9478 )に投稿する論文を執筆するための\SpecialChar LyX
9479 の使用法を説明します.このパッケージは,FTPサイト
9482 \begin_layout Standard
9484 \begin_inset VSpace medskip
9488 \begin_inset Flex URL
9491 \begin_layout Plain Layout
9493 ftp://ftp.edpsciences.org/pub/aa/readme.html
9499 \begin_inset VSpace medskip
9505 \begin_layout Standard
9510 \begin_layout Standard
9511 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
9515 \begin_layout Standard
9516 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
9517 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
9518 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
9519 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
9526 Dir/layouts/aapaper.layout
9531 \begin_layout Subsection
9535 \begin_layout Standard
9537 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
9540 \begin_layout Itemize
9543 文書\SpecialChar menuseparator
9550 を選択してください(まぁ,これは自明ですね).
9553 \begin_layout Itemize
9558 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
9561 \begin_layout Subsection
9565 \begin_layout Standard
9566 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
9569 \begin_layout Itemize
9577 \begin_layout Itemize
9585 \begin_layout Itemize
9593 \begin_layout Itemize
9601 \begin_layout Itemize
9606 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
9609 \begin_layout Itemize
9614 :[非必須]連絡用の電子メールアドレス.
9617 \begin_layout Itemize
9624 Received: <日付>; Accepted <日付>
9629 \begin_layout Standard
9636 コマンドは,へッダが終了した場所に,\SpecialChar LyX
9637 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
9638 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
9641 \begin_layout Standard
9642 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
9644 挿入\SpecialChar menuseparator
9647 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
9657 \begin_layout Standard
9658 これらのトピックの他に,このマクロは,\SpecialChar LyX
9659 が対応していない,以下の3つの\SpecialChar LaTeX
9663 \begin_layout Itemize
9664 複数の著者名あるいは所属名を区切るための
9671 \begin_layout Itemize
9682 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
9685 \begin_layout Itemize
9692 は,至急連絡用に電子メールアドレスを付記します.
9695 \begin_layout Standard
9696 いずれの場合にも,\SpecialChar LyX
9697 中に対応したコマンドを入力し,\SpecialChar LaTeX
9699 \begin_inset Flex Code
9702 \begin_layout Plain Layout
9712 \begin_layout Subsection
9716 \begin_layout Standard
9717 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
9718 れなくてはなりません.これは,まだ\SpecialChar LyX
9719 では実装されていないため,\SpecialChar LaTeX
9726 を手動で入力し,\SpecialChar LaTeX
9727 コードとしてマークする必要があります.用例にある論文を参照してください.
9730 \begin_layout Subsection
9734 \begin_layout Standard
9735 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
9738 \begin_layout Itemize
9744 \begin_layout Itemize
9750 \begin_layout Itemize
9756 \begin_layout Itemize
9762 \begin_layout Itemize
9768 \begin_layout Itemize
9774 \begin_layout Itemize
9780 \begin_layout Itemize
9786 \begin_layout Itemize
9792 \begin_layout Itemize
9798 \begin_layout Itemize
9804 \begin_layout Itemize
9811 \begin_layout Subsection
9816 \begin_layout Standard
9822 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9825 \begin_layout Itemize
9833 \begin_layout Itemize
9841 \begin_layout Itemize
9849 \begin_layout Itemize
9857 \begin_layout Itemize
9865 \begin_layout Itemize
9873 \begin_layout Itemize
9881 \begin_layout Itemize
9889 \begin_layout Standard
9890 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9892 これを\SpecialChar LaTeX
9893 コマンドとしてマークすることを忘れないで下さい.
9896 \begin_layout Subsection
9900 \begin_layout Standard
9918 をサポートしていますので,ここでは詳しい説明はしません.
9922 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9924 編集\SpecialChar menuseparator
9930 \begin_layout Standard
9931 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9934 \begin_layout Enumerate
9937 挿入\SpecialChar menuseparator
9938 フロート\SpecialChar menuseparator
9941 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9942 \begin_inset Flex MenuItem
9945 \begin_layout Plain Layout
9946 設定\SpecialChar ldots
9967 \begin_layout Enumerate
9971 \begin_layout Enumerate
9976 を押して,カーソルをキャプションの上に移動します.
9979 \begin_layout Enumerate
9983 \begin_layout Enumerate
9986 挿入\SpecialChar menuseparator
9987 整形\SpecialChar menuseparator
10005 \begin_layout Enumerate
10008 挿入\SpecialChar menuseparator
10011 を選択して,\SpecialChar TeX
10015 \begin_layout Enumerate
10028 \begin_layout Enumerate
10029 カーソルをキャプション文の後ろに移動し,
10031 挿入\SpecialChar menuseparator
10034 を選択して,別の\SpecialChar TeX
10035 差込枠を挿入し,その中に閉じ括弧を入力します .
10038 \begin_layout Standard
10042 \begin_layout Subsection
10046 \begin_layout Standard
10047 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
10051 オプションを与える必要があります.これは,
10053 文書\SpecialChar menuseparator
10060 クラスオプションフィールドを使って行うことができます.この欄に
10067 \begin_layout Subsection
10071 \begin_layout Standard
10076 ディレクトリには,\SpecialChar LyX
10077 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
10078 用に直したものです.これはヒントを得るために使用したり,元の
10080 コードと\SpecialChar LyX
10081 での書き方の比較に使ったりしてください.
10084 \begin_layout Section
10085 AAS\SpecialChar TeX
10089 \begin_layout Standard
10097 \begin_layout Subsection
10101 \begin_layout Standard
10102 AAS\SpecialChar TeX
10103 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
10104 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
10105 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
10107 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
10108 は,同マクロ第5.0版以降を必要としており,でき
10109 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
10110 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
10111 とは互換性がありません.AAS\SpecialChar TeX
10113 ,以下のAAS\SpecialChar TeX
10114 ウェブサイトからダウンロードできるでしょう.
10117 \begin_layout Standard
10119 \begin_inset VSpace medskip
10123 \begin_inset Flex URL
10126 \begin_layout Plain Layout
10128 https://aas.org/aastex/aastex-downloads
10134 \begin_inset VSpace medskip
10140 \begin_layout Standard
10141 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
10142 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
10144 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
10145 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
10146 いることを確認するのは,あなたの責任です.
10149 \begin_layout Subsection
10153 \begin_layout Standard
10154 論文を書き始めるには,AAS\SpecialChar TeX
10155 ひな型ファイルを土台に始めることを強くお勧めします.
10156 \begin_inset Flex MenuItem
10159 \begin_layout Plain Layout
10160 ファイル\SpecialChar menuseparator
10166 をクリックして,新しいファイル名を入力し,ひな型
10170 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
10174 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
10175 コマンド・AAS\SpecialChar TeX
10176 環境の多くは,\SpecialChar LyX
10177 中で直接実行することができますが,特に
10189 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
10191 コードを入力して,それを\SpecialChar TeX
10192 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
10193 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
10195 文書に必要とされる \SpecialChar TeX
10196 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
10199 \begin_layout Subsection
10203 \begin_layout Standard
10204 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
10207 \begin_layout Enumerate
10208 論文を \SpecialChar LaTeX
10211 ファイル\SpecialChar menuseparator
10212 書き出し\SpecialChar menuseparator
10218 \begin_layout Enumerate
10223 ファイルを好きなエディタで編集します.
10227 \begin_layout Enumerate
10234 コマンドよりも前のコメント行を削除します.
10237 \begin_layout Enumerate
10242 usepackage...{fontenc}
10259 \begin_layout Enumerate
10261 プリアンブル中に意図的に置いたコマンド(
10265 ファイル中,「User specified \SpecialChar LaTeX
10266 commands」というコメントの直後にあります)を除いて,
10278 の間のもの(これらのコマンドを含む)をすべて削除します.
10282 \begin_layout Enumerate
10283 編集後のファイルを \SpecialChar LaTeX
10284 にかけて,正しく処理されることを確認します.
10287 \begin_layout Enumerate
10288 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
10291 \begin_layout Enumerate
10295 \begin_layout Subsection
10299 \begin_layout Standard
10300 AAS\SpecialChar TeX
10305 )に,各AAS\SpecialChar TeX
10306 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
10307 て,必要なところだけコメントを加えることにしましょう.
10310 \begin_layout Subsubsection
10314 \begin_layout Standard
10315 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
10415 begin{thebibliography}
10423 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
10474 \begin_layout Standard
10475 以下のスタイルオプションも正しく動作します.
10496 \begin_inset Flex MenuItem
10499 \begin_layout Plain Layout
10500 文書\SpecialChar menuseparator
10517 \begin_layout Subsubsection
10521 \begin_layout Standard
10522 以下のコマンドは動作しますが,若干の説明が必要です.
10525 \begin_layout Itemize
10526 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
10558 \begin_layout Itemize
10559 以下の項目は,\SpecialChar LaTeX
10560 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
10581 \begin_layout Itemize
10588 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10592 \begin_layout Itemize
10599 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10602 \begin_layout Itemize
10609 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10613 \begin_layout Itemize
10620 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
10623 \begin_layout Itemize
10639 \begin_layout Itemize
10646 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10649 \begin_layout Itemize
10656 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10659 \begin_layout Itemize
10666 (2.14.2)―文章のはじめにカーソルを置いて
10667 \begin_inset Flex MenuItem
10670 \begin_layout Plain Layout
10671 挿入\SpecialChar menuseparator
10677 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
10683 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
10686 \begin_layout Itemize
10693 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10702 \begin_layout Itemize
10709 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10718 \begin_layout Subsubsection
10719 実装されていないため,\SpecialChar TeX
10723 \begin_layout Standard
10746 setcounter{equation}
10748 (2.12)・学術誌名略語(2.12.4)・
10784 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
10797 (2.15.5)・補遺(2.17)の大半(
10848 \begin_layout Subsubsection
10852 \begin_layout Standard
10853 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10854 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10855 \begin_inset Flex MenuItem
10858 \begin_layout Plain Layout
10859 挿入\SpecialChar menuseparator
10861 \begin_inset Formula $\text{\textipa{}}$
10864 \SpecialChar menuseparator
10870 を使用して,\SpecialChar LyX
10871 ファイルに読み込むことを推奨します.この実例は,
10878 \begin_layout Subsection
10882 \begin_layout Subsubsection
10884 をAAS\SpecialChar TeX
10888 \begin_layout Standard
10890 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10893 \begin_layout Enumerate
10895 が,AAS\SpecialChar TeX
10896 を検出できることを確認してください.AAS\SpecialChar TeX
10905 でも可)を,\SpecialChar LaTeX
10906 やAAS\SpecialChar TeX
10907 とまったく関係のないディレクトリにコピーして,
10911 を\SpecialChar LaTeX
10915 \begin_layout Enumerate
10925 フォルダにあることを確認してください.
10928 \begin_layout Enumerate
10932 ツール\SpecialChar menuseparator
10935 を再度実行し,\SpecialChar LyX
10939 \begin_layout Enumerate
10940 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10943 文書\SpecialChar menuseparator
10949 \begin_layout Standard
10950 既存のAAS\SpecialChar TeX
10951 文書を処理する際に,AAS\SpecialChar TeX
10952 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10956 \begin_layout Subsubsection
10957 表を処理する際の\SpecialChar LaTeX
10961 \begin_layout Standard
10962 既定では,\SpecialChar LyX
10963 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10964 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10967 編集\SpecialChar menuseparator
10978 に設定してください.私のところではこれで解決しました.
10981 \begin_layout Subsubsection
10985 \begin_layout Standard
10986 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10999 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
11003 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
11004 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
11007 \begin_layout Subsubsection
11011 \begin_layout Standard
11012 AAS\SpecialChar TeX
11019 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
11020 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
11027 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
11032 usepackage{graphics}
11034 コマンドを\SpecialChar LaTeX
11035 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
11036 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
11037 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
11040 \begin_layout Subsubsection
11044 \begin_layout Standard
11045 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
11047 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
11048 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
11051 \begin_layout Subsection
11055 \begin_layout Standard
11056 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
11057 \begin_inset space \thinspace{}
11062 \begin_inset space \thinspace{}
11065 %が,\SpecialChar LaTeX
11066 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
11070 \begin_layout Section
11071 AMS \SpecialChar LaTeX
11075 \begin_layout Standard
11085 \begin_inset VSpace bigskip
11091 \begin_layout Standard
11092 AMS \SpecialChar LaTeX
11093 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
11094 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
11096 必要があるだけです).AMSの説明書は,ウェブWeb上の
11097 \begin_inset Flex URL
11100 \begin_layout Plain Layout
11108 \begin_inset Flex URL
11111 \begin_layout Plain Layout
11113 ftp://ftp.ams.org/pub/tex/amslatex/
11118 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
11121 \begin_layout Standard
11122 基本となるAMS \SpecialChar LaTeX
11123 レイアウトには,以下の二つがあります.
11126 \begin_layout Itemize
11127 amsart:標準のAMS article書式.
11130 \begin_layout Itemize
11131 amsbook:標準のAMS book(実際はモノグラフ)書式.
11134 \begin_layout Standard
11135 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
11136 m」環境は,何一つ含まれていません.これらは,代わりに
11137 \begin_inset Flex Code
11140 \begin_layout Plain Layout
11146 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
11147 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
11148 \begin_inset Flex Code
11151 \begin_layout Plain Layout
11157 モジュールがあり,これは手動で読み込む必要があります.
11160 \begin_layout Standard
11161 既定では,定理類は,文書を通して連番が振られますが,これは
11162 \begin_inset Flex Code
11165 \begin_layout Plain Layout
11171 モジュールを読み込めば変更することができ,
11172 \begin_inset Flex Code
11175 \begin_layout Plain Layout
11182 \begin_inset Flex Code
11185 \begin_layout Plain Layout
11191 を用いても変更することができます.これらを用いると,出力は
11192 \begin_inset Formula $n.m$
11195 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
11196 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
11201 \begin_inset Flex Code
11204 \begin_layout Plain Layout
11213 \begin_layout Standard
11214 これらのモジュールは,AMSクラスで使用する
11219 \begin_inset Flex Code
11222 \begin_layout Plain Layout
11228 モジュールや上述の他のモジュールは,他のクラス,たとえば
11229 \begin_inset Flex Code
11232 \begin_layout Plain Layout
11239 \begin_inset Flex Code
11242 \begin_layout Plain Layout
11249 \begin_inset Flex Code
11252 \begin_layout Plain Layout
11258 などで問題なく使用することができます.
11261 \begin_layout Subsection
11265 \begin_layout Standard
11266 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
11267 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
11268 す.しかし,AMSは,\SpecialChar LyX
11269 で利用可能になっている環境のみを使用することを推奨しています.
11272 \begin_layout Standard
11273 \begin_inset Flex Code
11276 \begin_layout Plain Layout
11283 \begin_inset Flex Code
11286 \begin_layout Plain Layout
11293 \begin_inset space ~
11297 \begin_inset Flex Noun
11300 \begin_layout Plain Layout
11307 \begin_inset Flex Noun
11310 \begin_layout Plain Layout
11317 \begin_inset Flex Noun
11320 \begin_layout Plain Layout
11327 \begin_inset Flex Noun
11330 \begin_layout Plain Layout
11337 \begin_inset Flex Noun
11340 \begin_layout Plain Layout
11347 \begin_inset space ~
11351 \begin_inset space ~
11357 \begin_layout Description
11361 \begin_layout Description
11362 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
11365 \begin_layout Description
11369 \begin_layout Description
11373 \begin_layout Description
11374 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
11377 \begin_layout Description
11380 Mathematical Reviews
11382 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
11386 \begin_layout Description
11390 \begin_layout Description
11394 \begin_layout Description
11398 \begin_layout Standard
11400 \begin_inset Flex Code
11403 \begin_layout Plain Layout
11410 \begin_inset Flex Code
11413 \begin_layout Plain Layout
11419 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
11420 \begin_inset Flex Code
11423 \begin_layout Plain Layout
11429 モジュールでは,同環境の星付き版だけが提供されます.
11432 \begin_layout Theorem
11433 これは,通常,得られた主要な結果を叙述するのに使用されます.
11436 \begin_layout Corollary*
11437 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
11440 \begin_layout Lemma
11441 他の叙述を証明するために必要とされる,比較的小さな結果です.
11444 \begin_layout Proposition
11445 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
11448 \begin_layout Conjecture
11449 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
11452 \begin_layout Definition*
11453 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
11456 \begin_layout Problem
11457 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
11460 \begin_layout Exercise*
11465 この環境もtheorem型,通常は重要性の低い所見に用いられます.
11468 \begin_layout Claim*
11469 より大きな結果の証明を与える途中で,しばしば用いられます.
11473 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
11477 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
11480 \begin_layout Proof
11481 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
11482 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
11493 \begin_layout Standard
11495 \begin_inset Flex Code
11498 \begin_layout Plain Layout
11507 \begin_layout Criterion*
11511 \begin_layout Algorithm*
11515 \begin_layout Axiom*
11516 議論されている系内部で真と仮定される性質や命題です.
11519 \begin_layout Condition*
11520 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
11523 \begin_layout Note*
11527 \begin_layout Notation*
11531 \begin_layout Summary
11535 \begin_layout Acknowledgement*
11536 謝辞(acknowledgement)です.
11539 \begin_layout Conclusion*
11544 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
11547 \begin_layout Standard
11548 さらに,AMSクラスは,AMS \SpecialChar LaTeX
11549 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
11553 \begin_layout Section
11559 \begin_layout Standard
11567 \begin_layout Subsection
11571 \begin_layout Standard
11572 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
11574 \begin_inset Flex URL
11577 \begin_layout Plain Layout
11579 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11584 にあります)が導入されていることが必要です.
11587 \begin_layout Subsection
11591 \begin_layout Standard
11600 は,定義し直されています.\SpecialChar LyX
11609 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
11621 \begin_layout Standard
11658 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
11661 \begin_layout Standard
11662 おそらく,これはまだ恐ろしく不完全です.
11665 \begin_layout Subsection
11669 \begin_layout Standard
11678 (Plate)が新しいフロートです.また,
11685 \begin_layout Subsection
11689 \begin_layout Itemize
11692 Journal of Geophysical Research
11701 \begin_layout Standard
11702 ここにあなたの作ったものを加えてください.難しくはありません.
11713 \begin_layout Subsection
11717 \begin_layout Standard
11718 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
11721 \begin_layout Enumerate
11728 ツール\SpecialChar menuseparator
11731 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
11738 \begin_layout Enumerate
11743 と入力してください(すみません,これはバグです).
11746 \begin_layout Enumerate
11747 Bib\SpecialChar TeX
11756 を使用していることを確認してください.標準スタイルはうまく動作しません.
11759 \begin_layout Section
11763 \begin_layout Standard
11771 \begin_layout Subsection
11775 \begin_layout Standard
11776 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
11779 \begin_layout Subsection
11783 \begin_layout Standard
11787 \begin_layout Subsection
11791 \begin_layout Standard
11796 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
11799 \begin_layout Subsection
11803 \begin_layout Standard
11804 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11807 \begin_layout Subsection
11811 \begin_layout Standard
11812 以下の環境を使うことができます.右に記してある
11813 \begin_inset Flex Ruby
11816 \begin_layout Plain Layout
11818 \begin_inset Argument post:1
11821 \begin_layout Plain Layout
11832 割当ては,broadway.bindを使った場合のものです.
11835 \begin_layout Itemize
11839 \begin_inset Newline newline
11844 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11847 \begin_layout Itemize
11851 \begin_inset space \hfill{}
11855 \begin_inset Newline newline
11860 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11863 \begin_layout Itemize
11867 \begin_inset space \hfill{}
11871 \begin_inset Newline newline
11876 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11879 \begin_layout Itemize
11883 \begin_inset space \hfill{}
11887 \begin_inset Newline newline
11892 幕の副題です.単に中央揃えの文になります.
11895 \begin_layout Itemize
11899 \begin_inset space \hfill{}
11903 \begin_inset Newline newline
11908 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11911 \begin_layout Itemize
11915 \begin_inset space \hfill{}
11919 \begin_inset Newline newline
11924 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11927 \begin_layout Itemize
11931 \begin_inset space \hfill{}
11935 \begin_inset Newline newline
11940 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11943 \begin_layout Itemize
11947 \begin_inset space \hfill{}
11951 \begin_inset Newline newline
11956 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11963 \begin_layout Itemize
11967 \begin_inset space \hfill{}
11971 \begin_inset Newline newline
11979 \begin_layout Itemize
11983 \begin_inset space \hfill{}
11987 \begin_inset Newline newline
11995 \begin_layout Itemize
11999 \begin_inset space \hfill{}
12005 \begin_layout Itemize
12009 \begin_inset space \hfill{}
12015 \begin_layout Itemize
12019 \begin_inset space \hfill{}
12025 \begin_layout Section
12029 \begin_layout Standard
12034 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
12036 .../lyx/share/templates
12038 にあるので,それを土台として使用してください.
12041 \begin_layout Section
12047 \begin_layout Standard
12055 \begin_layout Subsection
12059 \begin_layout Standard
12060 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
12065 \begin_inset Flex URL
12068 \begin_layout Plain Layout
12070 http://www.copernicus.org/
12078 \begin_layout Subsection
12082 \begin_layout Standard
12120 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
12124 ファイルを読み込む形に変えた方が便利になると思われます.
12127 \begin_layout Section
12131 \begin_layout Standard
12137 を参照してください.必要な情報は全てそこにあります.
12140 \begin_layout Section
12141 Foils (別名Foil\SpecialChar TeX
12143 \begin_inset CommandInset label
12152 \begin_layout Standard
12160 \begin_layout Subsection
12164 \begin_layout Standard
12165 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
12166 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
12168 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
12171 \begin_layout Standard
12172 誤解のないように,わかりやすく明確に,もう一度言っておきます.
12175 \begin_layout Standard
12176 \begin_inset VSpace bigskip
12182 \begin_layout Standard
12197 \begin_layout Standard
12198 \begin_inset VSpace bigskip
12204 \begin_layout Standard
12207 transparencies (slides)
12210 \begin_inset CommandInset ref
12212 reference "sec:slitex"
12216 節をご覧ください.お使いのコンピュータに
12235 \begin_layout Standard
12240 クラスは,\SpecialChar LaTeX2e
12241 の一部として含まれている\SpecialChar LaTeX
12246 の第2.1版とともに使われるように設計されています.
12249 \begin_layout Subsection
12253 \begin_layout Standard
12254 いうまでもなく,この文書クラスを使うには,
12256 文書\SpecialChar menuseparator
12257 設定\SpecialChar menuseparator
12272 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
12275 \begin_layout Itemize
12288 オプションは変更しないでください.これらは
12295 \begin_layout Itemize
12296 既定のフォント寸法は20ptであり,17
12297 \begin_inset space \thinspace{}
12301 \begin_inset space \thinspace{}
12305 \begin_inset space \thinspace{}
12311 \begin_layout Itemize
12320 ですが,数式ではすべて,通常のローマン体が使用されます.
12323 \begin_layout Itemize
12324 Foil\SpecialChar TeX
12326 \begin_inset space \thinspace{}
12329 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
12332 \begin_layout Itemize
12337 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
12340 \begin_layout Itemize
12345 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
12346 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
12347 \begin_inset CommandInset ref
12349 reference "sec:foilfoot"
12353 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
12357 付けられず,(ロゴが定義されていれば)ロゴは,
12361 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
12365 \begin_layout Labeling
12366 \labelwidthstring MMMMMMM
12373 最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
12376 \begin_layout Labeling
12377 \labelwidthstring MMMMMMM
12384 最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
12387 \begin_layout Labeling
12388 \labelwidthstring MMMMMMM
12393 ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
12396 \begin_layout Labeling
12397 \labelwidthstring MMMMMMM
12406 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
12407 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
12411 \begin_layout Subsubsection
12415 \begin_layout Standard
12420 ダイアログの任意設定クラスオプションボックスで使うことができます.
12423 \begin_layout Labeling
12424 \labelwidthstring MMMMMMx
12429 これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
12430 \begin_inset space \space{}
12433 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
12436 \begin_layout Labeling
12437 \labelwidthstring MMMMMMx
12442 タイトルページを除くすべてのページのへッダの下に罫線を入れます.
12445 \begin_layout Labeling
12446 \labelwidthstring MMMMMMx
12451 タイトルページを除くすべてのページのフッタの上に罫線を入れます.
12454 \begin_layout Labeling
12455 \labelwidthstring MMMMMMx
12464 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
12468 \begin_layout Labeling
12469 \labelwidthstring MMMMMMx
12474 このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
12475 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
12483 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
12486 \begin_layout Labeling
12487 \labelwidthstring MMMMMMx
12495 \begin_layout Labeling
12496 \labelwidthstring MMMMMMx
12504 \begin_layout Subsection
12508 \begin_layout Standard
12509 他のクラスで標準的にサポートされている環境は,
12513 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
12514 が提供している環境と,\SpecialChar LyX
12515 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
12518 \begin_layout Standard
12521 \begin_inset Flex Multiple Columns
12524 \begin_layout Itemize
12530 \begin_layout Itemize
12536 \begin_layout Itemize
12542 \begin_layout Itemize
12548 \begin_layout Itemize
12554 \begin_layout Itemize
12561 \begin_layout Itemize
12567 \begin_layout Itemize
12573 \begin_layout Itemize
12579 \begin_layout Itemize
12585 \begin_layout Itemize
12591 \begin_layout Itemize
12597 \begin_layout Itemize
12603 \begin_layout Itemize
12609 \begin_layout Itemize
12615 \begin_layout Itemize
12621 \begin_layout Itemize
12627 \begin_layout Itemize
12638 \begin_layout Standard
12639 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
12644 は新しいスライドを始める以下のようなコマンドを備えています.
12647 \begin_layout Itemize
12653 \begin_layout Itemize
12656 横置きスライドタイトル(Rotatefoilhead)
12659 \begin_layout Standard
12661 は,以下のような,これらを若干修正した環境も用意しています.
12664 \begin_layout Itemize
12667 スライドタイトル(小)(ShortFoilhead)
12670 \begin_layout Itemize
12673 横置きスライドタイトル(小)(ShortRotatefoilhead)
12676 \begin_layout Standard
12680 \begin_layout Standard
12681 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
12686 はそれらを説明するのに便利な環境を幅広く用意しています.
12689 \begin_layout Standard
12692 \begin_inset Flex Multiple Columns
12695 \begin_layout Itemize
12701 \begin_layout Itemize
12707 \begin_layout Itemize
12713 \begin_layout Itemize
12719 \begin_layout Itemize
12725 \begin_layout Itemize
12731 \begin_layout Itemize
12737 \begin_layout Itemize
12743 \begin_layout Itemize
12749 \begin_layout Itemize
12755 \begin_layout Itemize
12766 \begin_layout Standard
12767 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
12768 で追加された以下の2つの箇条書き環境があります.
12771 \begin_layout Itemize
12777 \begin_layout Itemize
12783 \begin_layout Standard
12784 Foil\SpecialChar TeX
12785 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
12786 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
12789 \begin_layout Standard
12790 この目的のためには,以下のコマンドスタイルがあります(
12795 \begin_layout Standard
12796 \begin_inset Flex Multiple Columns
12799 \begin_layout Itemize
12805 \begin_layout Itemize
12811 \begin_layout Itemize
12817 \begin_layout Itemize
12823 \begin_layout Itemize
12830 \begin_layout Plain Layout
12831 \begin_inset space ~
12843 \begin_layout Standard
12844 Foil\SpecialChar TeX
12845 が提供しているコマンドで,\SpecialChar LyX
12846 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12847 \begin_inset CommandInset ref
12849 reference "sec:unsuppfoils"
12856 \begin_layout Subsection
12860 \begin_layout Standard
12861 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12873 \begin_layout Subsubsection
12877 \begin_layout Standard
12898 は独立したページにタイトルを作成します.
12902 環境を使用しなかった場合には,\SpecialChar LaTeX
12903 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12906 \begin_layout Subsubsection
12910 \begin_layout Standard
12911 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12917 スライドタイトル(小)(ShortFoilhead)
12919 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12922 \begin_layout Standard
12925 横向きスライドタイトル(Rotatefoilhead)
12929 ShortRotatefoilhead)
12931 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12935 \begin_layout Standard
12936 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12940 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12944 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12947 \begin_layout Subsubsection
12951 \begin_layout Standard
12953 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
12954 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
12959 」だけから成る\SpecialChar LaTeX
12960 環境を置くことです.これによって,\SpecialChar LyX
12961 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
12962 出力を得ることができます.\SpecialChar LyX
12964 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
12967 \begin_layout Subsubsection
12971 \begin_layout Standard
12972 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12973 他の箇条書き環境について詳しく知りたい場合には,
12977 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12978 \begin_inset CommandInset ref
12980 reference "sec:ブリット"
12988 の節も,読まれることが望ましいでしょう.
12991 \begin_layout Standard
13001 \begin_inset Formula $\times$
13004 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
13008 の派生型を専用に用意したものに過ぎません.ただし,これらは,
13012 パッケージが導入済であることを要求します.
13015 \begin_layout Subsubsection
13019 \begin_layout Standard
13020 Foil\SpecialChar TeX
13021 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
13022 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
13025 \begin_layout Subsubsection
13027 \begin_inset CommandInset label
13029 name "sec:foilfoot"
13036 \begin_layout Standard
13045 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by
13050 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
13053 \begin_layout Standard
13066 (左上)を使って文字を入れることができます.
13069 \begin_layout Subsection
13076 \begin_inset CommandInset label
13078 name "sec:unsuppfoils"
13085 \begin_layout Standard
13099 \begin_layout Subsubsection
13103 \begin_layout Standard
13126 は,変更したい長さに付けられている名前で置き換え,
13130 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
13136 のように文書比あるいはフォント基準の長さで指定する必要があります.
13139 \begin_layout Standard
13146 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
13147 \begin_inset space \space{}
13150 inだけスライド本文に近づけるには,プリアンブルに
13156 foilheadskip}{-0.5in}
13161 \begin_layout Standard
13162 フロート周囲の余白は,以下の長さを設定することで調整することができます.
13165 \begin_layout Labeling
13166 \labelwidthstring MMMMMMMMMMM
13176 \begin_layout Labeling
13177 \labelwidthstring MMMMMMMMMMM
13187 \begin_layout Labeling
13188 \labelwidthstring MMMMMMMMMMM
13198 \begin_layout Labeling
13199 \labelwidthstring MMMMMMMMMMM
13206 この長さを調整することでキャプションを,周囲の本文より短くすることができます.
13212 に対する相対的な長さで調整するのが最も良いでしょう.
13215 \begin_layout Standard
13216 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
13219 \begin_layout Labeling
13220 \labelwidthstring MMMMMMMMMMM
13230 \begin_layout Labeling
13231 \labelwidthstring MMMMMMMMMMM
13249 \begin_layout Labeling
13250 \labelwidthstring MMMMMMMMMMM
13264 \begin_layout Labeling
13265 \labelwidthstring MMMMMMMMMMM
13283 \begin_layout Labeling
13284 \labelwidthstring MMMMMMMMMMM
13302 \begin_layout Standard
13303 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
13309 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
13315 を使う必要がないことに注意してください.
13318 \begin_layout Subsubsection
13322 \begin_layout Standard
13339 で定義したロゴを特定のページに入れるかどうかを制御します.
13345 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
13351 を置き,次のスライドタイトルの直後に直接
13360 \begin_layout Standard
13369 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
13383 パッケージが提供するページレイアウトと
13387 クラスの提供するページレイアウトの間に衝突が発生するためです.
13390 \begin_layout Section
13391 Hollywood(Hollywoodスペック・スクリプト)
13394 \begin_layout Standard
13402 \begin_layout Subsection
13406 \begin_layout Standard
13407 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
13408 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
13410 \begin_inset space \space{}
13413 ptフォントを使わなければならず,イタリック体は用いてはいけません.
13416 \begin_layout Subsection
13420 \begin_layout Standard
13425 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
13429 名を再度書き,その後に(Cont'd)と加えます.
13432 \begin_layout Subsection
13436 \begin_layout Standard
13441 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
13442 きに話者名を挿入するのにも使用することができます.
13445 \begin_layout Subsection
13449 \begin_layout Standard
13450 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13453 \begin_layout Subsection
13457 \begin_layout Standard
13458 以下の環境が利用可能です.右に示されている
13459 \begin_inset Flex Ruby
13462 \begin_layout Plain Layout
13464 \begin_inset Argument post:1
13467 \begin_layout Plain Layout
13478 割当てを使用するには,hollywood.bindを使用してください.
13481 \begin_layout Itemize
13485 \begin_inset Newline newline
13490 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
13493 \begin_layout Itemize
13495 \begin_inset space \hfill{}
13503 \begin_inset Newline newline
13506 通常,この後には「Sallyは目を覚ますと」のように続きます.
13509 \begin_layout Itemize
13513 \begin_inset space \hfill{}
13517 \begin_inset Newline newline
13522 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
13526 \begin_layout Itemize
13530 \begin_inset space \hfill{}
13534 \begin_inset Newline newline
13539 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13542 \begin_layout Itemize
13546 \begin_inset space \hfill{}
13550 \begin_inset Newline newline
13558 \begin_layout Itemize
13562 \begin_inset space \hfill{}
13566 \begin_inset Newline newline
13571 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
13572 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
13575 \begin_layout Itemize
13579 \begin_inset space \hfill{}
13583 \begin_inset Newline newline
13591 \begin_layout Itemize
13595 \begin_inset space \hfill{}
13599 \begin_inset Newline newline
13604 カメラの動きの指示.例:CUT TO:.
13607 \begin_layout Itemize
13611 \begin_inset space \hfill{}
13617 \begin_layout Itemize
13621 \begin_inset space \hfill{}
13627 \begin_layout Itemize
13631 \begin_inset space \hfill{}
13637 \begin_layout Itemize
13641 \begin_inset space \hfill{}
13647 \begin_layout Subsection
13651 \begin_layout Itemize
13655 \begin_layout Itemize
13659 \begin_layout Itemize
13664 \begin_layout Itemize
13669 \begin_layout Itemize
13670 PAN — camera movement
13673 \begin_layout Itemize
13674 INSERT — cut to close-up of
13677 \begin_layout Section
13681 \begin_layout Standard
13684 Panayotis Papasotiriou
13689 \begin_layout Subsection
13693 \begin_layout Standard
13696 International Journal of Modern Physics C
13698 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
13700 International Journal of Modern Physics D
13702 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
13710 です.これらのファイルは,著者のための指針とともに,
13711 \begin_inset Flex URL
13714 \begin_layout Plain Layout
13716 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13722 \begin_inset Flex URL
13725 \begin_layout Plain Layout
13727 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13732 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
13734 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
13735 で書き上げましたが,何らの問題も生じませんでした.
13738 \begin_layout Subsection
13742 \begin_layout Standard
13743 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
13745 ファイル\SpecialChar menuseparator
13756 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
13760 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
13763 \begin_layout Enumerate
13764 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
13765 中でこれらを変更することはできません.
13768 \begin_layout Enumerate
13769 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
13771 ツール\SpecialChar menuseparator
13786 をクリックすれば,設定することができます(この変更を固定するなら
13793 \begin_layout Enumerate
13794 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
13797 \begin_layout Enumerate
13798 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
13799 ートされていませんので,ご注意ください.
13802 \begin_layout Enumerate
13803 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
13804 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
13805 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
13808 \begin_layout Enumerate
13809 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
13810 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
13811 されます.引用に通常の本文を使用したい場合には,「See Ref.
13812 \begin_inset space \space{}
13822 \begin_inset Flex Ruby
13825 \begin_layout Plain Layout
13831 \begin_inset Argument post:1
13834 \begin_layout Plain Layout
13856 \begin_layout Enumerate
13857 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13860 \begin_layout Enumerate
13869 であれば,入れることができます.\SpecialChar LyX
13870 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13871 てはなりません.この環境は,\SpecialChar LaTeX
13872 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13873 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13874 付録であることを明示します.「付録領域」は,最初の付録の前に
13878 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13881 \begin_layout Enumerate
13882 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13886 コマンドを使用します.そのため,\SpecialChar LyX
13887 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13888 コードを少し使えば,この問題を回避して,キャプション
13889 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13896 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13901 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13906 ファイルに収め,このファイルを\SpecialChar LyX
13909 挿入\SpecialChar menuseparator
13910 ファイル\SpecialChar menuseparator
13913 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13924 \begin_layout Subsection
13928 \begin_layout Standard
13929 論文を投稿する前には,\SpecialChar LyX
13930 文書を\SpecialChar LaTeX
13933 ファイル\SpecialChar menuseparator
13934 書き出し\SpecialChar menuseparator
13942 \begin_layout Plain Layout
13943 実は,\SpecialChar LaTeX
13944 (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13945 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13954 ファイルに以下の変更を加える必要があります.
13957 \begin_layout Enumerate
13964 コマンドより前にあるコメント行を削除する.
13967 \begin_layout Enumerate
13968 自身で明示的に\SpecialChar LaTeX
13981 コマンドの間にあるものをすべて削除する.
13984 \begin_layout Standard
13989 ファイルを保存し,必要な回数\SpecialChar LaTeX
13990 で処理してください.それによって得られた
13994 文書も確認された方がよろしいでしょう.
13997 \begin_layout Subsection
14002 \begin_layout Standard
14004 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
14012 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
14013 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
14015 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
14020 markboth{著者名}{論文の短縮タイトル}
14025 \begin_layout Section
14029 \begin_layout Standard
14037 \begin_layout Subsection
14041 \begin_layout Standard
14042 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
14043 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
14044 \begin_inset Flex URL
14047 \begin_layout Plain Layout
14049 ftp://ftp.iop.org/pub/journals/latex2e
14054 からiopartパッケージとともにダウンロード可能です.
14057 \begin_layout Subsection
14061 \begin_layout Standard
14062 論文を書くもっとも簡単な方法は,\SpecialChar LyX
14067 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
14068 な助言として,以下の点にご注意ください.
14071 \begin_layout Itemize
14072 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
14080 関連オプションが有効になっていないことを確認してください!
14083 \begin_layout Itemize
14084 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
14088 \begin_layout Itemize
14094 \begin_layout Itemize
14100 \begin_layout Itemize
14106 \begin_layout Itemize
14112 \begin_layout Itemize
14118 \begin_layout Itemize
14126 \begin_layout Itemize
14127 Preliminary communication用には
14132 \begin_layout Itemize
14133 Rapid communication用には
14138 \begin_layout Itemize
14145 \begin_layout Itemize
14150 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
14153 \begin_layout Itemize
14155 では直接にサポートされていませんが,一般的なタイトル環境として
14159 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
14160 コードでこれを指定することができます.
14163 \begin_layout Standard
14164 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
14167 \begin_layout Section
14171 \begin_layout Standard
14174 Panayotis Papasotiriou
14179 \begin_layout Subsection
14183 \begin_layout Standard
14184 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
14185 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
14187 Astrophysics and Space Science
14193 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
14194 \begin_inset Flex URL
14197 \begin_layout Plain Layout
14199 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14204 に全覧があります).Kluwerパッケージは,
14205 \begin_inset Flex URL
14208 \begin_layout Plain Layout
14210 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14215 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
14218 \begin_layout Standard
14220 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
14221 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
14223 \begin_inset CommandInset ref
14225 reference "subsec:kluwer_peculiarities"
14229 参照).最近,私は\SpecialChar LyX
14232 Astrophysics and Space Science
14234 に投稿しましたが,何らの問題も発生しませんでした.
14237 \begin_layout Subsection
14241 \begin_layout Standard
14242 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
14244 ファイル\SpecialChar menuseparator
14251 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
14256 を含む)正しい情報で上書きしてください.
14259 \begin_layout Subsection
14263 \begin_layout Standard
14264 AAS\SpecialChar TeX
14265 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
14268 \begin_layout Enumerate
14271 ファイル\SpecialChar menuseparator
14272 書き出し\SpecialChar menuseparator
14275 をクリックして,論文を\SpecialChar LaTeX
14279 \begin_layout Enumerate
14284 ファイルに,テキストエディタを使用して,以下のような変更を加える.
14288 \begin_layout Enumerate
14295 コマンドより前にあるコメント行を削除する.
14298 \begin_layout Enumerate
14299 意図的に\SpecialChar LaTeX
14312 の間にあるものを,これらのコマンドも含め,すべて削除する.
14315 \begin_layout Standard
14324 \begin_layout Enumerate
14329 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
14333 \begin_layout Enumerate
14342 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
14345 \begin_layout Subsection
14346 Kluwerパッケージの「風変わり」な特徴
14347 \begin_inset CommandInset label
14349 name "subsec:kluwer_peculiarities"
14356 \begin_layout Standard
14357 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
14360 \begin_layout Enumerate
14361 複数の論文を1つの\SpecialChar LaTeX
14366 \begin_layout Plain Layout
14367 わざわざこんなことをする必要はないでしょう.
14372 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
14384 で終わります.この環境を\SpecialChar LyX
14385 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
14397 )は,直接本文中に入力して,\SpecialChar LaTeX
14398 コード(「\SpecialChar TeX
14399 コード」のことです)としてマークする必要があります.
14402 \begin_layout Enumerate
14403 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
14404 はなりません.これは\SpecialChar LyX
14405 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
14421 \begin_layout Enumerate
14422 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
14425 \begin_inset Newline newline
14449 \begin_layout Standard
14454 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
14458 \begin_layout Enumerate
14459 ひな型にある\SpecialChar TeX
14463 \begin_layout Enumerate
14464 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
14467 \begin_layout Section
14471 \begin_layout Standard
14479 \begin_layout Subsection
14483 \begin_layout Standard
14487 article (koma-script)
14491 report (koma-script)
14509 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
14526 に対応しています.これらは,標準文書クラス
14542 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
14545 \begin_layout Itemize
14548 article (koma-script)
14552 report (koma-script)
14560 letter (koma-script)
14565 \begin_layout Itemize
14566 見出しや箇条書き(記述)環境のラベル,および
14568 letter (koma-script)
14570 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
14574 \begin_layout Plain Layout
14575 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
14576 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
14580 作の\SpecialChar LaTeX
14590 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
14591 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
14592 とができます(\SpecialChar LyX
14595 文書\SpecialChar menuseparator
14602 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
14609 \begin_layout Itemize
14610 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
14618 オプションを使う方法です(\SpecialChar LyX
14621 文書\SpecialChar menuseparator
14628 フィールドで指定します).これらのオプションは
14630 文書\SpecialChar menuseparator
14633 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
14641 \begin_layout Itemize
14642 Koma-Scriptファミリーの\SpecialChar LaTeX
14643 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
14644 で意味を持つものは,対応する段落環境として実装されています
14648 \begin_layout Standard
14649 Koma-Scriptファミリーの\SpecialChar LaTeX
14650 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
14658 \begin_layout Plain Layout
14668 .以下の各節では,\SpecialChar LyX
14672 \begin_layout Subsection
14673 article (koma-script)・report (koma-script)・book (koma-script)
14676 \begin_layout Standard
14679 article (koma-script)
14683 report (koma-script)
14705 によって実装されています.これらは,対応する標準文書クラス
14717 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
14722 環境は例外であり,同じ機能を持つ新しい
14730 環境以外にも,新しい段落環境が多く追加されています.これらは,
14732 letter (koma-script)
14734 には含まれていないのでご注意ください.
14737 \begin_layout Itemize
14762 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
14772 article (koma-script)
14777 \begin_layout Itemize
14794 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
14800 article (koma-script)
14806 \begin_layout Plain Layout
14813 report (koma-script)
14825 と同一なので,\SpecialChar LyX
14834 \begin_layout Itemize
14839 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
14842 \begin_layout Itemize
14851 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
14852 ねに表の上に置くべきでしょう).また,クラスオプション
14856 を用いれば,キャプションを指定すると,表には
14864 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14867 \begin_layout Itemize
14872 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14874 挿入\SpecialChar menuseparator
14877 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14883 article (koma-script)
14888 \begin_layout Standard
14901 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14905 \begin_layout Plain Layout
14906 つまり,対応する\SpecialChar LaTeX
14913 コマンドよりも前に現れなくてはなりません.
14918 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14930 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14933 \begin_layout Itemize
14950 )の上に,文書の主題用の中央揃えの段落を生成します.
14953 \begin_layout Itemize
14970 )の下に,出版社名用の中央揃えの段落を生成します.
14973 \begin_layout Itemize
14980 report (koma-script)
14986 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14988 article (koma-script)
15002 )の下に献辞用の中央揃えの段落を生成します.
15005 \begin_layout Itemize
15022 )の上に,文書頭書き用の左揃えの段落を生成します.
15025 \begin_layout Itemize
15032 report (koma-script)
15038 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
15040 article (koma-script)
15045 \begin_layout Itemize
15052 report (koma-script)
15058 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
15060 article (koma-script)
15065 \begin_layout Itemize
15070 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
15073 \begin_layout Standard
15076 article (koma-script)
15080 report (koma-script)
15090 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
15094 を,個人用レイアウトディレクトリにコピーして編集してください!
15097 \begin_layout Subsection
15098 letter (koma-script)
15101 \begin_layout Standard
15105 letter (koma-script)
15111 で実装されています.このレイアウトファイルには,対応する標準文書クラス
15115 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
15133 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
15150 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
15153 \begin_layout Standard
15154 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
15155 コマンドを\SpecialChar LaTeX
15156 プリアンブルに置くことで制御することができます
15160 \begin_layout Plain Layout
15161 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
15165 \begin_layout LyX-Code
15175 \begin_layout LyX-Code
15191 \begin_layout LyX-Code
15201 \begin_layout LyX-Code
15217 \begin_layout LyX-Code
15225 .これらの\SpecialChar LaTeX
15226 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
15230 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
15233 \begin_layout Standard
15242 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
15243 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
15251 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
15255 環境は,同じ受取人への書簡を新しく書き出すものであり,
15259 環境は,新しい受取人を生成するものです.
15275 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
15278 \begin_layout Itemize
15283 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
15286 \begin_layout Itemize
15291 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
15294 \begin_layout Itemize
15302 \begin_layout Itemize
15310 \begin_layout Itemize
15318 \begin_layout Itemize
15326 \begin_layout Standard
15367 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
15371 \begin_layout Plain Layout
15380 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
15381 一文字をマークした通常の段落環境として実装しました.さらに,
15389 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
15401 \begin_layout Standard
15402 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
15407 環境で入力した署名は,標準的な挙動では,同じ書簡に
15411 環境も使用されているときのみ,書簡の出力に現れます.
15415 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
15418 \begin_layout Standard
15419 入力環境は,空の段落として使うことができます.これは,たとえば
15427 環境を全く使用しない場合は,標準的な挙動では,
15431 環境の値が署名として使用されますが,空の
15435 環境を作成しておくと,署名の値は無定義となりません.
15438 \begin_layout Standard
15439 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
15442 \begin_layout Itemize
15447 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
15450 \begin_layout Itemize
15470 \begin_layout Itemize
15475 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
15478 \begin_layout Itemize
15483 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
15493 \begin_layout Itemize
15501 \begin_layout Itemize
15514 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
15522 の値如何に関わらず,場所も日付も表示されません.
15526 環境を使用しない場合には,書簡を出力した日付が使用されます.
15529 \begin_layout Itemize
15534 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
15537 \begin_layout Itemize
15542 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
15545 \begin_layout Itemize
15550 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
15553 \begin_layout Itemize
15558 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
15561 \begin_layout Itemize
15573 \begin_layout Standard
15576 Yourref・Yourmail・Myref・顧客・インボイス
15582 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
15583 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
15587 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
15591 の値は書簡には表示されなくなり,\SpecialChar LaTeX
15598 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
15606 \begin_layout Itemize
15614 \begin_layout Itemize
15622 \begin_layout Itemize
15630 \begin_layout Itemize
15638 \begin_layout Itemize
15646 \begin_layout Subsection
15647 新しいletterクラス:letter (koma-script v.2)
15650 \begin_layout Standard
15654 \begin_inset VSpace medskip
15660 \begin_layout Standard
15662 Koma-Script第2.8版では,新しいletterクラス
15670 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
15671 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
15673 ますが,新しい方のクラスを使用することを推奨します.
15676 \begin_layout Standard
15679 letter (koma-script)
15681 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
15701 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
15719 挿入\SpecialChar menuseparator
15726 を入れることができるようになった点です.
15729 \begin_layout Standard
15730 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
15731 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
15739 \begin_layout Plain Layout
15744 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
15758 文書\SpecialChar menuseparator
15759 設定\SpecialChar menuseparator
15760 文書クラス\SpecialChar menuseparator
15767 を加えることで読み込むことができます.
15772 .用例としては,\SpecialChar LyX
15777 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
15784 \begin_layout Subsection
15788 \begin_layout Standard
15789 Koma-Script文書クラスを\SpecialChar LyX
15790 上に表示する上で,\SpecialChar LyX
15794 \begin_layout Itemize
15799 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
15803 ラベル型に対する\SpecialChar LyX
15807 \begin_layout Itemize
15816 環境の見出しは,「本当の」\SpecialChar LaTeX
15817 の目次には追加されますが,\SpecialChar LyX
15825 \begin_layout Itemize
15830 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15833 文書\SpecialChar menuseparator
15836 ダイアログでは,対応するラジオボタンは
15844 は,隙間を空けるために,文書に\SpecialChar LaTeX
15845 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15848 \begin_layout Section
15852 \begin_layout Standard
15860 \begin_layout Subsection
15864 \begin_layout Standard
15865 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15866 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15870 \begin_layout Standard
15871 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15872 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15873 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15874 は,これらすべての素晴らしい機能をネイティブでサポ
15875 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15879 \begin_layout Plain Layout
15881 \begin_inset Flex URL
15884 \begin_layout Plain Layout
15886 lyx-devel@lists.lyx.org
15897 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15898 コマンド(\SpecialChar TeX
15903 \begin_layout Plain Layout
15905 \begin_inset CommandInset ref
15907 reference "sec:LaTeXコードを挿入する"
15916 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15917 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15918 は,Memoirクラスの詳しい取扱説明書
15922 \begin_layout Plain Layout
15924 \begin_inset Flex URL
15927 \begin_layout Plain Layout
15929 CTAN:/macros/latex/memoir/memman.pdf
15939 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15943 \begin_layout Subsection
15947 \begin_layout Standard
15948 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15951 \begin_layout Description
15952 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15955 \begin_layout Description
15956 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15958 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15960 文書\SpecialChar menuseparator
15961 設定\SpecialChar menuseparator
15964 参照).これらを章題ページに使用したい場合には,コマンド
15970 を,本文またはプリアンブルに記述する必要があります(例えば,
15974 chapterstyle{companion}
15979 \begin_layout Description
15980 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15981 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15984 挿入\SpecialChar menuseparator
15987 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
15988 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
15989 のものにヘッダ用短縮タイトルを入れてください.
15992 \begin_layout Description
15993 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15994 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15997 \begin_layout Description
15998 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
16003 aliaspagestyle{title}{empty}
16008 \begin_layout Description
16015 文書\SpecialChar menuseparator
16016 設定\SpecialChar menuseparator
16019 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
16020 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
16023 \begin_layout Description
16024 Oldfontcommands: \SpecialChar LaTeX
16025 旧2.09版で使用されていた旧いフォントコマンド(
16037 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
16043 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
16044 は停止しなくなります).まだ,多くのパッケージと,
16045 就中多くのBib\SpecialChar TeX
16046 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
16049 \begin_layout Subsection
16053 \begin_layout Standard
16055 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
16059 \begin_layout Plain Layout
16060 \begin_inset Flex URL
16063 \begin_layout Plain Layout
16065 CTAN:/macros/latex/memoir/memman.pdf
16078 \begin_layout Description
16079 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
16080 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
16083 \begin_layout Description
16084 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
16085 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
16088 \begin_layout Description
16089 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
16090 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
16091 を少しだます必要があります.ここでは,2つの引数の間に,
16101 のように,(\SpecialChar TeX
16102 モードで)波括弧を入れなくてはなりません.
16105 \begin_layout Description
16106 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
16107 は,そのうちいくつかしかサポートしていません.詩題はその一つです
16108 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
16110 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
16114 \begin_layout Description
16115 詩題*: 目次に現れない他は詩題と同じです.
16118 \begin_layout Section
16119 Article (mwart)・book (mwbk)・report (mwrep)
16120 \begin_inset Argument status
16123 \begin_layout Plain Layout
16136 \begin_layout Standard
16144 \begin_layout Standard
16152 report (mwrep)・book
16158 は,それぞれ\SpecialChar LaTeX
16183 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
16186 \begin_layout Standard
16190 \begin_layout Itemize
16198 \begin_layout Itemize
16203 \begin_layout Description
16207 \begin_layout Description
16223 \begin_layout Description
16224 myuheadings 分離線付きカスタムヘッダ
16227 \begin_layout Description
16232 \begin_layout Itemize
16237 \begin_layout Description
16238 rmheadings セリフ体見出し — 既定
16241 \begin_layout Description
16242 sfheadings サンセリフ体見出し
16245 \begin_layout Description
16246 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
16249 \begin_layout Description
16250 titleauthor タイトルページは,タイトル・著者名の順で配置
16253 \begin_layout Description
16254 withmarginpar ページ上に余白のための場所を確保
16258 \begin_layout Section
16262 \begin_layout Standard
16275 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
16278 \begin_layout Section
16279 Rev\SpecialChar TeX
16283 \begin_layout Standard
16289 \begin_layout Standard
16290 \begin_inset VSpace bigskip
16296 \begin_layout Standard
16301 \begin_inset space ~
16306 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
16308 \begin_inset Formula $\beta$
16314 \begin_layout Standard
16316 には,Rev\SpecialChar TeX
16321 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
16322 2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
16323 は\SpecialChar LaTeX2e
16324 を必要とすることから,第3.1版は\SpecialChar LyX
16326 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
16327 4.0は,\SpecialChar LaTeX2e
16328 で素直に動作するようにデザインされているので,\SpecialChar LyX
16331 Rev\SpecialChar TeX
16333 \begin_inset space ~
16338 テキストクラスの組で使用するのは,たいへん簡単です.
16341 \begin_layout Standard
16342 この取扱説明書は,Rev\SpecialChar TeX
16347 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
16348 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
16352 \begin_layout Subsection
16356 \begin_layout Standard
16357 Rev\SpecialChar TeX
16358 4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
16359 4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
16362 \begin_inset Flex URL
16365 \begin_layout Plain Layout
16367 http://publish.aps.org/revtex4/
16372 から入手することができます.これを\SpecialChar LaTeX
16373 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
16374 ィレクトリ)で簡単なRev\SpecialChar TeX
16375 4文書を \SpecialChar LaTeX
16376 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
16377 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
16382 \begin_layout Standard
16387 を使ってRev\SpecialChar TeX
16388 4文書を読み込むか,またはひな型ディレクトリにある
16391 \begin_inset space ~
16396 のひな型を使うのが,おそらく一番簡単な方法でしょう.
16399 \begin_layout Subsection
16403 \begin_layout Standard
16410 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
16412 文書\SpecialChar menuseparator
16413 設定\SpecialChar menuseparator
16420 フィールドに入れます.Rev\SpecialChar TeX
16421 では,少なくとも一つの非必須引数が必要なことに注意してください.
16424 \begin_layout Standard
16431 など他のプリアンブルは,他のクラス同様,
16433 文書\SpecialChar menuseparator
16434 設定\SpecialChar menuseparator
16441 \begin_layout Subsection
16445 \begin_layout Standard
16446 レイアウトは,基本的にRev\SpecialChar TeX
16447 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
16453 に対応しています.(少なくともRev\SpecialChar TeX
16462 はまったく同じものなので,両方を使う必要はありません
16466 \begin_layout Plain Layout
16491 \begin_layout Subsection
16495 \begin_layout Standard
16496 Rev\SpecialChar TeX
16497 4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
16498 ではさらに気をつけなくてはなりません.
16501 \begin_layout Standard
16502 Rev\SpecialChar TeX
16519 に来なくてはなりません.\SpecialChar LyX
16528 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
16532 \begin_layout Standard
16553 )レイアウトの間に置かなければなりません.
16561 の後に置いてしまうと,\SpecialChar LaTeX
16565 \begin_layout Subsection
16569 \begin_layout Standard
16570 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
16571 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
16573 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
16574 ファイルを編集し,非必須引数を書き加えなくてはならないということで
16587 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
16591 \begin_layout Plain Layout
16596 実は,\SpecialChar LyX
16597 1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
16605 \begin_layout Section
16611 \begin_layout Standard
16619 \begin_layout Subsection
16623 \begin_layout Standard
16624 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
16625 \begin_inset Flex URL
16628 \begin_layout Plain Layout
16630 http://www.springer.de/author/tex/help-journals.html
16635 に必要なクラスファイル(\SpecialChar LaTeX2e
16636 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
16640 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
16647 \begin_layout Standard
16648 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
16663 \begin_layout Standard
16664 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
16672 は,標準\SpecialChar LyX
16673 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
16674 を再設定した後(teTeXの場合は,必
16679 を実行します),\SpecialChar LyX
16683 \begin_layout Subsection
16687 \begin_layout Standard
16696 ・\SpecialChar ldots
16704 \begin_layout Standard
16715 サブタイトル・ヘッダ用\SpecialChar LaTeX
16716 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
16719 .詳しくは Springerのクラスファイルの説明書を読んでください.
16722 \begin_layout Subsection
16726 \begin_layout Itemize
16738 \begin_layout Itemize
16741 Probability Theory and Related Fields
16747 — Jean-Marc Lasgouttes
16750 \begin_layout Standard
16751 あなた自身のレイアウトファイルをつくってください.難しくはありません.
16754 \begin_layout Subsection
16758 \begin_layout Standard
16767 は Springerの\SpecialChar LaTeX
16768 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
16769 Lasgouttesのおかげで \SpecialChar LyX
16770 のレイアウトファイルのメカニズムをよりよく理解することができました.
16773 \begin_layout Subsection
16777 \begin_layout Standard
16782 よりは少なくなっているとは思いますが.
16785 \begin_layout Standard
16786 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
16789 \begin_layout Section
16792 Sli\SpecialChar TeX
16799 \begin_layout Plain Layout
16800 (訳註)この節の内容は,全般的に古くなっています.
16806 \begin_inset CommandInset label
16815 \begin_layout Standard
16823 \begin_layout Subsection
16827 \begin_layout Standard
16828 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
16829 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
16831 Foil\SpecialChar TeX
16834 スライドクラスの2つがあります.本節は前者について説明を行います.
16837 \begin_layout Standard
16838 誤解のないように,正しく明確に,もう一度言っておきます.
16841 \begin_layout Standard
16842 \begin_inset VSpace bigskip
16848 \begin_layout Standard
16853 \begin_inset Quotes eld
16858 transparencies (slides)
16861 \begin_inset Quotes erd
16871 \begin_layout Standard
16872 \begin_inset VSpace bigskip
16878 \begin_layout Standard
16881 「slides (Foil\SpecialChar TeX
16885 \begin_inset CommandInset ref
16887 reference "sec:foiltex"
16897 slides (Foil\SpecialChar TeX
16908 \begin_layout Plain Layout
16912 Foil\SpecialChar TeX
16915 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16923 \begin_layout Standard
16924 このクラスは,旧SLI\SpecialChar TeX
16925 パッケージを\SpecialChar LaTeX2e
16926 用に改良したものです.\SpecialChar LaTeX2e
16927 頒布版すべてが,このクラス(以下では単に「
16931 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16935 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16940 ならばできることもあります.詳しくは以下をお読みください.
16943 \begin_layout Subsection
16945 \begin_inset CommandInset label
16947 name "sec:slidesetup"
16954 \begin_layout Standard
16955 当然ながら,この文書クラスを使用するには,
16957 文書\SpecialChar menuseparator
16962 transparencies (slides)
16964 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16967 \begin_layout Itemize
16976 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16980 クラスではサポートされていないので,効果がありません.
16983 \begin_layout Itemize
16988 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16992 \begin_layout Description
16993 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16996 \begin_layout Description
17001 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
17004 \begin_layout Description
17005 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
17009 \begin_layout Itemize
17018 というオプションがあります.これを使用するには,
17030 \begin_layout Standard
17035 にタイムマーカーを加えることができます.詳細は,第
17036 \begin_inset CommandInset ref
17038 reference "sec:スライド注釈"
17046 \begin_layout Standard
17051 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
17055 」を使用することもできます(新規ファイルを開く際に
17057 ファイル\SpecialChar menuseparator
17060 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
17063 \begin_layout Subsection
17067 \begin_layout Subsubsection
17073 \begin_layout Standard
17078 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
17086 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
17087 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
17090 \begin_layout Standard
17091 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
17096 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
17099 \begin_layout Itemize
17105 \begin_layout Itemize
17111 \begin_layout Itemize
17117 \begin_layout Itemize
17123 \begin_layout Itemize
17129 \begin_layout Itemize
17135 \begin_layout Itemize
17141 \begin_layout Itemize
17147 \begin_layout Itemize
17153 \begin_layout Itemize
17160 \begin_layout Itemize
17166 \begin_layout Standard
17167 これ以外の標準的な環境,例えば節見出し用の環境などは
17174 \begin_layout Standard
17178 \begin_layout Itemize
17184 \begin_layout Itemize
17190 \begin_layout Itemize
17196 \begin_layout Itemize
17202 \begin_layout Itemize
17208 \begin_layout Standard
17209 これら5つの環境は,\SpecialChar LyX
17210 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
17211 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
17212 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
17216 \begin_layout Subsubsection
17218 \begin_inset CommandInset label
17227 \begin_layout Standard
17228 5つの新しい環境にはすべて,\SpecialChar LyX
17229 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
17230 では,環境を別の環境で開始することが禁止されています.これを回避するために,
17238 』で述べられているような段落環境ではなくなっています.
17241 \begin_layout Standard
17254 は「疑似環境」だとお考えください.これらは節見出しや「
17258 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
17266 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
17269 \begin_layout Standard
17290 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
17310 では,まったく意味がなく,\SpecialChar LyX
17311 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
17314 \begin_layout Standard
17323 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
17331 \begin_layout Standard
17332 一方,説明文を入れたくない場合には,\SpecialChar LyX
17333 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
17334 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
17338 \begin_layout Itemize
17366 \begin_layout Itemize
17370 \begin_layout Itemize
17378 \begin_layout Itemize
17402 \begin_layout Standard
17403 将来の\SpecialChar LyX
17404 では,このような癖が解決されることを祈っています\SpecialChar ldots
17409 \begin_layout Plain Layout
17410 (訳註)ここの記述は古くなっています.
17418 \begin_layout Subsection
17432 \begin_layout Subsubsection
17440 \begin_layout Standard
17441 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
17446 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
17450 \begin_layout Standard
17456 \begin_inset CommandInset ref
17458 reference "sec:スライドの癖"
17462 節参照のこと),\SpecialChar LyX
17463 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
17464 環境は,すべて新規スライドに入ります.簡単ですよね.
17467 \begin_layout Standard
17468 Slidesは,おそらく\SpecialChar LyX
17469 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
17473 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
17474 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
17482 \begin_layout Standard
17495 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
17503 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
17506 \begin_layout Standard
17519 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
17527 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
17530 \begin_layout Subsubsection
17536 \begin_layout Standard
17541 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
17545 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
17549 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
17550 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
17557 \begin_layout Standard
17574 \begin_layout Plain Layout
17575 想像できるように,複数のオーバーレイがあれば,「
17587 」などが親スライドのページ番号に付け加えられます.
17600 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
17608 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
17617 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
17625 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
17628 \begin_layout Standard
17629 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
17630 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
17631 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
17642 \begin_layout Standard
17651 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
17652 \begin_inset CommandInset ref
17654 reference "sec:スライドの癖"
17666 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
17674 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
17677 \begin_layout Standard
17682 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
17698 は自動的に終了されることに注意してください.したがって,
17709 \begin_layout Standard
17726 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
17729 \begin_layout Enumerate
17734 かに関わらず,スライド上に現れるすべてを含んだ
17741 \begin_layout Enumerate
17746 のみに表示するすべての図や段落の前に,
17761 \begin_layout Enumerate
17773 \begin_layout Enumerate
17785 \begin_layout Enumerate
17809 \begin_layout Standard
17817 \begin_layout Standard
17823 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
17824 実現するためには,\SpecialChar LaTeX
17829 \begin_layout Plain Layout
17833 \begin_layout Itemize
17838 invisible \SpecialChar ldots
17842 \begin_layout Itemize
17847 visible \SpecialChar ldots
17851 \begin_layout Plain Layout
17853 のような形となり,\SpecialChar TeX
17854 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
17866 コマンドの後ろ)に入れます.\SpecialChar TeX
17867 としてマークする方法がわからない場合は,
17879 \begin_layout Subsubsection
17885 \begin_inset CommandInset label
17894 \begin_layout Standard
17907 に関連付けられています.ここでも\SpecialChar LyX
17920 よりも短く(オーバーレイのラベルよりも長いですが),
17924 のラベルと同様,派手な赤紫色です.加えて,印刷した
17940 3」等を付けたページ番号が付けられます.1つの
17956 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17959 \begin_layout Standard
17968 に関して付け加えたいことを書き留めておくことです.特定の
17972 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17982 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17983 コードを使用することに頼らなくてはなりません.
17986 \begin_layout Standard
17987 タイムマーカを使用するには,クラスオプション「
17992 \begin_inset CommandInset ref
17994 reference "sec:slidesetup"
17998 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
18002 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
18015 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
18021 」は,タイムマーカを特定の時間に設定し,「
18027 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
18035 にどれだけの時間をかけるのか忘れないでいられます.
18038 \begin_layout Standard
18039 最後に,説明しておくべき機能がもう一つあります.当然ながら,
18051 はすべて普通の紙に印刷したいはずです.しかしながら,
18059 .ユーザーはどうしたら良いのでしょうか.
18062 \begin_layout Standard
18063 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
18064 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
18080 のみが含まれるようにするものです.同様に,「
18092 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
18093 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
18102 のコメントを外して,現ファイル名に「*
18106 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
18118 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
18121 \begin_layout Standard
18134 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
18138 \begin_layout Subsection
18146 \begin_layout Standard
18155 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
18157 ファイル\SpecialChar menuseparator
18160 メニューを選択してください.すると新規ファイルには,
18188 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
18191 \begin_layout LyX-Code
18192 % Uncomment to print out only slides and overlays
18195 \begin_layout LyX-Code
18199 \begin_layout LyX-Code
18205 \begin_inset Newline newline
18211 \begin_layout LyX-Code
18212 % Uncomment to print out only notes
18215 \begin_layout LyX-Code
18219 \begin_layout LyX-Code
18227 \begin_layout Standard
18228 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
18231 Sli\SpecialChar TeX
18234 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
18235 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
18236 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
18241 \begin_inset CommandInset ref
18243 reference "sec:foiltex"
18251 」パッケージ(一部の\SpecialChar TeX
18252 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
18253 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
18257 \begin_layout Chapter
18258 ソフトウェアを追加する必要がある \SpecialChar LyX
18262 \begin_layout Section
18267 \begin_layout Standard
18275 \begin_layout Subsection
18279 \begin_layout Standard
18288 \begin_layout Plain Layout
18290 頒布版としてMiK\SpecialChar TeX
18314 \begin_inset Newline newline
18318 \begin_inset CommandInset href
18320 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18328 \begin_layout Standard
18331 Chk\SpecialChar TeX
18334 パッケージは,\SpecialChar LaTeX
18335 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
18336 \begin_inset Flex Noun
18339 \begin_layout Plain Layout
18346 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
18347 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
18354 \begin_layout Standard
18355 さて,\SpecialChar LyX
18356 はつねに正しい\SpecialChar LaTeX
18357 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
18358 で何をするというのでしょうか.答えは簡単です.
18366 をチェックするだけでなく,打ち間違いによる
18372 Chk\SpecialChar TeX
18381 Chk\SpecialChar TeX
18384 は,以下のような誤りを検出することができます.
18387 \begin_layout Itemize
18389 \begin_inset Newline newline
18392 ...ではなく\SpecialChar ldots
18396 \begin_layout Itemize
18398 \begin_inset Newline newline
18401 ( wrong spacing ):誤った空白
18404 \begin_layout Itemize
18405 よく使われる省略形の後ろは通常スペースにする:
18406 \begin_inset Newline newline
18410 \begin_inset space \thinspace{}
18414 \begin_inset space \space{}
18417 is too wide spacing.:広すぎる空白
18420 \begin_layout Itemize
18421 直前の文章が大文字で終わっているときに,文末スペースに直す:
18422 \begin_inset Newline newline
18426 And this is wrong spacing.:誤った空白
18429 \begin_layout Itemize
18431 \begin_inset Newline newline
18434 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません.
18435 \begin_inset CommandInset label
18445 \begin_layout Plain Layout
18446 この脚注は,正しくないページに行ってしまう恐れがあります.
18454 \begin_layout Itemize
18455 参照の前にハードスペースではなくスペース:
18456 \begin_inset Newline newline
18459 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
18460 \begin_inset CommandInset ref
18462 reference "sec:chktex"
18469 \begin_layout Itemize
18471 \begin_inset Formula $\times$
18475 \begin_inset Newline newline
18479 \begin_inset Formula $2\times2$
18485 \begin_layout Standard
18486 などなど\SpecialChar ldots
18489 Chk\SpecialChar TeX
18492 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
18495 \begin_layout Subsection
18499 \begin_layout Standard
18500 このプログラムを導入したならば,使うのは
18502 ツール\SpecialChar menuseparator
18506 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
18507 は使用中の文書の\SpecialChar LaTeX
18510 Chk\SpecialChar TeX
18513 を起動し,当該ファイルを検査しますが,
18515 Chk\SpecialChar TeX
18518 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
18519 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
18521 移動\SpecialChar menuseparator
18529 \begin_inset Flex Ruby
18532 \begin_layout Plain Layout
18534 \begin_inset Argument post:1
18537 \begin_layout Plain Layout
18549 \begin_inset Flex Ruby
18552 \begin_layout Plain Layout
18572 \begin_inset Argument post:1
18575 \begin_layout Plain Layout
18590 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
18606 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
18608 Chk\SpecialChar TeX
18611 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
18615 \begin_layout Standard
18616 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
18617 警告のほとんどは実際には警告に値しません.
18620 \begin_layout Subsection
18624 \begin_layout Standard
18627 Chk\SpecialChar TeX
18630 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
18632 Chk\SpecialChar TeX
18635 を無効にするか,あなたにもう少し合うように
18637 Chk\SpecialChar TeX
18643 \begin_layout Standard
18646 Chk\SpecialChar TeX
18649 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
18652 Chk\SpecialChar TeX
18655 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
18658 Chk\SpecialChar TeX
18665 \begin_layout Plain Layout
18676 文書\SpecialChar menuseparator
18685 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
18686 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
18687 ためには,以下の2つの方法があります.
18690 \begin_layout Itemize
18693 \begin_inset Flex MenuItem
18696 \begin_layout Plain Layout
18699 ツール\SpecialChar menuseparator
18700 設定\SpecialChar menuseparator
18701 出力\SpecialChar menuseparator
18703 \SpecialChar menuseparator
18704 Check\SpecialChar TeX
18714 Chk\SpecialChar TeX
18717 起動コマンドラインを調整するか,グローバルな
18719 Chk\SpecialChar TeX
18723 \begin_inset Flex Code
18726 \begin_layout Plain Layout
18732 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
18735 \begin_layout Itemize
18738 ファイル\SpecialChar menuseparator
18739 書き出し\SpecialChar menuseparator
18743 を使って文書を\SpecialChar LaTeX
18744 ファイルに変換し,そのファイルに対して
18748 を手動で実行します.このようにすると,\SpecialChar LyX
18749 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
18752 \begin_layout Standard
18757 で有効化・無効化できる警告メッセージです.警告を無効にするには
18765 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
18767 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18772 \begin_layout Standard
18778 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
18781 \begin_layout Enumerate
18785 Command terminated with space.
18788 \begin_layout Enumerate
18791 Non-breaking space (
18792 \begin_inset Quotes eld
18800 \begin_inset Quotes erd
18803 ) should have been used.
18806 \begin_layout Enumerate
18810 You should enclose the previous parenthesis with
18811 \begin_inset Quotes eld
18819 \begin_inset Quotes erd
18825 \begin_layout Enumerate
18828 Italic correction (
18829 \begin_inset Quotes eld
18839 \begin_inset Quotes erd
18842 ) found in non-italic buffer.
18845 \begin_layout Enumerate
18848 Italic correction (
18849 \begin_inset Quotes eld
18859 \begin_inset Quotes erd
18862 ) found more than once.
18865 \begin_layout Enumerate
18869 No italic correction (
18870 \begin_inset Quotes eld
18880 \begin_inset Quotes erd
18886 \begin_layout Enumerate
18890 \begin_inset Quotes eld
18898 \begin_inset Quotes erd
18902 \begin_inset Quotes eld
18910 \begin_inset Quotes erd
18916 \begin_layout Enumerate
18919 Wrong length of dash may have been used.
18922 \begin_layout Enumerate
18926 \begin_inset Quotes eld
18934 \begin_inset Quotes erd
18938 \begin_inset Quotes eld
18946 \begin_inset Quotes erd
18952 \begin_layout Enumerate
18956 \begin_inset Quotes eld
18964 \begin_inset Quotes erd
18970 \begin_layout Enumerate
18974 \begin_inset Quotes eld
18982 \begin_inset Quotes erd
18985 to achieve an ellipsis.
18988 \begin_layout Enumerate
18991 Inter-word spacing (
18992 \begin_inset Quotes eld
19002 \begin_inset Quotes eld
19005 ) should perhaps be used.
19008 \begin_layout Enumerate
19011 Inter-sentence spacing (
19012 \begin_inset Quotes eld
19022 \begin_inset Quotes erd
19025 ) should perhaps be used.
19028 \begin_layout Enumerate
19031 Could not find argument for command.
19034 \begin_layout Enumerate
19038 \begin_inset Quotes eld
19046 \begin_inset Quotes erd
19052 \begin_layout Enumerate
19055 Math mode still on at end of \SpecialChar LaTeX
19059 \begin_layout Enumerate
19063 \begin_inset Quotes eld
19071 \begin_inset Quotes erd
19074 doesn't match the number of
19075 \begin_inset Quotes eld
19083 \begin_inset Quotes erd
19089 \begin_layout Enumerate
19092 You should use either
19095 \begin_inset Quotes eld
19103 \begin_inset Quotes erd
19108 as an alternative to
19109 \begin_inset Quotes eld
19117 \begin_inset Quotes erd
19123 \begin_layout Enumerate
19130 " (ASCII 39) instead of "" (ASCII 180).
19133 \begin_layout Enumerate
19136 User-specified pattern found.
19139 \begin_layout Enumerate
19142 This command might not be intended.
19145 \begin_layout Enumerate
19152 \begin_layout Enumerate
19170 \begin_layout Enumerate
19173 Delete this space to maintain correct page references.
19176 \begin_layout Enumerate
19180 You might wish to put this between a pair of
19181 \begin_inset Quotes eld
19189 \begin_inset Quotes erd
19195 \begin_layout Enumerate
19198 You ought to remove spaces in front of punctuation.
19201 \begin_layout Enumerate
19204 Could not execute \SpecialChar LaTeX
19208 \begin_layout Enumerate
19217 in front of small punctuation.
19220 \begin_layout Enumerate
19228 may look prettier here.
19231 \begin_layout Enumerate
19235 Multiple spaces detected in output.
19238 \begin_layout Enumerate
19241 This text may be ignored.
19244 \begin_layout Enumerate
19250 \begin_inset Quotes eld
19255 to begin quotation, not
19262 \begin_layout Enumerate
19269 to end quotation, not
19272 \begin_inset Quotes eld
19280 \begin_layout Enumerate
19286 \begin_layout Enumerate
19289 You should perhaps use
19290 \begin_inset Quotes eld
19298 \begin_inset Quotes erd
19304 \begin_layout Enumerate
19307 You should put a space in front of/after parenthesis.
19310 \begin_layout Enumerate
19313 You should avoid spaces in front of/after parenthesis.
19316 \begin_layout Enumerate
19320 You should not use punctuation in front of/after quotes.
19323 \begin_layout Enumerate
19326 Double space found.
19329 \begin_layout Enumerate
19332 You should put punctuation outside inner/inside display math mode.
19335 \begin_layout Enumerate
19338 You ought to not use primitive \SpecialChar TeX
19339 in \SpecialChar LaTeX
19343 \begin_layout Enumerate
19346 You should remove spaces in front of
19347 \begin_inset Quotes eld
19355 \begin_inset Quotes erd
19361 \begin_layout Enumerate
19364 \begin_inset Quotes eld
19372 \begin_inset Quotes erd
19375 is normally not followed by
19376 \begin_inset Quotes eld
19384 \begin_inset Quotes erd
19390 \begin_layout Standard
19392 の将来の版では,このツール(およびその縮小版
19396 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
19397 書に使用してみていただければ,きっと驚かれることでしょう.
19400 \begin_layout Section
19405 \begin_layout Standard
19408 Lars Bullik Bjønnes
19417 \begin_layout Subsection
19421 \begin_layout Standard
19423 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
19427 \begin_layout Standard
19428 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
19433 \begin_layout Plain Layout
19434 \begin_inset CommandInset href
19436 target "http://svnbook.red-bean.com/"
19446 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
19450 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
19454 で終わるファイルです)の概念に注意を払ってください.
19457 \begin_layout Standard
19459 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
19462 RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
19463 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
19465 表示\SpecialChar menuseparator
19466 ツールバー\SpecialChar menuseparator
19472 \begin_layout Standard
19473 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
19474 関数説明書のvcコマンドを確認してください.
19477 \begin_layout Standard
19478 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
19480 文書\SpecialChar menuseparator
19483 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
19484 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
19487 \begin_layout Subsection
19492 \begin_layout Standard
19493 以下の節では\SpecialChar LyX
19494 でサポートされているRCSコマンドを説明します.それらのコマンドは
19496 ファイル\SpecialChar menuseparator
19499 のサブメニューにあります.\SpecialChar LyX
19500 は,RCS 5.7/5.8に対して試験されています.
19503 \begin_layout Subsubsection
19509 \begin_layout Standard
19510 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
19517 \begin_layout Standard
19518 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
19519 書は読み込み専用モードになるので,変更を加えるためには
19523 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
19526 \begin_layout Standard
19530 \begin_inset Newline newline
19533 ci -q -u -i -t-"<初期説明文>" <ファイル名>
19536 \begin_layout Standard
19544 \begin_layout Subsubsection
19550 \begin_layout Standard
19551 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
19552 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
19555 \begin_layout Standard
19558 ci -q -u -m"<説明文>" <ファイル名>
19561 \begin_layout Subsubsection
19567 \begin_layout Standard
19568 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
19569 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
19572 \begin_layout Standard
19578 \begin_layout Subsubsection
19584 \begin_layout Standard
19585 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
19588 \begin_layout Standard
19591 co -f -u<バージョン> <ファイル名>
19594 \begin_layout Subsubsection
19600 \begin_layout Standard
19601 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19602 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19603 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19605 ファイル\SpecialChar menuseparator
19606 名前をつけて保存\SpecialChar ldots
19609 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19612 \begin_layout Labeling
19613 \labelwidthstring 00.00.0000
19615 \begin_inset Flex Code
19618 \begin_layout Plain Layout
19631 \begin_layout Labeling
19632 \labelwidthstring 00.00.0000
19633 \begin_inset Flex Code
19636 \begin_layout Plain Layout
19637 ci -q -u -i "<新ファイル名>"
19645 \begin_layout Subsubsection
19651 \begin_layout Standard
19652 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
19653 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
19657 \begin_layout Standard
19660 rcs -o<バージョン> <ファイル名>
19663 \begin_layout Subsubsection
19669 \begin_layout Standard
19670 RCS文書の完全な履歴を表示します.ブラウザ中に,
19681 \begin_layout Subsubsection
19685 \begin_layout Standard
19687 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
19688 \begin_inset CommandInset ref
19690 reference "subsec:VCS改訂情報"
19697 \begin_layout Subsection
19702 \begin_layout Standard
19704 は,現在CVSを一部サポートしています.そのコマンドは,
19706 ファイル\SpecialChar menuseparator
19709 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
19712 \begin_layout Subsubsection
19716 \begin_layout Standard
19717 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
19718 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
19721 \begin_layout Standard
19722 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
19723 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
19724 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
19725 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
19726 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
19727 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
19728 で予備付きチェックアウトを利用したい場合には,
19729 \begin_inset Flex Code
19732 \begin_layout Plain Layout
19739 \begin_inset Flex Code
19742 \begin_layout Plain Layout
19748 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
19749 コピーを書き込み可能にしているとは限りません.
19752 \begin_layout Standard
19754 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
19755 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
19756 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
19758 \begin_inset Flex MenuItem
19761 \begin_layout Plain Layout
19767 メニューを使用しなくてはなりません.その後,
19768 \begin_inset Flex MenuItem
19771 \begin_layout Plain Layout
19777 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
19780 \begin_layout Standard
19782 \begin_inset Flex URL
19785 \begin_layout Plain Layout
19787 http://www.nongnu.org/cvs
19793 \begin_inset Flex URL
19796 \begin_layout Plain Layout
19798 http://ximbiot.com/cvs
19806 \begin_layout Standard
19807 以下に言及するサブコマンドとスイッチを理解するには,
19814 \begin_layout Subsubsection
19818 \begin_layout Standard
19819 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19826 \begin_layout Standard
19827 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
19834 \begin_inset Flex Code
19837 \begin_layout Plain Layout
19843 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19844 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19848 \begin_layout Standard
19849 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19852 \begin_layout Standard
19855 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19860 \begin_layout Standard
19861 上記および他のすべてのCVSコマンドにおける
19865 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19868 \begin_layout Subsubsection
19872 \begin_layout Standard
19873 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19874 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19875 \begin_inset Flex MenuItem
19878 \begin_layout Plain Layout
19887 \begin_layout Labeling
19888 \labelwidthstring 00.00.0000
19890 \begin_inset space ~
19894 \begin_inset Newline newline
19898 \begin_inset Flex Code
19901 \begin_layout Plain Layout
19902 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19908 \begin_inset Newline newline
19912 \begin_inset Flex Code
19915 \begin_layout Plain Layout
19916 cvs -q unedit "<ファイル名>"
19924 \begin_layout Subsubsection
19928 \begin_layout Standard
19929 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19932 \begin_layout Standard
19935 cvs -q update "<ファイル名>"
19938 \begin_layout Standard
19939 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19942 \begin_layout Standard
19945 cvs -q edit "<ファイル名>"
19948 \begin_layout Subsubsection
19952 \begin_layout Standard
19953 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19957 \begin_layout Standard
19960 cvs -q update "<ファイル名>"
19963 \begin_layout Standard
19964 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19967 \begin_layout Standard
19970 cvs -q unedit "<ファイル名>"
19973 \begin_layout Subsubsection
19979 \begin_layout Standard
19980 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19981 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19982 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19984 ファイル\SpecialChar menuseparator
19985 名前をつけて保存\SpecialChar ldots
19988 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19991 \begin_layout Labeling
19992 \labelwidthstring 00.00.0000
19996 \begin_layout Labeling
19997 \labelwidthstring 00.00.0000
19998 \begin_inset Flex Code
20001 \begin_layout Plain Layout
20008 \begin_inset Flex Code
20011 \begin_layout Plain Layout
20020 \begin_layout Labeling
20021 \labelwidthstring 00.00.0000
20022 \begin_inset Flex Code
20025 \begin_layout Plain Layout
20026 cvs -q add "<新ファイル名>"
20034 \begin_layout Subsubsection
20038 \begin_layout Standard
20039 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
20040 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
20041 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
20044 ファイル\SpecialChar menuseparator
20045 名前をつけて保存\SpecialChar ldots
20048 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20051 \begin_layout Labeling
20052 \labelwidthstring 00.00.0000
20056 \begin_layout Labeling
20057 \labelwidthstring 00.00.0000
20058 \begin_inset Flex Code
20061 \begin_layout Plain Layout
20068 \begin_inset Flex Code
20071 \begin_layout Plain Layout
20080 \begin_layout Labeling
20081 \labelwidthstring 00.00.0000
20082 \begin_inset Flex Code
20085 \begin_layout Plain Layout
20086 cvs -q add "<新ファイル名>"
20094 \begin_layout Labeling
20095 \labelwidthstring 00.00.0000
20096 \begin_inset Flex Code
20099 \begin_layout Plain Layout
20100 cvs -q remove "<ファイル名>"
20108 \begin_layout Subsubsection
20109 ローカルディレクトリチェックアウトのレポジトリからの更新
20112 \begin_layout Standard
20114 \begin_inset Flex Code
20117 \begin_layout Plain Layout
20123 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
20124 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
20125 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
20126 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
20130 \begin_layout Standard
20132 \begin_inset Flex Code
20135 \begin_layout Plain Layout
20141 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
20142 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
20143 \begin_inset Flex Code
20146 \begin_layout Plain Layout
20153 \begin_inset Flex Code
20156 \begin_layout Plain Layout
20163 \begin_inset Flex Code
20166 \begin_layout Plain Layout
20172 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
20173 \begin_inset Flex Code
20176 \begin_layout Plain Layout
20182 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
20185 \begin_layout Labeling
20186 \labelwidthstring 00.00.0000
20188 \begin_inset space ~
20192 \begin_inset Newline newline
20196 \begin_inset Flex Code
20199 \begin_layout Plain Layout
20200 cd $path; cvs diff "."
20206 \begin_inset Newline newline
20210 \begin_inset Flex Code
20213 \begin_layout Plain Layout
20214 cd $path; cvs -q update "."
20222 \begin_layout Standard
20224 \begin_inset Flex Code
20227 \begin_layout Plain Layout
20236 \begin_layout Subsubsection
20240 \begin_layout Standard
20241 これは,CVS文書の全履歴を表示します.
20242 \begin_inset Flex Code
20245 \begin_layout Plain Layout
20247 \begin_inset Quotes eld
20251 \begin_inset Quotes erd
20262 \begin_layout Subsubsection
20266 \begin_layout Standard
20268 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20272 によって抽出されます.詳細については,第
20273 \begin_inset CommandInset ref
20275 reference "subsec:VCS改訂情報"
20282 \begin_layout Subsection
20287 \begin_layout Standard
20289 は,現在SVNを一部サポートしています.そのコマンドは,
20290 \begin_inset Flex MenuItem
20293 \begin_layout Plain Layout
20294 ファイル\SpecialChar menuseparator
20300 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
20302 1.5および1.6に対して試験されています.
20305 \begin_layout Subsubsection
20309 \begin_layout Standard
20310 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20317 \begin_layout Standard
20318 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
20323 \begin_inset Flex Code
20326 \begin_layout Plain Layout
20332 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20335 \begin_layout Standard
20336 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20339 \begin_layout Standard
20341 \begin_inset Flex Code
20344 \begin_layout Plain Layout
20346 \begin_inset Quotes eld
20350 \begin_inset Quotes erd
20361 \begin_layout Standard
20363 \begin_inset Flex Code
20366 \begin_layout Plain Layout
20375 \begin_layout Subsubsection
20379 \begin_layout Standard
20380 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20383 \begin_layout Standard
20388 \begin_layout Plain Layout
20389 ロックが有効になっていない場合です.第
20390 \begin_inset CommandInset ref
20392 reference "subsec:SVNファイルロック"
20402 \begin_inset Flex Code
20405 \begin_layout Plain Layout
20407 \begin_inset Quotes erd
20411 \begin_inset Quotes erd
20415 \begin_inset Quotes eld
20419 \begin_inset Quotes erd
20430 \begin_layout Subsubsection
20434 \begin_layout Standard
20435 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
20439 \begin_layout Standard
20444 \begin_layout Plain Layout
20451 \begin_inset Flex Code
20454 \begin_layout Plain Layout
20455 svn update –non-interactive
20456 \begin_inset Quotes eld
20460 \begin_inset Quotes erd
20471 \begin_layout Subsubsection
20475 \begin_layout Standard
20476 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20479 \begin_layout Standard
20481 \begin_inset Flex Code
20484 \begin_layout Plain Layout
20486 \begin_inset Quotes eld
20490 \begin_inset Quotes erd
20501 \begin_layout Subsubsection
20507 \begin_layout Standard
20508 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
20509 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20512 ファイル\SpecialChar menuseparator
20513 名前をつけて保存\SpecialChar ldots
20516 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
20519 \begin_layout Labeling
20520 \labelwidthstring 00.00.0000
20524 \begin_layout Labeling
20525 \labelwidthstring 00.00.0000
20526 \begin_inset Flex Code
20529 \begin_layout Plain Layout
20530 svn copy -q "<ファイル名>" "<新ファイル名>"
20538 \begin_layout Labeling
20539 \labelwidthstring 00.00.0000
20540 \begin_inset Flex Code
20543 \begin_layout Plain Layout
20552 \begin_layout Subsubsection
20556 \begin_layout Standard
20557 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20558 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20561 ファイル\SpecialChar menuseparator
20562 名前をつけて保存\SpecialChar ldots
20565 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20568 \begin_layout Labeling
20569 \labelwidthstring 00.00.0000
20573 \begin_layout Labeling
20574 \labelwidthstring 00.00.0000
20575 \begin_inset Flex Code
20578 \begin_layout Plain Layout
20579 svn move -q add "<ファイル名>" "<新ファイル名>"
20587 \begin_layout Labeling
20588 \labelwidthstring 00.00.0000
20589 \begin_inset Flex Code
20592 \begin_layout Plain Layout
20601 \begin_layout Subsubsection
20602 \begin_inset CommandInset label
20604 name "subsec:レポジトリからSVN同期"
20608 レポジトリを使ったローカルディレクトリの同期
20612 \begin_layout Plain Layout
20614 \begin_inset Formula $\geqq1.5$
20617 でのみ動作することに注意してください.
20625 \begin_layout Standard
20626 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
20627 \begin_inset Flex Code
20630 \begin_layout Plain Layout
20636 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
20637 は,文書のおいてあるツリー全体の更新をサポートします
20641 \begin_layout Plain Layout
20642 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
20647 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
20651 \begin_layout Standard
20652 \begin_inset Flex Code
20655 \begin_layout Plain Layout
20661 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
20662 場合には,更新が開始される前にユーザに警告が与えられます.
20665 \begin_layout Labeling
20666 \labelwidthstring 00.00.0000
20668 \begin_inset space ~
20672 \begin_inset Newline newline
20676 \begin_inset Flex Code
20679 \begin_layout Plain Layout
20680 svn diff $path(変更が発見された場合には通知します)
20681 \begin_inset Newline newline
20684 svn update –accept mine-full $path
20692 \begin_layout Standard
20694 \begin_inset Flex Code
20697 \begin_layout Plain Layout
20706 \begin_layout Subsubsection
20710 \begin_layout Standard
20711 これは,SVN文書の全履歴を表示します.
20712 \begin_inset Flex Code
20715 \begin_layout Plain Layout
20717 \begin_inset Quotes eld
20721 \begin_inset Quotes erd
20732 \begin_layout Subsubsection
20734 \begin_inset CommandInset label
20736 name "subsec:SVNファイルロック"
20743 \begin_layout Standard
20744 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
20745 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
20746 するための,何らかのロック機構を導入することが考えられます.
20749 \begin_layout Standard
20750 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
20751 \begin_inset Flex Code
20754 \begin_layout Plain Layout
20760 svnファイル特性に依拠した書き込み権限の自動設定(第
20761 \begin_inset CommandInset ref
20763 reference "subsec:自動ロック特性"
20771 \begin_layout Plain Layout
20772 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20777 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
20778 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
20779 り替わります.これは特に,\SpecialChar LyX
20780 でのファイルの使われ方に以下の二つのモードがあることを意味します.
20783 \begin_layout Itemize
20784 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
20788 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
20791 \begin_layout Itemize
20792 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20796 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20800 \begin_layout Plain Layout
20801 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20806 ,書き込みロックの解放のみが行われます.
20809 \begin_layout Standard
20813 \begin_layout Labeling
20814 \labelwidthstring 00.00.0000
20816 \begin_inset Flex Code
20819 \begin_layout Plain Layout
20821 \begin_inset Quotes erd
20825 \begin_inset Quotes erd
20829 \begin_inset Quotes eld
20833 \begin_inset Quotes erd
20842 \begin_inset Newline newline
20846 \begin_inset Flex Code
20849 \begin_layout Plain Layout
20851 \begin_inset Quotes eld
20855 \begin_inset Quotes erd
20866 \begin_layout Labeling
20867 \labelwidthstring 00.00.0000
20869 \begin_inset Flex Code
20872 \begin_layout Plain Layout
20874 \begin_inset Quotes eld
20878 \begin_inset Quotes erd
20887 \begin_inset Newline newline
20891 \begin_inset Flex Code
20894 \begin_layout Plain Layout
20896 \begin_inset Quotes eld
20900 \begin_inset Quotes erd
20911 \begin_layout Subsubsection
20913 \begin_inset CommandInset label
20915 name "subsec:自動ロック特性"
20922 \begin_layout Standard
20924 \begin_inset Flex Code
20927 \begin_layout Plain Layout
20933 ファイルに対する書き込み権限の自動設定は,
20934 \begin_inset Flex MenuItem
20937 \begin_layout Plain Layout
20938 ファイル\SpecialChar menuseparator
20939 バージョン管理\SpecialChar menuseparator
20945 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20948 \begin_layout Standard
20952 \begin_layout Labeling
20953 \labelwidthstring 00.00.0000
20955 \begin_inset Flex Code
20958 \begin_layout Plain Layout
20959 svn propset svn:needs-lock ON
20960 \begin_inset Quotes eld
20964 \begin_inset Quotes erd
20975 \begin_layout Labeling
20976 \labelwidthstring 00.00.0000
20978 \begin_inset Flex Code
20981 \begin_layout Plain Layout
20982 svn propdel svn:needs-lock
20983 \begin_inset Quotes eld
20987 \begin_inset Quotes erd
20998 \begin_layout Subsubsection
20999 \begin_inset CommandInset label
21001 name "subsec:VCS改訂情報"
21008 \begin_layout Standard
21009 文書中で改訂情報を有効化するにはいくつかの方法があります.
21012 \begin_layout Itemize
21018 \begin_layout Itemize
21020 \begin_inset Flex Code
21023 \begin_layout Plain Layout
21030 \begin_inset Flex Code
21033 \begin_layout Plain Layout
21039 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
21042 \begin_layout Standard
21044 \begin_inset Tabular
21045 <lyxtabular version="3" rows="6" columns="2">
21046 <features tabularvalignment="middle">
21047 <column alignment="center" valignment="top">
21048 <column alignment="center" valignment="top">
21050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21053 \begin_layout Plain Layout
21059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21062 \begin_layout Plain Layout
21070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21073 \begin_layout Plain Layout
21079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21082 \begin_layout Plain Layout
21090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21093 \begin_layout Plain Layout
21099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21102 \begin_layout Plain Layout
21110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21113 \begin_layout Plain Layout
21119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21122 \begin_layout Plain Layout
21130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21133 \begin_layout Plain Layout
21139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21142 \begin_layout Plain Layout
21143 チェックアウト頻度が低かったことによる不完全な作業コピー
21150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21153 \begin_layout Plain Layout
21159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21162 \begin_layout Plain Layout
21163 改訂版が混合し,修正され,スイッチされた作業コピー
21176 \begin_layout Itemize
21178 \begin_inset Flex Code
21181 \begin_layout Plain Layout
21183 \begin_inset space ~
21187 \begin_inset space ~
21191 \begin_inset space ~
21199 の出力を解析したものが返されます.サポートされるフラグは
21203 \begin_layout Itemize
21205 \begin_inset Flex Code
21208 \begin_layout Plain Layout
21217 \begin_layout Itemize
21219 \begin_inset Flex Code
21222 \begin_layout Plain Layout
21231 \begin_layout Itemize
21233 \begin_inset Flex Code
21236 \begin_layout Plain Layout
21245 \begin_layout Itemize
21247 \begin_inset Flex Code
21250 \begin_layout Plain Layout
21260 \begin_layout Standard
21261 これらの情報は,情報差込枠で得ることができます(例:
21262 \begin_inset Flex Code
21265 \begin_layout Plain Layout
21266 info-insert buffer vcs-date
21271 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
21272 \begin_inset Flex Code
21275 \begin_layout Plain Layout
21281 ディレクトリがあるときのみ)利用可能です.
21285 \begin_layout Itemize
21286 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
21290 \begin_layout Plain Layout
21291 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21296 .簡単に言えば,ファイルキーワード特性を設定して(例:
21298 svn propset svn:keywords 'Rev' file.lyx
21300 ),文書中にキーワード\SpecialChar TeX
21305 \begin_layout Plain Layout
21306 これは,\SpecialChar LyX
21307 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
21316 \begin_layout Plain Layout
21323 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
21327 \begin_layout Plain Layout
21334 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
21335 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
21337 \begin_inset Formula $Rev$
21341 \begin_inset Formula $Rev:59$
21344 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
21345 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
21346 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
21347 がこれを直接サポートすることは,難しそうです.
21350 \begin_layout Subsection
21354 \begin_layout Quote
21355 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
21360 \begin_layout Subsubsection
21364 \begin_layout Standard
21366 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
21367 トプログラムのWindows用インストーラは
21368 \begin_inset CommandInset href
21371 target "http://www.collab.net/nonav/downloads/subversion/"
21377 \begin_inset CommandInset href
21380 target "http://tortoisesvn.tigris.org/"
21385 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
21387 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
21388 自身が使用するクライアントプログラムの代わりとは成りませんので
21392 \begin_layout Subsubsection
21393 文書をSubversion管理下に置くには
21396 \begin_layout Standard
21398 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
21399 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
21400 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
21402 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
21403 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
21405 \begin_inset Flex Code
21408 \begin_layout Plain Layout
21416 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
21417 \begin_inset Flex Code
21420 \begin_layout Plain Layout
21429 \begin_layout Enumerate
21431 \begin_inset Flex Code
21434 \begin_layout Plain Layout
21443 \begin_inset Flex MenuItem
21446 \begin_layout Plain Layout
21447 TortoiseSVN\SpecialChar menuseparator
21453 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
21456 \begin_layout Enumerate
21457 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
21458 \begin_inset Flex MenuItem
21461 \begin_layout Plain Layout
21462 Create folder\SpecialChar ldots
21468 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
21469 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
21472 \begin_layout Enumerate
21474 \begin_inset Flex Code
21477 \begin_layout Plain Layout
21486 \begin_inset Flex MenuItem
21489 \begin_layout Plain Layout
21490 SVN Checkout\SpecialChar ldots
21496 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
21497 \begin_inset Flex Code
21500 \begin_layout Plain Layout
21508 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
21509 \begin_inset Flex Code
21512 \begin_layout Plain Layout
21521 \begin_inset Flex Code
21524 \begin_layout Plain Layout
21533 \begin_layout Enumerate
21536 \begin_inset Flex MenuItem
21539 \begin_layout Plain Layout
21540 ファイル\SpecialChar menuseparator
21541 バージョン管理\SpecialChar menuseparator
21547 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
21550 \begin_layout Standard
21552 \begin_inset Flex MenuItem
21555 \begin_layout Plain Layout
21556 ファイル\SpecialChar menuseparator
21562 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
21563 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
21566 \begin_layout Subsubsection
21567 Windows下でSVNと共にSSHトンネルを使うには
21570 \begin_layout Standard
21571 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
21572 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
21576 \begin_layout Enumerate
21577 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
21578 \begin_inset Flex Code
21581 \begin_layout Plain Layout
21587 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
21590 \begin_layout Enumerate
21591 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
21595 \begin_layout Plain Layout
21596 \begin_inset Flex URL
21599 \begin_layout Plain Layout
21601 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21611 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
21613 \begin_inset Flex Ruby
21616 \begin_layout Plain Layout
21618 \begin_inset Argument post:1
21621 \begin_layout Plain Layout
21636 \begin_layout Enumerate
21637 \begin_inset Flex Code
21640 \begin_layout Plain Layout
21646 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
21647 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
21648 s file:」編集フィールドから,直接サーバの
21649 \begin_inset Flex Code
21652 \begin_layout Plain Layout
21653 ~/.ssh/authorized_keys
21659 \begin_inset Flex Code
21662 \begin_layout Plain Layout
21668 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
21671 \begin_layout Enumerate
21672 Puttyのplinkを入手してください.SVNのconfigファイル
21676 \begin_layout Plain Layout
21677 正確なパスはWindowsのバージョンに依りますが,通常は
21678 \begin_inset Flex Code
21681 \begin_layout Plain Layout
21684 Documents and Settings
21698 \begin_inset Flex Code
21701 \begin_layout Plain Layout
21717 \begin_inset Flex Code
21720 \begin_layout Plain Layout
21726 セクションにsshコマンドを設定してください.例:
21727 \begin_inset Flex Code
21730 \begin_layout Plain Layout
21731 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21740 \begin_layout Plain Layout
21741 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
21742 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
21751 \begin_layout Enumerate
21752 SVNアーカイブをチェックアウトしてください.例:
21753 \begin_inset Newline newline
21757 \begin_inset Flex Code
21760 \begin_layout Plain Layout
21761 svn co svn+ssh://user@server/repository_path
21769 \begin_layout Subsubsection
21773 \begin_layout Standard
21774 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
21775 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
21777 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
21778 \begin_inset Flex Code
21781 \begin_layout Plain Layout
21791 \begin_layout Plain Layout
21793 \begin_inset Flex Code
21796 \begin_layout Plain Layout
21797 svn propset svn:eol-style native FILE_NAME
21807 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21811 \begin_layout Plain Layout
21812 \begin_inset Flex URL
21815 \begin_layout Plain Layout
21817 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21830 \begin_layout Subsection
21835 \begin_layout Standard
21837 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21839 ファイル\SpecialChar menuseparator
21842 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21847 \begin_layout Standard
21848 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21849 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21850 ミットを行います.ローカルリポジトリは,GITコマンドの
21851 \begin_inset Flex Code
21854 \begin_layout Plain Layout
21861 \begin_inset Flex Code
21864 \begin_layout Plain Layout
21870 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21871 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21872 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21873 \begin_inset Flex Code
21876 \begin_layout Plain Layout
21883 \begin_inset Flex Code
21886 \begin_layout Plain Layout
21895 \begin_layout Subsubsection
21899 \begin_layout Standard
21900 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21907 \begin_layout Standard
21908 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21913 \begin_inset Flex Code
21916 \begin_layout Plain Layout
21922 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21925 \begin_layout Standard
21926 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21929 \begin_layout Standard
21931 \begin_inset Flex Code
21934 \begin_layout Plain Layout
21943 \begin_layout Standard
21945 \begin_inset Flex Code
21948 \begin_layout Plain Layout
21957 \begin_layout Subsubsection
21961 \begin_layout Standard
21962 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21965 \begin_layout Standard
21967 \begin_inset Flex Code
21970 \begin_layout Plain Layout
21972 \begin_inset Quotes erd
21976 \begin_inset Quotes erd
21987 \begin_layout Subsubsection
21991 \begin_layout Standard
21992 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21995 \begin_layout Standard
21997 \begin_inset Flex Code
22000 \begin_layout Plain Layout
22002 \begin_inset Quotes eld
22006 \begin_inset Quotes erd
22017 \begin_layout Subsubsection
22021 \begin_layout Standard
22022 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
22023 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
22026 ファイル\SpecialChar menuseparator
22027 名前をつけて保存\SpecialChar ldots
22030 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
22033 \begin_layout Labeling
22034 \labelwidthstring 00.00.0000
22038 \begin_layout Labeling
22039 \labelwidthstring 00.00.0000
22040 \begin_inset Flex Code
22043 \begin_layout Plain Layout
22044 git mv "<ファイル名>" "<新ファイル名>"
22052 \begin_layout Labeling
22053 \labelwidthstring 00.00.0000
22054 \begin_inset Flex Code
22057 \begin_layout Plain Layout
22066 \begin_layout Subsubsection
22070 \begin_layout Standard
22071 これは,GIT文書の全履歴を表示します.
22072 \begin_inset Flex Code
22075 \begin_layout Plain Layout
22077 \begin_inset Quotes eld
22081 \begin_inset Quotes erd
22092 \begin_layout Subsubsection
22096 \begin_layout Standard
22098 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
22100 git log -n 1 --pretty=format:%H%n%an%n%ai
22102 によって抽出されます.ツリーバージョン情報は,
22104 git describe --abbrev --dirty --long
22107 \begin_inset CommandInset ref
22109 reference "subsec:VCS改訂情報"
22116 \begin_layout Subsection
22120 \begin_layout Standard
22121 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
22122 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
22125 \begin_layout Standard
22126 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
22129 \begin_layout Description
22131 \begin_inset Flex Code
22134 \begin_layout Plain Layout
22135 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22143 \begin_layout Description
22145 \begin_inset Flex Code
22148 \begin_layout Plain Layout
22149 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22157 \begin_layout Subsection
22161 \begin_layout Standard
22163 \begin_inset Flex Code
22166 \begin_layout Plain Layout
22172 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
22174 まり便利ではありません.そこで,\SpecialChar LyX
22175 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
22177 \begin_inset Flex Code
22180 \begin_layout Plain Layout
22186 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
22188 \begin_inset Flex MenuItem
22191 \begin_layout Plain Layout
22192 旧改訂と比較\SpecialChar ldots
22198 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
22200 \begin_inset Flex MenuItem
22203 \begin_layout Plain Layout
22209 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
22212 \begin_layout Standard
22213 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
22214 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
22215 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
22218 \begin_layout Section
22222 \begin_layout Standard
22227 (kayvan@sylvan.com)改訂
22229 Edmar Wienskoski Jr.
22231 (edmar-w-jr@technologist.com)原文
22234 \begin_layout Subsection
22238 \begin_layout Standard
22239 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
22240 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
22241 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
22242 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
22245 \begin_layout Standard
22246 また,あなたが,\SpecialChar LyX
22247 の設定を変更することを厭わない程度まで\SpecialChar LyX
22248 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
22249 するトピックを扱っている,\SpecialChar LyX
22253 \begin_layout Subsection
22257 \begin_layout Standard
22258 以下は,文芸プログラミング FAQからの抜粋です.
22261 \begin_layout Quotation
22262 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
22263 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
22264 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
22266 \begin_inset space \thinspace{}
22270 Knuthが,\SpecialChar TeX
22271 組版ソフトウエアを開発中に作り出したものです.
22274 \begin_layout Standard
22278 \begin_layout Quotation
22281 文芸プログラミングは,冗長なコメント付けと何が違いますか?
22284 \begin_layout Quotation
22285 3つの際立った特徴があります.重要な順に列挙すれば,
22289 \begin_layout Itemize
22293 \begin_layout Itemize
22297 \begin_layout Itemize
22298 特に図式と数式を含んだドキュメンテーションの組版
22302 \begin_layout Quotation
22306 \begin_layout Standard
22307 あなたの興味に火を付けたところで書誌情報を見てみましょう.
22310 \begin_layout Subsubsection
22314 \begin_layout Standard
22318 \begin_layout Quote
22319 Literate Programming FAQ
22320 \begin_inset Flex URL
22323 \begin_layout Plain Layout
22325 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
22333 \begin_layout Standard
22337 \begin_layout Standard
22338 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
22339 を持つものもあります.私は自分で使うのに,いくつかの理由から
22346 \begin_layout Itemize
22347 説明文書を\SpecialChar LaTeX
22351 \begin_layout Itemize
22352 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
22355 \begin_layout Itemize
22356 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
22359 \begin_layout Itemize
22363 \begin_layout Standard
22367 \begin_layout Quote
22369 \begin_inset Flex URL
22372 \begin_layout Plain Layout
22374 http://www.cs.virginia.edu/~nr/noweb/
22382 \begin_layout Standard
22383 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
22386 \begin_layout Subsection
22388 とNowebを使った文芸プログラミング
22391 \begin_layout Standard
22393 における文芸プログラミングのサポートは,\SpecialChar LyX
22394 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
22395 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
22399 \begin_layout Subsubsection
22400 ドキュメントとコードの生成(weavingおよびtangling)
22403 \begin_layout Paragraph
22407 \begin_layout Standard
22408 Nowebと\SpecialChar LyX
22409 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
22411 文書\SpecialChar menuseparator
22414 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
22415 web」モジュールが表示され,文書に追加できるようになっています.
22418 \begin_layout Paragraph
22422 \begin_layout Standard
22425 \begin_inset Flex Noun
22428 \begin_layout Plain Layout
22434 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
22437 \begin_layout LyX-Code
22441 \begin_layout LyX-Code
22445 \begin_layout LyX-Code
22449 \begin_layout LyX-Code
22453 \begin_layout LyX-Code
22457 \begin_layout Standard
22458 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
22459 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
22461 \begin_inset Flex Noun
22464 \begin_layout Plain Layout
22470 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
22473 \begin_layout Standard
22474 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
22477 \begin_layout LyX-Code
22481 \begin_layout LyX-Code
22482 def some_function(args):
22485 \begin_layout LyX-Code
22486 "This is the doc string for this function."
22489 \begin_layout LyX-Code
22490 print "My args: ", args
22493 \begin_layout LyX-Code
22494 @ %def some_function
22497 \begin_layout Standard
22498 これをどのように使って,その結果相互参照がどうなるかは
22500 LIBDIR/examples/listerrors.lyx
22502 の中の文芸pythonプログラムを見るとよくわかります.
22505 \begin_layout Paragraph
22509 \begin_layout Standard
22510 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
22513 文書\SpecialChar menuseparator
22516 等を選ぶだけです.特別な手続きは必要ありません.
22519 \begin_layout Standard
22520 理解を助けるために,\SpecialChar LyX
22521 の内部で何が起っているかを説明しておきましょう.
22524 \begin_layout Enumerate
22527 文書\SpecialChar menuseparator
22530 が選択されると,\SpecialChar LaTeX
22535 \begin_layout Standard
22536 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
22537 \begin_inset Flex MenuItem
22540 \begin_layout Plain Layout
22546 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
22550 \begin_layout Enumerate
22551 違いがファイル名だけなのに注意してください.\SpecialChar LyX
22553 \begin_inset Flex Noun
22556 \begin_layout Plain Layout
22562 環境でコードを入力するのだけがポイントです.
22565 \begin_layout Enumerate
22566 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
22568 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
22573 \begin_layout Plain Layout
22576 ツール\SpecialChar menuseparator
22579 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
22592 を使って\SpecialChar LaTeX
22597 \begin_layout Standard
22598 それ以外の場合はこのステップを飛ばします.
22602 \begin_layout Enumerate
22603 最後に\SpecialChar LaTeX
22604 が実行され,通常の文書と同じ後処理が行われます.
22607 \begin_layout Standard
22608 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
22611 \begin_layout Paragraph
22615 \begin_layout Standard
22616 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
22617 ファイルが生成されます.それから\SpecialChar LyX
22622 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
22625 \begin_layout Enumerate
22626 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
22630 \begin_layout Enumerate
22631 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
22632 が理解できる形へ書き直します.これによって,\SpecialChar LyX
22633 はファイルバッファの正しい位置へエラーボックスを配置することができます.
22636 \begin_layout Standard
22638 \begin_inset Newline newline
22642 \begin_inset Quotes eld
22647 build-script $$i $$r
22650 \begin_inset Quotes erd
22654 \begin_inset Newline newline
22657 と指定します.これは基本的に,\SpecialChar LyX
22659 \begin_inset Quotes erd
22667 \begin_inset Quotes erd
22670 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
22671 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
22672 ファイルのディレクトリパスを使って呼び出すこ
22676 \begin_layout Standard
22677 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
22680 \begin_layout Standard
22681 \begin_inset VSpace defskip
22685 \begin_inset Newpage pagebreak
22691 \begin_layout Standard
22697 \begin_layout Standard
22703 \begin_layout Standard
22706 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22709 \begin_layout Standard
22710 \begin_inset VSpace defskip
22716 \begin_layout Standard
22717 変換子設定の次の部分は「フラグ」で,これは
22718 \begin_inset Quotes erd
22723 parselog=$$s/scripts/listerrors
22726 \begin_inset Quotes erd
22730 \begin_inset Newline newline
22734 \begin_inset Quotes erd
22738 \begin_inset Quotes erd
22742 \begin_inset Quotes erd
22746 \begin_inset Quotes erd
22752 \begin_layout Standard
22753 ビルドは,通常\SpecialChar LyX
22754 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
22755 は,主要ファイルとみなされるものをコピーして取り出
22760 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
22761 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
22762 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22765 \begin_layout Paragraph
22769 \begin_layout Standard
22772 \begin_inset Quotes eld
22776 \begin_inset Quotes erd
22779 chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22780 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22783 \begin_layout Standard
22784 以下に典型的なchunkがどのようなものかを書いておきます.
22787 \begin_layout LyX-Code
22789 \begin_inset Newline newline
22795 \begin_layout LyX-Code
22797 \begin_inset Newline newline
22801 \begin_inset Newline newline
22804 if [ -z "${NOWEB_SOURCE}" ]
22805 \begin_inset Newline newline
22811 \begin_layout LyX-Code
22812 NOWEB_SOURCE=myfile.nw
22813 \begin_inset Newline newline
22817 \begin_inset Newline newline
22821 code to extract files ...
22822 use NOWEB_OUTPUT_DIR here ...]
22823 \begin_inset Newline newline
22827 code to compile files ...]
22828 \begin_inset Newline newline
22834 \begin_layout Standard
22837 LIBDIR/examples/listerrors.lyx
22841 LIBDIR/examples/Literate.lyx
22843 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22846 LIBDIR/examples/noweb2lyx.lyx
22848 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22849 の文芸プログラミングのサポートがプログラム言語に依存しない
22853 \begin_layout Subsubsection
22858 \begin_layout Standard
22859 すべての文芸プログラムのための設定は,
22861 ツール\SpecialChar menuseparator
22864 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22867 \begin_layout Description
22868 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22880 に設定してください.これによって,\SpecialChar LyX
22881 に変換プロセスの第一段階でつくられるファイルに
22885 という拡張子をつけることを指示します.
22888 \begin_layout Description
22889 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22892 \begin_layout Description
22902 この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22904 noweave -delay -index $$i > $$o
22909 \begin_layout Description
22918 これは「tangling」を行います.上述のように,変換子は「
22920 build-script $$i $$r
22924 parselog=$$s/scripts/listerrors
22929 \begin_layout Subsubsection
22933 \begin_layout Standard
22934 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22938 \begin_layout Standard
22939 ddd/gdbでデバッグしているとき,一つの
22940 \begin_inset Flex Ruby
22943 \begin_layout Plain Layout
22945 \begin_inset Argument post:1
22948 \begin_layout Plain Layout
22959 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22960 \begin_inset Flex MenuItem
22963 \begin_layout Plain Layout
22964 ツール\SpecialChar menuseparator
22965 設定\SpecialChar menuseparator
22972 \begin_inset Flex MenuItem
22975 \begin_layout Plain Layout
22981 エントリを変えると変えることができます.
22984 \begin_layout Standard
22985 新しい\SpecialChar LyX
22986 サーバの関数と,このdddの機能を使うために
22987 \begin_inset Flex MenuItem
22990 \begin_layout Plain Layout
22999 \begin_layout Standard
23000 \begin_inset VSpace defskip
23006 \begin_layout Standard
23009 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23012 \begin_layout Standard
23013 \begin_inset VSpace defskip
23019 \begin_layout Standard
23020 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
23021 サーバに情報を送り,\SpecialChar LyX
23023 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
23026 \begin_layout Standard
23027 この機能が動くには\SpecialChar LyX
23028 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
23029 サーバーは使えないようになっています).\SpecialChar LyX
23033 \begin_inset Flex MenuItem
23036 \begin_layout Plain Layout
23049 \begin_inset Flex MenuItem
23052 \begin_layout Plain Layout
23065 \begin_inset Flex MenuItem
23068 \begin_layout Plain Layout
23082 \begin_inset Quotes eld
23087 /home/<your-home-directory>/.lyx/lyxpipe
23090 \begin_inset Quotes erd
23096 \begin_layout Standard
23098 \begin_inset CommandInset ref
23100 reference "chap:LyXサーバー"
23107 \begin_layout Subsubsection
23111 \begin_layout Standard
23112 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
23130 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
23131 \begin_inset Flex Ruby
23134 \begin_layout Plain Layout
23154 \begin_inset Argument post:1
23157 \begin_layout Plain Layout
23171 \begin_layout Standard
23173 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
23174 \begin_inset Flex MenuItem
23177 \begin_layout Plain Layout
23178 文書\SpecialChar menuseparator
23179 更新\SpecialChar menuseparator
23186 \begin_inset Flex MenuItem
23189 \begin_layout Plain Layout
23190 文書\SpecialChar menuseparator
23191 表示\SpecialChar menuseparator
23200 \begin_layout LyX-Code
23204 \begin_layout LyX-Code
23208 \begin_layout LyX-Code
23209 Icon "layout Standard"
23212 \begin_layout LyX-Code
23213 Icon "layout Section"
23216 \begin_layout LyX-Code
23217 Icon "layout \SpecialChar LaTeX
23221 \begin_layout LyX-Code
23222 Icon "layout \SpecialChar LyX
23226 \begin_layout LyX-Code
23227 Icon "layout Chunk"
23230 \begin_layout LyX-Code
23234 \begin_layout LyX-Code
23238 \begin_layout LyX-Code
23239 Icon "buffer-typeset"
23242 \begin_layout LyX-Code
23243 Icon "build-program"
23246 \begin_layout LyX-Code
23250 \begin_layout LyX-Code
23254 \begin_layout LyX-Code
23258 \begin_layout LyX-Code
23262 \begin_layout LyX-Code
23266 \begin_layout Subsubsection
23270 \begin_layout Standard
23273 \begin_inset Flex MenuItem
23276 \begin_layout Plain Layout
23282 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
23283 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
23284 フォントを使うことになっていて,文芸プログラミ
23285 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
23286 \begin_inset Flex MenuItem
23289 \begin_layout Plain Layout
23290 操作性\SpecialChar menuseparator
23299 \begin_layout Standard
23300 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
23301 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
23304 \begin_layout Subsection
23309 \begin_layout Standard
23310 knitrとSweaveへのサポートについては,用例ファイル
23316 ヘルプ\SpecialChar menuseparator
23322 \begin_layout Chapter
23324 \begin_inset CommandInset label
23326 name "chap:Special-features"
23333 \begin_layout Standard
23335 では,\SpecialChar LaTeX
23336 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
23337 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
23338 コードを使用することはできます.本章は,ユーザの興味が
23339 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
23346 \begin_layout Section
23350 \begin_layout Standard
23359 とは別の機能です.文書全体に二段組を行いたい場合には,
23363 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
23366 \begin_layout Standard
23367 文書中で多段組を行うには,\SpecialChar LaTeX
23373 \begin_inset Index idx
23376 \begin_layout Plain Layout
23378 ぱっけーじ @ \SpecialChar LaTeX
23386 文書\SpecialChar menuseparator
23387 設定\SpecialChar menuseparator
23397 \begin_layout Standard
23398 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
23402 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
23405 \begin_layout Subsection
23409 \begin_layout Standard
23410 文章中で二段組を使用したい場合には,段組を始める場所で
23412 挿入\SpecialChar menuseparator
23413 任意設定差込枠\SpecialChar menuseparator
23416 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
23419 \begin_layout Standard
23423 \begin_layout Standard
23425 \begin_inset Flex Multiple Columns
23428 \begin_layout Plain Layout
23433 The Adventure of the Empty House
23436 \begin_inset Newline newline
23439 by Sir Arthur Conan Doyle
23442 \begin_layout Plain Layout
23445 It was in the spring of the year 1894 that all London was interested, and
23446 the fashionable world dismayed, by the murder of the Honourable Ronald
23447 Adair under most unusual and inexplicable circumstances.
23448 The public has already learned those particulars of the crime which came
23449 out in the police investigation, but a good deal was suppressed upon that
23450 occasion, since the case for the prosecution was so overwhelmingly strong
23451 that it was not necessary to bring forward all the facts.
23452 Only now, at the end of nearly ten years, am I allowed to supply those
23453 missing links which make up the whole of that remarkable chain.
23454 The crime was of interest in itself, but that interest was as nothing to
23455 me compared to the inconceivable sequel, which afforded me the greatest
23456 shock and surprise of any event in my adventurous life.
23457 Even now, after this long interval, I find myself thrilling as I think
23458 of it, and feeling once more that sudden flood of joy, amazement, and increduli
23459 ty which utterly submerged my mind.
23460 Let me say to that public, which has shown some interest in those glimpses
23461 which I have occasionally given them of the thoughts and actions of a very
23462 remarkable man, that they are not to blame me if I have not shared my knowledge
23463 with them, for I should have considered it my first duty to do so, had
23464 I not been barred by a positive prohibition from his own lips, which was
23465 only withdrawn upon the third of last month.
23473 \begin_layout Standard
23474 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
23475 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
23477 \begin_inset Newline newline
23483 \begin_layout Standard
23484 \begin_inset Flex Multiple Columns
23487 \begin_layout Plain Layout
23490 \begin_inset Argument 1
23493 \begin_layout Plain Layout
23499 It can be imagined that my close intimacy with Sherlock Holmes had interested
23500 me deeply in crime, and that after his disappearance I never failed to
23501 read with care the various problems which came before the public.
23502 And I even attempted, more than once, for my own private satisfaction,
23503 to employ his methods in their solution, though with indifferent success.
23504 There was none, however, which appealed to me like this tragedy of Ronald
23506 As I read the evidence at the inquest, which led up to a verdict of willful
23507 murder against some person or persons unknown, I realized more clearly
23508 than I had ever done the loss which the community had sustained by the
23509 death of Sherlock Holmes.
23510 There were points about this strange business which would, I was sure,
23511 have specially appealed to him, and the efforts of the police would have
23512 been supplemented, or more probably anticipated, by the trained observation
23513 and the alert mind of the first criminal agent in Europe.
23514 All day, as I drove upon my round, I turned over the case in my mind and
23515 found no explanation which appeared to me to be adequate.
23516 At the risk of telling a twice-told tale, I will recapitulate the facts
23517 as they were known to the public at the conclusion of the inquest.
23525 \begin_layout Standard
23526 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
23529 \begin_layout Standard
23530 \begin_inset Newpage newpage
23536 \begin_layout Subsection
23540 \begin_layout Standard
23544 \begin_layout Standard
23545 \begin_inset Flex Multiple Columns
23548 \begin_layout Plain Layout
23551 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23552 at that time governor of one of the Australian colonies.
23553 Adair's mother had returned from Australia to undergo the operation for
23554 cataract, and she, her son Ronald, and her daughter Hilda were living together
23558 \begin_layout Plain Layout
23559 \begin_inset Flex Multiple Columns
23562 \begin_layout Plain Layout
23565 The youth moved in the best society–had, so far as was known, no enemies
23566 and no particular vices.
23567 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23568 had been broken off by mutual consent some months before, and there was
23569 no sign that it had left any very profound feeling behind it.
23570 For the rest {sic} the man's life moved in a narrow and conventional circle,
23571 for his habits were quiet and his nature unemotional.
23572 Yet it was upon this easy-going young aristocrat that death came, in most
23573 strange and unexpected form, between the hours of ten and eleven-twenty
23574 on the night of March 30, 1894.
23582 \begin_layout Plain Layout
23585 Ronald Adair was fond of cards–playing continually, but never for such stakes
23587 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23588 It was shown that, after dinner on the day of his death, he had played
23589 a rubber of whist at the latter club.
23590 He had also played there in the afternoon.
23595 The evidence of those who had played with him– Mr.
23596 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23597 and that there was a fairly equal fall of the cards.
23598 Adair might have lost five pounds, but not more.
23599 His fortune was a considerable one, and such a loss could not in any way
23601 He had played nearly every day at one club or other, but he was a cautious
23602 player, and usually rose a winner.
23603 It came out in evidence that, in partnership with Colonel Moran, he had
23604 actually won as much as four hundred and twenty pounds in a sitting, some
23605 weeks before, from Godfrey Milner and Lord Balmoral.
23606 So much for his recent history as it came out at the inquest.
23614 \begin_layout Subsection
23618 \begin_layout Standard
23619 本節の用例は,多段組のさらに特別な機能を示すためのものです.
23622 \begin_layout Standard
23623 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
23629 \begin_inset CommandInset citation
23639 \begin_layout Subsubsection
23643 \begin_layout Standard
23644 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
23646 挿入\SpecialChar menuseparator
23649 メニューを使用してください.序文は,この差込枠内に書いてください.
23650 \begin_inset Newline newline
23656 \begin_layout Standard
23657 \begin_inset VSpace bigskip
23663 \begin_layout Standard
23664 \begin_inset Flex Multiple Columns
23667 \begin_layout Plain Layout
23668 \begin_inset Argument 2
23671 \begin_layout Plain Layout
23672 And the story continues and continues and continues and continues\SpecialChar ldots
23680 On the evening of the crime, he returned from the club exactly at ten.
23681 His mother and sister were out spending the evening with a relation.
23682 The servant deposed that she heard him enter the front room on the second
23683 floor, generally used as his sitting-room.
23684 She had lit a fire there, and as it smoked she had opened the window.
23685 No sound was heard from the room until eleven-twenty, the hour of the return
23686 of Lady Maynooth and her daughter.
23687 Desiring to say good-night, she attempted to enter her son's room.
23688 The door was locked on the inside, and no answer could be got to their
23689 cries and knocking.
23690 Help was obtained, and the door forced.
23691 The unfortunate young man was found lying near the table.
23692 His head had been horribly mutilated by an expanding revolver bullet, but
23693 no weapon of any sort was to be found in the room.
23701 \begin_layout Standard
23702 最初の\SpecialChar TeX
23703 コードの後に,節宣言コマンドを\SpecialChar TeX
23704 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
23707 \begin_layout Standard
23715 \begin_layout Standard
23716 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
23719 \begin_layout Standard
23720 \begin_inset Flex Multiple Columns
23723 \begin_layout Plain Layout
23724 \begin_inset Argument 2
23727 \begin_layout Plain Layout
23731 \begin_layout Plain Layout
23744 \begin_layout Plain Layout
23758 A minute examination of the circumstances served only to make the case more
23760 In the first place, no reason could be given why the young man should have
23761 fastened the door upon the inside.
23762 There was the possibility that the murderer had done this, and had afterwards
23763 escaped by the window.
23764 The drop was at least twenty feet, however, and a bed of crocuses in full
23766 Neither the flowers nor the earth showed any sign of having been disturbed,
23767 nor were there any marks upon the narrow strip of grass which separated
23768 the house from the road.
23769 Apparently, therefore, it was the young man himself who had fastened the
23771 But how did he come by his death? No one could have climbed up to the window
23772 without leaving traces.
23773 Suppose a man had fired through the window, he would indeed be a remarkable
23774 shot who could with a revolver inflict so deadly a wound.
23775 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
23776 a hundred yards of the house.
23777 No one had heard a shot.
23785 \begin_layout Standard
23786 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
23787 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
23789 挿入\SpecialChar menuseparator
23792 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
23795 \begin_layout Standard
23798 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
23805 コードとして入力する必要があります).
23808 \begin_layout Standard
23809 \begin_inset Flex Multiple Columns
23812 \begin_layout Plain Layout
23813 \begin_inset Argument 3
23816 \begin_layout Plain Layout
23821 \begin_layout Plain Layout
23837 On the evening of the crime, he returned from the club exactly at ten.
23838 His mother and sister were out spending the evening with a relation.
23839 The servant deposed that she heard him enter the front room on the second
23840 floor, generally used as his sitting-room.
23841 She had lit a fire there, and as it smoked she had opened the window.
23842 No sound was heard from the room until eleven-twenty, the hour of the return
23843 of Lady Maynooth and her daughter.
23844 Desiring to say good-night, she attempted to enter her son's room.
23845 The door was locked on the inside, and no answer could be got to their
23846 cries and knocking.
23847 Help was obtained, and the door forced.
23848 The unfortunate young man was found lying near the table.
23849 His head had been horribly mutilated by an expanding revolver bullet, but
23850 no weapon of any sort was to be found in the room.
23858 \begin_layout Subsubsection
23862 \begin_layout Standard
23869 を変えることで変更することができます.例えば,\SpecialChar TeX
23873 \begin_layout Standard
23883 \begin_layout Standard
23885 \begin_inset space \thinspace{}
23888 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23889 \begin_inset space \thinspace{}
23895 \begin_layout Standard
23903 \begin_inset space \thinspace{}
23909 \begin_layout Standard
23913 \begin_layout Plain Layout
23919 multicolsep}{2.5cm}
23927 \begin_layout Standard
23928 \begin_inset Flex Multiple Columns
23931 \begin_layout Plain Layout
23934 All day I turned these facts over in my mind, endeavouring to hit upon some
23935 theory which could reconcile them all, and to find that line of least resistanc
23936 e which my poor friend had declared to be the starting-point of every investigat
23938 I confess that I made little progress.
23939 In the evening I strolled across the Park, and found myself about six o'clock
23940 at the Oxford Street end of Park Lane.
23941 A group of loafers upon the pavements, all staring up at a particular window,
23942 directed me to the house which I had come to see.
23943 A tall, thin man with coloured glasses, whom I strongly suspected of being
23944 a plain-clothes detective, was pointing out some theory of his own, while
23945 the others crowded round to listen to what he said.
23946 I got as near him as I could, but his observations seemed to me to be absurd,
23947 so I withdrew again in some disgust.
23948 As I did so I struck against an elderly, deformed man, who had been behind
23949 me, and I knocked down several books which he was carrying.
23957 \begin_layout Standard
23958 \begin_inset Note Greyedout
23961 \begin_layout Plain Layout
23968 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23976 \begin_layout Standard
23980 \begin_layout Plain Layout
23992 \begin_inset Note Note
23995 \begin_layout Plain Layout
23998 go back to the default
24006 \begin_layout Standard
24007 \begin_inset Newpage newpage
24013 \begin_layout Subsubsection
24017 \begin_layout Standard
24018 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
24025 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
24026 \begin_inset Newline newline
24032 \begin_layout Standard
24033 \begin_inset Flex Multiple Columns
24036 \begin_layout Plain Layout
24039 \begin_inset Quotes eld
24042 You're surprised to see me, sir,
24043 \begin_inset Quotes erd
24046 said he, in a strange, croaking voice.
24049 \begin_layout Plain Layout
24052 I acknowledged that I was.
24055 \begin_layout Plain Layout
24058 \begin_inset Quotes eld
24061 Well, I've a conscience, sir, and when I chanced to see you go into this
24062 house, as I came hobbling after you, I thought to myself, I'll just step
24063 in and see that kind gentleman, and tell him that if I was a bit gruff
24064 in my manner there was not any harm meant, and that I am much obliged to
24065 him for picking up my books.
24066 \begin_inset Quotes erd
24072 \begin_layout Plain Layout
24075 \begin_inset Quotes eld
24078 You make too much of a trifle,
24079 \begin_inset Quotes erd
24084 \begin_inset Quotes eld
24087 May I ask how you knew who I was?
24088 \begin_inset Quotes erd
24091 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24095 \begin_layout Plain Layout
24107 \begin_layout Plain Layout
24110 \begin_inset Quotes eld
24113 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24114 you'll find my little bookshop at the corner of Church Street, and very
24115 happy to see you, I am sure.
24116 Maybe you collect yourself, sir.
24120 \begin_inset space ~
24133 –a bargain, every one of them.
24134 With five volumes you could just fill that gap on that second shelf.
24135 It looks untidy, does it not, sir?
24136 \begin_inset Quotes erd
24147 \begin_layout Subsubsection
24151 \begin_layout Standard
24152 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
24158 を変更することで実現できます.既定値は10
24159 \begin_inset space \thinspace{}
24169 \begin_inset space \thinspace{}
24175 \begin_layout Standard
24179 \begin_layout Plain Layout
24193 \begin_layout Standard
24194 \begin_inset Flex Multiple Columns
24197 \begin_layout Plain Layout
24200 My observations of No.
24201 \begin_inset space \space{}
24204 427 Park Lane did little to clear up the problem in which I was interested.
24205 The house was separated from the street by a low wall and railing, the
24206 whole not more than five feet high.
24207 It was perfectly easy, therefore, for anyone to get into the garden, but
24208 the window was entirely inaccessible, since there was no water pipe or
24209 anything which could help the most active man to climb it.
24210 More puzzled than ever, I retraced my steps to Kensington.
24211 I had not been in my study five minutes when the maid entered to say that
24212 a person desired to see me.
24213 To my astonishment it was none other than my strange old book collector,
24214 his sharp, wizened face peering out from a frame of white hair, and his
24215 precious volumes, a dozen of them at least, wedged under his right arm.
24223 \begin_layout Standard
24227 \begin_layout Plain Layout
24239 \begin_inset Note Note
24242 \begin_layout Plain Layout
24245 go back to the default
24253 \begin_layout Subsubsection
24257 \begin_layout Standard
24264 の幅を持つ罫線が描かれます.罫線幅を0
24265 \begin_inset space \thinspace{}
24268 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
24269 \begin_inset space \thinspace{}
24275 \begin_layout Standard
24279 \begin_layout Plain Layout
24285 columnseprule}{2pt}
24293 \begin_layout Standard
24294 \begin_inset Flex Multiple Columns
24297 \begin_layout Plain Layout
24300 \begin_inset Quotes eld
24303 You're surprised to see me, sir,
24304 \begin_inset Quotes erd
24307 said he, in a strange, croaking voice.
24310 \begin_layout Plain Layout
24313 I acknowledged that I was.
24316 \begin_layout Plain Layout
24319 \begin_inset Quotes eld
24322 Well, I've a conscience, sir, and when I chanced to see you go into this
24323 house, as I came hobbling after you, I thought to myself, I'll just step
24324 in and see that kind gentleman, and tell him that if I was a bit gruff
24325 in my manner there was not any harm meant, and that I am much obliged to
24326 him for picking up my books.
24327 \begin_inset Quotes erd
24333 \begin_layout Plain Layout
24336 \begin_inset Quotes eld
24339 You make too much of a trifle,
24340 \begin_inset Quotes erd
24345 \begin_inset Quotes eld
24348 May I ask how you knew who I was?
24349 \begin_inset Quotes erd
24355 \begin_layout Plain Layout
24358 \begin_inset Quotes eld
24361 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24362 you'll find my little bookshop at the corner of Church Street, and very
24363 happy to see you, I am sure.
24364 Maybe you collect yourself, sir.
24368 \begin_inset space ~
24381 –a bargain, every one of them.
24382 With five volumes you could just fill that gap on that second shelf.
24383 It looks untidy, does it not, sir?
24384 \begin_inset Quotes erd
24395 \begin_layout Standard
24396 \begin_inset VSpace defskip
24402 \begin_layout Standard
24409 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
24410 コードで以下のコマンドを挿入すれば,実現できます.
24411 \begin_inset Newline newline
24420 columnseprulecolor}{
24425 \begin_inset Newline newline
24432 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
24440 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
24441 \begin_inset Newline newline
24450 columnseprulecolor}{
24455 \begin_inset Newline newline
24459 \begin_inset space \thinspace{}
24465 \begin_layout Standard
24469 \begin_layout Plain Layout
24478 \begin_layout Plain Layout
24484 columnseprulecolor}{
24494 \begin_layout Standard
24495 \begin_inset Flex Multiple Columns
24498 \begin_layout Plain Layout
24501 \begin_inset Quotes eld
24504 You're surprised to see me, sir,
24505 \begin_inset Quotes erd
24508 said he, in a strange, croaking voice.
24511 \begin_layout Plain Layout
24514 I acknowledged that I was.
24517 \begin_layout Plain Layout
24520 \begin_inset Quotes eld
24523 Well, I've a conscience, sir, and when I chanced to see you go into this
24524 house, as I came hobbling after you, I thought to myself, I'll just step
24525 in and see that kind gentleman, and tell him that if I was a bit gruff
24526 in my manner there was not any harm meant, and that I am much obliged to
24527 him for picking up my books.
24528 \begin_inset Quotes erd
24534 \begin_layout Plain Layout
24537 \begin_inset Quotes eld
24540 You make too much of a trifle,
24541 \begin_inset Quotes erd
24546 \begin_inset Quotes eld
24549 May I ask how you knew who I was?
24550 \begin_inset Quotes erd
24556 \begin_layout Plain Layout
24559 \begin_inset Quotes eld
24562 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24563 you'll find my little bookshop at the corner of Church Street, and very
24564 happy to see you, I am sure.
24565 Maybe you collect yourself, sir.
24569 \begin_inset space ~
24582 –a bargain, every one of them.
24583 With five volumes you could just fill that gap on that second shelf.
24584 It looks untidy, does it not, sir?
24585 \begin_inset Quotes erd
24596 \begin_layout Standard
24600 \begin_layout Plain Layout
24606 columnseprule}{0pt}
24609 \begin_layout Plain Layout
24615 columnseprulecolor}{
24623 \begin_inset Note Note
24626 \begin_layout Plain Layout
24629 go back to the default
24637 \begin_layout Standard
24638 \begin_inset Newpage newpage
24644 \begin_layout Section
24648 \begin_layout Standard
24651 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
24656 モジュールを読み込んで,\SpecialChar LaTeX
24661 を使用させるようにすれば,実現できます.
24664 \begin_layout Subsection
24668 \begin_layout Standard
24676 \begin_layout Standard
24677 \begin_inset Tabular
24678 <lyxtabular version="3" rows="13" columns="3">
24679 <features booktabs="true" islongtable="true" longtabularalignment="center">
24680 <column alignment="center" valignment="middle" width="16col%">
24681 <column alignment="center" valignment="middle" width="40col%">
24682 <column alignment="center" valignment="middle" width="35col%">
24683 <row endhead="true">
24684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24687 \begin_layout Plain Layout
24693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24696 \begin_layout Plain Layout
24702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24705 \begin_layout Plain Layout
24713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24716 \begin_layout Plain Layout
24722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24725 \begin_layout Plain Layout
24726 丸い穴の開いたドーナツ型(CD/DVD大)
24731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24734 \begin_layout Plain Layout
24735 伸縮不可.多くの文字を入れられないことに注意.
24742 <cell alignment="center" valignment="top" topline="true" usebox="none">
24745 \begin_layout Plain Layout
24751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24754 \begin_layout Plain Layout
24760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24763 \begin_layout Plain Layout
24771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24774 \begin_layout Plain Layout
24780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24783 \begin_layout Plain Layout
24785 \begin_inset Quotes eld
24789 \begin_inset Quotes erd
24797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24800 \begin_layout Plain Layout
24808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24811 \begin_layout Plain Layout
24817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24820 \begin_layout Plain Layout
24826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24829 \begin_layout Plain Layout
24837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24840 \begin_layout Plain Layout
24846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24849 \begin_layout Plain Layout
24855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24858 \begin_layout Plain Layout
24866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24869 \begin_layout Plain Layout
24875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24878 \begin_layout Plain Layout
24884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24887 \begin_layout Plain Layout
24895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24898 \begin_layout Plain Layout
24904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24907 \begin_layout Plain Layout
24913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24916 \begin_layout Plain Layout
24924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24927 \begin_layout Plain Layout
24933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24936 \begin_layout Plain Layout
24942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24945 \begin_layout Plain Layout
24953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24956 \begin_layout Plain Layout
24962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24965 \begin_layout Plain Layout
24971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24974 \begin_layout Plain Layout
24982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24985 \begin_layout Plain Layout
24991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24994 \begin_layout Plain Layout
25000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25003 \begin_layout Plain Layout
25011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25014 \begin_layout Plain Layout
25021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25024 \begin_layout Plain Layout
25031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25034 \begin_layout Plain Layout
25042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25045 \begin_layout Plain Layout
25047 \begin_inset Newline newline
25055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25058 \begin_layout Plain Layout
25064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25067 \begin_layout Plain Layout
25081 \begin_layout Standard
25082 段落に形を適用するには,\SpecialChar LyX
25083 ツールバー中の環境プルダウンボックスから形を選んでください.
25086 \begin_layout Standard
25087 \begin_inset Newpage newpage
25093 \begin_layout Standard
25097 \begin_layout Standard
25098 \begin_inset VSpace bigskip
25107 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25108 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25110 At vero eos et accusam et justo duo dolores et ea rebum.
25111 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25113 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25114 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25118 \begin_layout Standard
25119 \begin_inset VSpace bigskip
25125 \begin_layout Standard
25126 \begin_inset Note Greyedout
25129 \begin_layout Plain Layout
25134 shapepar段落は改頁にまたがることはできません.
25142 \begin_layout Standard
25143 \begin_inset VSpace bigskip
25149 \begin_layout Standard
25154 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
25155 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
25158 \begin_layout Standard
25159 \begin_inset Newpage newpage
25168 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25169 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25171 At vero eos et accusam et justo duo dolores et ea rebum.
25172 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25174 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25175 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25177 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25178 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25180 At vero eos et accusam et justo duo dolores et ea rebum.
25181 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25183 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25184 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25188 \begin_layout Standard
25189 \begin_inset VSpace bigskip
25195 \begin_layout Standard
25200 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
25201 \begin_inset Newline newline
25212 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
25213 \begin_inset Quotes eld
25216 Arithmetic overflow
25217 \begin_inset Quotes erd
25220 という\SpecialChar LaTeX
25221 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
25224 \begin_layout Standard
25225 \begin_inset VSpace bigskip
25231 \begin_layout Standard
25232 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
25233 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
25238 arg "specialchar-insert hyphenation"
25243 )を指定することが往々にして必要になります.
25246 \begin_layout Standard
25247 \begin_inset VSpace bigskip
25253 \begin_layout Standard
25254 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
25255 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
25256 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
25257 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
25260 \begin_layout Standard
25261 \begin_inset Newpage newpage
25267 \begin_layout Heart
25271 Lo\SpecialChar softhyphen
25272 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25273 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25275 At vero eos et accusam et justo duo dolores et ea rebum.
25276 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25280 \begin_layout Standard
25281 \begin_inset VSpace bigskip
25287 \begin_layout Standard
25290 \begin_inset Box Frameless
25300 height_special "totalheight"
25305 backgroundcolor "none"
25308 \begin_layout Heart
25312 Lo\SpecialChar softhyphen
25313 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25314 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25316 At vero eos et accusam et justo duo dolores et ea rebum.
25317 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25326 \begin_layout Subsection
25330 \begin_layout Standard
25331 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
25332 ように,コンピューターに座標を計算させる方法もあります.
25335 \begin_layout Enumerate
25337 \begin_inset CommandInset href
25340 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
25348 \begin_layout Enumerate
25355 TeX/LaTeX\SpecialChar menuseparator
25356 Settings\SpecialChar menuseparator
25359 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
25360 \begin_inset space \thinspace{}
25366 \begin_layout Enumerate
25370 \begin_layout Enumerate
25373 TeX/LaTeX\SpecialChar menuseparator
25376 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
25380 \begin_layout Plain Layout
25382 \begin_inset CommandInset href
25384 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
25397 \begin_layout Standard
25398 座標は\SpecialChar TeX
25399 ファイルに書き込まれます.これを\SpecialChar LyX
25403 \begin_layout Enumerate
25404 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
25407 \begin_layout Enumerate
25411 挿入\SpecialChar menuseparator
25412 ファイル\SpecialChar menuseparator
25426 \begin_layout Standard
25427 \begin_inset VSpace defskip
25433 \begin_layout Standard
25434 \begin_inset Note Greyedout
25437 \begin_layout Plain Layout
25442 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
25450 \begin_layout Standard
25451 \begin_inset VSpace bigskip
25457 \begin_layout Standard
25461 \begin_layout Standard
25462 \begin_inset VSpace bigskip
25468 \begin_layout Standard
25469 \begin_inset CommandInset include
25471 filename "../SpecialParagraphShape.tex"
25477 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25478 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25480 At vero eos et accusam et justo duo dolores et ea rebum.
25481 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25483 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25484 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25488 \begin_layout Standard
25489 \begin_inset VSpace bigskip
25495 \begin_layout Standard
25503 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
25507 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
25510 \begin_layout Standard
25511 \begin_inset VSpace bigskip
25517 \begin_layout Standard
25530 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
25534 \begin_layout Plain Layout
25535 これらのコマンドは,上述の全ての形で内部的に使用されています.
25540 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
25545 \begin_inset CommandInset citation
25555 \begin_layout Bibliography
25556 \begin_inset CommandInset bibitem
25557 LatexCommand bibitem
25565 \begin_inset CommandInset href
25568 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25576 \begin_layout Bibliography
25577 \begin_inset CommandInset bibitem
25578 LatexCommand bibitem
25586 \begin_inset CommandInset href
25589 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"