1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
8 % DO NOT ALTER THIS PREAMBLE!!!
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected. If you
13 % have problems LaTeXing this file, please contact
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
17 \IfFileExists{pxjahyper.sty}
18 {\usepackage{pxjahyper}}
20 % the pages of the TOC are numbered roman
21 % and a PDF-bookmark for the TOC is added
23 \let\myTOC\tableofcontents
24 \renewcommand{\tableofcontents}{%
25 \pdfbookmark[1]{\contentsname}{}
28 \pagenumbering{arabic}}
30 % extra space for tables
31 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
35 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
36 \use_default_options false
44 \maintain_unincluded_children false
47 InsetLayout Flex:MenuItem
56 \newcommand*{\menuitem}[1]{{\sffamily #1}}
65 Decoration Conglomerate
69 Decoration Conglomerate
79 \IfFileExists{okumacro.sty}
80 {\usepackage{okumacro}}
81 {\newcommand{\ruby}[2]{#2}}
86 \language_package default
89 \font_roman "default" "default"
90 \font_sans "default" "default"
91 \font_typewriter "default" "default"
92 \font_math "auto" "auto"
93 \font_default_family default
94 \use_non_tex_fonts false
97 \font_sf_scale 100 100
98 \font_tt_scale 100 100
100 \default_output_format default
102 \bibtex_command default
103 \index_command default
107 \pdf_title "LyX's Additional Features manual"
108 \pdf_author "LyX Team"
109 \pdf_subject "LyX's additional features documentation"
110 \pdf_keywords "LyX, Documentation, Additional"
112 \pdf_bookmarksnumbered true
113 \pdf_bookmarksopen false
114 \pdf_bookmarksopenlevel 1
115 \pdf_breaklinks false
119 \pdf_pdfusetitle false
120 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
123 \use_package amsmath 1
124 \use_package amssymb 1
125 \use_package cancel 0
127 \use_package mathdots 1
128 \use_package mathtools 0
129 \use_package mhchem 1
130 \use_package stackrel 0
131 \use_package stmaryrd 0
132 \use_package undertilde 0
134 \cite_engine_type default
138 \paperorientation portrait
142 \notefontcolor #0000ff
149 \paragraph_separation indent
150 \paragraph_indentation default
151 \quotes_language english
154 \paperpagestyle headings
155 \tracking_changes false
156 \output_changes false
167 \begin_inset Newline newline
181 \begin_layout Plain Layout
182 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX
184 \begin_inset Flex Code
187 \begin_layout Plain Layout
191 <lyx-docs@lists.lyx.org>
196 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
204 \begin_layout Standard
205 \begin_inset CommandInset toc
206 LatexCommand tableofcontents
213 \begin_layout Chapter
217 \begin_layout Standard
227 』の第二部です。これらの文書を別部とした理由は、単純に『
235 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialChar LyX
236 プロジェクトチームは、\SpecialChar LyX
237 を各設定ファイルと外部パッケージによって拡張
238 可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialChar LaTeX
239 パッケージをサポートしたい場合に、\SpecialChar LyX
240 自身に変更を加えることなく、当該パッケージ用のレイアウトファイ
241 ル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています。この取扱説明書は、そのよう
242 な形での貢献を文書化する冊子として位置付けられています。
245 \begin_layout Standard
246 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
247 しています。さらに、\SpecialChar LaTeX
248 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialChar LaTeX
249 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialChar LyX
251 ることを企図しているため、\SpecialChar LaTeX
252 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
255 \begin_layout Standard
260 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
264 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
268 』をよくお読みになって、\SpecialChar LyX
272 \begin_layout Standard
273 この取扱説明書の取り上げられている話題は、\SpecialChar LyX
275 にどう関わっているかに強く関係していますので、まず次章では、\SpecialChar LyX
276 の内部動作がどうなっているか、LyXに希望する\SpecialChar LaTeX
278 確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialChar LyX
282 \begin_layout Chapter
288 \begin_layout Section
294 \begin_layout Standard
305 熟練者と\SpecialChar LaTeX
306 に興味のある方向けの章です。ここでは、\SpecialChar LyX
308 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全取扱説明書中で本章だけは、\SpecialChar LaTeX
310 を多少なりともご存知であることを前提とします。
313 \begin_layout Standard
324 は、「\SpecialChar LaTeX
343 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialChar LaTeX
344 のフロントエンドは、いくつも出回っています
348 \begin_layout Plain Layout
358 有名なものとしては、Linux上の\SpecialChar TeX
359 makerとkile、OSX上の\SpecialChar TeX
360 shopなどがあります。もちろんviとemacsの\SpecialChar LaTeX
366 。これらは、基本的に\SpecialChar LaTeX
367 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialChar LyX
368 も、エディタであり、\SpecialChar LaTeX
370 中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
389 を効果的に使うのに、\SpecialChar LaTeX
390 の知識が必要とされないことが挙げられます。また\SpecialChar LyX
391 は、それ自身、いくつかの拡張を\SpecialChar LaTeX
392 に加えています。時間のあるときにでも、いちど以下の手順を試してみ
403 \begin_inset Flex MenuItem
406 \begin_layout Plain Layout
433 \begin_inset Flex MenuItem
436 \begin_layout Plain Layout
439 エクスポート\SpecialChar menuseparator
465 \begin_inset Flex MenuItem
468 \begin_layout Plain Layout
471 表示\SpecialChar menuseparator
487 \begin_inset Flex Code
490 \begin_layout Plain Layout
498 ファイルのプリアンブルをご覧ください。\SpecialChar LyX
499 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
508 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
511 \begin_layout Standard
521 自動的に\SpecialChar LaTeX
522 を実行するコマンドが、以下のようにいくつかあります。
525 \begin_layout Itemize
526 \begin_inset Flex MenuItem
529 \begin_layout Plain Layout
530 表示\SpecialChar menuseparator
541 \begin_layout Itemize
544 \begin_inset Flex MenuItem
547 \begin_layout Plain Layout
550 表示\SpecialChar menuseparator
551 更新\SpecialChar menuseparator
562 \begin_layout Itemize
565 \begin_inset Flex MenuItem
568 \begin_layout Plain Layout
569 ファイル\SpecialChar menuseparator
578 \begin_layout Itemize
581 \begin_inset Flex MenuItem
584 \begin_layout Plain Layout
585 ファイル\SpecialChar menuseparator
594 \begin_layout Standard
604 これらは、最後に\SpecialChar LaTeX
605 を実行してからファイルに変更が加えられた場合のみ、\SpecialChar LaTeX
609 \begin_layout Standard
620 が編集中のファイルを\SpecialChar LaTeX
621 にかけるとき、\SpecialChar LyX
625 \begin_layout Enumerate
635 文書を\SpecialChar LaTeX
637 \begin_inset Flex Code
640 \begin_layout Plain Layout
656 \begin_inset Flex Code
659 \begin_layout Plain Layout
677 \begin_layout Enumerate
688 \begin_inset Flex Code
691 \begin_layout Plain Layout
706 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
707 を実行し、\SpecialChar LaTeX
708 ファイルをコンパイルするのに必要な他のコマンド(
709 \begin_inset Flex Code
712 \begin_layout Plain Layout
728 \begin_inset Flex Code
731 \begin_layout Plain Layout
749 \begin_layout Enumerate
762 \begin_layout Standard
783 \begin_inset Flex MenuItem
786 \begin_layout Plain Layout
789 表示\SpecialChar menuseparator
804 を使用して実行した場合には、\SpecialChar LyX
805 はこの後、DVIビューアを実行してDVIファイルを表示します。
806 \begin_inset Flex MenuItem
809 \begin_layout Plain Layout
819 表示\SpecialChar menuseparator
825 を使用した場合には、\SpecialChar LyX
829 \begin_layout Itemize
839 \begin_inset Flex Code
842 \begin_layout Plain Layout
880 \begin_layout Itemize
890 \begin_inset Flex Code
893 \begin_layout Plain Layout
901 などのPostScript®ビューアを実行して、PostScript®
913 \begin_layout Standard
915 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
918 \begin_layout Section
920 ファイルを\SpecialChar LyX
924 \begin_layout Standard
929 \begin_inset Flex MenuItem
932 \begin_layout Plain Layout
935 ファイル\SpecialChar menuseparator
936 インポート\SpecialChar menuseparator
952 コマンドを使用すると、\SpecialChar LaTeX
970 にインポートすることができます。このコマンドは、
980 \begin_inset Flex Code
983 \begin_layout Plain Layout
1010 \begin_inset Flex Code
1013 \begin_layout Plain Layout
1024 \begin_inset Flex Code
1027 \begin_layout Plain Layout
1035 を生成します。\SpecialChar LyX
1040 \begin_layout Plain Layout
1041 \begin_inset Flex Code
1044 \begin_layout Plain Layout
1050 は、もちろんコマンドラインから実行することもできます。
1058 \begin_layout Standard
1061 \begin_inset Flex Code
1064 \begin_layout Plain Layout
1081 は、文法的に正しい\SpecialChar LaTeX
1082 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1092 \begin_inset Flex Code
1095 \begin_layout Plain Layout
1112 は、理解不能な部分は\SpecialChar TeX
1113 コードボックスの形で残しますので、ファイルを
1123 \begin_inset Flex Code
1126 \begin_layout Plain Layout
1143 で変換したのち、\SpecialChar TeX
1144 コードボックスを探して、手動で正しく編集してください。
1147 \begin_layout Standard
1158 コードボックスがなにかご存じなければ、次節をお読みください。
1161 \begin_layout Section
1164 \begin_inset CommandInset label
1166 name "sec:LaTeXコードを挿入する"
1173 \begin_layout Standard
1184 文書にもつねに\SpecialChar TeX
1185 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialChar LaTeX
1186 にできることは、つねに\SpecialChar LyX
1187 でも行うことができます。一方、\SpecialChar LyX
1188 は、すべての\SpecialChar LaTeX
1189 構成物を\SpecialChar LyX
1191 表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialChar LaTeX
1192 コマンドを\SpecialChar LyX
1194 \begin_inset Flex Code
1197 \begin_layout Plain Layout
1223 \begin_inset Flex MenuItem
1226 \begin_layout Plain Layout
1229 挿入\SpecialChar menuseparator
1255 \begin_inset Flex Ruby
1258 \begin_layout Plain Layout
1278 \begin_inset Argument post:1
1281 \begin_layout Plain Layout
1293 \begin_inset Flex Ruby
1296 \begin_layout Plain Layout
1307 \begin_inset Argument post:1
1310 \begin_layout Plain Layout
1339 \begin_layout Standard
1340 以下は、\SpecialChar LaTeX
1341 コマンドを\SpecialChar LyX
1342 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1345 \begin_layout LyX-Code
1349 \begin_inset Newline newline
1354 begin{minipage}{5cm}
1355 \begin_inset Newline newline
1359 \begin_inset Newline newline
1363 \begin_inset Newline newline
1367 \begin_inset Newline newline
1371 \begin_inset Newline newline
1375 \begin_inset Newline newline
1381 \begin_inset Newline newline
1385 \begin_inset Newline newline
1390 begin{minipage}{5cm}
1391 \begin_inset Newline newline
1397 \begin_inset Newline newline
1402 begin{minipage}{5cm}
1403 \begin_inset Newline newline
1408 \begin_inset Newline newline
1414 \begin_inset Newline newline
1420 \begin_inset Newline newline
1426 \begin_inset Newline newline
1434 \begin_layout LyX-Code
1438 \begin_layout Standard
1440 \begin_inset Flex Code
1443 \begin_layout Plain Layout
1450 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialChar LyX
1451 上でご覧になっていれば、\SpecialChar TeX
1452 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実際の結果が見
1456 \begin_layout Standard
1457 \begin_inset VSpace bigskip
1464 \begin_layout Plain Layout
1471 \begin_layout Plain Layout
1475 begin{minipage}{5cm}
1478 \begin_layout Plain Layout
1480 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。
1485 \begin_layout Plain Layout
1490 \begin_layout Plain Layout
1494 begin{minipage}{5cm}
1497 \begin_layout Plain Layout
1504 \begin_layout Plain Layout
1508 begin{minipage}{5cm}
1511 \begin_layout Plain Layout
1519 \begin_layout Plain Layout
1526 \begin_layout Plain Layout
1533 \begin_layout Plain Layout
1543 \begin_inset VSpace bigskip
1549 \begin_layout Standard
1560 コードを使用する方法に加えて、複雑な\SpecialChar LaTeX
1561 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1562 \begin_inset Flex MenuItem
1565 \begin_layout Plain Layout
1575 挿入\SpecialChar menuseparator
1576 ファイル\SpecialChar menuseparator
1582 を使用する方法もあります(取り込みの型として
1583 \begin_inset Flex Code
1586 \begin_layout Plain Layout
1601 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1619 場合のみに限った方がよいでしょう。さもないと、\SpecialChar LaTeX
1620 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1623 \begin_layout Standard
1633 最後に、いくつか強調しておくべきことがあります。
1636 \begin_layout Itemize
1647 は、あなたの\SpecialChar LaTeX
1669 \begin_layout Itemize
1679 車輪の再発明をしないようにご注意ください。
1682 \begin_layout Standard
1692 二番目の点に関して、\SpecialChar LyX
1693 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialChar LaTeX
1694 コードを書かなくてはならないと思い込む前に、LyXがこれこれの
1695 機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありとあらゆることを行
1696 う膨大な数の\SpecialChar LaTeX
1707 \begin_inset CommandInset href
1710 target "http://www.ctan.org/"
1724 \begin_inset CommandInset ref
1726 reference "chap:Special-features"
1733 \begin_layout Standard
1743 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialChar LaTeX
1744 関連書籍を参考とするようにしてください。『
1762 』の書誌情報に多くの\SpecialChar LaTeX
1766 \begin_layout Section
1772 \begin_layout Subsection
1777 \begin_layout Standard
1787 すでに\SpecialChar LaTeX
1788 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は得られるは
1789 ずです。詳しくは\SpecialChar LaTeX
1790 関連書籍をご参照ください。いずれにしても、以下で\SpecialChar LyX
1791 文書の\SpecialChar LaTeX
1792 プリアンブルで何ができるか、または何をする必要がないか説明をしますので、以下の各要点はお読
1796 \begin_layout Standard
1807 プリアンブルは、\SpecialChar LaTeX
1826 の部分に来ます。ここでは以下のことを行います。
1829 \begin_layout Itemize
1839 文書クラス(ドキュメントクラス)の宣言。
1840 \begin_inset Newline newline
1844 がすでに行ってくれています。もしあなたが熟達した\SpecialChar LaTeX
1845 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1863 』をご覧になれば、\SpecialChar LyX
1864 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1867 \begin_layout Itemize
1878 \begin_inset Newline newline
1882 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別なコマンドが
1883 提供されることに加え、文書に変更を加えることができます。例えば
1902 \begin_inset Flex Code
1905 \begin_layout Plain Layout
1913 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1916 \begin_layout Itemize
1927 \begin_inset Newline newline
1931 のカウンタと変数の中には、プリアンブルでグローバルに
1951 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1952 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1955 \begin_layout Itemize
1966 \begin_inset Flex Code
1969 \begin_layout Plain Layout
1987 \begin_inset Flex Code
1990 \begin_layout Plain Layout
2008 \begin_inset Newline newline
2011 ユーザー定義コマンドは、文書中で頻出する\SpecialChar LaTeX
2012 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2030 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialChar LaTeX
2031 コードがあふれている場合には便利でしょう。
2034 \begin_layout Standard
2046 \begin_inset Flex Code
2049 \begin_layout Plain Layout
2064 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialChar LyX
2065 の生成する\SpecialChar LaTeX
2069 \begin_layout Subsection
2073 \begin_layout Standard
2085 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialChar LyX
2086 自体にパッチを当てないかぎり変更できないようになっています。しかしながら、
2087 \begin_inset Flex MenuItem
2090 \begin_layout Plain Layout
2100 文書\SpecialChar menuseparator
2107 \begin_inset Flex MenuItem
2110 \begin_layout Plain Layout
2126 の項から、プリアンブルに追加をすることはできます。\SpecialChar LyX
2137 \begin_inset Flex MenuItem
2140 \begin_layout Plain Layout
2157 ダイアログ内のすべてのものを、\SpecialChar LyX
2158 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialChar LyX
2160 ないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2171 プリアンブルコードが正しいことを確認してください。
2184 \begin_inset Flex Code
2187 \begin_layout Plain Layout
2204 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2207 \begin_layout Subsection
2211 \begin_layout Standard
2221 以下は、プリアンブルに追加できるものとその効果を示す例です。
2224 \begin_layout Subsubsection
2228 \begin_layout Standard
2258 \begin_inset Flex Code
2261 \begin_layout Plain Layout
2281 \begin_inset Flex Code
2284 \begin_layout Plain Layout
2303 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2304 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2305 \begin_inset Flex Code
2308 \begin_layout Plain Layout
2328 \begin_inset Flex Code
2331 \begin_layout Plain Layout
2346 \begin_layout Standard
2356 \begin_inset Flex Code
2359 \begin_layout Plain Layout
2379 \begin_inset Flex Code
2382 \begin_layout Plain Layout
2401 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2402 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialChar LyX
2403 を使用していて、シスアドがお馬鹿さんである
2405 \begin_inset Flex Code
2408 \begin_layout Plain Layout
2428 \begin_inset Flex Code
2431 \begin_layout Plain Layout
2450 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2453 \begin_layout LyX-Code
2461 \begin_layout LyX-Code
2469 \begin_layout Standard
2482 \begin_layout Subsubsection
2486 \begin_layout Standard
2496 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2497 \begin_inset Flex Code
2500 \begin_layout Plain Layout
2508 という\SpecialChar LaTeX
2509 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお確かめくだ
2510 さい。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だけお見せす
2514 \begin_layout Standard
2525 \begin_inset Flex Code
2528 \begin_layout Plain Layout
2536 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2539 \begin_layout LyX-Code
2545 \begin_layout LyX-Code
2551 \begin_layout LyX-Code
2557 \begin_layout LyX-Code
2563 \begin_layout LyX-Code
2569 \begin_layout LyX-Code
2575 \begin_layout LyX-Code
2581 \begin_layout Standard
2600 Avery®ラベルシートのストック5360
2609 番を使用する場合の設定です。これで、各宛名を
2610 \begin_inset Flex Code
2613 \begin_layout Plain Layout
2633 \begin_inset Flex Code
2636 \begin_layout Plain Layout
2655 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2656 \begin_inset Flex Code
2659 \begin_layout Plain Layout
2670 \begin_layout Standard
2680 そのうち誰かが、このパッケージを直接サポートする\SpecialChar LyX
2681 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2684 \begin_layout Subsubsection
2688 \begin_layout Standard
2718 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2735 \begin_layout Standard
2745 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2763 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2767 \begin_layout Standard
2777 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2781 \begin_layout LyX-Code
2784 usepackage{indentfirst}
2787 \begin_layout Standard
2797 もしお使いの\SpecialChar TeX
2798 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2801 \begin_layout Subsubsection
2805 \begin_layout Standard
2815 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2825 \begin_inset CommandInset ref
2827 reference "chap:Special-features"
2840 章には、他の例や、\SpecialChar LaTeX
2844 \begin_layout Section
2846 および\SpecialChar LaTeX
2850 \begin_layout Standard
2862 を呼び出す際、\SpecialChar LyX
2864 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialChar LyX
2865 は、\SpecialChar LaTeX
2866 の実行ログファイルを事後処理用に使います。ログファイルを分
2867 析したのち、\SpecialChar LyX
2868 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialChar LyX
2869 ファイル中、そのエラーの発生した場所に表示を移動します
2873 \begin_layout Plain Layout
2883 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialChar LyX
2884 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialChar LaTeX
2886 たとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されますが、実際にエラ
2887 ーのある場所よりも後ろでエラーが報告されるのです。
2904 \begin_layout Standard
2914 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2915 \begin_inset Flex MenuItem
2918 \begin_layout Plain Layout
2928 文書\SpecialChar menuseparator
2935 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La\SpecialChar TeX
2940 \begin_layout Itemize
2943 \begin_inset Flex Code
2946 \begin_layout Plain Layout
2953 \begin_layout Plain Layout
2975 \begin_inset Newline newline
2978 これで始まるメッセージは、\SpecialChar LaTeX
2979 コード自体を「デバッグ」するための警告メッセージです。相互参照や書誌情報を追加したり変更した場合に、もう一度\SpecialChar LaTeX
2981 知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2984 \begin_layout Itemize
2987 \begin_inset Flex Code
2990 \begin_layout Plain Layout
2997 \begin_layout Plain Layout
3019 \begin_inset Newline newline
3023 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialChar LaTeX
3024 が使用した代替フォントに関する情報が続きます。これも無視して構いません
3028 \begin_layout Itemize
3038 \begin_inset Flex Code
3041 \begin_layout Plain Layout
3052 \begin_inset Newline newline
3074 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3075 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialChar LaTeX
3076 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3077 \begin_inset Newline newline
3080 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3084 \begin_layout Plain Layout
3086 \begin_inset Flex MenuItem
3089 \begin_layout Plain Layout
3090 文書\SpecialChar menuseparator
3096 で「draft」オプションを指定する方法もあります。こうすると、\SpecialChar LaTeX
3097 は、overfullの発生した行の余白に黒い四角を描画します。
3105 \begin_layout Itemize
3108 \begin_inset Flex Code
3111 \begin_layout Plain Layout
3122 \begin_inset Newline newline
3134 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialChar LaTeX
3135 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3138 \begin_layout Itemize
3139 \begin_inset Flex Code
3142 \begin_layout Plain Layout
3155 \begin_inset Flex Code
3158 \begin_layout Plain Layout
3171 \begin_inset Newline newline
3183 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3186 \begin_layout Itemize
3189 \begin_inset Flex Code
3192 \begin_layout Plain Layout
3199 \begin_layout Plain Layout
3207 \begin_inset Quotes els
3211 \begin_inset Quotes ers
3229 \begin_inset Newline newline
3232 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialChar LaTeX
3233 パッケージに、導入済でないものがある場合に現れます。プリアンブルに変更を加
3235 \begin_inset Flex Code
3238 \begin_layout Plain Layout
3248 コマンドも使用していないとすれば、\SpecialChar LyX
3249 が読み込もうしているパッケージに存在しないものがあるということです。
3259 \begin_inset Flex MenuItem
3262 \begin_layout Plain Layout
3263 ヘルプ\SpecialChar menuseparator
3279 を使用して、\SpecialChar LyX
3280 が認識しているパッケージの一覧を得てください。このファイルは、(
3281 \begin_inset Flex MenuItem
3284 \begin_layout Plain Layout
3294 ツール\SpecialChar menuseparator
3300 を使用して)\SpecialChar LyX
3301 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3302 \begin_inset Newline newline
3315 \begin_inset Flex Code
3318 \begin_layout Plain Layout
3337 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3340 \begin_layout Itemize
3343 \begin_inset Flex Code
3346 \begin_layout Plain Layout
3353 \begin_layout Plain Layout
3360 X Error: Unknown option
3375 \begin_inset Newline newline
3378 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3382 \begin_layout Itemize
3385 \begin_inset Flex Code
3388 \begin_layout Plain Layout
3391 Undefined control sequence
3406 \begin_inset Newline newline
3409 お使いの文書に\SpecialChar LaTeX
3410 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれません。い
3411 ずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3414 \begin_layout Standard
3424 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialChar LaTeX
3425 のメッセージです。何を言っているのかさっぱりわからないものもあ
3426 りますが、通常これらは、\SpecialChar TeX
3427 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3445 手がかりがありません。誰もわからないのです。
3448 \begin_layout Standard
3458 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3461 \begin_layout Enumerate
3471 ご自分で挿入した\SpecialChar LaTeX
3472 コードに打ち間違いがないかどうか確かめる。
3475 \begin_layout Enumerate
3485 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3488 \begin_layout Enumerate
3498 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3499 \begin_inset Flex Code
3502 \begin_layout Plain Layout
3519 が表示されているならば—、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3522 \begin_layout Enumerate
3532 プリアンブルに何も追加せず、文書に\SpecialChar LaTeX
3533 コードをまったく挿入しなかった場合には、\SpecialChar LaTeX
3534 頒布版自体をまず疑ってください。導入されていないパッケージを探しだして、導入してくださ
3538 \begin_layout Enumerate
3548 導入されていないパッケージはなかったものとしましょう。\SpecialChar LyX
3549 を微調整するオプションを使用していますか。特に、手動で
3550 \begin_inset Flex Code
3553 \begin_layout Plain Layout
3557 \begin_inset space ~
3566 \begin_inset Flex Code
3569 \begin_layout Plain Layout
3587 \begin_inset Flex Code
3590 \begin_layout Plain Layout
3607 などをたくさん挿入するなど、微調整オプションを
3625 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3628 \begin_layout Enumerate
3638 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3639 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3642 \begin_layout Enumerate
3644 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialChar LaTeX
3645 はかなり嫌います。可能であれば、問題が生じな
3646 いように段落を修正するのが望ましいでしょう。
3649 \begin_layout Enumerate
3659 入れ子の階層を深くしすぎていませんか。\SpecialChar LyX
3660 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら、それ
3661 が原因です(\SpecialChar LaTeX
3665 \begin_layout Enumerate
3675 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3683 \begin_inset Separator parbreak
3690 \begin_layout Enumerate
3703 \begin_layout Enumerate
3716 \begin_layout Standard
3730 \begin_layout Enumerate
3731 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3734 \begin_layout Standard
3766 \begin_layout Chapter
3770 \begin_layout Section
3775 \begin_layout Standard
3783 文献データベース(Bib\SpecialChar TeX
3786 」の節に説明があります。以下の各小節では、\SpecialChar LyX
3787 でサポートされている書誌情報の特別な機能について説明することとします。
3790 \begin_layout Subsection
3794 \begin_layout Standard
3795 標準のBib\SpecialChar TeX
3796 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。もっとも
3797 よく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialChar LyX
3799 \begin_inset Flex Code
3802 \begin_layout Plain Layout
3809 \begin_inset Flex Code
3812 \begin_layout Plain Layout
3818 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3820 \begin_inset Flex Code
3823 \begin_layout Plain Layout
3829 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3830 \begin_inset Flex Code
3833 \begin_layout Plain Layout
3839 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3844 \begin_inset Flex Code
3847 \begin_layout Plain Layout
3853 パッケージの利用を考えるとよいかもしれません。
3856 \begin_layout Standard
3858 での両パッケージの取扱い方は、ほぼ同じです。
3859 \begin_inset Flex MenuItem
3862 \begin_layout Plain Layout
3863 文書\SpecialChar menuseparator
3870 \begin_inset Flex MenuItem
3873 \begin_layout Plain Layout
3880 \begin_inset Flex MenuItem
3883 \begin_layout Plain Layout
3890 \begin_inset Flex MenuItem
3893 \begin_layout Plain Layout
3899 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3900 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3901 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3902 \begin_inset Flex Code
3905 \begin_layout Plain Layout
3911 に至っては、対話的なスタイルファイルビルダーさえ存在します
3915 \begin_layout Plain Layout
3916 \begin_inset Flex URL
3919 \begin_layout Plain Layout
3921 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3934 \begin_layout Subsection
3938 \begin_layout Standard
3939 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3940 でさえあります。残念ながら、Bib\SpecialChar TeX
3941 自身ではこのようなことができません。しかし、適切な\SpecialChar LaTeX
3942 パッケージの助けを借りると、Bib\SpecialChar TeX
3943 をこのような必要性を満たすように拡張するこ
3947 \begin_layout Standard
3950 \begin_inset Flex Code
3953 \begin_layout Plain Layout
3963 \begin_layout Plain Layout
3964 \begin_inset Flex URL
3967 \begin_layout Plain Layout
3969 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3979 をそのままでサポートします。このパッケージの長所は、(
3980 \begin_inset Flex Code
3983 \begin_layout Plain Layout
3989 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
3990 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
3991 \begin_inset Flex Code
3994 \begin_layout Plain Layout
4001 \begin_inset Flex Code
4004 \begin_layout Plain Layout
4013 \begin_layout Standard
4014 \begin_inset Flex MenuItem
4017 \begin_layout Plain Layout
4018 文書\SpecialChar menuseparator
4025 \begin_inset Flex MenuItem
4028 \begin_layout Plain Layout
4035 \begin_inset Flex MenuItem
4038 \begin_layout Plain Layout
4044 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialChar TeX
4046 \begin_inset Flex Code
4049 \begin_layout Plain Layout
4056 \begin_inset Flex Code
4059 \begin_layout Plain Layout
4065 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4066 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4067 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4069 \begin_inset Flex Code
4072 \begin_layout Plain Layout
4078 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4081 \begin_layout Subsection
4085 \begin_layout Standard
4086 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialChar TeX
4087 自身ではサポートされていません。しかしながら、もし若干の
4088 \begin_inset Flex Code
4091 \begin_layout Plain Layout
4099 \begin_inset CommandInset ref
4101 reference "sec:LaTeXコードを挿入する"
4105 節を参照)を利用することを厭わなければ、\SpecialChar LyX
4106 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4107 \begin_inset Flex Code
4110 \begin_layout Plain Layout
4116 パッケージが、この課題を解決する簡単な方法を提供します
4120 \begin_layout Plain Layout
4122 \begin_inset Flex Code
4125 \begin_layout Plain Layout
4132 \begin_inset Flex Code
4135 \begin_layout Plain Layout
4149 \begin_layout Standard
4151 \begin_inset Flex MenuItem
4154 \begin_layout Plain Layout
4155 文書\SpecialChar menuseparator
4162 \begin_inset Flex MenuItem
4165 \begin_layout Plain Layout
4172 \begin_inset Flex MenuItem
4175 \begin_layout Plain Layout
4181 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialChar TeX
4183 \begin_inset Flex Code
4186 \begin_layout Plain Layout
4195 \begin_inset Flex Code
4198 \begin_layout Plain Layout
4206 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4207 コードとして挿入する必要があります)。書誌情報には、現在位置の
4208 \begin_inset Flex Code
4211 \begin_layout Plain Layout
4217 において引用されたすべての参照が含まれることになります。
4221 この方法を用いる場合には、すべての参照はいずれかの
4222 \begin_inset Flex Code
4225 \begin_layout Plain Layout
4232 \begin_inset Flex Code
4235 \begin_layout Plain Layout
4244 \begin_layout Section
4248 \begin_layout Subsection
4252 \begin_layout Standard
4253 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4254 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4255 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialChar LyX
4256 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4260 \begin_layout Plain Layout
4265 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4271 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4272 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4273 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりません。a
4274 rticleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialChar LaTeX
4275 ファイルをインクルードすることもできますが、このファイルにはプリアンブルがあって
4277 \begin_inset Flex Code
4280 \begin_layout Plain Layout
4289 \begin_inset Flex Code
4292 \begin_layout Plain Layout
4300 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4303 \begin_layout Standard
4307 挿入\SpecialChar menuseparator
4308 ファイル\SpecialChar menuseparator
4311 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4312 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4315 \begin_layout Standard
4316 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4317 「input」の違いは、正確には\SpecialChar LaTeX
4318 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁から組版さ
4319 れるのに対し、「input」されたファイルは現在のページから組版される点です。
4322 \begin_layout Standard
4323 一般に、マスターファイルは、組版前に完全な\SpecialChar LaTeX
4324 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialChar LaTeX
4328 \begin_layout Standard
4329 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4330 \begin_inset Flex Code
4333 \begin_layout Plain Layout
4339 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialChar LyX
4340 での空白の取扱いとは違って、連続した複数の空白がそのまま出力されるものの
4344 \begin_inset Flex MenuItem
4347 \begin_layout Plain Layout
4357 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4360 \begin_layout Subsection
4364 \begin_layout Standard
4365 \begin_inset Box Shadowbox
4375 height_special "totalheight"
4380 backgroundcolor "none"
4383 \begin_layout Plain Layout
4384 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4392 \begin_layout Standard
4393 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4394 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4398 \begin_layout Subsection
4402 \begin_layout Standard
4403 \begin_inset Box Shadowbox
4413 height_special "totalheight"
4418 backgroundcolor "none"
4421 \begin_layout Plain Layout
4422 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4430 \begin_layout Standard
4431 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialChar LyX
4432 は.bibファイルを見つけることができ、書誌情報
4433 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4436 \begin_layout Standard
4437 書誌情報一覧がコメントにあるために、\SpecialChar LaTeX
4438 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメントをイン
4439 クルードする\SpecialChar LaTeX
4441 \begin_inset Flex Code
4444 \begin_layout Plain Layout
4450 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4453 \begin_layout LyX-Code
4459 \begin_layout LyX-Code
4462 includecomment{comment}
4465 \begin_layout Standard
4466 \begin_inset Flex URL
4469 \begin_layout Plain Layout
4471 http://wiki.lyx.org/FAQ/Unsorted#toc31
4479 \begin_layout Section
4484 \begin_layout Standard
4485 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialChar LyX
4486 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります。\SpecialChar LyX
4488 2.0には、この過程を自動化するPythonスクリプト(
4489 \begin_inset Flex Code
4492 \begin_layout Plain Layout
4499 \begin_inset Flex Code
4502 \begin_layout Plain Layout
4509 \begin_inset Flex Code
4512 \begin_layout Plain Layout
4518 pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4519 \begin_inset Flex Code
4522 \begin_layout Plain Layout
4529 \begin_inset Flex Code
4532 \begin_layout Plain Layout
4538 ファイル形式が優先され、Windowsでは
4539 \begin_inset Flex Code
4542 \begin_layout Plain Layout
4551 \begin_layout Standard
4553 の環境構成時には、「\SpecialChar LyX
4554 書庫」を書き出すことができるようにスクリプトが準備され、
4555 \begin_inset Flex MenuItem
4558 \begin_layout Plain Layout
4559 ファイル\SpecialChar menuseparator
4568 \begin_layout Standard
4569 \begin_inset Flex MenuItem
4572 \begin_layout Plain Layout
4573 ツール\SpecialChar menuseparator
4574 設定\SpecialChar menuseparator
4575 ファイル処理\SpecialChar menuseparator
4582 \begin_inset Flex MenuItem
4585 \begin_layout Plain Layout
4587 \SpecialChar menuseparator
4595 \begin_inset Flex Code
4598 \begin_layout Plain Layout
4605 \begin_inset Flex Code
4608 \begin_layout Plain Layout
4614 スイッチを加えることで、プラットホームとは独立に、
4615 \begin_inset Flex Code
4618 \begin_layout Plain Layout
4625 \begin_inset Flex Code
4628 \begin_layout Plain Layout
4634 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4637 \begin_layout Section
4641 \begin_layout Standard
4642 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4643 \begin_inset Flex Code
4646 \begin_layout Plain Layout
4652 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4657 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialChar LaTeX
4659 る必要のある\SpecialChar LaTeX
4663 \begin_layout Standard
4664 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4665 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4669 \begin_inset Flex Code
4672 \begin_layout Plain Layout
4687 \begin_inset Flex Code
4690 \begin_layout Plain Layout
4705 \begin_inset Flex Code
4708 \begin_layout Plain Layout
4721 \begin_inset Flex Code
4724 \begin_layout Plain Layout
4732 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4735 \begin_layout Standard
4743 \begin_layout Standard
4744 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4748 \begin_layout Standard
4754 \begin_inset Newline newline
4762 \begin_layout Standard
4763 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4764 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4767 \begin_layout Standard
4777 \begin_layout Standard
4785 \begin_layout Standard
4795 \begin_layout Standard
4803 \begin_layout Standard
4811 \begin_layout Standard
4821 \begin_layout Standard
4825 \begin_inset Flex Code
4828 \begin_layout Plain Layout
4845 \begin_inset Flex Code
4848 \begin_layout Plain Layout
4860 は、それぞれ\SpecialChar LaTeX
4861 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4862 \begin_inset Flex Code
4865 \begin_layout Plain Layout
4880 \begin_layout Standard
4881 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4882 フッタ罫線は0ptです。太さを変更するには、
4885 \begin_inset Flex Code
4888 \begin_layout Plain Layout
4895 headrulewidth}{0.4pt}
4905 \begin_inset Flex Code
4908 \begin_layout Plain Layout
4915 footrulewidth}{0.4pt}
4925 \begin_layout Standard
4926 \begin_inset Flex Code
4929 \begin_layout Plain Layout
4934 thispagestyle{empty}
4940 \begin_inset Flex Code
4943 \begin_layout Plain Layout
4948 thispagestyle{plain}
4954 \begin_inset Flex Code
4957 \begin_layout Plain Layout
4962 thispagestyle{fancy}
4967 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialChar TeX
4969 挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプレーン
4970 (plain)になるように設定されているのです。
4973 \begin_layout Standard
4974 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4975 \begin_inset Flex Code
4978 \begin_layout Plain Layout
4986 パッケージの取扱説明書をご参照ください(
4987 \begin_inset Flex Code
4990 \begin_layout Plain Layout
4999 \begin_layout Standard
5000 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5003 \begin_layout Standard
5012 includegraphics{logo.eps}}}
5015 \begin_layout Standard
5017 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5018 \begin_inset Newline newline
5022 \begin_inset Flex Code
5025 \begin_layout Plain Layout
5031 usepackage{graphics}
5036 をプリアンブルに宣言する必要があります)。
5039 \begin_layout Section
5041 \begin_inset CommandInset label
5050 \begin_layout Standard
5056 \begin_layout Subsection
5060 \begin_layout Standard
5062 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形を変更
5063 することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5067 \begin_layout Plain Layout
5068 正確には可能ですが、手動で行う必要があります。
5076 \begin_layout Subsection
5080 \begin_layout Standard
5082 \begin_inset Flex MenuItem
5085 \begin_layout Plain Layout
5086 文書\SpecialChar menuseparator
5093 \begin_inset Flex MenuItem
5096 \begin_layout Plain Layout
5105 \begin_layout Standard
5106 このダイアログは、ブリット形の一覧表を提示します。
5107 \begin_inset Flex MenuItem
5110 \begin_layout Plain Layout
5116 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5117 \begin_inset Flex MenuItem
5120 \begin_layout Plain Layout
5126 パネルは、変更したい階層を選択するものです。
5127 \begin_inset Flex MenuItem
5130 \begin_layout Plain Layout
5136 では、指定したい\SpecialChar LaTeX
5137 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5141 \begin_layout Standard
5142 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialChar LaTeX
5144 \begin_inset Separator parbreak
5150 \begin_layout Standard
5152 \begin_inset Tabular
5153 <lyxtabular version="3" rows="7" columns="2">
5154 <features tabularvalignment="middle">
5155 <column alignment="center" valignment="top" width="0pt">
5156 <column alignment="center" valignment="top" width="0pt">
5158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5161 \begin_layout Plain Layout
5167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5170 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5190 \begin_layout Plain Layout
5198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5201 \begin_layout Plain Layout
5220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5223 \begin_layout Plain Layout
5238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5241 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5261 \begin_layout Plain Layout
5276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5279 \begin_layout Plain Layout
5296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5299 \begin_layout Plain Layout
5314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5317 \begin_layout Plain Layout
5334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5337 \begin_layout Plain Layout
5352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5355 \begin_layout Plain Layout
5372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5375 \begin_layout Plain Layout
5390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5393 \begin_layout Plain Layout
5416 \begin_layout Standard
5418 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5420 パッケージが導入されていない可能性が大です
5424 \begin_layout Plain Layout
5426 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5434 \begin_layout Subsection
5438 \begin_layout Standard
5439 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialChar LyX
5440 上には反映されませんが、文書の表示を行えば確認されます。
5443 \begin_layout Standard
5444 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5448 \begin_layout Plain Layout
5453 段落ごとに異なるブリットの形を使いたいならば、\SpecialChar TeX
5454 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTeXコー
5455 ドを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5458 \begin_layout Plain Layout
5462 \begin_layout Plain Layout
5478 \begin_layout Plain Layout
5482 \begin_layout Plain Layout
5504 \begin_layout Itemize
5505 特定の階層の新しいブリット形を指定するには、\SpecialChar LaTeX
5507 \begin_inset Flex Code
5510 \begin_layout Plain Layout
5520 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5521 更するために、以下の\SpecialChar LaTeX
5523 \begin_inset Separator parbreak
5530 \begin_layout LyX-Code
5542 \begin_layout LyX-Code
5561 \begin_layout Itemize
5563 \begin_inset Flex Code
5566 \begin_layout Plain Layout
5574 コマンドの一部にローマ数字で指定されていることに注意してください。
5577 \begin_layout Itemize
5581 \begin_layout Plain Layout
5594 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5595 \begin_inset Flex Code
5598 \begin_layout Plain Layout
5605 として挿入してください。たとえば、この項目の行頭には
5608 \begin_inset Flex Code
5611 \begin_layout Plain Layout
5630 \begin_layout Plain Layout
5634 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5651 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5654 \begin_layout LyX-Code
5671 \begin_layout Chapter
5676 \begin_layout Standard
5678 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書き出し
5679 は、常に外部変換子を用いることで実現されていました
5683 \begin_layout Plain Layout
5685 で外部変換子を使うことについての詳細は、取扱説明書『
5698 。これらは2つのグループに大別できます。1つは、
5699 \begin_inset Flex Code
5702 \begin_layout Plain Layout
5709 \begin_inset Flex Code
5712 \begin_layout Plain Layout
5719 \begin_inset Flex Code
5722 \begin_layout Plain Layout
5728 のように、\SpecialChar LaTeX
5729 を中間形式として用い、その\SpecialChar LaTeX
5730 を生成するのに\SpecialChar LyX
5732 \begin_inset Flex Code
5735 \begin_layout Plain Layout
5742 のように、直接\SpecialChar LyX
5743 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5746 \begin_layout Standard
5748 ベースの変換子は、原則として、\SpecialChar LaTeX
5749 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだりが、\SpecialChar LyX
5751 たのか、\SpecialChar TeX
5752 コードで書かれたのかについては気にしません。これらの変換子は、
5753 \begin_inset Flex Code
5756 \begin_layout Plain Layout
5762 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialChar TeX
5764 \begin_inset Flex Code
5767 \begin_layout Plain Layout
5773 ファイルも利用することがよくあります。一方で、\SpecialChar LaTeX
5774 は解析の非常に難しい言語であり—\SpecialChar TeX
5775 自身だけが\SpecialChar TeX
5776 を理解することができると言われたりすることがあります—、\SpecialChar LaTeX
5778 、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書いている時点では、取扱説明書『
5782 』は、他の変換子では書き出しができるのに、
5783 \begin_inset Flex Code
5786 \begin_layout Plain Layout
5792 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5793 画像へのリンクを張ります。これらの画像は、実は\SpecialChar LaTeX
5794 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現されるよう
5795 に—フォント寸が凡そ正しくなるように—見せようとすると、大変な苦労を伴います。
5798 \begin_layout Standard
5800 \begin_inset Flex Code
5803 \begin_layout Plain Layout
5811 \begin_inset CommandInset href
5813 name "http://elyxer.nongnu.org/"
5814 target "http://elyxer.nongnu.org/"
5818 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5819 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5820 \begin_inset Flex Code
5823 \begin_layout Plain Layout
5829 よりも質が落ちます。これはHTMLの限界を示しています
5833 \begin_layout Plain Layout
5835 \begin_inset Flex Code
5838 \begin_layout Plain Layout
5845 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5851 。さらに重要なことは(少なくとも第1.1.1版においては)、
5852 \begin_inset Flex Code
5855 \begin_layout Plain Layout
5862 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialChar LyX
5864 \begin_inset Flex Code
5867 \begin_layout Plain Layout
5874 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialChar LyX
5875 開発陣は別の方法を採ることとし、\SpecialChar LyX
5878 ことができるのと同様に、\SpecialChar LyX
5879 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5882 \begin_layout Standard
5883 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5887 \begin_layout Plain Layout
5890 \begin_inset CommandInset href
5893 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5898 \begin_inset Flex Code
5901 \begin_layout Plain Layout
5902 development/HTML.notes
5907 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5908 \begin_inset CommandInset href
5911 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"
5915 にあるXHTML関連バグ一覧も参照のこと。
5920 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5923 \begin_layout Standard
5924 これらの利点は、主に、XHTML出力ルーチンが\SpecialChar LyX
5925 の一部となっているため、\SpecialChar LyX
5926 が出力する文書について\SpecialChar LyX
5927 が関知しているところのものは、すべて知り得るというところから来ていま
5932 \begin_layout Plain Layout
5933 他には、これらのルーチンが\SpecialChar LyX
5934 内部にあるため、\SpecialChar LyX
5935 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5940 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5941 るのです。XHTML出力ルーチンは、国際化について\SpecialChar LyX
5942 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5943 1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5946 \begin_layout Standard
5947 汎く一般的に、出力ルーチンは、\SpecialChar LyX
5948 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書をXHT
5949 MLに出力するときには、この情報を利用します。特に、\SpecialChar LyX
5950 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5954 生成します。もし節見出しが、\SpecialChar LyX
5955 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これは、節
5956 のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialChar LyX
5958 式とを区別しません。どちらの場合も、\SpecialChar LyX
5959 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義済み差込枠や、各種
5963 \begin_layout Standard
5964 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialChar LaTeX
5965 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細については、
5973 \begin_layout Standard
5974 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
5977 \begin_layout Section
5981 \begin_layout Standard
5983 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
5986 \begin_layout Itemize
5988 \begin_inset Newline newline
5991 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
5992 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
5994 \begin_inset Newline newline
5998 \begin_inset Flex Code
6001 \begin_layout Plain Layout
6007 パッケージを使用していたり、\SpecialChar TeX
6008 コードを使用しているなどで、もし\SpecialChar LyX
6009 が数式をMathMLとして描画できないとすると、\SpecialChar LyX
6014 \begin_layout Itemize
6016 \begin_inset Newline newline
6020 \begin_inset Flex Code
6023 \begin_layout Plain Layout
6029 は、数式をCSSで装飾したHTMLとして出力します
6033 \begin_layout Plain Layout
6036 \begin_inset Flex Code
6039 \begin_layout Plain Layout
6045 からのHTML出力のために、CSSの一部を拝借しています。
6050 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6051 \begin_inset Flex Code
6054 \begin_layout Plain Layout
6060 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6061 \begin_inset Newline newline
6065 \begin_inset Flex Code
6068 \begin_layout Plain Layout
6074 パッケージを使用していたり、\SpecialChar TeX
6075 コードを使用しているなどで、もし\SpecialChar LyX
6076 が数式をHTMLとして描画できないとすると、\SpecialChar LyX
6081 \begin_layout Itemize
6083 \begin_inset Newline newline
6087 \begin_inset Flex Code
6090 \begin_layout Plain Layout
6096 のように、\SpecialChar LyX
6097 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6101 \begin_layout Plain Layout
6102 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6111 。この方法の利点は、画像が他ならぬ\SpecialChar LaTeX
6112 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くうまく行かな
6113 かったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6114 \begin_inset CommandInset href
6117 target "http://www.lyx.org/trac/ticket/6894"
6122 \begin_inset Newline newline
6126 \begin_inset Flex MenuItem
6129 \begin_layout Plain Layout
6130 文書\SpecialChar menuseparator
6131 設定\SpecialChar menuseparator
6137 の「数式画像の伸縮」パラメータを変更することで制御できます
6141 \begin_layout Plain Layout
6142 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6148 \begin_inset Newline newline
6152 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialChar LaTeX
6153 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialChar LaTeX
6157 \begin_layout Itemize
6160 \begin_inset Newline newline
6163 最後に、\SpecialChar LyX
6164 は、数式を\SpecialChar LaTeX
6165 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialChar LaTeX
6168 \begin_inset CommandInset href
6171 target "http://www.math.union.edu/~dpvc/jsMath/"
6175 のようなツールとともに使用することもできます。\SpecialChar LyX
6176 は、jsMathで必要とされているのと同じように、\SpecialChar LaTeX
6178 \begin_inset Flex Code
6181 \begin_layout Plain Layout
6188 \begin_inset Flex Code
6191 \begin_layout Plain Layout
6198 \begin_inset Flex Code
6201 \begin_layout Plain Layout
6210 \begin_layout Standard
6212 \begin_inset Flex MenuItem
6215 \begin_layout Plain Layout
6216 文書\SpecialChar menuseparator
6217 設定\SpecialChar menuseparator
6223 で選択しなくてはなりません。既定では、\SpecialChar LyX
6224 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6227 \begin_layout Standard
6228 最後に、\SpecialChar LyX
6229 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6233 \begin_layout Plain Layout
6234 その他にも、\SpecialChar LyX
6235 は、差込枠に\SpecialChar TeX
6236 コードが含まれていると画像出力に回帰するので、数式中に
6237 \begin_inset Formula $a=b\relax$
6240 のような無害な\SpecialChar TeX
6241 コードを挿入することによって、画像出力を強制することができます。
6249 \begin_layout Section
6253 \begin_layout Standard
6254 XHTML出力は、書誌情報と引用を完全にサポートしています。
6257 \begin_layout Standard
6258 引用ラベルは、\SpecialChar LyX
6259 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialChar LyX
6260 中の外見と同質またはそれよりも上質な仕上がりとなっています。連番引用を
6261 使用している場合には、\SpecialChar LyX
6262 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力します。著者-出版年
6263 形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialChar LyX
6264 は、Bib\SpecialChar TeX
6265 が行うように出版年に小文字を付します。ラベルは、書誌情報項目とともに印字さ
6266 れます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6269 \begin_layout Standard
6270 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6271 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6275 \begin_layout Standard
6276 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6281 \begin_inset Quotes eld
6284 Context and Logical Form
6285 \begin_inset Quotes erd
6290 Language in Context: Selected Essays
6292 (Oxford: Oxford University Press, 2007), pp.
6298 \begin_inset Quotes eld
6301 Semantics in Context
6302 \begin_inset Quotes erd
6307 Language in Context: Selected Essays
6309 (Oxford: Oxford University Press, 2007), pp.
6313 \begin_layout Standard
6314 これは、遠くないうちに修正されるでしょう。
6317 \begin_layout Standard
6318 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialChar LyX
6319 は同じ情報を繰り返し出力してしまいます。
6322 \begin_layout Section
6326 \begin_layout Standard
6328 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6331 \begin_layout Standard
6336 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6340 \begin_layout Plain Layout
6341 ここでの主な問題は、これらの操作の際に、\SpecialChar LyX
6342 自身は何もしていないという点です。つまり、生の\SpecialChar LaTeX
6343 で入力しなくてはならないようなものをそのまま入力しているのです。
6348 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6351 \begin_layout Itemize
6352 索引項目のグループ化(下層項目): \SpecialChar LyX
6353 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そうしな
6354 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6357 \begin_layout Itemize
6358 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6362 \begin_layout Itemize
6363 相互参照: 相互参照のサポートはありません。\SpecialChar LyX
6364 が「|see\SpecialChar ldots
6365 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみなされま
6369 \begin_layout Itemize
6370 索引項目の整序: \SpecialChar LyX
6371 は整序順の変更をサポートします。\SpecialChar LyX
6372 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項目として取り
6373 出します。現在のところ、\SpecialChar LyX
6374 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6377 \begin_layout Itemize
6378 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialChar LyX
6379 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf」のよ
6380 うな文法はサポートされません。\SpecialChar LyX
6381 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6384 \begin_layout Itemize
6385 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6386 を印字しますので、その索引は必ず置くようにしてください。
6389 \begin_layout Section
6393 \begin_layout Standard
6394 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6397 \begin_layout Chapter
6400 \begin_inset CommandInset label
6409 \begin_layout Section
6413 \begin_layout Standard
6415 サーバー」を使用すると、他のプログラムが、\SpecialChar LyX
6416 と通信したり、\SpecialChar LyX
6417 コマンドを実行させたり、\SpecialChar LyX
6418 の内部状態に関する情報を取得したりすることができるようになります。これは熟練し
6419 たユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialChar LyX
6420 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、LyXに文献引用を「押し込む」こ
6424 \begin_layout Section
6429 \begin_layout Standard
6431 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6432 \begin_inset Flex Code
6435 \begin_layout Plain Layout
6441 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6446 \begin_inset Flex Code
6449 \begin_layout Plain Layout
6461 に特別なオブジェクトとして置かれます)、「
6462 \begin_inset Flex Code
6465 \begin_layout Plain Layout
6472 \begin_inset Flex Code
6475 \begin_layout Plain Layout
6481 」という名前がついています。外部プログラムは、
6482 \begin_inset Flex Code
6485 \begin_layout Plain Layout
6492 \begin_inset Flex Code
6495 \begin_layout Plain Layout
6502 \begin_inset Flex MenuItem
6505 \begin_layout Plain Layout
6506 ツール\SpecialChar menuseparator
6513 \begin_inset Flex Code
6516 \begin_layout Plain Layout
6517 /home/myhome/lyxpipe
6523 \begin_inset Flex Code
6526 \begin_layout Plain Layout
6542 (where any working path instead of lyxpipe can be used, for example
6543 \begin_inset Flex Code
6546 \begin_layout Plain Layout
6575 \begin_layout Standard
6578 \begin_inset Flex Code
6581 \begin_layout Plain Layout
6588 \begin_inset Flex Code
6591 \begin_layout Plain Layout
6597 」を付け加えます。パイプがすでに存在していれば、\SpecialChar LyX
6599 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システムでは、なん
6600 らかの理由で、\SpecialChar LyX
6601 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialChar LyX
6602 はこれを削除しようとします。何らかの理由でこれが失敗した場合、手動でパイ
6603 プを削除したのちに、\SpecialChar LyX
6604 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削除するので、「古い」パイプが残
6608 \begin_layout Standard
6609 サーバーを使用する\SpecialChar LyX
6610 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6611 \begin_inset Flex Code
6614 \begin_layout Plain Layout
6620 ファイルを使用させるなど、別々の設定を使用する必要があります。
6623 \begin_layout Standard
6624 クライアントプログラムを開発しようとされているのであれば、\SpecialChar LyX
6625 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6626 \begin_inset Flex Code
6629 \begin_layout Plain Layout
6638 \begin_layout Standard
6639 C++言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6640 \begin_inset Newline newline
6644 \begin_inset Flex Code
6647 \begin_layout Plain Layout
6648 development/lyxserver/server_monitor.cpp
6656 \begin_layout Standard
6658 \begin_inset Flex Code
6661 \begin_layout Plain Layout
6662 src/client/lyxclient
6667 にあるコマンドラインベースのクライアントがあります。
6670 \begin_layout Section
6674 \begin_layout Standard
6676 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6693 \begin_layout Description
6694 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialChar LyX
6696 る際、クライアント名をエコーするときだけです。
6699 \begin_layout Description
6700 関数 は、\SpecialChar LyX
6701 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6704 \begin_layout Description
6705 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6708 \begin_layout Standard
6727 \begin_layout Standard
6736 は、コマンド要求からそのままエコーされますが、
6740 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialChar LyX
6741 の内部状態に関する情報を返しますが、空のデータ応答
6742 を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6745 \begin_layout Standard
6746 エラーが発生した場合の\SpecialChar LyX
6764 \begin_layout Standard
6769 には、なぜコマンドが失敗したかの説明が入っているはずです。
6772 \begin_layout Standard
6776 \begin_layout LyX-Code
6777 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6778 \begin_inset Newline newline
6781 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6782 \begin_inset Newline newline
6785 read a <~/.lyxpipe.out
6786 \begin_inset Newline newline
6792 \begin_layout Section
6796 \begin_layout Standard
6798 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6799 \begin_inset Flex Ruby
6802 \begin_layout Plain Layout
6804 \begin_inset Argument post:1
6807 \begin_layout Plain Layout
6818 列を関数「notify」に割り当てているときのみ、\SpecialChar LyX
6819 はこの通知を行います。\SpecialChar LyX
6824 \begin_inset Flex Code
6827 \begin_layout Plain Layout
6838 \begin_layout Standard
6843 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6846 \begin_layout Standard
6847 この機構は、\SpecialChar LyX
6848 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待機する
6849 クライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialChar LyX
6850 コマンドを発行する\SpecialChar LyX
6855 \begin_layout Section
6860 \begin_layout Standard
6862 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6875 \begin_layout Standard
6880 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialChar LyX
6881 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialChar LyX
6883 とをクライアントに伝えるのには、\SpecialChar LyX
6887 \begin_layout Section
6891 \begin_layout Standard
6896 \begin_layout Plain Layout
6897 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularと
6901 とMac OS X上のSkim、Windows上のSumatraPDFがあります。
6906 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6907 特定の場所をクリックすることによって、\SpecialChar LyX
6908 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialChar LyX
6914 )を使用するか、\SpecialChar LyX
6915 が作業ディレクトリに生成するUNIXドメインソケット(
6920 \begin_inset Flex Code
6923 \begin_layout Plain Layout
6929 プログラムが\SpecialChar LyX
6930 と通信するのに使用している方法です)ことで、\SpecialChar LyX
6931 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialChar LyX
6933 ことがあるかもしれませんが、それ以外は、ビューアは\SpecialChar LyX
6934 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必要とされるビューアの設定
6935 法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その前に、DVI/PDF出力
6936 で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6939 \begin_layout Subsection
6940 \begin_inset CommandInset label
6949 \begin_layout Standard
6950 \begin_inset Flex MenuItem
6953 \begin_layout Plain Layout
6954 文書\SpecialChar menuseparator
6955 設定\SpecialChar menuseparator
6962 \begin_inset Flex MenuItem
6965 \begin_layout Plain Layout
6971 オプションを有効にすれば、ほとんどの場合、\SpecialChar LyX
6972 がすべてをうまくこなしてくれます。その場合、\SpecialChar LyX
6973 は、自動的に、必要なSync\SpecialChar TeX
6974 マクロ(PDFの場合)や、srcltxパッケー
6975 ジ(DVIの場合)を挿入してくれます。このオプションは、
6976 \begin_inset Flex MenuItem
6979 \begin_layout Plain Layout
6985 ツールバーからも容易にアクセスすることができます。
6988 \begin_layout Standard
6989 もし、これとは別の設定が必要な場合には、
6990 \begin_inset Flex MenuItem
6993 \begin_layout Plain Layout
6994 文書\SpecialChar menuseparator
6995 設定\SpecialChar menuseparator
6996 出力\SpecialChar menuseparator
7002 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7005 \begin_layout Standard
7007 \begin_inset Flex Code
7010 \begin_layout Plain Layout
7018 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7019 \begin_inset Flex Code
7022 \begin_layout Plain Layout
7033 \begin_layout Standard
7035 \begin_inset Flex Code
7038 \begin_layout Plain Layout
7045 \begin_inset Flex Code
7048 \begin_layout Plain Layout
7054 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7055 \begin_inset Flex Code
7058 \begin_layout Plain Layout
7065 \begin_inset Flex Code
7068 \begin_layout Plain Layout
7074 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7077 \begin_layout Standard
7078 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7079 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7080 \begin_inset CommandInset ref
7082 reference "subsec:特定のビューアを設定して使うには"
7089 \begin_layout Subsection
7093 \begin_layout Standard
7095 は、遡及検索のために複数の方法を提供しています。ある方法は
7096 \begin_inset Flex Code
7099 \begin_layout Plain Layout
7105 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialChar LaTeX
7106 頒布版が既に特定の方法を提供しているか(組み込みによ
7107 る方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7110 \begin_layout Subsubsection*
7111 src-special経由のDVI組み込み検索(DVIのみ)
7114 \begin_layout Standard
7115 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialChar LaTeX
7116 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7119 \begin_inset Flex MenuItem
7122 \begin_layout Plain Layout
7123 設定\SpecialChar menuseparator
7124 ファイル処理\SpecialChar menuseparator
7131 \begin_inset Flex MenuItem
7134 \begin_layout Plain Layout
7141 \begin_inset Flex MenuItem
7144 \begin_layout Plain Layout
7145 LaTeX (plain)->DraftDVI
7151 \begin_inset Flex Code
7154 \begin_layout Plain Layout
7155 latex -src-specials $$i
7160 に変更します。もしこれが動作しないときは、お使いの\SpecialChar LaTeX
7161 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります)。
7164 \begin_layout Subsubsection*
7165 外部パッケージ(PDFSyncおよびsrcltx)
7168 \begin_layout Standard
7177 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialChar LyX
7178 プリアンブルで以下のようにパッケージを読み込んで
7182 \begin_layout Itemize
7184 \begin_inset Flex Code
7187 \begin_layout Plain Layout
7198 \begin_layout Itemize
7200 \begin_inset Flex Code
7203 \begin_layout Plain Layout
7206 usepackage[active]{srcltx}
7214 \begin_layout Standard
7215 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7218 \begin_layout LyX-Code
7222 \begin_inset Newline newline
7228 \begin_inset Newline newline
7234 \begin_inset Newline newline
7240 \begin_inset Newline newline
7245 usepackage[active]{srcltx}
7246 \begin_inset Newline newline
7254 \begin_layout Standard
7255 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7258 \begin_layout Standard
7259 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7263 \begin_layout Subsubsection*
7264 Sync\SpecialChar TeX
7265 を使った組み込み遡及検索(DVIおよびPDF)
7268 \begin_layout Standard
7269 \begin_inset Flex Code
7272 \begin_layout Plain Layout
7278 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7280 Sync\SpecialChar TeX
7283 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7284 るためには、少なくとも\SpecialChar TeX
7285 Live 2008か最近のMik\SpecialChar TeX
7286 頒布版が必要です。また、既にSync\SpecialChar TeX
7287 サポートを提供しているPDFビューアは少ししかありません(
7289 Okular and Qpdfview on Unix,
7291 Mac上のSkimとWindows上のSumatraPDF)。
7294 \begin_layout Standard
7295 DVI出力でSync\SpecialChar TeX
7297 \begin_inset Flex MenuItem
7300 \begin_layout Plain Layout
7301 設定\SpecialChar menuseparator
7302 ファイル処理\SpecialChar menuseparator
7309 \begin_inset Flex MenuItem
7312 \begin_layout Plain Layout
7319 \begin_inset Flex MenuItem
7322 \begin_layout Plain Layout
7323 LaTeX (plain)->DraftDVI
7329 \begin_inset Flex Code
7332 \begin_layout Plain Layout
7333 latex -synctex=1 $$i
7339 \begin_inset Flex MenuItem
7342 \begin_layout Plain Layout
7343 LaTeX (pdflatex)->PDF (pdflatex)
7349 \begin_inset Flex Code
7352 \begin_layout Plain Layout
7353 pdflatex -synctex=1 $$i
7358 に変更してください。また、ビューアをSync\SpecialChar TeX
7359 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7363 \begin_layout Plain Layout
7364 \begin_inset Flex Code
7367 \begin_layout Plain Layout
7373 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
7374 \begin_inset Flex Code
7377 \begin_layout Plain Layout
7391 \begin_layout Subsection
7393 \begin_inset CommandInset label
7395 name "subsec:特定のビューアを設定して使うには"
7402 \begin_layout Subsubsection*
7406 \begin_layout Standard
7409 \begin_inset Flex Code
7412 \begin_layout Plain Layout
7418 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7419 \begin_inset Flex Code
7422 \begin_layout Plain Layout
7428 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7429 、Mac OS X上ではAlt-クリックで始動します)。
7432 \begin_layout Standard
7433 しかし、何らかの理由で、\SpecialChar LyX
7434 と通信するのにソケットではなく命名パイプを使用したい場合には、
7435 \begin_inset Flex MenuItem
7438 \begin_layout Plain Layout
7439 設定\SpecialChar menuseparator
7440 ファイル処理\SpecialChar menuseparator
7452 \begin_layout Plain Layout
7455 On Mac OSX you have to use
7456 \begin_inset Flex Code
7459 \begin_layout Plain Layout
7462 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7475 \begin_inset Flex Code
7478 \begin_layout Plain Layout
7479 xdvi -editor "lyxeditor.sh %f %l"
7485 \begin_inset Flex Code
7488 \begin_layout Plain Layout
7494 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7497 \begin_layout LyX-Code
7499 \begin_inset Newline newline
7502 LYXPIPE="/path/to/lyxpipe"
7503 \begin_inset Newline newline
7506 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7507 \begin_inset Newline newline
7510 echo "$COMMAND" > "${LYXPIPE}".in || exit
7511 \begin_inset Newline newline
7514 read TMP < "${LYXPIPE}".out || exit
7517 \begin_layout Standard
7519 \begin_inset Flex Code
7522 \begin_layout Plain Layout
7529 \begin_inset Flex MenuItem
7532 \begin_layout Plain Layout
7533 設定\SpecialChar menuseparator
7539 で指定したLyXServerパイプのパスを指定してください。
7543 \begin_layout Plain Layout
7545 \begin_inset Flex Code
7548 \begin_layout Plain Layout
7559 \begin_inset Flex Code
7562 \begin_layout Plain Layout
7576 \begin_layout Subsubsection*
7580 \begin_layout Standard
7581 \begin_inset Flex Code
7584 \begin_layout Plain Layout
7585 /Applications/MacDviX_Folder/calleditor.script
7593 \begin_layout LyX-Code
7594 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7595 \begin_inset Newline newline
7601 \begin_layout Standard
7602 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialChar LyX
7603 を導入した場合には、それに従って上記の行を修正してください。
7606 \begin_layout Standard
7607 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7610 \begin_layout Subsubsection*
7614 \begin_layout Standard
7615 \begin_inset Flex MenuItem
7618 \begin_layout Plain Layout
7619 設定\SpecialChar menuseparator
7620 ファイル処理\SpecialChar menuseparator
7621 ファイル書式\SpecialChar menuseparator
7628 \begin_inset Flex Code
7631 \begin_layout Plain Layout
7632 open -a Skim.app $$i
7638 \begin_inset Flex MenuItem
7641 \begin_layout Plain Layout
7642 Skim\SpecialChar menuseparator
7643 設定\SpecialChar menuseparator
7652 \begin_layout Standard
7653 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7656 \begin_layout Subsubsection*
7660 \begin_layout Standard
7661 \begin_inset Flex MenuItem
7664 \begin_layout Plain Layout
7665 設定\SpecialChar menuseparator
7666 Okularを設定\SpecialChar ldots
7667 \SpecialChar menuseparator
7673 で「カスタムテキストエディタ」を選択し、コマンドに
7674 \begin_inset Flex Code
7677 \begin_layout Plain Layout
7686 \begin_layout Standard
7687 遡及検索は、SHIFT-クリックで始動します。
7690 \begin_layout Subsubsection*
7696 \begin_layout Standard
7699 Qpdfview supports Sync\SpecialChar TeX
7700 since version 0.3.5.
7702 \begin_inset Flex MenuItem
7705 \begin_layout Plain Layout
7708 Edit\SpecialChar menuseparator
7709 Settings\SpecialChar menuseparator
7715 , click on the input field of the
7716 \begin_inset Quotes eld
7720 \begin_inset Quotes erd
7723 item and add the command
7724 \begin_inset Flex Code
7727 \begin_layout Plain Layout
7738 \begin_layout Standard
7741 Reverse search is triggered by double-click.
7744 \begin_layout Subsubsection*
7748 \begin_layout Standard
7750 \begin_inset Flex MenuItem
7753 \begin_layout Plain Layout
7754 View\SpecialChar menuseparator
7760 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7761 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7763 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7764 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7765 \begin_inset Flex Code
7768 \begin_layout Plain Layout
7774 (以下参照)のあるディレクトリを見つけます。
7775 \begin_inset Flex Code
7778 \begin_layout Plain Layout
7785 \begin_inset Flex Code
7788 \begin_layout Plain Layout
7795 \begin_inset Flex Code
7798 \begin_layout Plain Layout
7808 を通じて\SpecialChar LyX
7809 と通信するためのラッパとして使用され、以下のようになっています。
7812 \begin_layout LyX-Code
7814 \begin_inset Newline newline
7817 echo LYXCMD:revdvi:server-goto-file-row:%1 %2>
7826 \begin_inset Newline newline
7840 \begin_layout Standard
7842 で指定した\SpecialChar LyX
7844 \begin_inset Flex Code
7847 \begin_layout Plain Layout
7862 \begin_inset Flex Code
7865 \begin_layout Plain Layout
7874 \begin_layout Standard
7875 yapでは、遡及検索はダブルクリックで始動します。
7878 \begin_layout Subsubsection*
7882 \begin_layout Standard
7883 SumatraPDFを遡及検索で使用するためには、
7884 \begin_inset Flex MenuItem
7887 \begin_layout Plain Layout
7888 設定\SpecialChar menuseparator
7889 ファイル処理\SpecialChar menuseparator
7890 ファイル書式\SpecialChar menuseparator
7897 \begin_inset Flex Code
7900 \begin_layout Plain Layout
7901 SumatraPDF -inverse-search
7902 \begin_inset Quotes eld
7906 \begin_inset Quotes erd
7915 \begin_inset Flex Code
7918 \begin_layout Plain Layout
7924 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7927 \begin_layout Standard
7931 \begin_layout Subsubsection*
7935 \begin_layout Standard
7936 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7937 \begin_inset Flex MenuItem
7940 \begin_layout Plain Layout
7941 View\SpecialChar menuseparator
7947 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7948 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7950 Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7951 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7952 \begin_inset Flex Code
7955 \begin_layout Plain Layout
7961 プログラム(これは、Cygwinでは既定で\SpecialChar LyX
7962 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7963 \begin_inset Flex Code
7966 \begin_layout Plain Layout
7973 \begin_inset Flex Code
7976 \begin_layout Plain Layout
7982 と指定してください。これによって、\SpecialChar LyX
7987 が使用されるようになります。何らかの理由で
7992 \begin_inset Flex Code
7995 \begin_layout Plain Layout
8001 オプションを削除して、\SpecialChar LyX
8003 Serverパイプパスを指定することを忘れないでください。
8006 \begin_layout Standard
8007 yapでは、遡及検索はダブルクリックで始動します。
8010 \begin_layout Subsubsection*
8014 \begin_layout Standard
8015 SumatraPDFを遡及検索で使用するためには、
8016 \begin_inset Flex MenuItem
8019 \begin_layout Plain Layout
8020 設定\SpecialChar menuseparator
8021 ファイル処理\SpecialChar menuseparator
8022 ファイル書式\SpecialChar menuseparator
8029 \begin_inset Flex Code
8032 \begin_layout Plain Layout
8039 \begin_inset Flex Code
8042 \begin_layout Plain Layout
8048 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
8049 \begin_inset Flex Code
8052 \begin_layout Plain Layout
8061 \begin_layout LyX-Code
8063 \begin_inset Newline newline
8067 \begin_inset Newline newline
8070 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8073 \begin_layout Standard
8074 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialChar LyX
8075 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが必要と
8076 なります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8077 \begin_inset Flex Code
8080 \begin_layout Plain Layout
8095 \begin_inset Flex Code
8098 \begin_layout Plain Layout
8104 オプションを削除して、\SpecialChar LyX
8106 Serverパイプパスを指定することを忘れないでください。
8109 \begin_layout Standard
8113 \begin_layout Section
8117 \begin_layout Standard
8118 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialChar LyX
8119 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明するように
8120 )もし順検索の準備ができていれば、カーソルを\SpecialChar LyX
8122 \begin_inset Flex MenuItem
8125 \begin_layout Plain Layout
8126 移動\SpecialChar menuseparator
8132 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8133 \begin_inset Flex MenuItem
8136 \begin_layout Plain Layout
8142 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8145 \begin_layout Standard
8146 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialChar TeX
8147 ソースに関する情報を追加する必要があります。これは、第
8148 \begin_inset CommandInset ref
8150 reference "subsec:遡及検索"
8154 節に述べられている方法で実行することができます。
8157 \begin_layout Standard
8159 \begin_inset Flex MenuItem
8162 \begin_layout Plain Layout
8163 ツール\SpecialChar menuseparator
8164 設定\SpecialChar menuseparator
8165 出力\SpecialChar menuseparator
8171 で自分の使うビューアを利用するように、\SpecialChar LyX
8172 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリストから選
8173 択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用します。
8176 \begin_layout Itemize
8177 \begin_inset Flex Code
8180 \begin_layout Plain Layout
8189 \begin_layout Itemize
8190 \begin_inset Flex Code
8193 \begin_layout Plain Layout
8199 :書き出された(一時).texファイル名(パスを除く)
8202 \begin_layout Itemize
8203 \begin_inset Flex Code
8206 \begin_layout Plain Layout
8212 :書き出された(一時).texファイル名(パスを含む)
8215 \begin_layout Itemize
8216 \begin_inset Flex Code
8219 \begin_layout Plain Layout
8225 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8228 \begin_layout Standard
8233 \begin_layout Plain Layout
8234 \begin_inset Flex MenuItem
8237 \begin_layout Plain Layout
8238 ツール\SpecialChar menuseparator
8239 設定\SpecialChar menuseparator
8240 ファイル処理\SpecialChar menuseparator
8247 \begin_inset Flex Code
8250 \begin_layout Plain Layout
8261 ・qpdfview・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8267 \begin_layout Plain Layout
8270 SumatraPDF can also use DDE commands through the external program CMCDDE
8272 \begin_inset CommandInset href
8274 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8285 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8286 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8287 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8290 \begin_layout Standard
8291 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialChar LyX
8292 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在するかを
8293 チェックして)、その形式に適切な設定を選択します。
8296 \begin_layout Chapter
8300 \begin_layout Section
8304 \begin_layout Standard
8310 \begin_layout Subsection
8314 \begin_layout Standard
8321 Astronomy and Astrophysics
8324 \begin_inset Flex URL
8327 \begin_layout Plain Layout
8329 http://www.edpsciences.fr/aa/
8334 )に投稿する論文を執筆するための\SpecialChar LyX
8335 の使用法を説明します。このパッケージは、FTPサイト
8336 \begin_inset Separator parbreak
8342 \begin_layout Standard
8344 \begin_inset VSpace medskip
8348 \begin_inset Flex URL
8351 \begin_layout Plain Layout
8353 ftp://ftp.edpsciences.org/pub/aa/readme.html
8359 \begin_inset VSpace medskip
8365 \begin_layout Standard
8370 \begin_layout Standard
8371 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8375 \begin_layout Standard
8376 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8377 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialChar LyX
8378 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています。もし
8379 古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8386 Dir/layouts/aapaper.layout
8391 \begin_layout Subsection
8395 \begin_layout Standard
8397 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8400 \begin_layout Itemize
8403 文書\SpecialChar menuseparator
8410 を選択してください(まぁ、これは自明ですね)。
8413 \begin_layout Itemize
8418 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8421 \begin_layout Subsection
8425 \begin_layout Standard
8426 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8429 \begin_layout Itemize
8437 \begin_layout Itemize
8445 \begin_layout Itemize
8453 \begin_layout Itemize
8461 \begin_layout Itemize
8466 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8469 \begin_layout Itemize
8474 :[非必須]連絡用の電子メールアドレス。
8477 \begin_layout Itemize
8484 Received: <日付>; Accepted <日付>
8489 \begin_layout Standard
8496 コマンドは、へッダが終了した場所に、\SpecialChar LyX
8497 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書のレイ
8498 アウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8501 \begin_layout Standard
8502 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8504 挿入\SpecialChar menuseparator
8507 を使用して標準の脚注を挿入してください。この場合には、\SpecialChar LyX
8517 \begin_layout Standard
8518 これらのトピックの他に、このマクロは、\SpecialChar LyX
8519 が対応していない、以下の3つの\SpecialChar LaTeX
8523 \begin_layout Itemize
8524 複数の著者名あるいは所属名を区切るための
8531 \begin_layout Itemize
8542 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8545 \begin_layout Itemize
8552 は、至急連絡用に電子メールアドレスを付記します。
8555 \begin_layout Standard
8556 いずれの場合にも、\SpecialChar LyX
8557 中に対応したコマンドを入力し、\SpecialChar LaTeX
8559 \begin_inset Flex Code
8562 \begin_layout Plain Layout
8572 \begin_layout Subsection
8576 \begin_layout Standard
8577 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8578 れなくてはなりません。これは、まだ\SpecialChar LyX
8579 では実装されていないため、\SpecialChar LaTeX
8586 を手動で入力し、\SpecialChar LaTeX
8587 コードとしてマークする必要があります。用例にある論文を参照してください。
8590 \begin_layout Subsection
8594 \begin_layout Standard
8595 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8598 \begin_layout Itemize
8604 \begin_layout Itemize
8610 \begin_layout Itemize
8616 \begin_layout Itemize
8622 \begin_layout Itemize
8628 \begin_layout Itemize
8634 \begin_layout Itemize
8640 \begin_layout Itemize
8646 \begin_layout Itemize
8652 \begin_layout Itemize
8658 \begin_layout Itemize
8664 \begin_layout Itemize
8671 \begin_layout Subsection
8676 \begin_layout Standard
8682 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8685 \begin_layout Itemize
8693 \begin_layout Itemize
8701 \begin_layout Itemize
8709 \begin_layout Itemize
8717 \begin_layout Itemize
8725 \begin_layout Itemize
8733 \begin_layout Itemize
8741 \begin_layout Itemize
8749 \begin_layout Standard
8750 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8752 これを\SpecialChar LaTeX
8753 コマンドとしてマークすることを忘れないで下さい。
8756 \begin_layout Subsection
8760 \begin_layout Standard
8778 をサポートしていますので、ここでは詳しい説明はしません。
8782 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8784 編集\SpecialChar menuseparator
8790 \begin_layout Standard
8791 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8794 \begin_layout Enumerate
8797 挿入\SpecialChar menuseparator
8798 フロート\SpecialChar menuseparator
8801 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8802 \begin_inset Flex MenuItem
8805 \begin_layout Plain Layout
8806 設定\SpecialChar ldots
8827 \begin_layout Enumerate
8831 \begin_layout Enumerate
8836 を押して、カーソルをキャプションの上に移動します。
8839 \begin_layout Enumerate
8843 \begin_layout Enumerate
8846 挿入\SpecialChar menuseparator
8849 \SpecialChar menuseparator
8869 \begin_layout Enumerate
8872 挿入\SpecialChar menuseparator
8876 を選択して、\SpecialChar TeX
8880 \begin_layout Enumerate
8893 \begin_layout Enumerate
8894 カーソルをキャプション文の後ろに移動し、
8896 挿入\SpecialChar menuseparator
8900 を選択して、別の\SpecialChar TeX
8901 差込枠を挿入し、その中に閉じ括弧を入力します 。
8904 \begin_layout Standard
8908 \begin_layout Subsection
8912 \begin_layout Standard
8913 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8917 オプションを与える必要があります。これは、
8919 文書\SpecialChar menuseparator
8926 クラスオプションフィールドを使って行うことができます。この欄に
8933 \begin_layout Subsection
8937 \begin_layout Standard
8942 ディレクトリには、\SpecialChar LyX
8943 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8944 用に直したものです。これはヒントを得るために使用したり、元の
8946 コードと\SpecialChar LyX
8947 での書き方の比較に使ったりしてください。
8950 \begin_layout Section
8955 \begin_layout Standard
8963 \begin_layout Subsection
8967 \begin_layout Standard
8969 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8970 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8971 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
8973 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
8974 は、同マクロ第5.0版以降を必要としており、でき
8975 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
8976 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
8977 とは互換性がありません。AAS\SpecialChar TeX
8979 、以下のAAS\SpecialChar TeX
8980 ウェブサイトからダウンロードできるでしょう。
8981 \begin_inset Separator parbreak
8987 \begin_layout Standard
8989 \begin_inset VSpace medskip
8993 \begin_inset Flex URL
8996 \begin_layout Plain Layout
8998 http://www.journals.uchicago.edu/AAS/AASTeX
9004 \begin_inset VSpace medskip
9010 \begin_layout Standard
9011 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9012 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9014 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9015 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9016 いることを確認するのは、あなたの責任です。
9019 \begin_layout Subsection
9023 \begin_layout Standard
9024 論文を書き始めるには、AAS\SpecialChar TeX
9025 ひな型ファイルを土台に始めることを強くお勧めします。
9026 \begin_inset Flex MenuItem
9029 \begin_layout Plain Layout
9030 ファイル\SpecialChar menuseparator
9036 をクリックして、新しいファイル名を入力し、ひな型
9040 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9044 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9045 コマンド・AAS\SpecialChar TeX
9046 環境の多くは、\SpecialChar LyX
9059 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9061 コードを入力して、それを\SpecialChar TeX
9062 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9063 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9065 文書に必要とされる \SpecialChar TeX
9066 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9069 \begin_layout Subsection
9073 \begin_layout Standard
9074 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9077 \begin_layout Enumerate
9078 論文を \SpecialChar LaTeX
9081 ファイル\SpecialChar menuseparator
9082 書き出し\SpecialChar menuseparator
9088 \begin_layout Enumerate
9094 \begin_inset Separator parbreak
9101 \begin_layout Enumerate
9108 コマンドよりも前のコメント行を削除します。
9111 \begin_layout Enumerate
9116 usepackage...{fontenc}
9133 \begin_layout Enumerate
9135 プリアンブル中に意図的に置いたコマンド(
9139 ファイル中、「User specified \SpecialChar LaTeX
9140 commands」というコメントの直後にあります)を除いて、
9152 の間のもの(これらのコマンドを含む)をすべて削除します。
9156 \begin_layout Enumerate
9157 編集後のファイルを \SpecialChar LaTeX
9158 にかけて、正しく処理されることを確認します。
9161 \begin_layout Enumerate
9162 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9165 \begin_layout Enumerate
9169 \begin_layout Subsection
9173 \begin_layout Standard
9179 )に、各AAS\SpecialChar TeX
9180 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9181 て、必要なところだけコメントを加えることにしましょう。
9184 \begin_layout Subsubsection
9188 \begin_layout Standard
9189 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9289 begin{thebibliography}
9297 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9348 \begin_layout Standard
9349 以下のスタイルオプションも正しく動作します。
9370 \begin_inset Flex MenuItem
9373 \begin_layout Plain Layout
9374 文書\SpecialChar menuseparator
9391 \begin_layout Subsubsection
9395 \begin_layout Standard
9396 以下のコマンドは動作しますが、若干の説明が必要です。
9399 \begin_layout Itemize
9400 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9432 \begin_layout Itemize
9433 以下の項目は、\SpecialChar LaTeX
9434 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9455 \begin_layout Itemize
9462 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9466 \begin_layout Itemize
9473 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9476 \begin_layout Itemize
9483 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9487 \begin_layout Itemize
9494 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9497 \begin_layout Itemize
9513 \begin_layout Itemize
9520 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9523 \begin_layout Itemize
9530 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9533 \begin_layout Itemize
9540 (2.14.2)―文章のはじめにカーソルを置いて
9541 \begin_inset Flex MenuItem
9544 \begin_layout Plain Layout
9545 挿入\SpecialChar menuseparator
9551 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9557 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9560 \begin_layout Itemize
9567 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9576 \begin_layout Itemize
9583 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9592 \begin_layout Subsubsection
9593 実装されていないため、\SpecialChar TeX
9597 \begin_layout Standard
9620 setcounter{equation}
9622 (2.12)・学術誌名略語(2.12.4)・
9658 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9671 (2.15.5)・補遺(2.17)の大半(
9722 \begin_layout Subsubsection
9726 \begin_layout Standard
9727 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9728 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9729 \begin_inset Flex MenuItem
9732 \begin_layout Plain Layout
9733 挿入\SpecialChar menuseparator
9735 \begin_inset Formula $\text{\textipa{}}$
9738 \SpecialChar menuseparator
9744 を使用して、\SpecialChar LyX
9745 ファイルに読み込むことを推奨します。この実例は、
9752 \begin_layout Subsection
9756 \begin_layout Subsubsection
9758 をAAS\SpecialChar TeX
9762 \begin_layout Standard
9764 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9767 \begin_layout Enumerate
9769 が、AAS\SpecialChar TeX
9770 を検出できることを確認してください。AAS\SpecialChar TeX
9779 でも可)を、\SpecialChar LaTeX
9780 やAAS\SpecialChar TeX
9781 とまったく関係のないディレクトリにコピーして、
9789 \begin_layout Enumerate
9802 \begin_layout Enumerate
9806 ツール\SpecialChar menuseparator
9809 を再度実行し、\SpecialChar LyX
9813 \begin_layout Enumerate
9814 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9817 文書\SpecialChar menuseparator
9823 \begin_layout Standard
9824 既存のAAS\SpecialChar TeX
9825 文書を処理する際に、AAS\SpecialChar TeX
9826 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9830 \begin_layout Subsubsection
9831 表を処理する際の\SpecialChar LaTeX
9835 \begin_layout Standard
9836 既定では、\SpecialChar LyX
9837 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9838 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9841 編集\SpecialChar menuseparator
9852 に設定してください。私のところではこれで解決しました。
9855 \begin_layout Subsubsection
9859 \begin_layout Standard
9860 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9873 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9877 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9878 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9881 \begin_layout Subsubsection
9885 \begin_layout Standard
9893 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9894 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9901 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9906 usepackage{graphics}
9908 コマンドを\SpecialChar LaTeX
9909 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9910 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9911 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9914 \begin_layout Subsubsection
9918 \begin_layout Standard
9919 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9921 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9922 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9925 \begin_layout Subsection
9929 \begin_layout Standard
9930 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9931 \begin_inset space \thinspace{}
9936 \begin_inset space \thinspace{}
9939 %が、\SpecialChar LaTeX
9940 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9944 \begin_layout Section
9945 AMS \SpecialChar LaTeX
9949 \begin_layout Standard
9959 \begin_inset VSpace bigskip
9965 \begin_layout Standard
9966 AMS \SpecialChar LaTeX
9967 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9968 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9970 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9971 \begin_inset Flex URL
9974 \begin_layout Plain Layout
9982 \begin_inset Flex URL
9985 \begin_layout Plain Layout
9987 ftp://ftp.ams.org/pub/tex/amslatex/
9992 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9995 \begin_layout Standard
9996 基本となるAMS \SpecialChar LaTeX
10000 \begin_layout Itemize
10001 amsart:標準のAMS article書式。
10004 \begin_layout Itemize
10005 amsbook:標準のAMS book(実際はモノグラフ)書式。
10008 \begin_layout Standard
10009 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10010 m」環境は、何一つ含まれていません。これらは、代わりに
10011 \begin_inset Flex Code
10014 \begin_layout Plain Layout
10020 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10021 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10022 \begin_inset Flex Code
10025 \begin_layout Plain Layout
10031 モジュールがあり、これは手動で読み込む必要があります。
10034 \begin_layout Standard
10035 既定では、定理類は、文書を通して連番が振られますが、これは
10036 \begin_inset Flex Code
10039 \begin_layout Plain Layout
10045 モジュールを読み込めば変更することができ、
10046 \begin_inset Flex Code
10049 \begin_layout Plain Layout
10056 \begin_inset Flex Code
10059 \begin_layout Plain Layout
10065 を用いても変更することができます。これらを用いると、出力は
10066 \begin_inset Formula $n.m$
10069 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10070 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10075 \begin_inset Flex Code
10078 \begin_layout Plain Layout
10087 \begin_layout Standard
10088 これらのモジュールは、AMSクラスで使用する
10093 \begin_inset Flex Code
10096 \begin_layout Plain Layout
10102 モジュールや上述の他のモジュールは、他のクラス、たとえば
10103 \begin_inset Flex Code
10106 \begin_layout Plain Layout
10113 \begin_inset Flex Code
10116 \begin_layout Plain Layout
10123 \begin_inset Flex Code
10126 \begin_layout Plain Layout
10132 などで問題なく使用することができます。
10135 \begin_layout Subsection
10139 \begin_layout Standard
10140 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10141 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10142 す。しかし、AMSは、\SpecialChar LyX
10143 で利用可能になっている環境のみを使用することを推奨しています。
10146 \begin_layout Standard
10147 \begin_inset Flex Code
10150 \begin_layout Plain Layout
10157 \begin_inset Flex Code
10160 \begin_layout Plain Layout
10167 \begin_inset space ~
10171 \begin_inset Flex Noun
10174 \begin_layout Plain Layout
10181 \begin_inset Flex Noun
10184 \begin_layout Plain Layout
10191 \begin_inset Flex Noun
10194 \begin_layout Plain Layout
10201 \begin_inset Flex Noun
10204 \begin_layout Plain Layout
10211 \begin_inset Flex Noun
10214 \begin_layout Plain Layout
10221 \begin_inset space ~
10225 \begin_inset space ~
10231 \begin_layout Description
10235 \begin_layout Description
10236 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10239 \begin_layout Description
10243 \begin_layout Description
10247 \begin_layout Description
10248 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10251 \begin_layout Description
10254 Mathematical Reviews
10256 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10260 \begin_layout Description
10264 \begin_layout Description
10268 \begin_layout Description
10272 \begin_layout Standard
10274 \begin_inset Flex Code
10277 \begin_layout Plain Layout
10284 \begin_inset Flex Code
10287 \begin_layout Plain Layout
10293 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10294 \begin_inset Flex Code
10297 \begin_layout Plain Layout
10303 モジュールでは、同環境の星付き版だけが提供されます。
10306 \begin_layout Theorem
10307 これは、通常、得られた主要な結果を叙述するのに使用されます。
10310 \begin_layout Corollary*
10311 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10314 \begin_layout Lemma
10315 他の叙述を証明するために必要とされる、比較的小さな結果です。
10318 \begin_layout Proposition
10319 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10322 \begin_layout Conjecture
10323 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10326 \begin_layout Definition*
10327 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10330 \begin_layout Problem
10331 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10334 \begin_layout Exercise*
10339 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10342 \begin_layout Claim*
10343 より大きな結果の証明を与える途中で、しばしば用いられます。
10347 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10351 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10354 \begin_layout Proof
10355 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10356 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10367 \begin_layout Standard
10369 \begin_inset Flex Code
10372 \begin_layout Plain Layout
10381 \begin_layout Criterion*
10385 \begin_layout Algorithm*
10389 \begin_layout Axiom*
10390 議論されている系内部で真と仮定される性質や命題です。
10393 \begin_layout Condition*
10394 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10397 \begin_layout Note*
10401 \begin_layout Notation*
10405 \begin_layout Summary
10409 \begin_layout Acknowledgement*
10410 謝辞(acknowledgement)です。
10413 \begin_layout Conclusion*
10418 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10421 \begin_layout Standard
10422 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10423 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10427 \begin_layout Section
10433 \begin_layout Standard
10441 \begin_layout Subsection
10445 \begin_layout Standard
10446 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10448 \begin_inset Flex URL
10451 \begin_layout Plain Layout
10453 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10458 にあります)が導入されていることが必要です。
10461 \begin_layout Subsection
10465 \begin_layout Standard
10474 は、定義し直されています。\SpecialChar LyX
10483 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10495 \begin_layout Standard
10532 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10535 \begin_layout Standard
10536 おそらく、これはまだ恐ろしく不完全です。
10539 \begin_layout Subsection
10543 \begin_layout Standard
10552 (Plate)が新しいフロートです。また、
10559 \begin_layout Subsection
10563 \begin_layout Itemize
10566 Journal of Geophysical Research
10575 \begin_layout Standard
10576 ここにあなたの作ったものを加えてください。難しくはありません。
10587 \begin_layout Subsection
10591 \begin_layout Standard
10592 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10595 \begin_layout Enumerate
10602 ツール\SpecialChar menuseparator
10605 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10612 \begin_layout Enumerate
10617 と入力してください(すみません、これはバグです)。
10620 \begin_layout Enumerate
10621 Bib\SpecialChar TeX
10630 を使用していることを確認してください。標準スタイルはうまく動作しません。
10633 \begin_layout Section
10637 \begin_layout Standard
10645 \begin_layout Subsection
10649 \begin_layout Standard
10650 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10653 \begin_layout Subsection
10657 \begin_layout Standard
10661 \begin_layout Subsection
10665 \begin_layout Standard
10670 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10673 \begin_layout Subsection
10677 \begin_layout Standard
10678 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10681 \begin_layout Subsection
10685 \begin_layout Standard
10686 以下の環境を使うことができます。右に記してある
10687 \begin_inset Flex Ruby
10690 \begin_layout Plain Layout
10692 \begin_inset Argument post:1
10695 \begin_layout Plain Layout
10706 割当ては、broadway.bindを使った場合のものです。
10709 \begin_layout Itemize
10713 \begin_inset Newline newline
10718 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10721 \begin_layout Itemize
10725 \begin_inset space \hfill{}
10729 \begin_inset Newline newline
10734 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10737 \begin_layout Itemize
10741 \begin_inset space \hfill{}
10745 \begin_inset Newline newline
10750 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10753 \begin_layout Itemize
10757 \begin_inset space \hfill{}
10761 \begin_inset Newline newline
10766 幕の副題です。単に中央揃えの文になります。
10769 \begin_layout Itemize
10773 \begin_inset space \hfill{}
10777 \begin_inset Newline newline
10782 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10785 \begin_layout Itemize
10789 \begin_inset space \hfill{}
10793 \begin_inset Newline newline
10798 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10801 \begin_layout Itemize
10805 \begin_inset space \hfill{}
10809 \begin_inset Newline newline
10814 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10817 \begin_layout Itemize
10821 \begin_inset space \hfill{}
10825 \begin_inset Newline newline
10830 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10837 \begin_layout Itemize
10841 \begin_inset space \hfill{}
10845 \begin_inset Newline newline
10853 \begin_layout Itemize
10857 \begin_inset space \hfill{}
10861 \begin_inset Newline newline
10869 \begin_layout Itemize
10873 \begin_inset space \hfill{}
10879 \begin_layout Itemize
10883 \begin_inset space \hfill{}
10889 \begin_layout Itemize
10893 \begin_inset space \hfill{}
10899 \begin_layout Section
10903 \begin_layout Standard
10908 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10910 .../lyx/share/templates
10912 にあるので、それを土台として使用してください。
10915 \begin_layout Section
10921 \begin_layout Standard
10929 \begin_layout Subsection
10933 \begin_layout Standard
10934 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10939 \begin_inset Flex URL
10942 \begin_layout Plain Layout
10944 http://www.copernicus.org/
10952 \begin_layout Subsection
10956 \begin_layout Standard
10994 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10998 ファイルを読み込む形に変えた方が便利になると思われます。
11001 \begin_layout Section
11005 \begin_layout Standard
11011 を参照してください。必要な情報は全てそこにあります。
11014 \begin_layout Section
11015 Foils (別名Foil\SpecialChar TeX
11017 \begin_inset CommandInset label
11026 \begin_layout Standard
11034 \begin_layout Subsection
11038 \begin_layout Standard
11039 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11040 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11042 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11045 \begin_layout Standard
11046 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11049 \begin_layout Standard
11050 \begin_inset VSpace bigskip
11056 \begin_layout Standard
11062 presentation (FoilT
11068 \begin_layout Plain Layout
11086 \begin_layout Standard
11087 \begin_inset VSpace bigskip
11093 \begin_layout Standard
11096 transparencies (slides)
11099 \begin_inset CommandInset ref
11101 reference "sec:slitex"
11105 節をご覧ください。お使いのコンピュータに
11111 presentation (FoilT
11115 \begin_layout Plain Layout
11135 \begin_layout Standard
11140 クラスは、\SpecialChar LaTeX2e
11141 の一部として含まれている\SpecialChar LaTeX
11146 の第2.1版とともに使われるように設計されています。
11149 \begin_layout Subsection
11153 \begin_layout Standard
11154 いうまでもなく、この文書クラスを使うには、
11156 文書\SpecialChar menuseparator
11157 設定\SpecialChar menuseparator
11166 presentation (FoilT
11170 \begin_layout Plain Layout
11183 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11186 \begin_layout Itemize
11199 オプションは変更しないでください。これらは
11206 \begin_layout Itemize
11207 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11210 \begin_layout Itemize
11219 ですが、数式ではすべて、通常のローマン体が使用されます。
11222 \begin_layout Itemize
11223 Foil\SpecialChar TeX
11225 \begin_inset space \thinspace{}
11228 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11231 \begin_layout Itemize
11236 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11239 \begin_layout Itemize
11244 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11245 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11246 \begin_inset CommandInset ref
11248 reference "sec:foilfoot"
11252 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11256 付けられず、(ロゴが定義されていれば)ロゴは、
11260 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11261 \begin_inset Separator parbreak
11268 \begin_layout Labeling
11269 \labelwidthstring MMMMMMM
11276 最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11279 \begin_layout Labeling
11280 \labelwidthstring MMMMMMM
11287 最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11290 \begin_layout Labeling
11291 \labelwidthstring MMMMMMM
11296 ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11299 \begin_layout Labeling
11300 \labelwidthstring MMMMMMM
11309 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11310 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11314 \begin_layout Subsubsection
11318 \begin_layout Standard
11323 ダイアログの任意設定クラスオプションボックスで使うことができます。
11326 \begin_layout Labeling
11327 \labelwidthstring MMMMMMx
11332 これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11333 \begin_inset space \space{}
11336 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11339 \begin_layout Labeling
11340 \labelwidthstring MMMMMMx
11345 タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11348 \begin_layout Labeling
11349 \labelwidthstring MMMMMMx
11354 タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11357 \begin_layout Labeling
11358 \labelwidthstring MMMMMMx
11367 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11371 \begin_layout Labeling
11372 \labelwidthstring MMMMMMx
11377 このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11378 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11386 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11389 \begin_layout Labeling
11390 \labelwidthstring MMMMMMx
11398 \begin_layout Labeling
11399 \labelwidthstring MMMMMMx
11407 \begin_layout Subsection
11411 \begin_layout Standard
11412 他のクラスで標準的にサポートされている環境は、
11416 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11417 が提供している環境と、\SpecialChar LyX
11418 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11421 \begin_layout Standard
11424 \begin_inset Flex Multiple Columns
11427 \begin_layout Itemize
11433 \begin_layout Itemize
11439 \begin_layout Itemize
11445 \begin_layout Itemize
11451 \begin_layout Itemize
11457 \begin_layout Itemize
11464 \begin_layout Itemize
11470 \begin_layout Itemize
11476 \begin_layout Itemize
11482 \begin_layout Itemize
11488 \begin_layout Itemize
11494 \begin_layout Itemize
11500 \begin_layout Itemize
11506 \begin_layout Itemize
11512 \begin_layout Itemize
11518 \begin_layout Itemize
11524 \begin_layout Itemize
11530 \begin_layout Itemize
11541 \begin_layout Standard
11542 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11547 は新しいスライドを始める以下のようなコマンドを備えています。
11550 \begin_layout Itemize
11556 \begin_layout Itemize
11559 横置きスライドタイトル(Rotatefoilhead)
11562 \begin_layout Standard
11564 は、以下のような、これらを若干修正した環境も用意しています。
11567 \begin_layout Itemize
11570 スライドタイトル(小)(ShortFoilhead)
11573 \begin_layout Itemize
11576 横置きスライドタイトル(小)(ShortRotatefoilhead)
11579 \begin_layout Standard
11583 \begin_layout Standard
11584 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11589 はそれらを説明するのに便利な環境を幅広く用意しています。
11592 \begin_layout Standard
11595 \begin_inset Flex Multiple Columns
11598 \begin_layout Itemize
11604 \begin_layout Itemize
11610 \begin_layout Itemize
11616 \begin_layout Itemize
11622 \begin_layout Itemize
11628 \begin_layout Itemize
11634 \begin_layout Itemize
11640 \begin_layout Itemize
11646 \begin_layout Itemize
11652 \begin_layout Itemize
11658 \begin_layout Itemize
11669 \begin_layout Standard
11670 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11671 で追加された以下の2つの箇条書き環境があります。
11674 \begin_layout Itemize
11680 \begin_layout Itemize
11686 \begin_layout Standard
11687 Foil\SpecialChar TeX
11688 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11689 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11692 \begin_layout Standard
11693 この目的のためには、以下のコマンドスタイルがあります(
11698 \begin_layout Standard
11699 \begin_inset Flex Multiple Columns
11702 \begin_layout Itemize
11708 \begin_layout Itemize
11714 \begin_layout Itemize
11720 \begin_layout Itemize
11726 \begin_layout Itemize
11732 \begin_inset Separator parbreak
11739 \begin_layout Plain Layout
11740 \begin_inset space ~
11752 \begin_layout Standard
11753 Foil\SpecialChar TeX
11754 が提供しているコマンドで、\SpecialChar LyX
11755 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11756 \begin_inset CommandInset ref
11758 reference "sec:unsuppfoils"
11765 \begin_layout Subsection
11769 \begin_layout Standard
11770 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11782 \begin_layout Subsubsection
11786 \begin_layout Standard
11807 は独立したページにタイトルを作成します。
11811 環境を使用しなかった場合には、\SpecialChar LaTeX
11812 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11815 \begin_layout Subsubsection
11819 \begin_layout Standard
11820 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11826 スライドタイトル(小)(ShortFoilhead)
11828 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11831 \begin_layout Standard
11834 横向きスライドタイトル(Rotatefoilhead)
11838 ShortRotatefoilhead)
11840 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11844 \begin_layout Standard
11845 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11849 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11853 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11856 \begin_layout Subsubsection
11860 \begin_layout Standard
11862 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11863 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11868 」だけから成る\SpecialChar LaTeX
11869 環境を置くことです。これによって、\SpecialChar LyX
11870 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11871 出力を得ることができます。\SpecialChar LyX
11873 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11876 \begin_layout Subsubsection
11880 \begin_layout Standard
11881 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11882 他の箇条書き環境について詳しく知りたい場合には、
11886 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11887 \begin_inset CommandInset ref
11889 reference "sec:ブリット"
11897 の節も、読まれることが望ましいでしょう。
11900 \begin_layout Standard
11910 \begin_inset Formula $\times$
11913 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11917 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11921 パッケージが導入済であることを要求します。
11924 \begin_layout Subsubsection
11928 \begin_layout Standard
11929 Foil\SpecialChar TeX
11930 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11931 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11934 \begin_layout Subsubsection
11936 \begin_inset CommandInset label
11938 name "sec:foilfoot"
11945 \begin_layout Standard
11954 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by
11959 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11962 \begin_layout Standard
11975 (左上)を使って文字を入れることができます。
11978 \begin_layout Subsection
11985 \begin_inset CommandInset label
11987 name "sec:unsuppfoils"
11994 \begin_layout Standard
12008 \begin_layout Subsubsection
12012 \begin_layout Standard
12035 は、変更したい長さに付けられている名前で置き換え、
12039 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12045 のように文書比あるいはフォント基準の長さで指定する必要があります。
12048 \begin_layout Standard
12055 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12056 \begin_inset space \space{}
12059 inだけスライド本文に近づけるには、プリアンブルに
12065 foilheadskip}{-0.5in}
12070 \begin_layout Standard
12071 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12074 \begin_layout Labeling
12075 \labelwidthstring MMMMMMMMMMM
12085 \begin_layout Labeling
12086 \labelwidthstring MMMMMMMMMMM
12096 \begin_layout Labeling
12097 \labelwidthstring MMMMMMMMMMM
12107 \begin_layout Labeling
12108 \labelwidthstring MMMMMMMMMMM
12115 この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12121 に対する相対的な長さで調整するのが最も良いでしょう。
12124 \begin_layout Standard
12125 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12128 \begin_layout Labeling
12129 \labelwidthstring MMMMMMMMMMM
12139 \begin_layout Labeling
12140 \labelwidthstring MMMMMMMMMMM
12158 \begin_layout Labeling
12159 \labelwidthstring MMMMMMMMMMM
12173 \begin_layout Labeling
12174 \labelwidthstring MMMMMMMMMMM
12192 \begin_layout Labeling
12193 \labelwidthstring MMMMMMMMMMM
12211 \begin_layout Standard
12212 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12218 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12224 を使う必要がないことに注意してください。
12227 \begin_layout Subsubsection
12231 \begin_layout Standard
12248 で定義したロゴを特定のページに入れるかどうかを制御します。
12254 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12260 を置き、次のスライドタイトルの直後に直接
12269 \begin_layout Standard
12278 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12292 パッケージが提供するページレイアウトと
12296 クラスの提供するページレイアウトの間に衝突が発生するためです。
12299 \begin_layout Section
12300 Hollywood(Hollywoodスペック・スクリプト)
12303 \begin_layout Standard
12311 \begin_layout Subsection
12315 \begin_layout Standard
12316 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12317 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12319 \begin_inset space \space{}
12322 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12325 \begin_layout Subsection
12329 \begin_layout Standard
12334 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12338 名を再度書き、その後に(Cont'd)と加えます。
12341 \begin_layout Subsection
12345 \begin_layout Standard
12350 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12351 きに話者名を挿入するのにも使用することができます。
12354 \begin_layout Subsection
12358 \begin_layout Standard
12359 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12362 \begin_layout Subsection
12366 \begin_layout Standard
12367 以下の環境が利用可能です。右に示されている
12368 \begin_inset Flex Ruby
12371 \begin_layout Plain Layout
12373 \begin_inset Argument post:1
12376 \begin_layout Plain Layout
12387 割当てを使用するには、hollywood.bindを使用してください。
12390 \begin_layout Itemize
12394 \begin_inset Newline newline
12399 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12402 \begin_layout Itemize
12404 \begin_inset space \hfill{}
12412 \begin_inset Newline newline
12415 通常、この後には「Sallyは目を覚ますと」のように続きます。
12418 \begin_layout Itemize
12422 \begin_inset space \hfill{}
12426 \begin_inset Newline newline
12431 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12435 \begin_layout Itemize
12439 \begin_inset space \hfill{}
12443 \begin_inset Newline newline
12448 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12451 \begin_layout Itemize
12455 \begin_inset space \hfill{}
12459 \begin_inset Newline newline
12467 \begin_layout Itemize
12471 \begin_inset space \hfill{}
12475 \begin_inset Newline newline
12480 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12481 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12484 \begin_layout Itemize
12488 \begin_inset space \hfill{}
12492 \begin_inset Newline newline
12500 \begin_layout Itemize
12504 \begin_inset space \hfill{}
12508 \begin_inset Newline newline
12513 カメラの動きの指示。例:CUT TO:。
12516 \begin_layout Itemize
12520 \begin_inset space \hfill{}
12526 \begin_layout Itemize
12530 \begin_inset space \hfill{}
12536 \begin_layout Itemize
12540 \begin_inset space \hfill{}
12546 \begin_layout Itemize
12550 \begin_inset space \hfill{}
12556 \begin_layout Subsection
12560 \begin_layout Itemize
12564 \begin_layout Itemize
12568 \begin_layout Itemize
12573 \begin_layout Itemize
12578 \begin_layout Itemize
12579 PAN — camera movement
12582 \begin_layout Itemize
12583 INSERT — cut to close-up of
12586 \begin_layout Section
12590 \begin_layout Standard
12593 Panayotis Papasotiriou
12598 \begin_layout Subsection
12602 \begin_layout Standard
12605 International Journal of Modern Physics C
12607 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12609 International Journal of Modern Physics D
12611 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12619 です。これらのファイルは、著者のための指針とともに、
12620 \begin_inset Flex URL
12623 \begin_layout Plain Layout
12625 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12631 \begin_inset Flex URL
12634 \begin_layout Plain Layout
12636 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12641 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12643 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12644 で書き上げましたが、何らの問題も生じませんでした。
12647 \begin_layout Subsection
12651 \begin_layout Standard
12652 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12654 ファイル\SpecialChar menuseparator
12665 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12669 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12672 \begin_layout Enumerate
12673 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12674 中でこれらを変更することはできません。
12677 \begin_layout Enumerate
12678 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12680 ツール\SpecialChar menuseparator
12695 をクリックすれば、設定することができます(この変更を固定するなら
12702 \begin_layout Enumerate
12703 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12706 \begin_layout Enumerate
12707 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12708 ートされていませんので、ご注意ください。
12711 \begin_layout Enumerate
12712 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12713 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12714 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12717 \begin_layout Enumerate
12718 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12719 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12720 されます。引用に通常の本文を使用したい場合には、「See Ref.
12721 \begin_inset space \space{}
12731 \begin_inset Flex Ruby
12734 \begin_layout Plain Layout
12740 \begin_inset Argument post:1
12743 \begin_layout Plain Layout
12765 \begin_layout Enumerate
12766 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12769 \begin_layout Enumerate
12778 であれば、入れることができます。\SpecialChar LyX
12779 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12780 てはなりません。この環境は、\SpecialChar LaTeX
12781 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12782 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12783 付録であることを明示します。「付録領域」は、最初の付録の前に
12787 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12790 \begin_layout Enumerate
12791 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12795 コマンドを使用します。そのため、\SpecialChar LyX
12796 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12797 コードを少し使えば、この問題を回避して、キャプション
12798 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12805 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12810 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12815 ファイルに収め、このファイルを\SpecialChar LyX
12818 挿入\SpecialChar menuseparator
12819 ファイル\SpecialChar menuseparator
12822 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12833 \begin_layout Subsection
12837 \begin_layout Standard
12838 論文を投稿する前には、\SpecialChar LyX
12839 文書を\SpecialChar LaTeX
12842 ファイル\SpecialChar menuseparator
12843 書き出し\SpecialChar menuseparator
12851 \begin_layout Plain Layout
12852 実は、\SpecialChar LaTeX
12853 (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12854 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12863 ファイルに以下の変更を加える必要があります。
12866 \begin_layout Enumerate
12873 コマンドより前にあるコメント行を削除する。
12876 \begin_layout Enumerate
12877 自身で明示的に\SpecialChar LaTeX
12890 コマンドの間にあるものをすべて削除する。
12893 \begin_layout Standard
12898 ファイルを保存し、必要な回数\SpecialChar LaTeX
12899 で処理してください。それによって得られた
12903 文書も確認された方がよろしいでしょう。
12906 \begin_layout Subsection
12911 \begin_layout Standard
12913 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12921 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12922 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12924 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12929 markboth{著者名}{論文の短縮タイトル}
12934 \begin_layout Section
12938 \begin_layout Standard
12946 \begin_layout Subsection
12950 \begin_layout Standard
12951 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12952 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12953 \begin_inset Flex URL
12956 \begin_layout Plain Layout
12958 ftp://ftp.iop.org/pub/journals/latex2e
12963 からiopartパッケージとともにダウンロード可能です。
12966 \begin_layout Subsection
12970 \begin_layout Standard
12971 論文を書くもっとも簡単な方法は、\SpecialChar LyX
12976 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12977 な助言として、以下の点にご注意ください。
12980 \begin_layout Itemize
12981 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12989 関連オプションが有効になっていないことを確認してください!
12992 \begin_layout Itemize
12993 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12994 \begin_inset Separator parbreak
13001 \begin_layout Itemize
13007 \begin_layout Itemize
13013 \begin_layout Itemize
13019 \begin_layout Itemize
13025 \begin_layout Itemize
13031 \begin_layout Itemize
13039 \begin_layout Itemize
13040 Preliminary communication用には
13045 \begin_layout Itemize
13046 Rapid communication用には
13051 \begin_layout Itemize
13058 \begin_layout Itemize
13063 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13066 \begin_layout Itemize
13068 では直接にサポートされていませんが、一般的なタイトル環境として
13072 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13073 コードでこれを指定することができます。
13076 \begin_layout Standard
13077 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13080 \begin_layout Section
13084 \begin_layout Standard
13087 Panayotis Papasotiriou
13092 \begin_layout Subsection
13096 \begin_layout Standard
13097 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13098 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13100 Astrophysics and Space Science
13106 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13107 \begin_inset Flex URL
13110 \begin_layout Plain Layout
13112 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13117 に全覧があります)。Kluwerパッケージは、
13118 \begin_inset Flex URL
13121 \begin_layout Plain Layout
13123 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13128 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13131 \begin_layout Standard
13133 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13134 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13136 \begin_inset CommandInset ref
13138 reference "subsec:kluwer_peculiarities"
13142 参照)。最近、私は\SpecialChar LyX
13145 Astrophysics and Space Science
13147 に投稿しましたが、何らの問題も発生しませんでした。
13150 \begin_layout Subsection
13154 \begin_layout Standard
13155 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13157 ファイル\SpecialChar menuseparator
13164 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13169 を含む)正しい情報で上書きしてください。
13172 \begin_layout Subsection
13176 \begin_layout Standard
13177 AAS\SpecialChar TeX
13178 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13181 \begin_layout Enumerate
13184 ファイル\SpecialChar menuseparator
13185 書き出し\SpecialChar menuseparator
13188 をクリックして、論文を\SpecialChar LaTeX
13192 \begin_layout Enumerate
13197 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13198 \begin_inset Separator parbreak
13205 \begin_layout Enumerate
13212 コマンドより前にあるコメント行を削除する。
13215 \begin_layout Enumerate
13216 意図的に\SpecialChar LaTeX
13229 の間にあるものを、これらのコマンドも含め、すべて削除する。
13232 \begin_layout Standard
13241 \begin_layout Enumerate
13246 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13250 \begin_layout Enumerate
13259 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13262 \begin_layout Subsection
13263 Kluwerパッケージの「風変わり」な特徴
13264 \begin_inset CommandInset label
13266 name "subsec:kluwer_peculiarities"
13273 \begin_layout Standard
13274 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13277 \begin_layout Enumerate
13278 複数の論文を1つの\SpecialChar LaTeX
13283 \begin_layout Plain Layout
13284 わざわざこんなことをする必要はないでしょう。
13289 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13301 で終わります。この環境を\SpecialChar LyX
13302 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13314 )は、直接本文中に入力して、\SpecialChar LaTeX
13315 コード(「\SpecialChar TeX
13316 コード」のことです)としてマークする必要があります。
13319 \begin_layout Enumerate
13320 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13321 はなりません。これは\SpecialChar LyX
13322 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13338 \begin_layout Enumerate
13339 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13342 \begin_inset Newline newline
13366 \begin_layout Standard
13371 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13375 \begin_layout Enumerate
13376 ひな型にある\SpecialChar TeX
13380 \begin_layout Enumerate
13381 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13384 \begin_layout Section
13388 \begin_layout Standard
13396 \begin_layout Subsection
13400 \begin_layout Standard
13404 article (koma-script)
13408 report (koma-script)
13426 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13443 に対応しています。これらは、標準文書クラス
13459 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13462 \begin_layout Itemize
13465 article (koma-script)
13469 report (koma-script)
13477 letter (koma-script)
13482 \begin_layout Itemize
13483 見出しや箇条書き(記述)環境のラベル、および
13485 letter (koma-script)
13487 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13491 \begin_layout Plain Layout
13492 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13493 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13497 作の\SpecialChar LaTeX
13507 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13508 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13509 とができます(\SpecialChar LyX
13512 文書\SpecialChar menuseparator
13519 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13526 \begin_layout Itemize
13527 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13535 オプションを使う方法です(\SpecialChar LyX
13538 文書\SpecialChar menuseparator
13545 フィールドで指定します)。これらのオプションは
13547 文書\SpecialChar menuseparator
13550 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13558 \begin_layout Itemize
13559 Koma-Scriptファミリーの\SpecialChar LaTeX
13560 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13561 で意味を持つものは、対応する段落環境として実装されています
13565 \begin_layout Standard
13566 Koma-Scriptファミリーの\SpecialChar LaTeX
13567 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13575 \begin_layout Plain Layout
13585 。以下の各節では、\SpecialChar LyX
13589 \begin_layout Subsection
13590 article (koma-script)・report (koma-script)・book (koma-script)
13593 \begin_layout Standard
13596 article (koma-script)
13600 report (koma-script)
13622 によって実装されています。これらは、対応する標準文書クラス
13634 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13639 環境は例外であり、同じ機能を持つ新しい
13647 環境以外にも、新しい段落環境が多く追加されています。これらは、
13649 letter (koma-script)
13651 には含まれていないのでご注意ください。
13654 \begin_layout Itemize
13679 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13689 article (koma-script)
13694 \begin_layout Itemize
13711 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13717 article (koma-script)
13723 \begin_layout Plain Layout
13730 report (koma-script)
13742 と同一なので、\SpecialChar LyX
13751 \begin_layout Itemize
13756 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13759 \begin_layout Itemize
13768 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13769 ねに表の上に置くべきでしょう)。また、クラスオプション
13773 を用いれば、キャプションを指定すると、表には
13781 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13784 \begin_layout Itemize
13789 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13791 挿入\SpecialChar menuseparator
13794 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13800 article (koma-script)
13805 \begin_layout Standard
13818 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13822 \begin_layout Plain Layout
13823 つまり、対応する\SpecialChar LaTeX
13830 コマンドよりも前に現れなくてはなりません。
13835 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13847 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13850 \begin_layout Itemize
13867 )の上に、文書の主題用の中央揃えの段落を生成します。
13870 \begin_layout Itemize
13887 )の下に、出版社名用の中央揃えの段落を生成します。
13890 \begin_layout Itemize
13897 report (koma-script)
13903 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13905 article (koma-script)
13919 )の下に献辞用の中央揃えの段落を生成します。
13922 \begin_layout Itemize
13939 )の上に、文書頭書き用の左揃えの段落を生成します。
13942 \begin_layout Itemize
13949 report (koma-script)
13955 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13957 article (koma-script)
13962 \begin_layout Itemize
13969 report (koma-script)
13975 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13977 article (koma-script)
13982 \begin_layout Itemize
13987 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13990 \begin_layout Standard
13993 article (koma-script)
13997 report (koma-script)
14007 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14011 を、個人用レイアウトディレクトリにコピーして編集してください!
14014 \begin_layout Subsection
14015 letter (koma-script)
14018 \begin_layout Standard
14022 letter (koma-script)
14028 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14032 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14050 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14067 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14070 \begin_layout Standard
14071 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14072 コマンドを\SpecialChar LaTeX
14073 プリアンブルに置くことで制御することができます
14077 \begin_layout Plain Layout
14078 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14082 \begin_layout LyX-Code
14092 \begin_layout LyX-Code
14108 \begin_layout LyX-Code
14118 \begin_layout LyX-Code
14134 \begin_layout LyX-Code
14142 。これらの\SpecialChar LaTeX
14143 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14147 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14150 \begin_layout Standard
14159 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14160 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14168 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14172 環境は、同じ受取人への書簡を新しく書き出すものであり、
14176 環境は、新しい受取人を生成するものです。
14192 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14195 \begin_layout Itemize
14200 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14203 \begin_layout Itemize
14208 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14211 \begin_layout Itemize
14219 \begin_layout Itemize
14227 \begin_layout Itemize
14235 \begin_layout Itemize
14243 \begin_layout Standard
14284 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14288 \begin_layout Plain Layout
14297 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14298 一文字をマークした通常の段落環境として実装しました。さらに、
14306 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14318 \begin_layout Standard
14319 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14324 環境で入力した署名は、標準的な挙動では、同じ書簡に
14328 環境も使用されているときのみ、書簡の出力に現れます。
14332 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14335 \begin_layout Standard
14336 入力環境は、空の段落として使うことができます。これは、たとえば
14344 環境を全く使用しない場合は、標準的な挙動では、
14348 環境の値が署名として使用されますが、空の
14352 環境を作成しておくと、署名の値は無定義となりません。
14355 \begin_layout Standard
14356 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14359 \begin_layout Itemize
14364 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14367 \begin_layout Itemize
14387 \begin_layout Itemize
14392 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14395 \begin_layout Itemize
14400 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14410 \begin_layout Itemize
14418 \begin_layout Itemize
14431 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14439 の値如何に関わらず、場所も日付も表示されません。
14443 環境を使用しない場合には、書簡を出力した日付が使用されます。
14446 \begin_layout Itemize
14451 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14454 \begin_layout Itemize
14459 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14462 \begin_layout Itemize
14467 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14470 \begin_layout Itemize
14475 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14478 \begin_layout Itemize
14490 \begin_layout Standard
14493 Yourref・Yourmail・Myref・顧客・インボイス
14499 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14500 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14504 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14508 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14515 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14523 \begin_layout Itemize
14531 \begin_layout Itemize
14539 \begin_layout Itemize
14547 \begin_layout Itemize
14555 \begin_layout Itemize
14563 \begin_layout Subsection
14564 新しいletterクラス:letter (koma-script v.2)
14567 \begin_layout Standard
14571 \begin_inset VSpace medskip
14577 \begin_layout Standard
14579 Koma-Script第2.8版では、新しいletterクラス
14587 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14588 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14590 ますが、新しい方のクラスを使用することを推奨します。
14593 \begin_layout Standard
14596 letter (koma-script)
14598 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14618 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14636 挿入\SpecialChar menuseparator
14643 を入れることができるようになった点です。
14646 \begin_layout Standard
14647 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14648 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14656 \begin_layout Plain Layout
14661 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14675 文書\SpecialChar menuseparator
14676 設定\SpecialChar menuseparator
14677 文書クラス\SpecialChar menuseparator
14684 を加えることで読み込むことができます。
14689 。用例としては、\SpecialChar LyX
14694 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14701 \begin_layout Subsection
14705 \begin_layout Standard
14706 Koma-Script文書クラスを\SpecialChar LyX
14707 上に表示する上で、\SpecialChar LyX
14711 \begin_layout Itemize
14716 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14720 ラベル型に対する\SpecialChar LyX
14724 \begin_layout Itemize
14733 環境の見出しは、「本当の」\SpecialChar LaTeX
14734 の目次には追加されますが、\SpecialChar LyX
14742 \begin_layout Itemize
14747 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14750 文書\SpecialChar menuseparator
14753 ダイアログでは、対応するラジオボタンは
14761 は、隙間を空けるために、文書に\SpecialChar LaTeX
14762 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14765 \begin_layout Section
14769 \begin_layout Standard
14777 \begin_layout Subsection
14781 \begin_layout Standard
14782 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14783 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14787 \begin_layout Standard
14788 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14789 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14790 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14791 は、これらすべての素晴らしい機能をネイティブでサポ
14792 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14796 \begin_layout Plain Layout
14798 \begin_inset Flex URL
14801 \begin_layout Plain Layout
14803 lyx-devel@lists.lyx.org
14814 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14815 コマンド(\SpecialChar TeX
14820 \begin_layout Plain Layout
14822 \begin_inset CommandInset ref
14824 reference "sec:LaTeXコードを挿入する"
14833 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14834 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14835 は、Memoirクラスの詳しい取扱説明書
14839 \begin_layout Plain Layout
14841 \begin_inset Flex URL
14844 \begin_layout Plain Layout
14846 CTAN:/macros/latex/memoir/memman.pdf
14856 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14860 \begin_layout Subsection
14864 \begin_layout Standard
14865 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14868 \begin_layout Description
14869 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14872 \begin_layout Description
14873 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14875 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14877 文書\SpecialChar menuseparator
14878 設定\SpecialChar menuseparator
14881 参照)。これらを章題ページに使用したい場合には、コマンド
14887 を、本文またはプリアンブルに記述する必要があります(例えば、
14891 chapterstyle{companion}
14896 \begin_layout Description
14897 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14898 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14901 挿入\SpecialChar menuseparator
14904 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14905 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14906 のものにヘッダ用短縮タイトルを入れてください。
14909 \begin_layout Description
14910 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14911 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14914 \begin_layout Description
14915 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14920 aliaspagestyle{title}{empty}
14925 \begin_layout Description
14932 文書\SpecialChar menuseparator
14933 設定\SpecialChar menuseparator
14936 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14937 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14940 \begin_layout Description
14941 Oldfontcommands: \SpecialChar LaTeX
14942 旧2.09版で使用されていた旧いフォントコマンド(
14954 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14960 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14961 は停止しなくなります)。まだ、多くのパッケージと、
14962 就中多くのBib\SpecialChar TeX
14963 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14966 \begin_layout Subsection
14970 \begin_layout Standard
14972 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14976 \begin_layout Plain Layout
14977 \begin_inset Flex URL
14980 \begin_layout Plain Layout
14982 CTAN:/macros/latex/memoir/memman.pdf
14995 \begin_layout Description
14996 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14997 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
15000 \begin_layout Description
15001 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15002 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15005 \begin_layout Description
15006 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15007 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15008 を少しだます必要があります。ここでは、2つの引数の間に、
15018 のように、(\SpecialChar TeX
15019 モードで)波括弧を入れなくてはなりません。
15022 \begin_layout Description
15023 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15024 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15025 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15027 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15031 \begin_layout Description
15032 詩題*: 目次に現れない他は詩題と同じです。
15035 \begin_layout Section
15036 Article (mwart)・book (mwbk)・report (mwrep)
15037 \begin_inset Argument status
15040 \begin_layout Plain Layout
15053 \begin_layout Standard
15061 \begin_layout Standard
15069 report (mwrep)・book
15075 は、それぞれ\SpecialChar LaTeX
15100 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15103 \begin_layout Standard
15107 \begin_layout Itemize
15115 \begin_layout Itemize
15117 \begin_inset Separator parbreak
15124 \begin_layout Description
15128 \begin_layout Description
15144 \begin_layout Description
15145 myuheadings 分離線付きカスタムヘッダ
15148 \begin_layout Description
15153 \begin_layout Itemize
15155 \begin_inset Separator parbreak
15162 \begin_layout Description
15163 rmheadings セリフ体見出し — 既定
15166 \begin_layout Description
15167 sfheadings サンセリフ体見出し
15170 \begin_layout Description
15171 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15174 \begin_layout Description
15175 titleauthor タイトルページは、タイトル・著者名の順で配置
15178 \begin_layout Description
15179 withmarginpar ページ上に余白のための場所を確保
15183 \begin_layout Section
15187 \begin_layout Standard
15200 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15203 \begin_layout Section
15204 Rev\SpecialChar TeX
15208 \begin_layout Standard
15214 \begin_layout Standard
15215 \begin_inset VSpace bigskip
15221 \begin_layout Standard
15226 \begin_inset space ~
15231 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15233 \begin_inset Formula $\beta$
15239 \begin_layout Standard
15241 には、Rev\SpecialChar TeX
15246 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15247 2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15248 は\SpecialChar LaTeX2e
15249 を必要とすることから、第3.1版は\SpecialChar LyX
15251 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15252 4.0は、\SpecialChar LaTeX2e
15253 で素直に動作するようにデザインされているので、\SpecialChar LyX
15256 Rev\SpecialChar TeX
15258 \begin_inset space ~
15263 テキストクラスの組で使用するのは、たいへん簡単です。
15266 \begin_layout Standard
15267 この取扱説明書は、Rev\SpecialChar TeX
15272 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15273 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15277 \begin_layout Subsection
15281 \begin_layout Standard
15282 Rev\SpecialChar TeX
15283 4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15284 4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15287 \begin_inset Flex URL
15290 \begin_layout Plain Layout
15292 http://publish.aps.org/revtex4/
15297 から入手することができます。これを\SpecialChar LaTeX
15298 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15299 ィレクトリ)で簡単なRev\SpecialChar TeX
15300 4文書を \SpecialChar LaTeX
15301 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15302 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15307 \begin_layout Standard
15312 を使ってRev\SpecialChar TeX
15313 4文書を読み込むか、またはひな型ディレクトリにある
15316 \begin_inset space ~
15321 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15324 \begin_layout Subsection
15328 \begin_layout Standard
15335 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15337 文書\SpecialChar menuseparator
15338 設定\SpecialChar menuseparator
15345 フィールドに入れます。Rev\SpecialChar TeX
15346 では、少なくとも一つの非必須引数が必要なことに注意してください。
15349 \begin_layout Standard
15356 など他のプリアンブルは、他のクラス同様、
15358 文書\SpecialChar menuseparator
15359 設定\SpecialChar menuseparator
15366 \begin_layout Subsection
15370 \begin_layout Standard
15371 レイアウトは、基本的にRev\SpecialChar TeX
15372 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15378 に対応しています。(少なくともRev\SpecialChar TeX
15387 はまったく同じものなので、両方を使う必要はありません
15391 \begin_layout Plain Layout
15416 \begin_layout Subsection
15420 \begin_layout Standard
15421 Rev\SpecialChar TeX
15422 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15423 ではさらに気をつけなくてはなりません。
15426 \begin_layout Standard
15427 Rev\SpecialChar TeX
15444 に来なくてはなりません。\SpecialChar LyX
15453 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15457 \begin_layout Standard
15478 )レイアウトの間に置かなければなりません。
15486 の後に置いてしまうと、\SpecialChar LaTeX
15490 \begin_layout Subsection
15494 \begin_layout Standard
15495 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15496 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15498 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15499 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15512 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15516 \begin_layout Plain Layout
15521 実は、\SpecialChar LyX
15522 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15530 \begin_layout Section
15536 \begin_layout Standard
15544 \begin_layout Subsection
15548 \begin_layout Standard
15549 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15550 \begin_inset Flex URL
15553 \begin_layout Plain Layout
15555 http://www.springer.de/author/tex/help-journals.html
15560 に必要なクラスファイル(\SpecialChar LaTeX2e
15561 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15565 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15572 \begin_layout Standard
15573 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15588 \begin_layout Standard
15589 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15597 は、標準\SpecialChar LyX
15598 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15599 を再設定した後(teTeXの場合は、必
15604 を実行します)、\SpecialChar LyX
15608 \begin_layout Subsection
15612 \begin_layout Standard
15621 ・\SpecialChar ldots
15629 \begin_layout Standard
15640 サブタイトル・ヘッダ用\SpecialChar LaTeX
15641 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15644 。詳しくは Springerのクラスファイルの説明書を読んでください。
15647 \begin_layout Subsection
15651 \begin_layout Itemize
15663 \begin_layout Itemize
15666 Probability Theory and Related Fields
15672 — Jean-Marc Lasgouttes
15675 \begin_layout Standard
15676 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15679 \begin_layout Subsection
15683 \begin_layout Standard
15692 は Springerの\SpecialChar LaTeX
15693 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15694 Lasgouttesのおかげで \SpecialChar LyX
15695 のレイアウトファイルのメカニズムをよりよく理解することができました。
15698 \begin_layout Subsection
15702 \begin_layout Standard
15707 よりは少なくなっているとは思いますが。
15710 \begin_layout Standard
15711 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15714 \begin_layout Section
15717 Sli\SpecialChar TeX
15724 \begin_layout Plain Layout
15725 (訳註)この節の内容は、全般的に古くなっています。
15731 \begin_inset CommandInset label
15740 \begin_layout Standard
15748 \begin_layout Subsection
15752 \begin_layout Standard
15753 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15754 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15756 Foil\SpecialChar TeX
15759 スライドクラスの2つがあります。本節は前者について説明を行います。
15762 \begin_layout Standard
15763 誤解のないように、正しく明確に、もう一度言っておきます。
15766 \begin_layout Standard
15767 \begin_inset VSpace bigskip
15773 \begin_layout Standard
15778 \begin_inset Quotes eld
15783 transparencies (slides)
15786 \begin_inset Quotes erd
15796 \begin_layout Standard
15797 \begin_inset VSpace bigskip
15803 \begin_layout Standard
15806 「slides (Foil\SpecialChar TeX
15810 \begin_inset CommandInset ref
15812 reference "sec:foiltex"
15822 slides (Foil\SpecialChar TeX
15833 \begin_layout Plain Layout
15837 Foil\SpecialChar TeX
15840 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15848 \begin_layout Standard
15849 このクラスは、旧SLI\SpecialChar TeX
15850 パッケージを\SpecialChar LaTeX2e
15851 用に改良したものです。\SpecialChar LaTeX2e
15852 頒布版すべてが、このクラス(以下では単に「
15856 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15860 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15865 ならばできることもあります。詳しくは以下をお読みください。
15868 \begin_layout Subsection
15870 \begin_inset CommandInset label
15872 name "sec:slidesetup"
15879 \begin_layout Standard
15880 当然ながら、この文書クラスを使用するには、
15882 文書\SpecialChar menuseparator
15887 transparencies (slides)
15889 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15892 \begin_layout Itemize
15901 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15905 クラスではサポートされていないので、効果がありません。
15908 \begin_layout Itemize
15913 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15914 \begin_inset Separator parbreak
15921 \begin_layout Description
15922 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15925 \begin_layout Description
15930 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15933 \begin_layout Description
15934 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15938 \begin_layout Itemize
15947 というオプションがあります。これを使用するには、
15956 \begin_inset Separator parbreak
15963 \begin_layout Standard
15968 にタイムマーカーを加えることができます。詳細は、第
15969 \begin_inset CommandInset ref
15971 reference "sec:スライド注釈"
15979 \begin_layout Standard
15984 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15988 」を使用することもできます(新規ファイルを開く際に
15990 ファイル\SpecialChar menuseparator
15993 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15996 \begin_layout Subsection
16000 \begin_layout Subsubsection
16006 \begin_layout Standard
16011 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16019 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16020 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16023 \begin_layout Standard
16024 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16029 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16032 \begin_layout Itemize
16038 \begin_layout Itemize
16044 \begin_layout Itemize
16050 \begin_layout Itemize
16056 \begin_layout Itemize
16062 \begin_layout Itemize
16068 \begin_layout Itemize
16074 \begin_layout Itemize
16080 \begin_layout Itemize
16086 \begin_layout Itemize
16093 \begin_layout Itemize
16099 \begin_layout Standard
16100 これ以外の標準的な環境、例えば節見出し用の環境などは
16107 \begin_layout Standard
16111 \begin_layout Itemize
16117 \begin_layout Itemize
16123 \begin_layout Itemize
16129 \begin_layout Itemize
16135 \begin_layout Itemize
16141 \begin_layout Standard
16142 これら5つの環境は、\SpecialChar LyX
16143 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16144 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16145 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16149 \begin_layout Subsubsection
16151 \begin_inset CommandInset label
16160 \begin_layout Standard
16161 5つの新しい環境にはすべて、\SpecialChar LyX
16162 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16163 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16171 』で述べられているような段落環境ではなくなっています。
16174 \begin_layout Standard
16187 は「疑似環境」だとお考えください。これらは節見出しや「
16191 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16199 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16202 \begin_layout Standard
16223 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16243 では、まったく意味がなく、\SpecialChar LyX
16244 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16247 \begin_layout Standard
16256 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16264 \begin_layout Standard
16265 一方、説明文を入れたくない場合には、\SpecialChar LyX
16266 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16267 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16271 \begin_layout Itemize
16299 \begin_layout Itemize
16303 \begin_layout Itemize
16311 \begin_layout Itemize
16335 \begin_layout Standard
16336 将来の\SpecialChar LyX
16337 では、このような癖が解決されることを祈っています\SpecialChar ldots
16342 \begin_layout Plain Layout
16343 (訳註)ここの記述は古くなっています。
16351 \begin_layout Subsection
16365 \begin_layout Subsubsection
16373 \begin_layout Standard
16374 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16379 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16383 \begin_layout Standard
16389 \begin_inset CommandInset ref
16391 reference "sec:スライドの癖"
16395 節参照のこと)、\SpecialChar LyX
16396 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16397 環境は、すべて新規スライドに入ります。簡単ですよね。
16400 \begin_layout Standard
16401 Slidesは、おそらく\SpecialChar LyX
16402 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16406 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16407 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16415 \begin_layout Standard
16428 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16436 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16439 \begin_layout Standard
16452 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16460 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16463 \begin_layout Subsubsection
16469 \begin_layout Standard
16474 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16478 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16482 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16483 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16490 \begin_layout Standard
16507 \begin_layout Plain Layout
16508 想像できるように、複数のオーバーレイがあれば、「
16520 」などが親スライドのページ番号に付け加えられます。
16533 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16541 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16550 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16558 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16561 \begin_layout Standard
16562 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16563 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16564 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16575 \begin_layout Standard
16584 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16585 \begin_inset CommandInset ref
16587 reference "sec:スライドの癖"
16599 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16607 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16610 \begin_layout Standard
16615 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16631 は自動的に終了されることに注意してください。したがって、
16642 \begin_layout Standard
16659 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16662 \begin_layout Enumerate
16667 かに関わらず、スライド上に現れるすべてを含んだ
16674 \begin_layout Enumerate
16679 のみに表示するすべての図や段落の前に、
16694 \begin_layout Enumerate
16706 \begin_layout Enumerate
16718 \begin_layout Enumerate
16742 \begin_layout Standard
16750 \begin_layout Standard
16756 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16757 実現するためには、\SpecialChar LaTeX
16762 \begin_layout Plain Layout
16766 \begin_layout Itemize
16771 invisible \SpecialChar ldots
16775 \begin_layout Itemize
16780 visible \SpecialChar ldots
16784 \begin_layout Plain Layout
16786 のような形となり、\SpecialChar TeX
16787 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16799 コマンドの後ろ)に入れます。\SpecialChar TeX
16800 としてマークする方法がわからない場合は、
16812 \begin_layout Subsubsection
16818 \begin_inset CommandInset label
16827 \begin_layout Standard
16840 に関連付けられています。ここでも\SpecialChar LyX
16853 よりも短く(オーバーレイのラベルよりも長いですが)、
16857 のラベルと同様、派手な赤紫色です。加えて、印刷した
16873 3」等を付けたページ番号が付けられます。1つの
16889 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16892 \begin_layout Standard
16901 に関して付け加えたいことを書き留めておくことです。特定の
16905 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16915 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16916 コードを使用することに頼らなくてはなりません。
16919 \begin_layout Standard
16920 タイムマーカを使用するには、クラスオプション「
16925 \begin_inset CommandInset ref
16927 reference "sec:slidesetup"
16931 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16935 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16948 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16954 」は、タイムマーカを特定の時間に設定し、「
16960 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16968 にどれだけの時間をかけるのか忘れないでいられます。
16971 \begin_layout Standard
16972 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16984 はすべて普通の紙に印刷したいはずです。しかしながら、
16992 。ユーザーはどうしたら良いのでしょうか。
16995 \begin_layout Standard
16996 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16997 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
17013 のみが含まれるようにするものです。同様に、「
17025 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17026 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17035 のコメントを外して、現ファイル名に「*
17039 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17051 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17054 \begin_layout Standard
17067 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17071 \begin_layout Subsection
17079 \begin_layout Standard
17088 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17090 ファイル\SpecialChar menuseparator
17093 メニューを選択してください。すると新規ファイルには、
17121 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17124 \begin_layout LyX-Code
17125 % Uncomment to print out only slides and overlays
17128 \begin_layout LyX-Code
17132 \begin_layout LyX-Code
17138 \begin_inset Newline newline
17144 \begin_layout LyX-Code
17145 % Uncomment to print out only notes
17148 \begin_layout LyX-Code
17152 \begin_layout LyX-Code
17160 \begin_layout Standard
17161 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17164 Sli\SpecialChar TeX
17167 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17168 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17169 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17174 \begin_inset CommandInset ref
17176 reference "sec:foiltex"
17184 」パッケージ(一部の\SpecialChar TeX
17185 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17186 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17190 \begin_layout Chapter
17191 ソフトウェアを追加する必要がある \SpecialChar LyX
17195 \begin_layout Section
17200 \begin_layout Standard
17208 \begin_layout Subsection
17212 \begin_layout Standard
17221 \begin_layout Plain Layout
17223 頒布版としてMiK\SpecialChar TeX
17247 \begin_inset Newline newline
17251 \begin_inset CommandInset href
17253 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17260 \begin_layout Standard
17263 Chk\SpecialChar TeX
17266 パッケージは、\SpecialChar LaTeX
17267 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17268 \begin_inset Flex Noun
17271 \begin_layout Plain Layout
17278 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17279 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17286 \begin_layout Standard
17287 さて、\SpecialChar LyX
17288 はつねに正しい\SpecialChar LaTeX
17289 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17290 で何をするというのでしょうか。答えは簡単です。
17298 をチェックするだけでなく、打ち間違いによる
17304 Chk\SpecialChar TeX
17313 Chk\SpecialChar TeX
17316 は、以下のような誤りを検出することができます。
17319 \begin_layout Itemize
17321 \begin_inset Newline newline
17324 ...ではなく\SpecialChar ldots
17328 \begin_layout Itemize
17330 \begin_inset Newline newline
17333 ( wrong spacing ):誤った空白
17336 \begin_layout Itemize
17337 よく使われる省略形の後ろは通常スペースにする:
17338 \begin_inset Newline newline
17342 \begin_inset space \thinspace{}
17346 \begin_inset space \space{}
17349 is too wide spacing.:広すぎる空白
17352 \begin_layout Itemize
17353 直前の文章が大文字で終わっているときに、文末スペースに直す:
17354 \begin_inset Newline newline
17358 And this is wrong spacing.:誤った空白
17361 \begin_layout Itemize
17363 \begin_inset Newline newline
17366 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。
17367 \begin_inset CommandInset label
17377 \begin_layout Plain Layout
17378 この脚注は、正しくないページに行ってしまう恐れがあります。
17386 \begin_layout Itemize
17387 参照の前にハードスペースではなくスペース:
17388 \begin_inset Newline newline
17391 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17392 \begin_inset CommandInset ref
17394 reference "sec:chktex"
17401 \begin_layout Itemize
17403 \begin_inset Formula $\times$
17407 \begin_inset Newline newline
17411 \begin_inset Formula $2\times2$
17417 \begin_layout Standard
17418 などなど\SpecialChar ldots
17421 Chk\SpecialChar TeX
17424 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17427 \begin_layout Subsection
17431 \begin_layout Standard
17432 このプログラムを導入したならば、使うのは
17434 ツール\SpecialChar menuseparator
17438 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17439 は使用中の文書の\SpecialChar LaTeX
17442 Chk\SpecialChar TeX
17445 を起動し、当該ファイルを検査しますが、
17447 Chk\SpecialChar TeX
17450 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17451 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17453 移動\SpecialChar menuseparator
17461 \begin_inset Flex Ruby
17464 \begin_layout Plain Layout
17466 \begin_inset Argument post:1
17469 \begin_layout Plain Layout
17481 \begin_inset Flex Ruby
17484 \begin_layout Plain Layout
17504 \begin_inset Argument post:1
17507 \begin_layout Plain Layout
17522 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17538 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17540 Chk\SpecialChar TeX
17543 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17547 \begin_layout Standard
17548 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17549 警告のほとんどは実際には警告に値しません。
17552 \begin_layout Subsection
17556 \begin_layout Standard
17559 Chk\SpecialChar TeX
17562 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17564 Chk\SpecialChar TeX
17567 を無効にするか、あなたにもう少し合うように
17569 Chk\SpecialChar TeX
17575 \begin_layout Standard
17578 Chk\SpecialChar TeX
17581 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
17584 Chk\SpecialChar TeX
17587 関連の問題が、それですべて解決すると思うべきではありません。\SpecialChar LyX
17590 Chk\SpecialChar TeX
17597 \begin_layout Plain Layout
17608 文書\SpecialChar menuseparator
17617 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17618 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17619 ためには、以下の2つの方法があります。
17622 \begin_layout Itemize
17625 \begin_inset Flex MenuItem
17628 \begin_layout Plain Layout
17631 ツール\SpecialChar menuseparator
17632 設定\SpecialChar menuseparator
17633 出力\SpecialChar menuseparator
17635 \SpecialChar menuseparator
17636 Check\SpecialChar TeX
17646 Chk\SpecialChar TeX
17649 起動コマンドラインを調整するか、グローバルな
17651 Chk\SpecialChar TeX
17655 \begin_inset Flex Code
17658 \begin_layout Plain Layout
17664 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17667 \begin_layout Itemize
17670 ファイル\SpecialChar menuseparator
17671 書き出し\SpecialChar menuseparator
17675 を使って文書を\SpecialChar LaTeX
17676 ファイルに変換し、そのファイルに対して
17680 を手動で実行します。このようにすると、\SpecialChar LyX
17681 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17684 \begin_layout Standard
17689 で有効化・無効化できる警告メッセージです。警告を無効にするには
17697 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17699 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17704 \begin_layout Standard
17710 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17713 \begin_layout Enumerate
17717 Command terminated with space.
17720 \begin_layout Enumerate
17723 Non-breaking space (
17724 \begin_inset Quotes eld
17732 \begin_inset Quotes erd
17735 ) should have been used.
17738 \begin_layout Enumerate
17742 You should enclose the previous parenthesis with
17743 \begin_inset Quotes eld
17751 \begin_inset Quotes erd
17757 \begin_layout Enumerate
17760 Italic correction (
17761 \begin_inset Quotes eld
17771 \begin_inset Quotes erd
17774 ) found in non-italic buffer.
17777 \begin_layout Enumerate
17780 Italic correction (
17781 \begin_inset Quotes eld
17791 \begin_inset Quotes erd
17794 ) found more than once.
17797 \begin_layout Enumerate
17801 No italic correction (
17802 \begin_inset Quotes eld
17812 \begin_inset Quotes erd
17818 \begin_layout Enumerate
17822 \begin_inset Quotes eld
17830 \begin_inset Quotes erd
17834 \begin_inset Quotes eld
17842 \begin_inset Quotes erd
17848 \begin_layout Enumerate
17851 Wrong length of dash may have been used.
17854 \begin_layout Enumerate
17858 \begin_inset Quotes eld
17866 \begin_inset Quotes erd
17870 \begin_inset Quotes eld
17878 \begin_inset Quotes erd
17884 \begin_layout Enumerate
17888 \begin_inset Quotes eld
17896 \begin_inset Quotes erd
17902 \begin_layout Enumerate
17906 \begin_inset Quotes eld
17914 \begin_inset Quotes erd
17917 to achieve an ellipsis.
17920 \begin_layout Enumerate
17923 Inter-word spacing (
17924 \begin_inset Quotes eld
17934 \begin_inset Quotes eld
17937 ) should perhaps be used.
17940 \begin_layout Enumerate
17943 Inter-sentence spacing (
17944 \begin_inset Quotes eld
17954 \begin_inset Quotes erd
17957 ) should perhaps be used.
17960 \begin_layout Enumerate
17963 Could not find argument for command.
17966 \begin_layout Enumerate
17970 \begin_inset Quotes eld
17978 \begin_inset Quotes erd
17984 \begin_layout Enumerate
17987 Math mode still on at end of \SpecialChar LaTeX
17991 \begin_layout Enumerate
17995 \begin_inset Quotes eld
18003 \begin_inset Quotes erd
18006 doesn't match the number of
18007 \begin_inset Quotes eld
18015 \begin_inset Quotes erd
18021 \begin_layout Enumerate
18024 You should use either
18027 \begin_inset Quotes eld
18035 \begin_inset Quotes erd
18040 as an alternative to
18041 \begin_inset Quotes eld
18049 \begin_inset Quotes erd
18055 \begin_layout Enumerate
18062 " (ASCII 39) instead of "" (ASCII 180).
18065 \begin_layout Enumerate
18068 User-specified pattern found.
18071 \begin_layout Enumerate
18074 This command might not be intended.
18077 \begin_layout Enumerate
18084 \begin_layout Enumerate
18102 \begin_layout Enumerate
18105 Delete this space to maintain correct page references.
18108 \begin_layout Enumerate
18112 You might wish to put this between a pair of
18113 \begin_inset Quotes eld
18121 \begin_inset Quotes erd
18127 \begin_layout Enumerate
18130 You ought to remove spaces in front of punctuation.
18133 \begin_layout Enumerate
18136 Could not execute \SpecialChar LaTeX
18140 \begin_layout Enumerate
18149 in front of small punctuation.
18152 \begin_layout Enumerate
18160 may look prettier here.
18163 \begin_layout Enumerate
18167 Multiple spaces detected in output.
18170 \begin_layout Enumerate
18173 This text may be ignored.
18176 \begin_layout Enumerate
18182 \begin_inset Quotes eld
18187 to begin quotation, not
18194 \begin_layout Enumerate
18201 to end quotation, not
18204 \begin_inset Quotes eld
18212 \begin_layout Enumerate
18218 \begin_layout Enumerate
18221 You should perhaps use
18222 \begin_inset Quotes eld
18230 \begin_inset Quotes erd
18236 \begin_layout Enumerate
18239 You should put a space in front of/after parenthesis.
18242 \begin_layout Enumerate
18245 You should avoid spaces in front of/after parenthesis.
18248 \begin_layout Enumerate
18252 You should not use punctuation in front of/after quotes.
18255 \begin_layout Enumerate
18258 Double space found.
18261 \begin_layout Enumerate
18264 You should put punctuation outside inner/inside display math mode.
18267 \begin_layout Enumerate
18270 You ought to not use primitive \SpecialChar TeX
18271 in \SpecialChar LaTeX
18275 \begin_layout Enumerate
18278 You should remove spaces in front of
18279 \begin_inset Quotes eld
18287 \begin_inset Quotes erd
18293 \begin_layout Enumerate
18296 \begin_inset Quotes eld
18304 \begin_inset Quotes erd
18307 is normally not followed by
18308 \begin_inset Quotes eld
18316 \begin_inset Quotes erd
18322 \begin_layout Standard
18324 の将来の版では、このツール(およびその縮小版
18328 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18329 書に使用してみていただければ、きっと驚かれることでしょう。
18332 \begin_layout Section
18337 \begin_layout Standard
18340 Lars Bullik Bjønnes
18349 \begin_layout Subsection
18353 \begin_layout Standard
18355 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18359 \begin_layout Standard
18360 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18365 \begin_layout Plain Layout
18366 \begin_inset CommandInset href
18368 target "http://svnbook.red-bean.com/"
18377 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18381 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18385 で終わるファイルです)の概念に注意を払ってください。
18388 \begin_layout Standard
18390 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18393 RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18394 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18396 表示\SpecialChar menuseparator
18397 ツールバー\SpecialChar menuseparator
18403 \begin_layout Standard
18404 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18405 関数説明書のvcコマンドを確認してください。
18408 \begin_layout Standard
18411 It is strongly recommended to store documents in uncompressed format if
18412 using version control (uncheck
18414 Document\SpecialChar menuseparator
18417 if it is checked): Uncompressed LyX documents are text files and therefore
18418 for merging two different versions by version control systems.
18419 Compressed LyX documents are binary files, which cannot be merged by version
18423 \begin_inset space \space{}
18429 \begin_layout Subsection
18434 \begin_layout Standard
18435 以下の節では\SpecialChar LyX
18436 でサポートされているRCSコマンドを説明します。それらのコマンドは
18438 ファイル\SpecialChar menuseparator
18441 のサブメニューにあります。\SpecialChar LyX
18442 は、RCS 5.7/5.8に対して試験されています。
18445 \begin_layout Subsubsection
18451 \begin_layout Standard
18452 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18459 \begin_layout Standard
18460 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18461 書は読み込み専用モードになるので、変更を加えるためには
18465 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18468 \begin_layout Standard
18472 \begin_inset Newline newline
18475 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18478 \begin_layout Standard
18486 \begin_layout Subsubsection
18492 \begin_layout Standard
18493 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18494 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18497 \begin_layout Standard
18500 ci -q -u -m"<説明文>" <ファイル名>
18503 \begin_layout Subsubsection
18509 \begin_layout Standard
18510 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18511 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18514 \begin_layout Standard
18520 \begin_layout Subsubsection
18526 \begin_layout Standard
18527 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18530 \begin_layout Standard
18533 co -f -u<バージョン> <ファイル名>
18536 \begin_layout Subsubsection
18542 \begin_layout Standard
18543 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18544 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18545 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18547 ファイル\SpecialChar menuseparator
18548 名前をつけて保存\SpecialChar ldots
18551 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18554 \begin_layout Labeling
18555 \labelwidthstring 00.00.0000
18557 \begin_inset Flex Code
18560 \begin_layout Plain Layout
18573 \begin_layout Labeling
18574 \labelwidthstring 00.00.0000
18575 \begin_inset Flex Code
18578 \begin_layout Plain Layout
18579 ci -q -u -i "<新ファイル名>"
18587 \begin_layout Subsubsection
18593 \begin_layout Standard
18594 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18595 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18599 \begin_layout Standard
18602 rcs -o<バージョン> <ファイル名>
18605 \begin_layout Subsubsection
18611 \begin_layout Standard
18612 RCS文書の完全な履歴を表示します。ブラウザ中に、
18623 \begin_layout Subsubsection
18627 \begin_layout Standard
18629 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18630 \begin_inset CommandInset ref
18632 reference "subsec:VCS改訂情報"
18639 \begin_layout Subsection
18644 \begin_layout Standard
18646 は、現在CVSを一部サポートしています。そのコマンドは、
18648 ファイル\SpecialChar menuseparator
18651 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18654 \begin_layout Subsubsection
18658 \begin_layout Standard
18659 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18660 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18663 \begin_layout Standard
18664 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18665 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18666 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18667 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18668 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18669 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18670 で予備付きチェックアウトを利用したい場合には、
18671 \begin_inset Flex Code
18674 \begin_layout Plain Layout
18681 \begin_inset Flex Code
18684 \begin_layout Plain Layout
18690 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18691 コピーを書き込み可能にしているとは限りません。
18694 \begin_layout Standard
18696 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18697 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18698 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18700 \begin_inset Flex MenuItem
18703 \begin_layout Plain Layout
18709 メニューを使用しなくてはなりません。その後、
18710 \begin_inset Flex MenuItem
18713 \begin_layout Plain Layout
18719 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18722 \begin_layout Standard
18724 \begin_inset Flex URL
18727 \begin_layout Plain Layout
18729 http://www.nongnu.org/cvs
18735 \begin_inset Flex URL
18738 \begin_layout Plain Layout
18740 http://ximbiot.com/cvs
18748 \begin_layout Standard
18749 以下に言及するサブコマンドとスイッチを理解するには、
18756 \begin_layout Subsubsection
18760 \begin_layout Standard
18761 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18768 \begin_layout Standard
18769 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18776 \begin_inset Flex Code
18779 \begin_layout Plain Layout
18785 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18786 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18790 \begin_layout Standard
18791 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18794 \begin_layout Standard
18797 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18802 \begin_layout Standard
18803 上記および他のすべてのCVSコマンドにおける
18807 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18810 \begin_layout Subsubsection
18814 \begin_layout Standard
18815 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18816 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18817 \begin_inset Flex MenuItem
18820 \begin_layout Plain Layout
18829 \begin_layout Labeling
18830 \labelwidthstring 00.00.0000
18832 \begin_inset space ~
18836 \begin_inset Newline newline
18840 \begin_inset Flex Code
18843 \begin_layout Plain Layout
18844 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18850 \begin_inset Newline newline
18854 \begin_inset Flex Code
18857 \begin_layout Plain Layout
18858 cvs -q unedit "<ファイル名>"
18866 \begin_layout Subsubsection
18870 \begin_layout Standard
18871 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18874 \begin_layout Standard
18877 cvs -q update "<ファイル名>"
18880 \begin_layout Standard
18881 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18884 \begin_layout Standard
18887 cvs -q edit "<ファイル名>"
18890 \begin_layout Subsubsection
18894 \begin_layout Standard
18895 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18899 \begin_layout Standard
18902 cvs -q update "<ファイル名>"
18905 \begin_layout Standard
18906 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18909 \begin_layout Standard
18912 cvs -q unedit "<ファイル名>"
18915 \begin_layout Subsubsection
18921 \begin_layout Standard
18922 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18923 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18924 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18926 ファイル\SpecialChar menuseparator
18927 名前をつけて保存\SpecialChar ldots
18930 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18933 \begin_layout Labeling
18934 \labelwidthstring 00.00.0000
18938 \begin_layout Labeling
18939 \labelwidthstring 00.00.0000
18940 \begin_inset Flex Code
18943 \begin_layout Plain Layout
18950 \begin_inset Flex Code
18953 \begin_layout Plain Layout
18962 \begin_layout Labeling
18963 \labelwidthstring 00.00.0000
18964 \begin_inset Flex Code
18967 \begin_layout Plain Layout
18968 cvs -q add "<新ファイル名>"
18976 \begin_layout Subsubsection
18980 \begin_layout Standard
18981 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18982 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18983 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18986 ファイル\SpecialChar menuseparator
18987 名前をつけて保存\SpecialChar ldots
18990 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
18993 \begin_layout Labeling
18994 \labelwidthstring 00.00.0000
18998 \begin_layout Labeling
18999 \labelwidthstring 00.00.0000
19000 \begin_inset Flex Code
19003 \begin_layout Plain Layout
19010 \begin_inset Flex Code
19013 \begin_layout Plain Layout
19022 \begin_layout Labeling
19023 \labelwidthstring 00.00.0000
19024 \begin_inset Flex Code
19027 \begin_layout Plain Layout
19028 cvs -q add "<新ファイル名>"
19036 \begin_layout Labeling
19037 \labelwidthstring 00.00.0000
19038 \begin_inset Flex Code
19041 \begin_layout Plain Layout
19042 cvs -q remove "<ファイル名>"
19050 \begin_layout Subsubsection
19051 ローカルディレクトリチェックアウトのレポジトリからの更新
19054 \begin_layout Standard
19056 \begin_inset Flex Code
19059 \begin_layout Plain Layout
19065 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19066 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19067 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19068 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19072 \begin_layout Standard
19074 \begin_inset Flex Code
19077 \begin_layout Plain Layout
19083 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19084 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19085 \begin_inset Flex Code
19088 \begin_layout Plain Layout
19095 \begin_inset Flex Code
19098 \begin_layout Plain Layout
19105 \begin_inset Flex Code
19108 \begin_layout Plain Layout
19114 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19115 \begin_inset Flex Code
19118 \begin_layout Plain Layout
19124 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19127 \begin_layout Labeling
19128 \labelwidthstring 00.00.0000
19130 \begin_inset space ~
19134 \begin_inset Newline newline
19138 \begin_inset Flex Code
19141 \begin_layout Plain Layout
19142 cd $path; cvs diff "."
19148 \begin_inset Newline newline
19152 \begin_inset Flex Code
19155 \begin_layout Plain Layout
19156 cd $path; cvs -q update "."
19164 \begin_layout Standard
19166 \begin_inset Flex Code
19169 \begin_layout Plain Layout
19178 \begin_layout Subsubsection
19182 \begin_layout Standard
19183 これは、CVS文書の全履歴を表示します。
19184 \begin_inset Flex Code
19187 \begin_layout Plain Layout
19189 \begin_inset Quotes eld
19193 \begin_inset Quotes erd
19204 \begin_layout Subsubsection
19208 \begin_layout Standard
19210 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19214 によって抽出されます。詳細については、第
19215 \begin_inset CommandInset ref
19217 reference "subsec:VCS改訂情報"
19224 \begin_layout Subsection
19229 \begin_layout Standard
19231 は、現在SVNを一部サポートしています。そのコマンドは、
19232 \begin_inset Flex MenuItem
19235 \begin_layout Plain Layout
19236 ファイル\SpecialChar menuseparator
19242 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19244 1.5および1.6に対して試験されています。
19247 \begin_layout Subsubsection
19251 \begin_layout Standard
19252 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19259 \begin_layout Standard
19260 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19265 \begin_inset Flex Code
19268 \begin_layout Plain Layout
19274 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19277 \begin_layout Standard
19278 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19281 \begin_layout Standard
19283 \begin_inset Flex Code
19286 \begin_layout Plain Layout
19288 \begin_inset Quotes eld
19292 \begin_inset Quotes erd
19303 \begin_layout Standard
19305 \begin_inset Flex Code
19308 \begin_layout Plain Layout
19317 \begin_layout Subsubsection
19321 \begin_layout Standard
19322 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19325 \begin_layout Standard
19330 \begin_layout Plain Layout
19331 ロックが有効になっていない場合です。第
19332 \begin_inset CommandInset ref
19334 reference "subsec:SVNファイルロック"
19344 \begin_inset Flex Code
19347 \begin_layout Plain Layout
19349 \begin_inset Quotes erd
19353 \begin_inset Quotes erd
19357 \begin_inset Quotes eld
19361 \begin_inset Quotes erd
19372 \begin_layout Subsubsection
19376 \begin_layout Standard
19377 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19381 \begin_layout Standard
19386 \begin_layout Plain Layout
19393 \begin_inset Flex Code
19396 \begin_layout Plain Layout
19397 svn update –non-interactive
19398 \begin_inset Quotes eld
19402 \begin_inset Quotes erd
19413 \begin_layout Subsubsection
19417 \begin_layout Standard
19418 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19421 \begin_layout Standard
19423 \begin_inset Flex Code
19426 \begin_layout Plain Layout
19428 \begin_inset Quotes eld
19432 \begin_inset Quotes erd
19443 \begin_layout Subsubsection
19449 \begin_layout Standard
19450 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19451 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19454 ファイル\SpecialChar menuseparator
19455 名前をつけて保存\SpecialChar ldots
19458 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19461 \begin_layout Labeling
19462 \labelwidthstring 00.00.0000
19466 \begin_layout Labeling
19467 \labelwidthstring 00.00.0000
19468 \begin_inset Flex Code
19471 \begin_layout Plain Layout
19472 svn copy -q "<ファイル名>" "<新ファイル名>"
19480 \begin_layout Labeling
19481 \labelwidthstring 00.00.0000
19482 \begin_inset Flex Code
19485 \begin_layout Plain Layout
19494 \begin_layout Subsubsection
19498 \begin_layout Standard
19499 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19500 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19503 ファイル\SpecialChar menuseparator
19504 名前をつけて保存\SpecialChar ldots
19507 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19510 \begin_layout Labeling
19511 \labelwidthstring 00.00.0000
19515 \begin_layout Labeling
19516 \labelwidthstring 00.00.0000
19517 \begin_inset Flex Code
19520 \begin_layout Plain Layout
19521 svn move -q add "<ファイル名>" "<新ファイル名>"
19529 \begin_layout Labeling
19530 \labelwidthstring 00.00.0000
19531 \begin_inset Flex Code
19534 \begin_layout Plain Layout
19543 \begin_layout Subsubsection
19544 \begin_inset CommandInset label
19546 name "subsec:レポジトリからSVN同期"
19550 レポジトリを使ったローカルディレクトリの同期
19554 \begin_layout Plain Layout
19556 \begin_inset Formula $\geqq1.5$
19559 でのみ動作することに注意してください。
19567 \begin_layout Standard
19568 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19569 \begin_inset Flex Code
19572 \begin_layout Plain Layout
19578 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19579 は、文書のおいてあるツリー全体の更新をサポートします
19583 \begin_layout Plain Layout
19584 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19589 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19593 \begin_layout Standard
19594 \begin_inset Flex Code
19597 \begin_layout Plain Layout
19603 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19604 場合には、更新が開始される前にユーザに警告が与えられます。
19607 \begin_layout Labeling
19608 \labelwidthstring 00.00.0000
19610 \begin_inset space ~
19614 \begin_inset Newline newline
19618 \begin_inset Flex Code
19621 \begin_layout Plain Layout
19622 svn diff $path(変更が発見された場合には通知します)
19623 \begin_inset Newline newline
19626 svn update –accept mine-full $path
19634 \begin_layout Standard
19636 \begin_inset Flex Code
19639 \begin_layout Plain Layout
19648 \begin_layout Subsubsection
19652 \begin_layout Standard
19653 これは、SVN文書の全履歴を表示します。
19654 \begin_inset Flex Code
19657 \begin_layout Plain Layout
19659 \begin_inset Quotes eld
19663 \begin_inset Quotes erd
19674 \begin_layout Subsubsection
19676 \begin_inset CommandInset label
19678 name "subsec:SVNファイルロック"
19685 \begin_layout Standard
19686 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19687 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19688 するための、何らかのロック機構を導入することが考えられます。
19691 \begin_layout Standard
19692 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19693 \begin_inset Flex Code
19696 \begin_layout Plain Layout
19702 svnファイル特性に依拠した書き込み権限の自動設定(第
19703 \begin_inset CommandInset ref
19705 reference "subsec:自動ロック特性"
19713 \begin_layout Plain Layout
19714 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19719 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19720 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19721 り替わります。これは特に、\SpecialChar LyX
19722 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19725 \begin_layout Itemize
19726 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19730 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19733 \begin_layout Itemize
19734 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19738 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19742 \begin_layout Plain Layout
19743 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19748 、書き込みロックの解放のみが行われます。
19751 \begin_layout Standard
19755 \begin_layout Labeling
19756 \labelwidthstring 00.00.0000
19758 \begin_inset Flex Code
19761 \begin_layout Plain Layout
19763 \begin_inset Quotes erd
19767 \begin_inset Quotes erd
19771 \begin_inset Quotes eld
19775 \begin_inset Quotes erd
19784 \begin_inset Newline newline
19788 \begin_inset Flex Code
19791 \begin_layout Plain Layout
19793 \begin_inset Quotes eld
19797 \begin_inset Quotes erd
19808 \begin_layout Labeling
19809 \labelwidthstring 00.00.0000
19811 \begin_inset Flex Code
19814 \begin_layout Plain Layout
19816 \begin_inset Quotes eld
19820 \begin_inset Quotes erd
19829 \begin_inset Newline newline
19833 \begin_inset Flex Code
19836 \begin_layout Plain Layout
19838 \begin_inset Quotes eld
19842 \begin_inset Quotes erd
19853 \begin_layout Subsubsection
19855 \begin_inset CommandInset label
19857 name "subsec:自動ロック特性"
19864 \begin_layout Standard
19866 \begin_inset Flex Code
19869 \begin_layout Plain Layout
19875 ファイルに対する書き込み権限の自動設定は、
19876 \begin_inset Flex MenuItem
19879 \begin_layout Plain Layout
19880 ファイル\SpecialChar menuseparator
19881 バージョン管理\SpecialChar menuseparator
19887 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19890 \begin_layout Standard
19894 \begin_layout Labeling
19895 \labelwidthstring 00.00.0000
19897 \begin_inset Flex Code
19900 \begin_layout Plain Layout
19901 svn propset svn:needs-lock ON
19902 \begin_inset Quotes eld
19906 \begin_inset Quotes erd
19917 \begin_layout Labeling
19918 \labelwidthstring 00.00.0000
19920 \begin_inset Flex Code
19923 \begin_layout Plain Layout
19924 svn propdel svn:needs-lock
19925 \begin_inset Quotes eld
19929 \begin_inset Quotes erd
19940 \begin_layout Subsubsection
19941 \begin_inset CommandInset label
19943 name "subsec:VCS改訂情報"
19950 \begin_layout Standard
19951 文書中で改訂情報を有効化するにはいくつかの方法があります。
19954 \begin_layout Itemize
19957 \begin_inset Separator parbreak
19964 \begin_layout Itemize
19966 \begin_inset Flex Code
19969 \begin_layout Plain Layout
19976 \begin_inset Flex Code
19979 \begin_layout Plain Layout
19985 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19988 \begin_layout Standard
19990 \begin_inset Tabular
19991 <lyxtabular version="3" rows="6" columns="2">
19992 <features tabularvalignment="middle">
19993 <column alignment="center" valignment="top">
19994 <column alignment="center" valignment="top">
19996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19999 \begin_layout Plain Layout
20005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20008 \begin_layout Plain Layout
20016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20019 \begin_layout Plain Layout
20025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20028 \begin_layout Plain Layout
20036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20039 \begin_layout Plain Layout
20045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20048 \begin_layout Plain Layout
20056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20059 \begin_layout Plain Layout
20065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20068 \begin_layout Plain Layout
20076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20079 \begin_layout Plain Layout
20085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20088 \begin_layout Plain Layout
20089 チェックアウト頻度が低かったことによる不完全な作業コピー
20096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20099 \begin_layout Plain Layout
20105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20108 \begin_layout Plain Layout
20109 改訂版が混合し、修正され、スイッチされた作業コピー
20122 \begin_layout Itemize
20124 \begin_inset Flex Code
20127 \begin_layout Plain Layout
20129 \begin_inset space ~
20133 \begin_inset space ~
20137 \begin_inset space ~
20145 の出力を解析したものが返されます。サポートされるフラグは
20146 \begin_inset Separator parbreak
20153 \begin_layout Itemize
20155 \begin_inset Flex Code
20158 \begin_layout Plain Layout
20167 \begin_layout Itemize
20169 \begin_inset Flex Code
20172 \begin_layout Plain Layout
20181 \begin_layout Itemize
20183 \begin_inset Flex Code
20186 \begin_layout Plain Layout
20195 \begin_layout Itemize
20197 \begin_inset Flex Code
20200 \begin_layout Plain Layout
20210 \begin_layout Standard
20211 これらの情報は、情報差込枠で得ることができます(例:
20212 \begin_inset Flex Code
20215 \begin_layout Plain Layout
20216 info-insert buffer vcs-date
20221 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20222 \begin_inset Flex Code
20225 \begin_layout Plain Layout
20231 ディレクトリがあるときのみ)利用可能です。
20235 \begin_layout Itemize
20236 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20240 \begin_layout Plain Layout
20241 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20246 。簡単に言えば、ファイルキーワード特性を設定して(例:
20248 svn propset svn:keywords 'Rev' file.lyx
20250 )、文書中にキーワード\SpecialChar TeX
20255 \begin_layout Plain Layout
20256 これは、\SpecialChar LyX
20257 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20266 \begin_layout Plain Layout
20273 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20277 \begin_layout Plain Layout
20284 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20285 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20287 \begin_inset Formula $Rev$
20291 \begin_inset Formula $Rev:59$
20294 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20295 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20296 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20297 がこれを直接サポートすることは、難しそうです。
20300 \begin_layout Subsection
20304 \begin_layout Quote
20305 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20310 \begin_layout Subsubsection
20314 \begin_layout Standard
20316 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20317 トプログラムのWindows用インストーラは
20318 \begin_inset CommandInset href
20321 target "http://www.collab.net/nonav/downloads/subversion/"
20326 \begin_inset CommandInset href
20329 target "http://tortoisesvn.tigris.org/"
20333 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20335 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20336 自身が使用するクライアントプログラムの代わりとは成りませんので
20340 \begin_layout Subsubsection
20341 文書をSubversion管理下に置くには
20344 \begin_layout Standard
20346 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20347 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20348 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20350 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20351 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20353 \begin_inset Flex Code
20356 \begin_layout Plain Layout
20364 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20365 \begin_inset Flex Code
20368 \begin_layout Plain Layout
20377 \begin_layout Enumerate
20379 \begin_inset Flex Code
20382 \begin_layout Plain Layout
20391 \begin_inset Flex MenuItem
20394 \begin_layout Plain Layout
20395 TortoiseSVN\SpecialChar menuseparator
20401 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20404 \begin_layout Enumerate
20405 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20406 \begin_inset Flex MenuItem
20409 \begin_layout Plain Layout
20410 Create folder\SpecialChar ldots
20416 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20417 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20420 \begin_layout Enumerate
20422 \begin_inset Flex Code
20425 \begin_layout Plain Layout
20434 \begin_inset Flex MenuItem
20437 \begin_layout Plain Layout
20438 SVN Checkout\SpecialChar ldots
20444 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20445 \begin_inset Flex Code
20448 \begin_layout Plain Layout
20456 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20457 \begin_inset Flex Code
20460 \begin_layout Plain Layout
20469 \begin_inset Flex Code
20472 \begin_layout Plain Layout
20481 \begin_layout Enumerate
20484 \begin_inset Flex MenuItem
20487 \begin_layout Plain Layout
20488 ファイル\SpecialChar menuseparator
20489 バージョン管理\SpecialChar menuseparator
20495 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20498 \begin_layout Standard
20500 \begin_inset Flex MenuItem
20503 \begin_layout Plain Layout
20504 ファイル\SpecialChar menuseparator
20510 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20511 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20514 \begin_layout Subsubsection
20515 Windows下でSVNと共にSSHトンネルを使うには
20518 \begin_layout Standard
20519 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20520 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20524 \begin_layout Enumerate
20525 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20526 \begin_inset Flex Code
20529 \begin_layout Plain Layout
20535 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20538 \begin_layout Enumerate
20539 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20543 \begin_layout Plain Layout
20544 \begin_inset Flex URL
20547 \begin_layout Plain Layout
20549 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20559 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20561 \begin_inset Flex Ruby
20564 \begin_layout Plain Layout
20566 \begin_inset Argument post:1
20569 \begin_layout Plain Layout
20581 \begin_inset Separator parbreak
20588 \begin_layout Enumerate
20589 \begin_inset Flex Code
20592 \begin_layout Plain Layout
20598 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20599 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20600 s file:」編集フィールドから、直接サーバの
20601 \begin_inset Flex Code
20604 \begin_layout Plain Layout
20605 ~/.ssh/authorized_keys
20611 \begin_inset Flex Code
20614 \begin_layout Plain Layout
20620 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20623 \begin_layout Enumerate
20624 Puttyのplinkを入手してください。SVNのconfigファイル
20628 \begin_layout Plain Layout
20629 正確なパスはWindowsのバージョンに依りますが、通常は
20630 \begin_inset Flex Code
20633 \begin_layout Plain Layout
20636 Documents and Settings
20650 \begin_inset Flex Code
20653 \begin_layout Plain Layout
20669 \begin_inset Flex Code
20672 \begin_layout Plain Layout
20678 セクションにsshコマンドを設定してください。例:
20679 \begin_inset Flex Code
20682 \begin_layout Plain Layout
20683 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20692 \begin_layout Plain Layout
20693 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20694 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20703 \begin_layout Enumerate
20704 SVNアーカイブをチェックアウトしてください。例:
20705 \begin_inset Newline newline
20709 \begin_inset Flex Code
20712 \begin_layout Plain Layout
20713 svn co svn+ssh://user@server/repository_path
20721 \begin_layout Subsubsection
20725 \begin_layout Standard
20726 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20727 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20729 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20730 \begin_inset Flex Code
20733 \begin_layout Plain Layout
20743 \begin_layout Plain Layout
20745 \begin_inset Flex Code
20748 \begin_layout Plain Layout
20749 svn propset svn:eol-style native FILE_NAME
20759 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20763 \begin_layout Plain Layout
20764 \begin_inset Flex URL
20767 \begin_layout Plain Layout
20769 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20782 \begin_layout Subsection
20787 \begin_layout Standard
20789 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20791 ファイル\SpecialChar menuseparator
20794 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20799 \begin_layout Standard
20800 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20801 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20802 ミットを行います。ローカルリポジトリは、GITコマンドの
20803 \begin_inset Flex Code
20806 \begin_layout Plain Layout
20813 \begin_inset Flex Code
20816 \begin_layout Plain Layout
20822 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20823 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20824 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20825 \begin_inset Flex Code
20828 \begin_layout Plain Layout
20835 \begin_inset Flex Code
20838 \begin_layout Plain Layout
20847 \begin_layout Subsubsection
20851 \begin_layout Standard
20852 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20859 \begin_layout Standard
20860 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20865 \begin_inset Flex Code
20868 \begin_layout Plain Layout
20874 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20877 \begin_layout Standard
20878 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20881 \begin_layout Standard
20883 \begin_inset Flex Code
20886 \begin_layout Plain Layout
20895 \begin_layout Standard
20897 \begin_inset Flex Code
20900 \begin_layout Plain Layout
20909 \begin_layout Subsubsection
20913 \begin_layout Standard
20914 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20917 \begin_layout Standard
20919 \begin_inset Flex Code
20922 \begin_layout Plain Layout
20924 \begin_inset Quotes erd
20928 \begin_inset Quotes erd
20939 \begin_layout Subsubsection
20943 \begin_layout Standard
20944 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20947 \begin_layout Standard
20949 \begin_inset Flex Code
20952 \begin_layout Plain Layout
20954 \begin_inset Quotes eld
20958 \begin_inset Quotes erd
20969 \begin_layout Subsubsection
20973 \begin_layout Standard
20974 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20975 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20978 ファイル\SpecialChar menuseparator
20979 名前をつけて保存\SpecialChar ldots
20982 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20985 \begin_layout Labeling
20986 \labelwidthstring 00.00.0000
20990 \begin_layout Labeling
20991 \labelwidthstring 00.00.0000
20992 \begin_inset Flex Code
20995 \begin_layout Plain Layout
20996 git mv "<ファイル名>" "<新ファイル名>"
21004 \begin_layout Labeling
21005 \labelwidthstring 00.00.0000
21006 \begin_inset Flex Code
21009 \begin_layout Plain Layout
21018 \begin_layout Subsubsection
21022 \begin_layout Standard
21023 これは、GIT文書の全履歴を表示します。
21024 \begin_inset Flex Code
21027 \begin_layout Plain Layout
21029 \begin_inset Quotes eld
21033 \begin_inset Quotes erd
21044 \begin_layout Subsubsection
21048 \begin_layout Standard
21050 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21052 git log -n 1 --pretty=format:%H%n%an%n%ai
21054 によって抽出されます。ツリーバージョン情報は、
21056 git describe --abbrev --dirty --long
21059 \begin_inset CommandInset ref
21061 reference "subsec:VCS改訂情報"
21068 \begin_layout Subsection
21072 \begin_layout Standard
21073 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21074 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21077 \begin_layout Standard
21078 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21081 \begin_layout Description
21083 \begin_inset Flex Code
21086 \begin_layout Plain Layout
21087 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21095 \begin_layout Description
21097 \begin_inset Flex Code
21100 \begin_layout Plain Layout
21101 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21109 \begin_layout Subsection
21113 \begin_layout Standard
21115 \begin_inset Flex Code
21118 \begin_layout Plain Layout
21124 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21126 まり便利ではありません。そこで、\SpecialChar LyX
21127 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21129 \begin_inset Flex Code
21132 \begin_layout Plain Layout
21138 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21140 \begin_inset Flex MenuItem
21143 \begin_layout Plain Layout
21144 旧改訂と比較\SpecialChar ldots
21150 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21152 \begin_inset Flex MenuItem
21155 \begin_layout Plain Layout
21161 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21164 \begin_layout Standard
21165 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21166 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21167 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21170 \begin_layout Section
21174 \begin_layout Standard
21179 (kayvan@sylvan.com)改訂
21181 Edmar Wienskoski Jr.
21183 (edmar-w-jr@technologist.com)原文
21186 \begin_layout Subsection
21190 \begin_layout Standard
21191 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21192 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21193 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21194 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21197 \begin_layout Standard
21198 また、あなたが、\SpecialChar LyX
21199 の設定を変更することを厭わない程度まで\SpecialChar LyX
21200 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21201 するトピックを扱っている、\SpecialChar LyX
21205 \begin_layout Subsection
21209 \begin_layout Standard
21210 以下は、文芸プログラミング FAQからの抜粋です。
21213 \begin_layout Quotation
21214 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21215 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21216 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21218 \begin_inset space \thinspace{}
21222 Knuthが、\SpecialChar TeX
21223 組版ソフトウエアを開発中に作り出したものです。
21226 \begin_layout Standard
21230 \begin_layout Quotation
21233 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21236 \begin_layout Quotation
21237 3つの際立った特徴があります。重要な順に列挙すれば、
21238 \begin_inset Separator parbreak
21245 \begin_layout Itemize
21249 \begin_layout Itemize
21253 \begin_layout Itemize
21254 特に図式と数式を含んだドキュメンテーションの組版
21258 \begin_layout Quotation
21262 \begin_layout Standard
21263 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21266 \begin_layout Subsubsection
21270 \begin_layout Standard
21274 \begin_layout Quote
21275 Literate Programming FAQ
21276 \begin_inset Flex URL
21279 \begin_layout Plain Layout
21281 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21289 \begin_layout Standard
21293 \begin_layout Standard
21294 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21295 を持つものもあります。私は自分で使うのに、いくつかの理由から
21302 \begin_layout Itemize
21303 説明文書を\SpecialChar LaTeX
21307 \begin_layout Itemize
21308 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21311 \begin_layout Itemize
21312 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21315 \begin_layout Itemize
21319 \begin_layout Standard
21323 \begin_layout Quote
21325 \begin_inset Flex URL
21328 \begin_layout Plain Layout
21330 http://www.cs.virginia.edu/~nr/noweb/
21338 \begin_layout Standard
21339 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21342 \begin_layout Subsection
21344 とNowebを使った文芸プログラミング
21347 \begin_layout Standard
21349 における文芸プログラミングのサポートは、\SpecialChar LyX
21350 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21351 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21355 \begin_layout Subsubsection
21356 ドキュメントとコードの生成(weavingおよびtangling)
21359 \begin_layout Paragraph
21363 \begin_layout Standard
21364 Nowebと\SpecialChar LyX
21365 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21367 文書\SpecialChar menuseparator
21370 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21371 web」モジュールが表示され、文書に追加できるようになっています。
21374 \begin_layout Paragraph
21378 \begin_layout Standard
21381 \begin_inset Flex Noun
21384 \begin_layout Plain Layout
21390 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21393 \begin_layout LyX-Code
21397 \begin_layout LyX-Code
21401 \begin_layout LyX-Code
21405 \begin_layout LyX-Code
21409 \begin_layout LyX-Code
21413 \begin_layout Standard
21414 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21415 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21417 \begin_inset Flex Noun
21420 \begin_layout Plain Layout
21426 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21429 \begin_layout Standard
21430 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21433 \begin_layout LyX-Code
21437 \begin_layout LyX-Code
21438 def some_function(args):
21441 \begin_layout LyX-Code
21442 "This is the doc string for this function."
21445 \begin_layout LyX-Code
21446 print "My args: ", args
21449 \begin_layout LyX-Code
21450 @ %def some_function
21453 \begin_layout Standard
21454 これをどのように使って、その結果相互参照がどうなるかは
21456 LIBDIR/examples/listerrors.lyx
21458 の中の文芸pythonプログラムを見るとよくわかります。
21461 \begin_layout Paragraph
21465 \begin_layout Standard
21466 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21469 文書\SpecialChar menuseparator
21472 等を選ぶだけです。特別な手続きは必要ありません。
21475 \begin_layout Standard
21476 理解を助けるために、\SpecialChar LyX
21477 の内部で何が起っているかを説明しておきましょう。
21480 \begin_layout Enumerate
21483 文書\SpecialChar menuseparator
21486 が選択されると、\SpecialChar LaTeX
21488 \begin_inset Separator parbreak
21495 \begin_layout Standard
21496 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21497 \begin_inset Flex MenuItem
21500 \begin_layout Plain Layout
21506 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21510 \begin_layout Enumerate
21511 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21513 \begin_inset Flex Noun
21516 \begin_layout Plain Layout
21522 環境でコードを入力するのだけがポイントです。
21525 \begin_layout Enumerate
21526 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21528 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21533 \begin_layout Plain Layout
21536 ツール\SpecialChar menuseparator
21539 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21552 を使って\SpecialChar LaTeX
21554 \begin_inset Separator parbreak
21561 \begin_layout Standard
21562 それ以外の場合はこのステップを飛ばします。
21566 \begin_layout Enumerate
21567 最後に\SpecialChar LaTeX
21568 が実行され、通常の文書と同じ後処理が行われます。
21571 \begin_layout Standard
21572 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21575 \begin_layout Paragraph
21579 \begin_layout Standard
21580 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21581 ファイルが生成されます。それから\SpecialChar LyX
21586 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21589 \begin_layout Enumerate
21590 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21594 \begin_layout Enumerate
21595 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21596 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21597 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21600 \begin_layout Standard
21602 \begin_inset Newline newline
21606 \begin_inset Quotes eld
21611 build-script $$i $$r
21614 \begin_inset Quotes erd
21618 \begin_inset Newline newline
21621 と指定します。これは基本的に、\SpecialChar LyX
21623 \begin_inset Quotes erd
21631 \begin_inset Quotes erd
21634 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21635 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21636 ファイルのディレクトリパスを使って呼び出すこ
21640 \begin_layout Standard
21641 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21644 \begin_layout Standard
21645 \begin_inset VSpace defskip
21649 \begin_inset Newpage pagebreak
21655 \begin_layout Standard
21661 \begin_layout Standard
21667 \begin_layout Standard
21670 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21673 \begin_layout Standard
21674 \begin_inset VSpace defskip
21680 \begin_layout Standard
21681 変換子設定の次の部分は「フラグ」で、これは
21682 \begin_inset Quotes erd
21687 parselog=$$s/scripts/listerrors
21690 \begin_inset Quotes erd
21694 \begin_inset Newline newline
21698 \begin_inset Quotes erd
21702 \begin_inset Quotes erd
21706 \begin_inset Quotes erd
21710 \begin_inset Quotes erd
21716 \begin_layout Standard
21717 ビルドは、通常\SpecialChar LyX
21718 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21719 は、主要ファイルとみなされるものをコピーして取り出
21724 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21725 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21726 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21729 \begin_layout Paragraph
21733 \begin_layout Standard
21736 \begin_inset Quotes eld
21740 \begin_inset Quotes erd
21743 chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21744 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21747 \begin_layout Standard
21748 以下に典型的なchunkがどのようなものかを書いておきます。
21751 \begin_layout LyX-Code
21753 \begin_inset Newline newline
21759 \begin_layout LyX-Code
21761 \begin_inset Newline newline
21765 \begin_inset Newline newline
21768 if [ -z "${NOWEB_SOURCE}" ]
21769 \begin_inset Newline newline
21775 \begin_layout LyX-Code
21776 NOWEB_SOURCE=myfile.nw
21777 \begin_inset Newline newline
21781 \begin_inset Newline newline
21785 code to extract files ...
21786 use NOWEB_OUTPUT_DIR here ...]
21787 \begin_inset Newline newline
21791 code to compile files ...]
21792 \begin_inset Newline newline
21798 \begin_layout Standard
21801 LIBDIR/examples/listerrors.lyx
21805 LIBDIR/examples/Literate.lyx
21807 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21810 LIBDIR/examples/noweb2lyx.lyx
21812 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21813 の文芸プログラミングのサポートがプログラム言語に依存しない
21817 \begin_layout Subsubsection
21822 \begin_layout Standard
21823 すべての文芸プログラムのための設定は、
21825 ツール\SpecialChar menuseparator
21828 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21831 \begin_layout Description
21832 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21844 に設定してください。これによって、\SpecialChar LyX
21845 に変換プロセスの第一段階でつくられるファイルに
21849 という拡張子をつけることを指示します。
21852 \begin_layout Description
21853 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21856 \begin_layout Description
21866 この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21868 noweave -delay -index $$i > $$o
21873 \begin_layout Description
21882 これは「tangling」を行います。上述のように、変換子は「
21884 build-script $$i $$r
21888 parselog=$$s/scripts/listerrors
21893 \begin_layout Subsubsection
21897 \begin_layout Standard
21898 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21902 \begin_layout Standard
21903 ddd/gdbでデバッグしているとき、一つの
21904 \begin_inset Flex Ruby
21907 \begin_layout Plain Layout
21909 \begin_inset Argument post:1
21912 \begin_layout Plain Layout
21923 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21924 \begin_inset Flex MenuItem
21927 \begin_layout Plain Layout
21928 ツール\SpecialChar menuseparator
21929 設定\SpecialChar menuseparator
21936 \begin_inset Flex MenuItem
21939 \begin_layout Plain Layout
21945 エントリを変えると変えることができます。
21948 \begin_layout Standard
21949 新しい\SpecialChar LyX
21950 サーバの関数と、このdddの機能を使うために
21951 \begin_inset Flex MenuItem
21954 \begin_layout Plain Layout
21963 \begin_layout Standard
21964 \begin_inset VSpace defskip
21970 \begin_layout Standard
21973 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21976 \begin_layout Standard
21977 \begin_inset VSpace defskip
21983 \begin_layout Standard
21984 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21985 サーバに情報を送り、\SpecialChar LyX
21987 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
21990 \begin_layout Standard
21991 この機能が動くには\SpecialChar LyX
21992 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21993 サーバーは使えないようになっています)。\SpecialChar LyX
21997 \begin_inset Flex MenuItem
22000 \begin_layout Plain Layout
22013 \begin_inset Flex MenuItem
22016 \begin_layout Plain Layout
22029 \begin_inset Flex MenuItem
22032 \begin_layout Plain Layout
22046 \begin_inset Quotes eld
22051 /home/<your-home-directory>/.lyx/lyxpipe
22054 \begin_inset Quotes erd
22060 \begin_layout Standard
22062 \begin_inset CommandInset ref
22064 reference "chap:LyXサーバー"
22071 \begin_layout Subsubsection
22075 \begin_layout Standard
22076 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22094 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22095 \begin_inset Flex Ruby
22098 \begin_layout Plain Layout
22118 \begin_inset Argument post:1
22121 \begin_layout Plain Layout
22135 \begin_layout Standard
22137 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22138 \begin_inset Flex MenuItem
22141 \begin_layout Plain Layout
22142 文書\SpecialChar menuseparator
22143 更新\SpecialChar menuseparator
22150 \begin_inset Flex MenuItem
22153 \begin_layout Plain Layout
22154 文書\SpecialChar menuseparator
22155 表示\SpecialChar menuseparator
22164 \begin_layout LyX-Code
22168 \begin_layout LyX-Code
22172 \begin_layout LyX-Code
22173 Icon "layout Standard"
22176 \begin_layout LyX-Code
22177 Icon "layout Section"
22180 \begin_layout LyX-Code
22181 Icon "layout \SpecialChar LaTeX
22185 \begin_layout LyX-Code
22186 Icon "layout \SpecialChar LyX
22190 \begin_layout LyX-Code
22191 Icon "layout Chunk"
22194 \begin_layout LyX-Code
22198 \begin_layout LyX-Code
22202 \begin_layout LyX-Code
22203 Icon "buffer-typeset"
22206 \begin_layout LyX-Code
22207 Icon "build-program"
22210 \begin_layout LyX-Code
22214 \begin_layout LyX-Code
22218 \begin_layout LyX-Code
22222 \begin_layout LyX-Code
22226 \begin_layout LyX-Code
22230 \begin_layout Subsubsection
22234 \begin_layout Standard
22237 \begin_inset Flex MenuItem
22240 \begin_layout Plain Layout
22246 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22247 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22248 フォントを使うことになっていて、文芸プログラミ
22249 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22250 \begin_inset Flex MenuItem
22253 \begin_layout Plain Layout
22254 操作性\SpecialChar menuseparator
22263 \begin_layout Standard
22264 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22265 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22268 \begin_layout Subsection
22273 \begin_layout Standard
22274 knitrとSweaveへのサポートについては、用例ファイル
22280 ヘルプ\SpecialChar menuseparator
22286 \begin_layout Chapter
22288 \begin_inset CommandInset label
22290 name "chap:Special-features"
22297 \begin_layout Standard
22299 では、\SpecialChar LaTeX
22300 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22301 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22302 コードを使用することはできます。本章は、ユーザの興味が
22303 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22310 \begin_layout Section
22314 \begin_layout Standard
22323 とは別の機能です。文書全体に二段組を行いたい場合には、
22327 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22330 \begin_layout Standard
22331 文書中で多段組を行うには、\SpecialChar LaTeX
22337 \begin_inset Index idx
22340 \begin_layout Plain Layout
22342 ぱっけーじ @ \SpecialChar LaTeX
22350 文書\SpecialChar menuseparator
22351 設定\SpecialChar menuseparator
22361 \begin_layout Standard
22362 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22366 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22369 \begin_layout Subsection
22373 \begin_layout Standard
22374 文章中で二段組を使用したい場合には、段組を始める場所で
22376 挿入\SpecialChar menuseparator
22377 任意設定差込枠\SpecialChar menuseparator
22380 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22383 \begin_layout Standard
22387 \begin_layout Standard
22389 \begin_inset Flex Multiple Columns
22392 \begin_layout Plain Layout
22397 The Adventure of the Empty House
22400 \begin_inset Newline newline
22403 by Sir Arthur Conan Doyle
22406 \begin_layout Plain Layout
22409 It was in the spring of the year 1894 that all London was interested, and
22410 the fashionable world dismayed, by the murder of the Honourable Ronald
22411 Adair under most unusual and inexplicable circumstances.
22412 The public has already learned those particulars of the crime which came
22413 out in the police investigation, but a good deal was suppressed upon that
22414 occasion, since the case for the prosecution was so overwhelmingly strong
22415 that it was not necessary to bring forward all the facts.
22416 Only now, at the end of nearly ten years, am I allowed to supply those
22417 missing links which make up the whole of that remarkable chain.
22418 The crime was of interest in itself, but that interest was as nothing to
22419 me compared to the inconceivable sequel, which afforded me the greatest
22420 shock and surprise of any event in my adventurous life.
22421 Even now, after this long interval, I find myself thrilling as I think
22422 of it, and feeling once more that sudden flood of joy, amazement, and increduli
22423 ty which utterly submerged my mind.
22424 Let me say to that public, which has shown some interest in those glimpses
22425 which I have occasionally given them of the thoughts and actions of a very
22426 remarkable man, that they are not to blame me if I have not shared my knowledge
22427 with them, for I should have considered it my first duty to do so, had
22428 I not been barred by a positive prohibition from his own lips, which was
22429 only withdrawn upon the third of last month.
22437 \begin_layout Standard
22438 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22439 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22441 \begin_inset Newline newline
22447 \begin_layout Standard
22448 \begin_inset Flex Multiple Columns
22451 \begin_layout Plain Layout
22454 \begin_inset Argument 1
22457 \begin_layout Plain Layout
22463 It can be imagined that my close intimacy with Sherlock Holmes had interested
22464 me deeply in crime, and that after his disappearance I never failed to
22465 read with care the various problems which came before the public.
22466 And I even attempted, more than once, for my own private satisfaction,
22467 to employ his methods in their solution, though with indifferent success.
22468 There was none, however, which appealed to me like this tragedy of Ronald
22470 As I read the evidence at the inquest, which led up to a verdict of willful
22471 murder against some person or persons unknown, I realized more clearly
22472 than I had ever done the loss which the community had sustained by the
22473 death of Sherlock Holmes.
22474 There were points about this strange business which would, I was sure,
22475 have specially appealed to him, and the efforts of the police would have
22476 been supplemented, or more probably anticipated, by the trained observation
22477 and the alert mind of the first criminal agent in Europe.
22478 All day, as I drove upon my round, I turned over the case in my mind and
22479 found no explanation which appeared to me to be adequate.
22480 At the risk of telling a twice-told tale, I will recapitulate the facts
22481 as they were known to the public at the conclusion of the inquest.
22489 \begin_layout Standard
22490 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22493 \begin_layout Standard
22494 \begin_inset Newpage newpage
22500 \begin_layout Subsection
22504 \begin_layout Standard
22508 \begin_layout Standard
22509 \begin_inset Flex Multiple Columns
22512 \begin_layout Plain Layout
22515 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22516 at that time governor of one of the Australian colonies.
22517 Adair's mother had returned from Australia to undergo the operation for
22518 cataract, and she, her son Ronald, and her daughter Hilda were living together
22522 \begin_layout Plain Layout
22523 \begin_inset Flex Multiple Columns
22526 \begin_layout Plain Layout
22529 The youth moved in the best society–had, so far as was known, no enemies
22530 and no particular vices.
22531 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22532 had been broken off by mutual consent some months before, and there was
22533 no sign that it had left any very profound feeling behind it.
22534 For the rest {sic} the man's life moved in a narrow and conventional circle,
22535 for his habits were quiet and his nature unemotional.
22536 Yet it was upon this easy-going young aristocrat that death came, in most
22537 strange and unexpected form, between the hours of ten and eleven-twenty
22538 on the night of March 30, 1894.
22546 \begin_layout Plain Layout
22549 Ronald Adair was fond of cards–playing continually, but never for such stakes
22551 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22552 It was shown that, after dinner on the day of his death, he had played
22553 a rubber of whist at the latter club.
22554 He had also played there in the afternoon.
22559 The evidence of those who had played with him– Mr.
22560 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22561 and that there was a fairly equal fall of the cards.
22562 Adair might have lost five pounds, but not more.
22563 His fortune was a considerable one, and such a loss could not in any way
22565 He had played nearly every day at one club or other, but he was a cautious
22566 player, and usually rose a winner.
22567 It came out in evidence that, in partnership with Colonel Moran, he had
22568 actually won as much as four hundred and twenty pounds in a sitting, some
22569 weeks before, from Godfrey Milner and Lord Balmoral.
22570 So much for his recent history as it came out at the inquest.
22578 \begin_layout Subsection
22582 \begin_layout Standard
22583 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22586 \begin_layout Standard
22587 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22593 \begin_inset CommandInset citation
22602 \begin_layout Subsubsection
22606 \begin_layout Standard
22607 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22609 挿入\SpecialChar menuseparator
22612 メニューを使用してください。序文は、この差込枠内に書いてください。
22613 \begin_inset Newline newline
22619 \begin_layout Standard
22620 \begin_inset VSpace bigskip
22626 \begin_layout Standard
22627 \begin_inset Flex Multiple Columns
22630 \begin_layout Plain Layout
22631 \begin_inset Argument 2
22634 \begin_layout Plain Layout
22635 And the story continues and continues and continues and continues\SpecialChar ldots
22643 On the evening of the crime, he returned from the club exactly at ten.
22644 His mother and sister were out spending the evening with a relation.
22645 The servant deposed that she heard him enter the front room on the second
22646 floor, generally used as his sitting-room.
22647 She had lit a fire there, and as it smoked she had opened the window.
22648 No sound was heard from the room until eleven-twenty, the hour of the return
22649 of Lady Maynooth and her daughter.
22650 Desiring to say good-night, she attempted to enter her son's room.
22651 The door was locked on the inside, and no answer could be got to their
22652 cries and knocking.
22653 Help was obtained, and the door forced.
22654 The unfortunate young man was found lying near the table.
22655 His head had been horribly mutilated by an expanding revolver bullet, but
22656 no weapon of any sort was to be found in the room.
22664 \begin_layout Standard
22665 最初の\SpecialChar TeX
22666 コードの後に、節宣言コマンドを\SpecialChar TeX
22667 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22670 \begin_layout Standard
22678 \begin_layout Standard
22679 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22682 \begin_layout Standard
22683 \begin_inset Flex Multiple Columns
22686 \begin_layout Plain Layout
22687 \begin_inset Argument 2
22690 \begin_layout Plain Layout
22694 \begin_layout Plain Layout
22707 \begin_layout Plain Layout
22721 A minute examination of the circumstances served only to make the case more
22723 In the first place, no reason could be given why the young man should have
22724 fastened the door upon the inside.
22725 There was the possibility that the murderer had done this, and had afterwards
22726 escaped by the window.
22727 The drop was at least twenty feet, however, and a bed of crocuses in full
22729 Neither the flowers nor the earth showed any sign of having been disturbed,
22730 nor were there any marks upon the narrow strip of grass which separated
22731 the house from the road.
22732 Apparently, therefore, it was the young man himself who had fastened the
22734 But how did he come by his death? No one could have climbed up to the window
22735 without leaving traces.
22736 Suppose a man had fired through the window, he would indeed be a remarkable
22737 shot who could with a revolver inflict so deadly a wound.
22738 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22739 a hundred yards of the house.
22740 No one had heard a shot.
22748 \begin_layout Standard
22749 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22750 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22752 挿入\SpecialChar menuseparator
22755 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22758 \begin_layout Standard
22761 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22768 コードとして入力する必要があります)。
22771 \begin_layout Standard
22772 \begin_inset Flex Multiple Columns
22775 \begin_layout Plain Layout
22776 \begin_inset Argument 3
22779 \begin_layout Plain Layout
22784 \begin_layout Plain Layout
22800 On the evening of the crime, he returned from the club exactly at ten.
22801 His mother and sister were out spending the evening with a relation.
22802 The servant deposed that she heard him enter the front room on the second
22803 floor, generally used as his sitting-room.
22804 She had lit a fire there, and as it smoked she had opened the window.
22805 No sound was heard from the room until eleven-twenty, the hour of the return
22806 of Lady Maynooth and her daughter.
22807 Desiring to say good-night, she attempted to enter her son's room.
22808 The door was locked on the inside, and no answer could be got to their
22809 cries and knocking.
22810 Help was obtained, and the door forced.
22811 The unfortunate young man was found lying near the table.
22812 His head had been horribly mutilated by an expanding revolver bullet, but
22813 no weapon of any sort was to be found in the room.
22821 \begin_layout Subsubsection
22825 \begin_layout Standard
22832 を変えることで変更することができます。例えば、\SpecialChar TeX
22836 \begin_layout Standard
22846 \begin_layout Standard
22848 \begin_inset space \thinspace{}
22851 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22852 \begin_inset space \thinspace{}
22858 \begin_layout Standard
22866 \begin_inset space \thinspace{}
22872 \begin_layout Standard
22876 \begin_layout Plain Layout
22882 multicolsep}{2.5cm}
22890 \begin_layout Standard
22891 \begin_inset Flex Multiple Columns
22894 \begin_layout Plain Layout
22897 All day I turned these facts over in my mind, endeavouring to hit upon some
22898 theory which could reconcile them all, and to find that line of least resistanc
22899 e which my poor friend had declared to be the starting-point of every investigat
22901 I confess that I made little progress.
22902 In the evening I strolled across the Park, and found myself about six o'clock
22903 at the Oxford Street end of Park Lane.
22904 A group of loafers upon the pavements, all staring up at a particular window,
22905 directed me to the house which I had come to see.
22906 A tall, thin man with coloured glasses, whom I strongly suspected of being
22907 a plain-clothes detective, was pointing out some theory of his own, while
22908 the others crowded round to listen to what he said.
22909 I got as near him as I could, but his observations seemed to me to be absurd,
22910 so I withdrew again in some disgust.
22911 As I did so I struck against an elderly, deformed man, who had been behind
22912 me, and I knocked down several books which he was carrying.
22920 \begin_layout Standard
22921 \begin_inset Note Greyedout
22924 \begin_layout Plain Layout
22931 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22939 \begin_layout Standard
22943 \begin_layout Plain Layout
22955 \begin_inset Note Note
22958 \begin_layout Plain Layout
22961 go back to the default
22969 \begin_layout Standard
22970 \begin_inset Newpage newpage
22976 \begin_layout Subsubsection
22980 \begin_layout Standard
22981 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22988 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22989 \begin_inset Newline newline
22995 \begin_layout Standard
22996 \begin_inset Flex Multiple Columns
22999 \begin_layout Plain Layout
23002 \begin_inset Quotes eld
23005 You're surprised to see me, sir,
23006 \begin_inset Quotes erd
23009 said he, in a strange, croaking voice.
23012 \begin_layout Plain Layout
23015 I acknowledged that I was.
23018 \begin_layout Plain Layout
23021 \begin_inset Quotes eld
23024 Well, I've a conscience, sir, and when I chanced to see you go into this
23025 house, as I came hobbling after you, I thought to myself, I'll just step
23026 in and see that kind gentleman, and tell him that if I was a bit gruff
23027 in my manner there was not any harm meant, and that I am much obliged to
23028 him for picking up my books.
23029 \begin_inset Quotes erd
23035 \begin_layout Plain Layout
23038 \begin_inset Quotes eld
23041 You make too much of a trifle,
23042 \begin_inset Quotes erd
23047 \begin_inset Quotes eld
23050 May I ask how you knew who I was?
23051 \begin_inset Quotes erd
23054 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23058 \begin_layout Plain Layout
23070 \begin_layout Plain Layout
23073 \begin_inset Quotes eld
23076 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23077 you'll find my little bookshop at the corner of Church Street, and very
23078 happy to see you, I am sure.
23079 Maybe you collect yourself, sir.
23083 \begin_inset space ~
23096 –a bargain, every one of them.
23097 With five volumes you could just fill that gap on that second shelf.
23098 It looks untidy, does it not, sir?
23099 \begin_inset Quotes erd
23110 \begin_layout Subsubsection
23114 \begin_layout Standard
23115 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23121 を変更することで実現できます。既定値は10
23122 \begin_inset space \thinspace{}
23132 \begin_inset space \thinspace{}
23138 \begin_layout Standard
23142 \begin_layout Plain Layout
23156 \begin_layout Standard
23157 \begin_inset Flex Multiple Columns
23160 \begin_layout Plain Layout
23163 My observations of No.
23164 \begin_inset space \space{}
23167 427 Park Lane did little to clear up the problem in which I was interested.
23168 The house was separated from the street by a low wall and railing, the
23169 whole not more than five feet high.
23170 It was perfectly easy, therefore, for anyone to get into the garden, but
23171 the window was entirely inaccessible, since there was no water pipe or
23172 anything which could help the most active man to climb it.
23173 More puzzled than ever, I retraced my steps to Kensington.
23174 I had not been in my study five minutes when the maid entered to say that
23175 a person desired to see me.
23176 To my astonishment it was none other than my strange old book collector,
23177 his sharp, wizened face peering out from a frame of white hair, and his
23178 precious volumes, a dozen of them at least, wedged under his right arm.
23186 \begin_layout Standard
23190 \begin_layout Plain Layout
23202 \begin_inset Note Note
23205 \begin_layout Plain Layout
23208 go back to the default
23216 \begin_layout Subsubsection
23220 \begin_layout Standard
23227 の幅を持つ罫線が描かれます。罫線幅を0
23228 \begin_inset space \thinspace{}
23231 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23232 \begin_inset space \thinspace{}
23238 \begin_layout Standard
23242 \begin_layout Plain Layout
23248 columnseprule}{2pt}
23256 \begin_layout Standard
23257 \begin_inset Flex Multiple Columns
23260 \begin_layout Plain Layout
23263 \begin_inset Quotes eld
23266 You're surprised to see me, sir,
23267 \begin_inset Quotes erd
23270 said he, in a strange, croaking voice.
23273 \begin_layout Plain Layout
23276 I acknowledged that I was.
23279 \begin_layout Plain Layout
23282 \begin_inset Quotes eld
23285 Well, I've a conscience, sir, and when I chanced to see you go into this
23286 house, as I came hobbling after you, I thought to myself, I'll just step
23287 in and see that kind gentleman, and tell him that if I was a bit gruff
23288 in my manner there was not any harm meant, and that I am much obliged to
23289 him for picking up my books.
23290 \begin_inset Quotes erd
23296 \begin_layout Plain Layout
23299 \begin_inset Quotes eld
23302 You make too much of a trifle,
23303 \begin_inset Quotes erd
23308 \begin_inset Quotes eld
23311 May I ask how you knew who I was?
23312 \begin_inset Quotes erd
23318 \begin_layout Plain Layout
23321 \begin_inset Quotes eld
23324 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23325 you'll find my little bookshop at the corner of Church Street, and very
23326 happy to see you, I am sure.
23327 Maybe you collect yourself, sir.
23331 \begin_inset space ~
23344 –a bargain, every one of them.
23345 With five volumes you could just fill that gap on that second shelf.
23346 It looks untidy, does it not, sir?
23347 \begin_inset Quotes erd
23358 \begin_layout Standard
23359 \begin_inset VSpace defskip
23365 \begin_layout Standard
23372 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23373 コードで以下のコマンドを挿入すれば、実現できます。
23374 \begin_inset Newline newline
23383 columnseprulecolor}{
23388 \begin_inset Newline newline
23395 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23403 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23404 \begin_inset Newline newline
23413 columnseprulecolor}{
23418 \begin_inset Newline newline
23422 \begin_inset space \thinspace{}
23428 \begin_layout Standard
23432 \begin_layout Plain Layout
23441 \begin_layout Plain Layout
23447 columnseprulecolor}{
23457 \begin_layout Standard
23458 \begin_inset Flex Multiple Columns
23461 \begin_layout Plain Layout
23464 \begin_inset Quotes eld
23467 You're surprised to see me, sir,
23468 \begin_inset Quotes erd
23471 said he, in a strange, croaking voice.
23474 \begin_layout Plain Layout
23477 I acknowledged that I was.
23480 \begin_layout Plain Layout
23483 \begin_inset Quotes eld
23486 Well, I've a conscience, sir, and when I chanced to see you go into this
23487 house, as I came hobbling after you, I thought to myself, I'll just step
23488 in and see that kind gentleman, and tell him that if I was a bit gruff
23489 in my manner there was not any harm meant, and that I am much obliged to
23490 him for picking up my books.
23491 \begin_inset Quotes erd
23497 \begin_layout Plain Layout
23500 \begin_inset Quotes eld
23503 You make too much of a trifle,
23504 \begin_inset Quotes erd
23509 \begin_inset Quotes eld
23512 May I ask how you knew who I was?
23513 \begin_inset Quotes erd
23519 \begin_layout Plain Layout
23522 \begin_inset Quotes eld
23525 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23526 you'll find my little bookshop at the corner of Church Street, and very
23527 happy to see you, I am sure.
23528 Maybe you collect yourself, sir.
23532 \begin_inset space ~
23545 –a bargain, every one of them.
23546 With five volumes you could just fill that gap on that second shelf.
23547 It looks untidy, does it not, sir?
23548 \begin_inset Quotes erd
23559 \begin_layout Standard
23563 \begin_layout Plain Layout
23569 columnseprule}{0pt}
23572 \begin_layout Plain Layout
23578 columnseprulecolor}{
23586 \begin_inset Note Note
23589 \begin_layout Plain Layout
23592 go back to the default
23600 \begin_layout Standard
23601 \begin_inset Newpage newpage
23607 \begin_layout Section
23611 \begin_layout Standard
23614 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23619 モジュールを読み込んで、\SpecialChar LaTeX
23624 を使用させるようにすれば、実現できます。
23627 \begin_layout Subsection
23631 \begin_layout Standard
23639 \begin_layout Standard
23640 \begin_inset Tabular
23641 <lyxtabular version="3" rows="13" columns="3">
23642 <features booktabs="true" islongtable="true" longtabularalignment="center">
23643 <column alignment="center" valignment="middle" width="16col%">
23644 <column alignment="center" valignment="middle" width="40col%">
23645 <column alignment="center" valignment="middle" width="35col%">
23646 <row endhead="true">
23647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23650 \begin_layout Plain Layout
23656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23659 \begin_layout Plain Layout
23665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23668 \begin_layout Plain Layout
23676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23679 \begin_layout Plain Layout
23685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23688 \begin_layout Plain Layout
23689 丸い穴の開いたドーナツ型(CD/DVD大)
23694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23697 \begin_layout Plain Layout
23698 伸縮不可。多くの文字を入れられないことに注意。
23705 <cell alignment="center" valignment="top" topline="true" usebox="none">
23708 \begin_layout Plain Layout
23714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23717 \begin_layout Plain Layout
23723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23726 \begin_layout Plain Layout
23734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23737 \begin_layout Plain Layout
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23746 \begin_layout Plain Layout
23748 \begin_inset Quotes eld
23752 \begin_inset Quotes erd
23760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23763 \begin_layout Plain Layout
23771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23774 \begin_layout Plain Layout
23780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23783 \begin_layout Plain Layout
23789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23792 \begin_layout Plain Layout
23800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23803 \begin_layout Plain Layout
23809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23812 \begin_layout Plain Layout
23818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23821 \begin_layout Plain Layout
23829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23832 \begin_layout Plain Layout
23838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23841 \begin_layout Plain Layout
23847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23850 \begin_layout Plain Layout
23858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23861 \begin_layout Plain Layout
23867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23870 \begin_layout Plain Layout
23876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23879 \begin_layout Plain Layout
23887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23890 \begin_layout Plain Layout
23896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23899 \begin_layout Plain Layout
23905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23908 \begin_layout Plain Layout
23916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23919 \begin_layout Plain Layout
23925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23928 \begin_layout Plain Layout
23934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23937 \begin_layout Plain Layout
23945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23948 \begin_layout Plain Layout
23954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23957 \begin_layout Plain Layout
23963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23966 \begin_layout Plain Layout
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23977 \begin_layout Plain Layout
23984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23987 \begin_layout Plain Layout
23994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23997 \begin_layout Plain Layout
24005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24008 \begin_layout Plain Layout
24010 \begin_inset Newline newline
24018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24021 \begin_layout Plain Layout
24027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24030 \begin_layout Plain Layout
24044 \begin_layout Standard
24045 段落に形を適用するには、\SpecialChar LyX
24046 ツールバー中の環境プルダウンボックスから形を選んでください。
24049 \begin_layout Standard
24050 \begin_inset Newpage newpage
24056 \begin_layout Standard
24060 \begin_layout Standard
24061 \begin_inset VSpace bigskip
24070 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24071 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24073 At vero eos et accusam et justo duo dolores et ea rebum.
24074 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24076 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24077 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24081 \begin_layout Standard
24082 \begin_inset VSpace bigskip
24088 \begin_layout Standard
24089 \begin_inset Note Greyedout
24092 \begin_layout Plain Layout
24097 shapepar段落は改頁にまたがることはできません。
24105 \begin_layout Standard
24106 \begin_inset VSpace bigskip
24112 \begin_layout Standard
24117 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24118 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24121 \begin_layout Standard
24122 \begin_inset Newpage newpage
24131 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24132 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24134 At vero eos et accusam et justo duo dolores et ea rebum.
24135 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24137 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24138 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24140 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24141 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24143 At vero eos et accusam et justo duo dolores et ea rebum.
24144 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24146 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24147 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24151 \begin_layout Standard
24152 \begin_inset VSpace bigskip
24158 \begin_layout Standard
24163 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24164 \begin_inset Newline newline
24175 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24176 \begin_inset Quotes eld
24179 Arithmetic overflow
24180 \begin_inset Quotes erd
24183 という\SpecialChar LaTeX
24184 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24187 \begin_layout Standard
24188 \begin_inset VSpace bigskip
24194 \begin_layout Standard
24195 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24196 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24201 arg "specialchar-insert hyphenation"
24206 )を指定することが往々にして必要になります。
24209 \begin_layout Standard
24210 \begin_inset VSpace bigskip
24216 \begin_layout Standard
24217 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24218 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24219 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24220 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24223 \begin_layout Standard
24224 \begin_inset Newpage newpage
24230 \begin_layout Heart
24234 Lo\SpecialChar softhyphen
24235 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24236 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24238 At vero eos et accusam et justo duo dolores et ea rebum.
24239 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24243 \begin_layout Standard
24244 \begin_inset VSpace bigskip
24250 \begin_layout Standard
24253 \begin_inset Box Frameless
24263 height_special "totalheight"
24268 backgroundcolor "none"
24271 \begin_layout Heart
24275 Lo\SpecialChar softhyphen
24276 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24277 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24279 At vero eos et accusam et justo duo dolores et ea rebum.
24280 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24289 \begin_layout Subsection
24293 \begin_layout Standard
24294 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24295 ように、コンピューターに座標を計算させる方法もあります。
24298 \begin_layout Enumerate
24300 \begin_inset CommandInset href
24303 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24310 \begin_layout Enumerate
24321 \begin_layout Plain Layout
24332 \begin_layout Plain Layout
24339 eX\SpecialChar menuseparator
24340 Settings\SpecialChar menuseparator
24343 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24344 \begin_inset space \thinspace{}
24350 \begin_layout Enumerate
24354 \begin_layout Enumerate
24361 \begin_layout Plain Layout
24372 \begin_layout Plain Layout
24379 eX\SpecialChar menuseparator
24382 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24386 \begin_layout Plain Layout
24388 \begin_inset CommandInset href
24390 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24402 \begin_layout Standard
24403 座標は\SpecialChar TeX
24404 ファイルに書き込まれます。これを\SpecialChar LyX
24408 \begin_layout Enumerate
24409 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24412 \begin_layout Enumerate
24416 挿入\SpecialChar menuseparator
24417 ファイル\SpecialChar menuseparator
24431 \begin_layout Standard
24432 \begin_inset VSpace defskip
24438 \begin_layout Standard
24439 \begin_inset Note Greyedout
24442 \begin_layout Plain Layout
24447 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24455 \begin_layout Standard
24456 \begin_inset VSpace bigskip
24462 \begin_layout Standard
24466 \begin_layout Standard
24467 \begin_inset VSpace bigskip
24473 \begin_layout Standard
24474 \begin_inset CommandInset include
24476 filename "../SpecialParagraphShape.tex"
24482 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24483 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24485 At vero eos et accusam et justo duo dolores et ea rebum.
24486 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24488 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24489 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24493 \begin_layout Standard
24494 \begin_inset VSpace bigskip
24500 \begin_layout Standard
24508 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24512 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24515 \begin_layout Standard
24516 \begin_inset VSpace bigskip
24522 \begin_layout Standard
24535 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24539 \begin_layout Plain Layout
24540 これらのコマンドは、上述の全ての形で内部的に使用されています。
24545 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24550 \begin_inset CommandInset citation
24559 \begin_layout Bibliography
24560 \begin_inset CommandInset bibitem
24561 LatexCommand bibitem
24568 \begin_inset CommandInset href
24571 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24578 \begin_layout Bibliography
24579 \begin_inset CommandInset bibitem
24580 LatexCommand bibitem
24587 \begin_inset CommandInset href
24590 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"