1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26 \pdfbookmark[1]{\contentsname}{}
29 \pagenumbering{arabic}}
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
36 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
45 \maintain_unincluded_children false
48 InsetLayout Flex:MenuItem
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 Decoration Conglomerate
70 Decoration Conglomerate
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
87 \language_package default
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
101 \use_dash_ligatures false
103 \default_output_format pdf3
105 \bibtex_command default
106 \index_command default
110 \pdf_title "LyX's Additional Features manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX's additional features documentation"
113 \pdf_keywords "LyX, Documentation, Additional"
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen false
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
126 \use_package amsmath 1
127 \use_package amssymb 1
128 \use_package cancel 0
130 \use_package mathdots 1
131 \use_package mathtools 0
132 \use_package mhchem 1
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
137 \cite_engine_type default
141 \paperorientation portrait
146 \notefontcolor #0000ff
153 \paragraph_separation indent
154 \paragraph_indentation default
156 \math_indentation default
157 \math_numbering_side default
158 \quotes_style english
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
175 \begin_inset Newline newline
189 \begin_layout Plain Layout
190 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
192 \begin_inset Flex Code
195 \begin_layout Plain Layout
199 <lyx-docs@lists.lyx.org>
204 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
212 \begin_layout Standard
213 \begin_inset CommandInset toc
214 LatexCommand tableofcontents
221 \begin_layout Chapter
225 \begin_layout Standard
235 』の第二部です.これらの文書を別部とした理由は,単純に『
243 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
244 プロジェクトチームは,\SpecialChar LyX
245 を各設定ファイルと外部パッケージによって拡張
246 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
247 パッケージをサポートしたい場合に,\SpecialChar LyX
248 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
249 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
250 な形での貢献を文書化する冊子として位置付けられています.
253 \begin_layout Standard
254 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
255 しています.さらに,\SpecialChar LaTeX
256 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
257 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
259 ることを企図しているため,\SpecialChar LaTeX
260 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
263 \begin_layout Standard
268 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
272 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
276 』をよくお読みになって,\SpecialChar LyX
280 \begin_layout Standard
281 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
283 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
284 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
286 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
290 \begin_layout Chapter
296 \begin_layout Section
302 \begin_layout Standard
313 熟練者と\SpecialChar LaTeX
314 に興味のある方向けの章です.ここでは,\SpecialChar LyX
316 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
318 を多少なりともご存知であることを前提とします.
321 \begin_layout Standard
332 は,「\SpecialChar LaTeX
351 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
352 のフロントエンドは,いくつも出回っています
356 \begin_layout Plain Layout
366 有名なものとしては,Linux上の\SpecialChar TeX
367 makerとkile,OSX上の\SpecialChar TeX
368 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
374 .これらは,基本的に\SpecialChar LaTeX
375 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
376 も,エディタであり,\SpecialChar LaTeX
378 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
397 を効果的に使うのに,\SpecialChar LaTeX
398 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
399 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
400 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
411 \begin_inset Flex MenuItem
414 \begin_layout Plain Layout
441 \begin_inset Flex MenuItem
444 \begin_layout Plain Layout
447 エクスポート\SpecialChar menuseparator
472 \begin_inset Flex MenuItem
475 \begin_layout Plain Layout
478 表示\SpecialChar menuseparator
494 \begin_inset Flex Code
497 \begin_layout Plain Layout
505 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
506 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
515 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
518 \begin_layout Standard
528 自動的に\SpecialChar LaTeX
529 を実行するコマンドが,以下のようにいくつかあります.
532 \begin_layout Itemize
533 \begin_inset Flex MenuItem
536 \begin_layout Plain Layout
537 表示\SpecialChar menuseparator
546 \begin_layout Itemize
549 \begin_inset Flex MenuItem
552 \begin_layout Plain Layout
555 表示\SpecialChar menuseparator
556 更新\SpecialChar menuseparator
567 \begin_layout Standard
577 これらは,最後に\SpecialChar LaTeX
578 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
582 \begin_layout Standard
593 が編集中のファイルを\SpecialChar LaTeX
594 にかけるとき,\SpecialChar LyX
598 \begin_layout Enumerate
608 文書を\SpecialChar LaTeX
610 \begin_inset Flex Code
613 \begin_layout Plain Layout
629 \begin_inset Flex Code
632 \begin_layout Plain Layout
650 \begin_layout Enumerate
661 \begin_inset Flex Code
664 \begin_layout Plain Layout
679 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
680 を実行し,\SpecialChar LaTeX
681 ファイルをコンパイルするのに必要な他のコマンド(
682 \begin_inset Flex Code
685 \begin_layout Plain Layout
701 \begin_inset Flex Code
704 \begin_layout Plain Layout
722 \begin_layout Enumerate
735 \begin_layout Standard
756 \begin_inset Flex MenuItem
759 \begin_layout Plain Layout
762 表示\SpecialChar menuseparator
777 を使用して実行した場合には,\SpecialChar LyX
778 はこの後,DVIビューアを実行してDVIファイルを表示します.
779 \begin_inset Flex MenuItem
782 \begin_layout Plain Layout
792 表示\SpecialChar menuseparator
798 を使用した場合には,\SpecialChar LyX
802 \begin_layout Itemize
812 \begin_inset Flex Code
815 \begin_layout Plain Layout
853 \begin_layout Itemize
863 \begin_inset Flex Code
866 \begin_layout Plain Layout
874 などのPostScriptビューアを実行して,PostScript
886 \begin_layout Standard
888 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
891 \begin_layout Section
893 ファイルを\SpecialChar LyX
897 \begin_layout Standard
902 \begin_inset Flex MenuItem
905 \begin_layout Plain Layout
908 ファイル\SpecialChar menuseparator
909 インポート\SpecialChar menuseparator
924 コマンドを使用すると,\SpecialChar LaTeX
942 にインポートすることができます.このコマンドは,
952 \begin_inset Flex Code
955 \begin_layout Plain Layout
982 \begin_inset Flex Code
985 \begin_layout Plain Layout
996 \begin_inset Flex Code
999 \begin_layout Plain Layout
1007 を生成します.\SpecialChar LyX
1012 \begin_layout Plain Layout
1013 \begin_inset Flex Code
1016 \begin_layout Plain Layout
1022 は,もちろんコマンドラインから実行することもできます.
1030 \begin_layout Standard
1033 \begin_inset Flex Code
1036 \begin_layout Plain Layout
1053 は,文法的に正しい\SpecialChar LaTeX
1054 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1064 \begin_inset Flex Code
1067 \begin_layout Plain Layout
1084 は,理解不能な部分は\SpecialChar TeX
1085 コードボックスの形で残しますので,ファイルを
1095 \begin_inset Flex Code
1098 \begin_layout Plain Layout
1115 で変換したのち,\SpecialChar TeX
1116 コードボックスを探して,手動で正しく編集してください.
1119 \begin_layout Standard
1130 コードボックスがなにかご存じなければ,次節をお読みください.
1133 \begin_layout Section
1136 \begin_inset CommandInset label
1138 name "sec:LaTeXコードを挿入する"
1145 \begin_layout Standard
1156 文書にもつねに\SpecialChar TeX
1157 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1158 にできることは,つねに\SpecialChar LyX
1159 でも行うことができます.一方,\SpecialChar LyX
1160 は,すべての\SpecialChar LaTeX
1161 構成物を\SpecialChar LyX
1163 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1164 コマンドを\SpecialChar LyX
1166 \begin_inset Flex Code
1169 \begin_layout Plain Layout
1195 \begin_inset Flex MenuItem
1198 \begin_layout Plain Layout
1201 挿入\SpecialChar menuseparator
1226 \begin_inset Flex Ruby
1229 \begin_layout Plain Layout
1249 \begin_inset Argument post:1
1252 \begin_layout Plain Layout
1264 \begin_inset Flex Ruby
1267 \begin_layout Plain Layout
1278 \begin_inset Argument post:1
1281 \begin_layout Plain Layout
1310 \begin_layout Standard
1311 以下は,\SpecialChar LaTeX
1312 コマンドを\SpecialChar LyX
1313 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1316 \begin_layout LyX-Code
1320 \begin_inset Newline newline
1325 begin{minipage}{5cm}
1326 \begin_inset Newline newline
1330 \begin_inset Newline newline
1334 \begin_inset Newline newline
1338 \begin_inset Newline newline
1342 \begin_inset Newline newline
1346 \begin_inset Newline newline
1352 \begin_inset Newline newline
1356 \begin_inset Newline newline
1361 begin{minipage}{5cm}
1362 \begin_inset Newline newline
1368 \begin_inset Newline newline
1373 begin{minipage}{5cm}
1374 \begin_inset Newline newline
1379 \begin_inset Newline newline
1385 \begin_inset Newline newline
1391 \begin_inset Newline newline
1397 \begin_inset Newline newline
1405 \begin_layout LyX-Code
1409 \begin_layout Standard
1411 \begin_inset Flex Code
1414 \begin_layout Plain Layout
1421 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1422 上でご覧になっていれば,\SpecialChar TeX
1423 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1427 \begin_layout Standard
1428 \begin_inset VSpace bigskip
1435 \begin_layout Plain Layout
1442 \begin_layout Plain Layout
1446 begin{minipage}{5cm}
1449 \begin_layout Plain Layout
1451 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます.
1456 \begin_layout Plain Layout
1461 \begin_layout Plain Layout
1465 begin{minipage}{5cm}
1468 \begin_layout Plain Layout
1475 \begin_layout Plain Layout
1479 begin{minipage}{5cm}
1482 \begin_layout Plain Layout
1490 \begin_layout Plain Layout
1497 \begin_layout Plain Layout
1504 \begin_layout Plain Layout
1514 \begin_inset VSpace bigskip
1520 \begin_layout Standard
1531 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1532 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1533 \begin_inset Flex MenuItem
1536 \begin_layout Plain Layout
1546 挿入\SpecialChar menuseparator
1547 ファイル\SpecialChar menuseparator
1553 を使用する方法もあります(取り込みの型として
1554 \begin_inset Flex Code
1557 \begin_layout Plain Layout
1572 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1590 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1591 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1594 \begin_layout Standard
1604 最後に,いくつか強調しておくべきことがあります.
1607 \begin_layout Itemize
1618 は,あなたの\SpecialChar LaTeX
1640 \begin_layout Itemize
1650 車輪の再発明をしないようにご注意ください.
1653 \begin_layout Standard
1663 二番目の点に関して,\SpecialChar LyX
1664 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1665 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1666 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1667 う膨大な数の\SpecialChar LaTeX
1678 \begin_inset CommandInset href
1681 target "http://www.ctan.org/"
1696 \begin_inset CommandInset ref
1698 reference "chap:Special-features"
1705 \begin_layout Standard
1715 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1716 関連書籍を参考とするようにしてください.『
1734 』の書誌情報に多くの\SpecialChar LaTeX
1738 \begin_layout Section
1744 \begin_layout Subsection
1749 \begin_layout Standard
1759 すでに\SpecialChar LaTeX
1760 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1761 ずです.詳しくは\SpecialChar LaTeX
1762 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1763 文書の\SpecialChar LaTeX
1764 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1768 \begin_layout Standard
1779 プリアンブルは,\SpecialChar LaTeX
1798 の部分に来ます.ここでは以下のことを行います.
1801 \begin_layout Itemize
1811 文書クラス(ドキュメントクラス)の宣言.
1812 \begin_inset Newline newline
1816 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1817 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1835 』をご覧になれば,\SpecialChar LyX
1836 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1839 \begin_layout Itemize
1850 \begin_inset Newline newline
1854 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1855 提供されることに加え,文書に変更を加えることができます.例えば
1874 \begin_inset Flex Code
1877 \begin_layout Plain Layout
1885 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1888 \begin_layout Itemize
1899 \begin_inset Newline newline
1903 のカウンタと変数の中には,プリアンブルでグローバルに
1923 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1924 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1927 \begin_layout Itemize
1938 \begin_inset Flex Code
1941 \begin_layout Plain Layout
1959 \begin_inset Flex Code
1962 \begin_layout Plain Layout
1980 \begin_inset Newline newline
1983 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1984 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
2002 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2003 コードがあふれている場合には便利でしょう.
2006 \begin_layout Standard
2018 \begin_inset Flex Code
2021 \begin_layout Plain Layout
2036 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2037 の生成する\SpecialChar LaTeX
2041 \begin_layout Subsection
2045 \begin_layout Standard
2057 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2058 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2059 \begin_inset Flex MenuItem
2062 \begin_layout Plain Layout
2072 文書\SpecialChar menuseparator
2079 \begin_inset Flex MenuItem
2082 \begin_layout Plain Layout
2098 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2109 \begin_inset Flex MenuItem
2112 \begin_layout Plain Layout
2129 ダイアログ内のすべてのものを,\SpecialChar LyX
2130 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2132 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2143 プリアンブルコードが正しいことを確認してください.
2156 \begin_inset Flex Code
2159 \begin_layout Plain Layout
2176 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2179 \begin_layout Subsection
2183 \begin_layout Standard
2193 以下は,プリアンブルに追加できるものとその効果を示す例です.
2196 \begin_layout Subsubsection
2200 \begin_layout Standard
2230 \begin_inset Flex Code
2233 \begin_layout Plain Layout
2253 \begin_inset Flex Code
2256 \begin_layout Plain Layout
2275 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2276 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2277 \begin_inset Flex Code
2280 \begin_layout Plain Layout
2300 \begin_inset Flex Code
2303 \begin_layout Plain Layout
2318 \begin_layout Standard
2328 \begin_inset Flex Code
2331 \begin_layout Plain Layout
2351 \begin_inset Flex Code
2354 \begin_layout Plain Layout
2373 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2374 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2375 を使用していて,シスアドがお馬鹿さんである
2377 \begin_inset Flex Code
2380 \begin_layout Plain Layout
2400 \begin_inset Flex Code
2403 \begin_layout Plain Layout
2422 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2425 \begin_layout LyX-Code
2433 \begin_layout LyX-Code
2441 \begin_layout Standard
2454 \begin_layout Subsubsection
2458 \begin_layout Standard
2468 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2469 \begin_inset Flex Code
2472 \begin_layout Plain Layout
2480 という\SpecialChar LaTeX
2481 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2482 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2486 \begin_layout Standard
2497 \begin_inset Flex Code
2500 \begin_layout Plain Layout
2508 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2511 \begin_layout LyX-Code
2517 \begin_layout LyX-Code
2523 \begin_layout LyX-Code
2529 \begin_layout LyX-Code
2535 \begin_layout LyX-Code
2541 \begin_layout LyX-Code
2547 \begin_layout LyX-Code
2553 \begin_layout Standard
2572 Averyラベルシートのストック5360
2581 番を使用する場合の設定です.これで,各宛名を
2582 \begin_inset Flex Code
2585 \begin_layout Plain Layout
2605 \begin_inset Flex Code
2608 \begin_layout Plain Layout
2627 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2628 \begin_inset Flex Code
2631 \begin_layout Plain Layout
2642 \begin_layout Standard
2652 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2653 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2656 \begin_layout Subsubsection
2660 \begin_layout Standard
2690 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2707 \begin_layout Standard
2717 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2735 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2739 \begin_layout Standard
2749 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2753 \begin_layout LyX-Code
2756 usepackage{indentfirst}
2759 \begin_layout Standard
2769 もしお使いの\SpecialChar TeX
2770 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2773 \begin_layout Subsubsection
2777 \begin_layout Standard
2787 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2797 \begin_inset CommandInset ref
2799 reference "chap:Special-features"
2812 章には,他の例や,\SpecialChar LaTeX
2816 \begin_layout Section
2818 および\SpecialChar LaTeX
2822 \begin_layout Standard
2834 を呼び出す際,\SpecialChar LyX
2836 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2837 は,\SpecialChar LaTeX
2838 の実行ログファイルを事後処理用に使います.ログファイルを分
2839 析したのち,\SpecialChar LyX
2840 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2841 ファイル中,そのエラーの発生した場所に表示を移動します
2845 \begin_layout Plain Layout
2855 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2856 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2858 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2859 ーのある場所よりも後ろでエラーが報告されるのです.
2876 \begin_layout Standard
2886 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2887 \begin_inset Flex MenuItem
2890 \begin_layout Plain Layout
2900 文書\SpecialChar menuseparator
2906 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2911 \begin_layout Itemize
2914 \begin_inset Flex Code
2917 \begin_layout Plain Layout
2935 \begin_inset Newline newline
2938 これで始まるメッセージは,\SpecialChar LaTeX
2939 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2941 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2944 \begin_layout Itemize
2947 \begin_inset Flex Code
2950 \begin_layout Plain Layout
2968 \begin_inset Newline newline
2972 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2973 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2977 \begin_layout Itemize
2987 \begin_inset Flex Code
2990 \begin_layout Plain Layout
3001 \begin_inset Newline newline
3023 この警告を吐き出します.最終出力を見ても判別できないくらい(せいぜい1ポイントか2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.
3039 It seems to generate at least one of these messages for just about any
3041 They are warnings about lines that were too long and run past the right
3043 This happens if \SpecialChar LaTeX
3044 does not find a reasonable way to break the lines (notoriously
3045 often with typewriter font, since this does not allow for automatic break
3047 In many cases, this is unnoticeable in the final output.
3048 (It can be just a point or two.) Sometimes, however, the lines run rather
3049 visibly into the margin; something you will not want to have in your final
3052 \begin_inset Newline newline
3055 There are several global ways to try to minimize the overfull lines.
3058 Enable micro-typographic extensions
3062 Document\SpecialChar menuseparator
3063 Settings\SpecialChar menuseparator
3066 might already improve things a lot.
3067 Furthermore, \SpecialChar LaTeX
3068 code such as the following in
3070 Document\SpecialChar menuseparator
3071 Settings\SpecialChar menuseparator
3074 usually reduces the overfull lines drastically (we use this in the preamble
3079 \begin_layout LyX-Code
3085 \begin_inset Newline newline
3091 \begin_inset Newline newline
3096 emergencystretch 1.5em
3097 \begin_inset Newline newline
3105 \begin_layout Standard
3108 In some cases, however, you eventually have to rewrite the text to get the
3109 line breaking right.
3113 \begin_layout Plain Layout
3116 For more information, see
3117 \begin_inset Flex URL
3120 \begin_layout Plain Layout
3122 http://www.tex.ac.uk/FAQ-overfull.html
3135 \begin_layout Standard
3138 In any case, you should check the respective lines, at least for the final
3139 version of your document.
3140 Your eyes will tell you if there's a problem with something that's too
3145 \begin_layout Plain Layout
3148 You can also enable the `draft' option in
3149 \begin_inset Flex Noun
3152 \begin_layout Plain Layout
3155 Document\SpecialChar menuseparator
3161 , and then \SpecialChar LaTeX
3162 will draw a black box in the margin of lines that are overfull.
3171 \begin_layout Itemize
3174 \begin_inset Flex Code
3177 \begin_layout Plain Layout
3188 \begin_inset Newline newline
3194 Not quite as common as its cousin.
3195 This happens again if \SpecialChar LaTeX
3196 does not find a reasonable break point and consequently
3197 generates too loose lines.
3198 As with the overfull lines, you should check if this is a visible problem.
3201 \begin_layout Itemize
3202 \begin_inset Flex Code
3205 \begin_layout Plain Layout
3218 \begin_inset Flex Code
3221 \begin_layout Plain Layout
3234 \begin_inset Newline newline
3246 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3249 \begin_layout Itemize
3252 \begin_inset Flex Code
3255 \begin_layout Plain Layout
3259 \begin_inset Quotes els
3263 \begin_inset Quotes ers
3281 \begin_inset Newline newline
3284 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3285 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3287 \begin_inset Flex Code
3290 \begin_layout Plain Layout
3300 コマンドも使用していないとすれば,\SpecialChar LyX
3301 が読み込もうしているパッケージに存在しないものがあるということです.
3311 \begin_inset Flex MenuItem
3314 \begin_layout Plain Layout
3315 ヘルプ\SpecialChar menuseparator
3331 を使用して,\SpecialChar LyX
3332 が認識しているパッケージの一覧を得てください.このファイルは,(
3333 \begin_inset Flex MenuItem
3336 \begin_layout Plain Layout
3346 ツール\SpecialChar menuseparator
3352 を使用して)\SpecialChar LyX
3353 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3354 \begin_inset Newline newline
3367 \begin_inset Flex Code
3370 \begin_layout Plain Layout
3389 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3392 \begin_layout Itemize
3395 \begin_inset Flex Code
3398 \begin_layout Plain Layout
3401 LaTeX Error: Unknown option
3416 \begin_inset Newline newline
3419 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3423 \begin_layout Itemize
3426 \begin_inset Flex Code
3429 \begin_layout Plain Layout
3432 Undefined control sequence
3447 \begin_inset Newline newline
3450 お使いの文書に\SpecialChar LaTeX
3451 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3452 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3455 \begin_layout Standard
3465 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3466 のメッセージです.何を言っているのかさっぱりわからないものもあ
3467 りますが,通常これらは,\SpecialChar TeX
3468 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3486 手がかりがありません.誰もわからないのです.
3489 \begin_layout Standard
3499 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3502 \begin_layout Enumerate
3512 ご自分で挿入した\SpecialChar LaTeX
3513 コードに打ち間違いがないかどうか確かめる.
3516 \begin_layout Enumerate
3526 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3529 \begin_layout Enumerate
3539 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3540 \begin_inset Flex Code
3543 \begin_layout Plain Layout
3560 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3563 \begin_layout Enumerate
3573 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3574 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3575 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3579 \begin_layout Enumerate
3589 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3590 を微調整するオプションを使用していますか.特に,手動で
3591 \begin_inset Flex Code
3594 \begin_layout Plain Layout
3598 \begin_inset space ~
3607 \begin_inset Flex Code
3610 \begin_layout Plain Layout
3628 \begin_inset Flex Code
3631 \begin_layout Plain Layout
3648 などをたくさん挿入するなど,微調整オプションを
3666 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3669 \begin_layout Enumerate
3679 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3680 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3683 \begin_layout Enumerate
3685 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3686 はかなり嫌います.可能であれば,問題が生じな
3687 いように段落を修正するのが望ましいでしょう.
3690 \begin_layout Enumerate
3700 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3701 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3702 が原因です(\SpecialChar LaTeX
3706 \begin_layout Enumerate
3716 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3720 \begin_layout Enumerate
3733 \begin_layout Enumerate
3746 \begin_layout Standard
3760 \begin_layout Enumerate
3761 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3764 \begin_layout Standard
3796 \begin_layout Chapter
3800 \begin_layout Section
3809 \begin_layout Standard
3827 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3828 でサポートされている書誌情報の特別な機能について説明することとします.
3831 \begin_layout Subsection
3835 \begin_layout Standard
3836 標準のBib\SpecialChar TeX
3840 \begin_layout Standard
3843 Standard Bib\SpecialChar TeX
3845 \begin_inset space \thinspace{}
3849 \begin_inset space \space{}
3853 \begin_inset Quotes eld
3857 \begin_inset Quotes erd
3860 ) to refer to a cited work.
3861 However, in many scientific disciplines, other citation styles are in use.
3862 The most common one is the author-year style (e.
3863 \begin_inset space \thinspace{}
3867 \begin_inset space \space{}
3871 \begin_inset Quotes eld
3875 \begin_inset Quotes erd
3880 supports three packages that provide this style,
3881 \begin_inset Flex Code
3884 \begin_layout Plain Layout
3893 \begin_inset Flex Code
3896 \begin_layout Plain Layout
3905 \begin_inset Flex Code
3908 \begin_layout Plain Layout
3917 Each of these packages has their pros and cons, which cannot be listed
3919 If you only want to have simple author-year (or author-numerical) style,
3920 or if you want to use one of the countless style files for
3921 \begin_inset Flex Code
3924 \begin_layout Plain Layout
3932 , then the established
3933 \begin_inset Flex Code
3936 \begin_layout Plain Layout
3944 package is probably your choice.
3945 If you look for specific citation styles common in law studies, you might
3947 \begin_inset Flex Code
3950 \begin_layout Plain Layout
3959 If you want to have full control over the formatting or look for advanced
3960 features such as ibidem, footnote citations, full title citations, advanced
3961 date formats (such as 400 BC) or full localization to other languages than
3962 English, you should definitely consider
3963 \begin_inset Flex Code
3966 \begin_layout Plain Layout
3974 , which exceeds all other packages in terms of features, but is also quite
3975 heavy and more resource-hungry.
3978 \begin_layout Standard
3981 The handling of these packages in \SpecialChar LyX
3982 is basically the same.
3984 \begin_inset Flex Noun
3987 \begin_layout Plain Layout
3990 Document\SpecialChar menuseparator
3997 \begin_inset Flex Noun
4000 \begin_layout Plain Layout
4009 \begin_inset Flex Noun
4012 \begin_layout Plain Layout
4021 \begin_inset Flex Noun
4024 \begin_layout Plain Layout
4033 \begin_inset Flex Noun
4036 \begin_layout Plain Layout
4039 Biblatex (Natbib mode)
4045 \begin_inset Flex Noun
4048 \begin_layout Plain Layout
4057 \begin_inset Flex Noun
4060 \begin_layout Plain Layout
4069 \begin_inset space ~
4072 6.5.3 in the User's Guide for more information on these choices).
4073 With all these packages, you will get some extra features in the citation
4074 dialog and you can select the style of the reference (
4075 \begin_inset Quotes eld
4079 \begin_inset Quotes erd
4083 \begin_inset Quotes eld
4087 \begin_inset Quotes erd
4091 \begin_inset Quotes eld
4095 \begin_inset Quotes erd
4099 \begin_inset Quotes eld
4103 \begin_inset Quotes erd
4107 Note that either package needs specifically designed style files.
4108 They all ship their own, but there are lots of additional style files,
4109 and there is even an interactive style file builder
4113 \begin_layout Plain Layout
4117 \begin_inset Flex URL
4120 \begin_layout Plain Layout
4122 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4133 \begin_inset Flex Code
4136 \begin_layout Plain Layout
4147 \begin_layout Subsection
4150 Subdivided Bibliographies
4153 \begin_layout Standard
4154 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4155 でさえあります.残念ながら,Bib\SpecialChar TeX
4156 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4157 パッケージの助けを借りると,Bib\SpecialChar TeX
4158 をこのような必要性を満たすように拡張するこ
4162 \begin_layout Standard
4165 \begin_inset Flex Code
4168 \begin_layout Plain Layout
4178 \begin_layout Plain Layout
4179 \begin_inset Flex URL
4182 \begin_layout Plain Layout
4184 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4194 をそのままでサポートします.このパッケージの長所は,(
4195 \begin_inset Flex Code
4198 \begin_layout Plain Layout
4204 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4205 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4206 \begin_inset Flex Code
4209 \begin_layout Plain Layout
4216 \begin_inset Flex Code
4219 \begin_layout Plain Layout
4228 \begin_layout Standard
4229 \begin_inset Flex MenuItem
4232 \begin_layout Plain Layout
4233 文書\SpecialChar menuseparator
4240 \begin_inset Flex MenuItem
4243 \begin_layout Plain Layout
4250 \begin_inset Flex MenuItem
4253 \begin_layout Plain Layout
4262 \begin_inset Flex Noun
4265 \begin_layout Plain Layout
4268 Subdivided bibliography
4275 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4277 \begin_inset Flex Code
4280 \begin_layout Plain Layout
4287 \begin_inset Flex Code
4290 \begin_layout Plain Layout
4296 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4297 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4298 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4300 \begin_inset Flex Code
4303 \begin_layout Plain Layout
4309 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4312 \begin_layout Standard
4319 , the procedure is a bit different.
4328 , the aforementioned
4329 \begin_inset Flex Noun
4332 \begin_layout Plain Layout
4335 Subdivided bibliography
4340 option is disabled if you use
4349 provides its own means to generate subdivided bibliographies.
4350 You can either add keywords to bibliography entries via the
4351 \begin_inset Flex Code
4354 \begin_layout Plain Layout
4362 entry option and then filter bibliography sections by keyword (by adding
4364 \begin_inset Flex Code
4367 \begin_layout Plain Layout
4376 \begin_inset Flex Noun
4379 \begin_layout Plain Layout
4387 field of the dialog that opens if you right-click on the
4388 \begin_inset Flex Noun
4391 \begin_layout Plain Layout
4394 Biblatex Generated Bibliography
4399 button), or you can filter by entry types (such as
4408 \begin_inset space \thinspace{}
4413 \begin_inset Flex Code
4416 \begin_layout Plain Layout
4425 \begin_inset Flex Code
4428 \begin_layout Plain Layout
4437 \begin_inset Flex Noun
4440 \begin_layout Plain Layout
4448 field, or you can create so-called
4449 \begin_inset Quotes eld
4452 Bibliography Categories
4453 \begin_inset Quotes erd
4456 to which you can assign individual entries.
4457 Please refer to the Biblatex manual, section
4459 Subdivided Bibliographies
4464 \begin_layout Subsection
4467 \begin_inset CommandInset label
4469 name "subsec:Multiple-Bibliographies"
4476 \begin_layout Standard
4479 Multiple bibliographies, e.
4480 \begin_inset space \thinspace{}
4484 \begin_inset space \space{}
4487 a bibliography for each part, chapter, section, subsection or child (sub-documen
4488 t) of the document, are also supported by \SpecialChar LyX
4490 In order to enable it, go to
4491 \begin_inset Flex Noun
4494 \begin_layout Plain Layout
4497 Document\SpecialChar menuseparator
4498 Settings\SpecialChar menuseparator
4504 and select the relevant unit (e.
4505 \begin_inset space \thinspace{}
4509 \begin_inset Quotes eld
4513 \begin_inset Quotes erd
4517 \begin_inset Flex Noun
4520 \begin_layout Plain Layout
4523 Multiple Bibliographies
4529 Then add a Bib(la)\SpecialChar TeX
4530 bibliography to each unit (e.
4531 \begin_inset space \thinspace{}
4534 g., section) of your document.
4535 In the output, a separate bibliography, containing only the references
4536 done in the current unit is generated.
4539 \begin_layout Standard
4542 If you use Bib\SpecialChar TeX
4544 \begin_inset Flex Code
4547 \begin_layout Plain Layout
4556 \begin_inset Flex Code
4559 \begin_layout Plain Layout
4567 package is used to create multiple bibliographies.
4568 The former package is used if you select
4569 \begin_inset Quotes eld
4573 \begin_inset Quotes erd
4581 \begin_inset Flex Noun
4584 \begin_layout Plain Layout
4587 Sectioned Bibliography
4594 \begin_inset Flex Code
4597 \begin_layout Plain Layout
4609 \begin_layout Plain Layout
4612 An alternative approach, if you are willing to use some
4613 \begin_inset Flex Noun
4616 \begin_layout Plain Layout
4626 \begin_inset space ~
4630 \begin_inset CommandInset ref
4632 reference "sec:Inserting-TeX-Code"
4637 \begin_inset Flex Code
4640 \begin_layout Plain Layout
4654 \begin_inset Flex Code
4657 \begin_layout Plain Layout
4665 is used, \SpecialChar LyX
4666 encloses the specified units in
4667 \begin_inset Flex Code
4670 \begin_layout Plain Layout
4679 \begin_inset Flex Code
4682 \begin_layout Plain Layout
4693 \begin_inset Flex Code
4696 \begin_layout Plain Layout
4706 in order to create the units.
4707 Note that this approach has some limitations.
4708 First, every citation reference has to be inside some
4709 \begin_inset Flex Code
4712 \begin_layout Plain Layout
4721 So citations outside a defined unit (e.
4722 \begin_inset space \thinspace{}
4725 g., before the first section if you use
4726 \begin_inset Quotes eld
4730 \begin_inset Quotes erd
4734 \begin_inset Quotes eld
4738 \begin_inset Quotes erd
4742 You can also create your own units by entering
4743 \begin_inset Flex Code
4746 \begin_layout Plain Layout
4757 \begin_inset Flex Code
4760 \begin_layout Plain Layout
4771 code (for instance to work around the mentioned limitation).
4773 \begin_inset Flex Code
4776 \begin_layout Plain Layout
4785 A second limitation is that
4786 \begin_inset Flex Code
4789 \begin_layout Plain Layout
4797 always processes all references of a bibliography database, even if they
4799 This can result in odd labels (e.
4800 \begin_inset space \thinspace{}
4805 \begin_inset Quotes eld
4809 \begin_inset Quotes erd
4812 if two works of this author from 2014 are in the database, even if only
4816 \begin_layout Standard
4824 \begin_inset Flex Code
4827 \begin_layout Plain Layout
4835 option is used instead.
4836 If you need specific units, you can start them with the \SpecialChar TeX
4838 \begin_inset Flex Code
4841 \begin_layout Plain Layout
4852 \begin_inset Flex Code
4855 \begin_layout Plain Layout
4866 If you also want to control the end of the unit, use the environment
4867 \begin_inset Flex Code
4870 \begin_layout Plain Layout
4882 \begin_inset Flex Code
4885 \begin_layout Plain Layout
4897 \begin_inset Flex Code
4900 \begin_layout Plain Layout
4909 In addition to the individual bibliography of the current unit,
4913 also provides an easy way to output all bibliographies, subsequently, at
4915 \begin_inset space \thinspace{}
4918 g., at the end of the document).
4920 \begin_inset Quotes eld
4924 \begin_inset Quotes erd
4927 from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
4933 manual for more information on this topic.
4936 \begin_layout Section
4940 \begin_layout Subsection
4944 \begin_layout Standard
4945 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4946 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4947 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4948 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4952 \begin_layout Plain Layout
4957 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4963 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4964 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4965 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4966 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4967 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4969 \begin_inset Flex Code
4972 \begin_layout Plain Layout
4981 \begin_inset Flex Code
4984 \begin_layout Plain Layout
4992 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4995 \begin_layout Standard
4999 挿入\SpecialChar menuseparator
5000 ファイル\SpecialChar menuseparator
5003 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
5004 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
5007 \begin_layout Standard
5008 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.
5011 \begin_inset Quotes eld
5015 \begin_inset Quotes erd
5019 \begin_inset Quotes eld
5023 \begin_inset Quotes erd
5026 are similar in many ways, but there are also some notable differences:
5029 \begin_layout Enumerate
5033 \begin_inset Quotes eld
5037 \begin_inset Quotes erd
5040 are typeset beginning on a new page, while files that are
5041 \begin_inset Quotes eld
5045 \begin_inset Quotes erd
5048 are typeset starting on the current page.
5051 \begin_layout Enumerate
5054 \begin_inset Quotes eld
5058 \begin_inset Quotes erd
5061 files cannot themselves
5062 \begin_inset Quotes eld
5066 \begin_inset Quotes erd
5070 \begin_inset Quotes eld
5074 \begin_inset Quotes erd
5079 \begin_inset Quotes eld
5083 \begin_inset Quotes erd
5086 , on the other hand, infinite sub-inputting is possible.
5089 \begin_layout Enumerate
5092 \begin_inset Quotes eld
5096 \begin_inset Quotes erd
5099 allow for the output of only selected
5100 \begin_inset Quotes eld
5104 \begin_inset Quotes erd
5107 files, while maintaining the actual counters (pagination etc.) and references
5108 (please refer to the section
5111 \begin_inset space ~
5119 \begin_inset space ~
5124 manual for details).
5127 \begin_layout Standard
5131 \begin_inset Quotes eld
5135 \begin_inset Quotes erd
5138 is the preferred method for chapters that are outsourced to child documents,
5140 \begin_inset Quotes eld
5144 \begin_inset Quotes erd
5147 is more suitable for arbitrary file inheritance.
5150 \begin_layout Standard
5151 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
5152 \begin_inset Flex Code
5155 \begin_layout Plain Layout
5161 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
5162 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
5166 \begin_inset Flex MenuItem
5169 \begin_layout Plain Layout
5179 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
5182 \begin_layout Standard
5185 Generally, the master file is converted into a full \SpecialChar LaTeX
5186 file before typesetting,
5187 while the included files are converted to \SpecialChar LaTeX
5188 files that do not have all the
5189 preamble information.
5192 \begin_layout Subsection
5196 \begin_layout Standard
5197 \begin_inset Box Shadowbox
5207 height_special "totalheight"
5212 backgroundcolor "none"
5215 \begin_layout Plain Layout
5216 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
5224 \begin_layout Standard
5225 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
5226 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
5230 \begin_layout Subsection
5234 \begin_layout Standard
5237 If you work with child documents, you might want to have only one main bibliogra
5238 phy at the end, but still be able to have a selected bibliography for the
5239 child if you output it on its own.
5240 Here is how to achieve this.
5243 \begin_layout Standard
5246 For the main document, you just insert a bibliography inset at the place
5247 where the main bibliography has to appear (within the master file or within
5249 If the bibliography inset is in the master file, the references will be
5250 inherited by all children, so they are available in the citation dialog
5254 \begin_layout Standard
5257 For child-specific bibliographies, insert bibliography insets within the
5258 child documents, at the place where the bibliography should appear when
5259 the child is compiled separately.
5260 However, the trick is to insert them into a branch (
5262 Insert\SpecialChar menuseparator
5263 Branch\SpecialChar menuseparator
5264 Insert New Branch...
5267 \begin_inset space \thinspace{}
5272 \begin_inset Quotes eld
5276 \begin_inset Quotes erd
5280 Within the children, activate the branch (
5282 Document\SpecialChar menuseparator
5283 Settings...\SpecialChar menuseparator
5287 Within the master, deactivate the branch (
5289 Document\SpecialChar menuseparator
5290 Settings...\SpecialChar menuseparator
5294 Now the child's bibliography will be ignored by the master, but considered
5298 \begin_layout Standard
5301 If you need multiple bibliographies (e.
5302 \begin_inset space \thinspace{}
5305 g., one per child in the
5309 ), please refer to sec.
5310 \begin_inset space ~
5314 \begin_inset CommandInset ref
5316 reference "subsec:Multiple-Bibliographies"
5323 \begin_layout Section
5328 \begin_layout Standard
5329 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
5330 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
5332 2.0には,この過程を自動化するPythonスクリプト(
5333 \begin_inset Flex Code
5336 \begin_layout Plain Layout
5343 \begin_inset Flex Code
5346 \begin_layout Plain Layout
5353 \begin_inset Flex Code
5356 \begin_layout Plain Layout
5362 pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
5363 \begin_inset Flex Code
5366 \begin_layout Plain Layout
5373 \begin_inset Flex Code
5376 \begin_layout Plain Layout
5382 ファイル形式が優先され,Windowsでは
5383 \begin_inset Flex Code
5386 \begin_layout Plain Layout
5395 \begin_layout Standard
5397 の環境構成時には,「\SpecialChar LyX
5398 書庫」を書き出すことができるようにスクリプトが準備され,
5399 \begin_inset Flex MenuItem
5402 \begin_layout Plain Layout
5403 ファイル\SpecialChar menuseparator
5412 \begin_layout Standard
5413 \begin_inset Flex MenuItem
5416 \begin_layout Plain Layout
5417 ツール\SpecialChar menuseparator
5418 設定\SpecialChar menuseparator
5419 ファイル処理\SpecialChar menuseparator
5426 \begin_inset Flex MenuItem
5429 \begin_layout Plain Layout
5431 \SpecialChar menuseparator
5439 \begin_inset Flex Code
5442 \begin_layout Plain Layout
5449 \begin_inset Flex Code
5452 \begin_layout Plain Layout
5458 スイッチを加えることで,プラットホームとは独立に,
5459 \begin_inset Flex Code
5462 \begin_layout Plain Layout
5469 \begin_inset Flex Code
5472 \begin_layout Plain Layout
5478 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5481 \begin_layout Section
5485 \begin_layout Standard
5486 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5487 \begin_inset Flex Code
5490 \begin_layout Plain Layout
5496 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5501 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5503 る必要のある\SpecialChar LaTeX
5507 \begin_layout Standard
5508 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5509 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5513 \begin_inset Flex Code
5516 \begin_layout Plain Layout
5531 \begin_inset Flex Code
5534 \begin_layout Plain Layout
5549 \begin_inset Flex Code
5552 \begin_layout Plain Layout
5565 \begin_inset Flex Code
5568 \begin_layout Plain Layout
5576 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5579 \begin_layout Standard
5587 \begin_layout Standard
5588 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5592 \begin_layout Standard
5598 \begin_inset Newline newline
5606 \begin_layout Standard
5607 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5608 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5611 \begin_layout Standard
5621 \begin_layout Standard
5629 \begin_layout Standard
5639 \begin_layout Standard
5647 \begin_layout Standard
5655 \begin_layout Standard
5665 \begin_layout Standard
5669 \begin_inset Flex Code
5672 \begin_layout Plain Layout
5689 \begin_inset Flex Code
5692 \begin_layout Plain Layout
5704 は,それぞれ\SpecialChar LaTeX
5705 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5706 \begin_inset Flex Code
5709 \begin_layout Plain Layout
5724 \begin_layout Standard
5725 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5726 フッタ罫線は0ptです.太さを変更するには,
5729 \begin_inset Flex Code
5732 \begin_layout Plain Layout
5739 headrulewidth}{0.4pt}
5749 \begin_inset Flex Code
5752 \begin_layout Plain Layout
5759 footrulewidth}{0.4pt}
5769 \begin_layout Standard
5770 \begin_inset Flex Code
5773 \begin_layout Plain Layout
5778 thispagestyle{empty}
5784 \begin_inset Flex Code
5787 \begin_layout Plain Layout
5792 thispagestyle{plain}
5798 \begin_inset Flex Code
5801 \begin_layout Plain Layout
5806 thispagestyle{fancy}
5811 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5813 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5814 (plain)になるように設定されているのです.
5817 \begin_layout Standard
5818 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5819 \begin_inset Flex Code
5822 \begin_layout Plain Layout
5830 パッケージの取扱説明書をご参照ください(
5831 \begin_inset Flex Code
5834 \begin_layout Plain Layout
5843 \begin_layout Standard
5844 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5847 \begin_layout Standard
5856 includegraphics{logo.eps}}}
5859 \begin_layout Standard
5861 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5862 \begin_inset Newline newline
5866 \begin_inset Flex Code
5869 \begin_layout Plain Layout
5875 usepackage{graphics}
5880 をプリアンブルに宣言する必要があります).
5883 \begin_layout Section
5885 \begin_inset CommandInset label
5894 \begin_layout Standard
5900 \begin_layout Subsection
5904 \begin_layout Standard
5906 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5907 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5911 \begin_layout Plain Layout
5912 正確には可能ですが,手動で行う必要があります.
5920 \begin_layout Subsection
5924 \begin_layout Standard
5926 \begin_inset Flex MenuItem
5929 \begin_layout Plain Layout
5930 文書\SpecialChar menuseparator
5937 \begin_inset Flex MenuItem
5940 \begin_layout Plain Layout
5949 \begin_layout Standard
5950 このダイアログは,ブリット形の一覧表を提示します.
5951 \begin_inset Flex MenuItem
5954 \begin_layout Plain Layout
5960 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5961 \begin_inset Flex MenuItem
5964 \begin_layout Plain Layout
5970 パネルは,変更したい階層を選択するものです.
5971 \begin_inset Flex MenuItem
5974 \begin_layout Plain Layout
5980 では,指定したい\SpecialChar LaTeX
5981 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5985 \begin_layout Standard
5986 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5990 \begin_layout Standard
5992 \begin_inset Tabular
5993 <lyxtabular version="3" rows="7" columns="2">
5994 <features tabularvalignment="middle">
5995 <column alignment="center" valignment="top" width="0pt">
5996 <column alignment="center" valignment="top" width="0pt">
5998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6001 \begin_layout Plain Layout
6007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6010 \begin_layout Plain Layout
6027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6030 \begin_layout Plain Layout
6038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6041 \begin_layout Plain Layout
6060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6063 \begin_layout Plain Layout
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6081 \begin_layout Plain Layout
6098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6101 \begin_layout Plain Layout
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6119 \begin_layout Plain Layout
6136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6139 \begin_layout Plain Layout
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6157 \begin_layout Plain Layout
6174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6177 \begin_layout Plain Layout
6192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6195 \begin_layout Plain Layout
6212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6215 \begin_layout Plain Layout
6230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6233 \begin_layout Plain Layout
6256 \begin_layout Standard
6258 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
6260 パッケージが導入されていない可能性が大です
6264 \begin_layout Plain Layout
6266 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
6274 \begin_layout Subsection
6278 \begin_layout Standard
6279 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
6280 上には反映されませんが,文書の表示を行えば確認されます.
6283 \begin_layout Standard
6284 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
6288 \begin_layout Plain Layout
6293 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
6294 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
6295 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
6298 \begin_layout Plain Layout
6302 \begin_layout Plain Layout
6318 \begin_layout Plain Layout
6322 \begin_layout Plain Layout
6344 \begin_layout Itemize
6345 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
6347 \begin_inset Flex Code
6350 \begin_layout Plain Layout
6360 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
6361 更するために,以下の\SpecialChar LaTeX
6366 \begin_layout LyX-Code
6378 \begin_layout LyX-Code
6397 \begin_layout Itemize
6399 \begin_inset Flex Code
6402 \begin_layout Plain Layout
6410 コマンドの一部にローマ数字で指定されていることに注意してください.
6413 \begin_layout Itemize
6416 \begin_inset Argument item:1
6419 \begin_layout Plain Layout
6425 \begin_layout Plain Layout
6445 各項目のブリットを指定するには,角括弧で囲んだブリット形を
6448 \begin_inset Quotes eld
6452 \begin_inset Quotes erd
6457 Insert\SpecialChar menuseparator
6463 \begin_inset Flex Code
6466 \begin_layout Plain Layout
6473 として挿入してください.たとえば,この項目の行頭には
6476 \begin_inset Flex Code
6479 \begin_layout Plain Layout
6498 \begin_layout Plain Layout
6502 \begin_layout Plain Layout
6518 \begin_layout Plain Layout
6519 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6522 \begin_layout LyX-Code
6539 \begin_layout Chapter
6544 \begin_layout Standard
6546 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6547 は,常に外部変換子を用いることで実現されていました
6551 \begin_layout Plain Layout
6553 で外部変換子を使うことについての詳細は,取扱説明書『
6566 .これらは2つのグループに大別できます.1つは,
6567 \begin_inset Flex Code
6570 \begin_layout Plain Layout
6577 \begin_inset Flex Code
6580 \begin_layout Plain Layout
6587 \begin_inset Flex Code
6590 \begin_layout Plain Layout
6596 のように,\SpecialChar LaTeX
6597 を中間形式として用い,その\SpecialChar LaTeX
6598 を生成するのに\SpecialChar LyX
6600 \begin_inset Flex Code
6603 \begin_layout Plain Layout
6610 のように,直接\SpecialChar LyX
6611 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6614 \begin_layout Standard
6616 ベースの変換子は,原則として,\SpecialChar LaTeX
6617 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6619 たのか,\SpecialChar TeX
6620 コードで書かれたのかについては気にしません.これらの変換子は,
6621 \begin_inset Flex Code
6624 \begin_layout Plain Layout
6630 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6632 \begin_inset Flex Code
6635 \begin_layout Plain Layout
6641 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6642 は解析の非常に難しい言語であり—\SpecialChar TeX
6643 自身だけが\SpecialChar TeX
6644 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6646 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6650 』は,他の変換子では書き出しができるのに,
6651 \begin_inset Flex Code
6654 \begin_layout Plain Layout
6660 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6661 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6662 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6663 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6666 \begin_layout Standard
6668 \begin_inset Flex Code
6671 \begin_layout Plain Layout
6679 \begin_inset CommandInset href
6681 name "http://elyxer.nongnu.org/"
6682 target "http://elyxer.nongnu.org/"
6687 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6688 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6689 \begin_inset Flex Code
6692 \begin_layout Plain Layout
6698 よりも質が落ちます.これはHTMLの限界を示しています
6702 \begin_layout Plain Layout
6704 \begin_inset Flex Code
6707 \begin_layout Plain Layout
6714 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6720 .さらに重要なことは(少なくとも第1.1.1版においては),
6721 \begin_inset Flex Code
6724 \begin_layout Plain Layout
6731 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6733 \begin_inset Flex Code
6736 \begin_layout Plain Layout
6743 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6744 開発陣は別の方法を採ることとし,\SpecialChar LyX
6747 ことができるのと同様に,\SpecialChar LyX
6748 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6751 \begin_layout Standard
6752 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6756 \begin_layout Plain Layout
6759 \begin_inset CommandInset href
6762 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6768 \begin_inset Flex Code
6771 \begin_layout Plain Layout
6781 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6782 \begin_inset CommandInset href
6785 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"
6790 にあるXHTML関連バグ一覧も参照のこと.
6795 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6798 \begin_layout Standard
6799 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6800 の一部となっているため,\SpecialChar LyX
6801 が出力する文書について\SpecialChar LyX
6802 が関知しているところのものは,すべて知り得るというところから来ていま
6807 \begin_layout Plain Layout
6808 他には,これらのルーチンが\SpecialChar LyX
6809 内部にあるため,\SpecialChar LyX
6810 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6815 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6816 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6817 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6818 1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6821 \begin_layout Standard
6822 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6823 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6824 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6825 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6829 生成します.もし節見出しが,\SpecialChar LyX
6830 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6831 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6833 式とを区別しません.どちらの場合も,\SpecialChar LyX
6834 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6838 \begin_layout Standard
6839 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6840 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6848 \begin_layout Standard
6849 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6852 \begin_layout Section
6856 \begin_layout Standard
6858 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6861 \begin_layout Itemize
6863 \begin_inset Newline newline
6866 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6867 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6869 \begin_inset Newline newline
6873 \begin_inset Flex Code
6876 \begin_layout Plain Layout
6882 パッケージを使用していたり,\SpecialChar TeX
6883 コードを使用しているなどで,もし\SpecialChar LyX
6884 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6889 \begin_layout Itemize
6891 \begin_inset Newline newline
6895 \begin_inset Flex Code
6898 \begin_layout Plain Layout
6904 は,数式をCSSで装飾したHTMLとして出力します
6908 \begin_layout Plain Layout
6911 \begin_inset Flex Code
6914 \begin_layout Plain Layout
6920 からのHTML出力のために,CSSの一部を拝借しています.
6925 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6926 \begin_inset Flex Code
6929 \begin_layout Plain Layout
6935 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6936 \begin_inset Newline newline
6940 \begin_inset Flex Code
6943 \begin_layout Plain Layout
6949 パッケージを使用していたり,\SpecialChar TeX
6950 コードを使用しているなどで,もし\SpecialChar LyX
6951 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6956 \begin_layout Itemize
6958 \begin_inset Newline newline
6962 \begin_inset Flex Code
6965 \begin_layout Plain Layout
6971 のように,\SpecialChar LyX
6972 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6976 \begin_layout Plain Layout
6977 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6986 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6987 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6988 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,
6989 \begin_inset Newline newline
6993 \begin_inset Flex MenuItem
6996 \begin_layout Plain Layout
6997 文書\SpecialChar menuseparator
6998 設定\SpecialChar menuseparator
7006 の「数式画像の伸縮」パラメータを変更することで制御できます
7010 \begin_layout Plain Layout
7011 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
7017 \begin_inset Newline newline
7021 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
7022 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
7026 \begin_layout Itemize
7029 \begin_inset Newline newline
7032 最後に,\SpecialChar LyX
7033 は,数式を\SpecialChar LaTeX
7034 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
7037 \begin_inset CommandInset href
7040 target "http://www.math.union.edu/~dpvc/jsMath/"
7045 のようなツールとともに使用することもできます.\SpecialChar LyX
7046 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
7048 \begin_inset Flex Code
7051 \begin_layout Plain Layout
7058 \begin_inset Flex Code
7061 \begin_layout Plain Layout
7068 \begin_inset Flex Code
7071 \begin_layout Plain Layout
7080 \begin_layout Standard
7082 \begin_inset Flex MenuItem
7085 \begin_layout Plain Layout
7086 文書\SpecialChar menuseparator
7087 設定\SpecialChar menuseparator
7095 で選択しなくてはなりません.既定では,\SpecialChar LyX
7096 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
7099 \begin_layout Standard
7100 最後に,\SpecialChar LyX
7101 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
7105 \begin_layout Plain Layout
7106 その他にも,\SpecialChar LyX
7107 は,差込枠に\SpecialChar TeX
7108 コードが含まれていると画像出力に回帰するので,数式中に
7109 \begin_inset Formula $a=b\relax$
7112 のような無害な\SpecialChar TeX
7113 コードを挿入することによって,画像出力を強制することができます.
7121 \begin_layout Section
7125 \begin_layout Standard
7126 XHTML出力は,書誌情報と引用を完全にサポートしています.
7129 \begin_layout Standard
7130 引用ラベルは,\SpecialChar LyX
7131 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
7132 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
7133 使用している場合には,\SpecialChar LyX
7134 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
7135 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
7136 は,Bib\SpecialChar TeX
7137 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
7138 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
7141 \begin_layout Standard
7142 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
7143 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
7147 \begin_layout Standard
7148 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
7153 \begin_inset Quotes eld
7156 Context and Logical Form
7157 \begin_inset Quotes erd
7162 Language in Context: Selected Essays
7164 (Oxford: Oxford University Press, 2007), pp.
7170 \begin_inset Quotes eld
7173 Semantics in Context
7174 \begin_inset Quotes erd
7179 Language in Context: Selected Essays
7181 (Oxford: Oxford University Press, 2007), pp.
7185 \begin_layout Standard
7186 これは,遠くないうちに修正されるでしょう.
7189 \begin_layout Standard
7190 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
7191 は同じ情報を繰り返し出力してしまいます.
7194 \begin_layout Section
7198 \begin_layout Standard
7200 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
7203 \begin_layout Standard
7208 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
7212 \begin_layout Plain Layout
7213 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
7214 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
7215 で入力しなくてはならないようなものをそのまま入力しているのです.
7220 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
7223 \begin_layout Itemize
7224 索引項目のグループ化(下層項目): \SpecialChar LyX
7225 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
7226 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
7229 \begin_layout Itemize
7230 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
7234 \begin_layout Itemize
7235 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
7236 が「|see\SpecialChar ldots
7237 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
7241 \begin_layout Itemize
7242 索引項目の整序: \SpecialChar LyX
7243 は整序順の変更をサポートします.\SpecialChar LyX
7244 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
7245 出します.現在のところ,\SpecialChar LyX
7246 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
7249 \begin_layout Itemize
7250 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
7251 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
7252 うな文法はサポートされません.\SpecialChar LyX
7253 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
7256 \begin_layout Itemize
7257 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
7258 を印字しますので,その索引は必ず置くようにしてください.
7261 \begin_layout Section
7265 \begin_layout Standard
7266 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
7269 \begin_layout Chapter
7272 \begin_inset CommandInset label
7281 \begin_layout Section
7285 \begin_layout Standard
7287 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
7288 と通信したり,\SpecialChar LyX
7289 コマンドを実行させたり,\SpecialChar LyX
7290 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
7291 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
7292 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
7296 \begin_layout Section
7301 \begin_inset CommandInset label
7303 name "sec:Starting-the-Server"
7310 \begin_layout Standard
7312 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
7313 \begin_inset Flex Code
7316 \begin_layout Plain Layout
7322 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
7327 \begin_inset Flex Code
7330 \begin_layout Plain Layout
7342 に特別なオブジェクトとして置かれます),「
7343 \begin_inset Flex Code
7346 \begin_layout Plain Layout
7353 \begin_inset Flex Code
7356 \begin_layout Plain Layout
7362 」という名前がついています.外部プログラムは,
7363 \begin_inset Flex Code
7366 \begin_layout Plain Layout
7373 \begin_inset Flex Code
7376 \begin_layout Plain Layout
7383 \begin_inset Flex MenuItem
7386 \begin_layout Plain Layout
7387 ツール\SpecialChar menuseparator
7394 \begin_inset Flex Code
7397 \begin_layout Plain Layout
7398 /home/myhome/lyxpipe
7404 \begin_inset Flex Code
7407 \begin_layout Plain Layout
7421 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
7422 \begin_inset Flex Code
7425 \begin_layout Plain Layout
7443 なども使用できます).サーバーを開始するためには,これを
7450 \begin_layout Standard
7453 \begin_inset Flex Code
7456 \begin_layout Plain Layout
7463 \begin_inset Flex Code
7466 \begin_layout Plain Layout
7472 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
7474 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
7475 らかの理由で,\SpecialChar LyX
7476 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
7477 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
7478 プを削除したのちに,\SpecialChar LyX
7479 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7483 \begin_layout Standard
7484 サーバーを使用する\SpecialChar LyX
7485 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7486 \begin_inset Flex Code
7489 \begin_layout Plain Layout
7495 ファイルを使用させるなど,別々の設定を使用する必要があります.
7498 \begin_layout Standard
7499 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7500 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7501 \begin_inset Flex Code
7504 \begin_layout Plain Layout
7513 \begin_layout Standard
7514 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7515 \begin_inset Newline newline
7519 \begin_inset Flex Code
7522 \begin_layout Plain Layout
7523 development/lyxserver/server_monitor.cpp
7531 \begin_layout Standard
7533 \begin_inset Flex Code
7536 \begin_layout Plain Layout
7537 src/client/lyxclient
7542 にあるコマンドラインベースのクライアントがあります.
7545 \begin_layout Section
7549 \begin_layout Standard
7551 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7568 \begin_layout Description
7569 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7571 る際,クライアント名をエコーするときだけです.
7574 \begin_layout Description
7575 関数 は,\SpecialChar LyX
7576 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7579 \begin_layout Description
7580 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7583 \begin_layout Standard
7602 \begin_layout Standard
7611 は,コマンド要求からそのままエコーされますが,
7615 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7616 の内部状態に関する情報を返しますが,空のデータ応答
7617 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7620 \begin_layout Standard
7621 エラーが発生した場合の\SpecialChar LyX
7639 \begin_layout Standard
7644 には,なぜコマンドが失敗したかの説明が入っているはずです.
7647 \begin_layout Standard
7651 \begin_layout LyX-Code
7652 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7653 \begin_inset Newline newline
7656 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7657 \begin_inset Newline newline
7660 read a <~/.lyxpipe.out
7661 \begin_inset Newline newline
7667 \begin_layout Section
7671 \begin_layout Standard
7673 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7674 \begin_inset Flex Ruby
7677 \begin_layout Plain Layout
7679 \begin_inset Argument post:1
7682 \begin_layout Plain Layout
7693 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7694 はこの通知を行います.\SpecialChar LyX
7699 \begin_inset Flex Code
7702 \begin_layout Plain Layout
7713 \begin_layout Standard
7718 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7721 \begin_layout Standard
7722 この機構は,\SpecialChar LyX
7723 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7724 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7725 コマンドを発行する\SpecialChar LyX
7730 \begin_layout Section
7735 \begin_layout Standard
7737 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7750 \begin_layout Standard
7755 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7756 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7758 とをクライアントに伝えるのには,\SpecialChar LyX
7762 \begin_layout Section
7766 \begin_layout Standard
7771 \begin_layout Plain Layout
7772 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7776 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7781 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7782 特定の場所をクリックすることによって,\SpecialChar LyX
7783 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7789 )を使用するか,\SpecialChar LyX
7790 が作業ディレクトリに生成するUNIXドメインソケット(
7795 \begin_inset Flex Code
7798 \begin_layout Plain Layout
7804 プログラムが\SpecialChar LyX
7805 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7806 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7808 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7809 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7810 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7811 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7814 \begin_layout Subsection
7815 \begin_inset CommandInset label
7824 \begin_layout Standard
7827 n most cases \SpecialChar LyX
7828 will do the work for you by pressing the following button
7832 arg "buffer-toggle-output-sync"
7836 Alternatively, you can also enable the feature by checking
7838 Synchronize with Output
7841 \begin_inset Flex Noun
7844 \begin_layout Plain Layout
7847 Document\SpecialChar menuseparator
7848 Settings\SpecialChar menuseparator
7856 その場合,\SpecialChar LyX
7857 は,自動的に,必要なSync\SpecialChar TeX
7858 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入してくれます.このオプションは,
7859 \begin_inset Flex MenuItem
7862 \begin_layout Plain Layout
7868 ツールバーからも容易にアクセスすることができます.
7871 \begin_layout Standard
7872 もし,これとは別の設定が必要な場合には,
7873 \begin_inset Flex MenuItem
7876 \begin_layout Plain Layout
7877 文書\SpecialChar menuseparator
7878 設定\SpecialChar menuseparator
7879 出力\SpecialChar menuseparator
7885 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7888 \begin_layout Standard
7890 \begin_inset Flex Code
7893 \begin_layout Plain Layout
7901 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7902 \begin_inset Flex Code
7905 \begin_layout Plain Layout
7916 \begin_layout Standard
7918 \begin_inset Flex Code
7921 \begin_layout Plain Layout
7928 \begin_inset Flex Code
7931 \begin_layout Plain Layout
7937 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7938 \begin_inset Flex Code
7941 \begin_layout Plain Layout
7948 \begin_inset Flex Code
7951 \begin_layout Plain Layout
7957 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7960 \begin_layout Standard
7961 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7962 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7963 \begin_inset CommandInset ref
7965 reference "subsec:特定のビューアを設定して使うには"
7972 \begin_layout Subsection
7976 \begin_layout Standard
7978 は,遡及検索のために複数の方法を提供しています.ある方法は
7979 \begin_inset Flex Code
7982 \begin_layout Plain Layout
7988 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7989 頒布版が既に特定の方法を提供しているか(組み込みによ
7990 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7993 \begin_layout Subsubsection*
7994 src-special経由のDVI組み込み検索(DVIのみ)
7997 \begin_layout Standard
7998 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7999 から利用可能となっており(比較的最近の\SpecialChar LaTeX
8002 \begin_inset Flex MenuItem
8005 \begin_layout Plain Layout
8006 設定\SpecialChar menuseparator
8007 ファイル処理\SpecialChar menuseparator
8014 \begin_inset Flex MenuItem
8017 \begin_layout Plain Layout
8024 \begin_inset Flex MenuItem
8027 \begin_layout Plain Layout
8028 LaTeX (plain)->DraftDVI
8034 \begin_inset Flex Code
8037 \begin_layout Plain Layout
8038 latex -src-specials $$i
8043 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
8044 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
8047 \begin_layout Subsubsection*
8048 外部パッケージ(PDFSyncおよびsrcltx)
8051 \begin_layout Standard
8060 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
8061 プリアンブルで以下のようにパッケージを読み込んで
8065 \begin_layout Itemize
8067 \begin_inset Flex Code
8070 \begin_layout Plain Layout
8081 \begin_layout Itemize
8083 \begin_inset Flex Code
8086 \begin_layout Plain Layout
8089 usepackage[active]{srcltx}
8097 \begin_layout Standard
8098 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
8101 \begin_layout LyX-Code
8105 \begin_inset Newline newline
8111 \begin_inset Newline newline
8117 \begin_inset Newline newline
8123 \begin_inset Newline newline
8128 usepackage[active]{srcltx}
8129 \begin_inset Newline newline
8137 \begin_layout Standard
8138 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
8141 \begin_layout Standard
8142 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
8146 \begin_layout Subsubsection*
8147 Sync\SpecialChar TeX
8148 を使った組み込み遡及検索(DVIおよびPDF)
8151 \begin_layout Standard
8152 \begin_inset Flex Code
8155 \begin_layout Plain Layout
8161 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
8163 Sync\SpecialChar TeX
8166 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
8167 るためには,少なくとも\SpecialChar TeX
8168 Live 2008か最近のMik\SpecialChar TeX
8169 頒布版が必要です.また,既にSync\SpecialChar TeX
8170 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
8171 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF
8173 ; see the next section for details
8178 \begin_layout Standard
8179 DVI出力でSync\SpecialChar TeX
8181 \begin_inset Flex MenuItem
8184 \begin_layout Plain Layout
8185 設定\SpecialChar menuseparator
8186 ファイル処理\SpecialChar menuseparator
8193 \begin_inset Flex MenuItem
8196 \begin_layout Plain Layout
8203 \begin_inset Flex MenuItem
8206 \begin_layout Plain Layout
8207 LaTeX (plain)->DraftDVI
8213 \begin_inset Flex Code
8216 \begin_layout Plain Layout
8217 latex -synctex=1 $$i
8223 \begin_inset Flex MenuItem
8226 \begin_layout Plain Layout
8227 LaTeX (pdflatex)->PDF (pdflatex)
8233 \begin_inset Flex Code
8236 \begin_layout Plain Layout
8237 pdflatex -synctex=1 $$i
8244 Should your viewer not be considered in the following description, or in
8245 case of missing success, please check
8247 また,ビューアをSync\SpecialChar TeX
8248 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
8252 \begin_layout Plain Layout
8253 \begin_inset Flex Code
8256 \begin_layout Plain Layout
8262 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
8263 \begin_inset Flex Code
8266 \begin_layout Plain Layout
8280 \begin_layout Subsection
8282 \begin_inset CommandInset label
8284 name "subsec:特定のビューアを設定して使うには"
8291 \begin_layout Subsubsection*
8295 \begin_layout Standard
8298 \begin_inset Flex Code
8301 \begin_layout Plain Layout
8307 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
8308 \begin_inset Flex Code
8311 \begin_layout Plain Layout
8317 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
8318 ,Mac OS X上ではAlt-クリックで始動します).
8321 \begin_layout Standard
8322 しかし,何らかの理由で,\SpecialChar LyX
8323 と通信するのにソケットではなく命名パイプを使用したい場合には,
8324 \begin_inset Flex MenuItem
8327 \begin_layout Plain Layout
8328 設定\SpecialChar menuseparator
8329 ファイル処理\SpecialChar menuseparator
8336 \begin_inset Flex Code
8339 \begin_layout Plain Layout
8340 xdvi -editor "lyxeditor.sh %f %l"
8346 \begin_inset Flex Code
8349 \begin_layout Plain Layout
8355 は適切なスクリプト名)に変更してください
8359 \begin_layout Plain Layout
8361 \begin_inset Flex Code
8364 \begin_layout Plain Layout
8365 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8378 \begin_layout LyX-Code
8380 \begin_inset Newline newline
8383 LYXPIPE="/path/to/lyxpipe"
8384 \begin_inset Newline newline
8387 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8388 \begin_inset Newline newline
8391 echo "$COMMAND" > "${LYXPIPE}".in || exit
8392 \begin_inset Newline newline
8395 read TMP < "${LYXPIPE}".out || exit
8398 \begin_layout Standard
8400 \begin_inset Flex Code
8403 \begin_layout Plain Layout
8410 \begin_inset Flex MenuItem
8413 \begin_layout Plain Layout
8414 設定\SpecialChar menuseparator
8420 で指定したLyXServerパイプのパスを指定してください.
8424 \begin_layout Plain Layout
8426 \begin_inset Flex Code
8429 \begin_layout Plain Layout
8440 \begin_inset Flex Code
8443 \begin_layout Plain Layout
8457 \begin_layout Subsubsection*
8461 \begin_layout Standard
8462 \begin_inset Flex Code
8465 \begin_layout Plain Layout
8466 /Applications/MacDviX_Folder/calleditor.script
8474 \begin_layout LyX-Code
8475 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8476 \begin_inset Newline newline
8482 \begin_layout Standard
8483 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
8484 を導入した場合には,それに従って上記の行を修正してください.
8487 \begin_layout Standard
8488 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8491 \begin_layout Subsubsection*
8495 \begin_layout Standard
8496 \begin_inset Flex MenuItem
8499 \begin_layout Plain Layout
8500 設定\SpecialChar menuseparator
8501 ファイル処理\SpecialChar menuseparator
8502 ファイル書式\SpecialChar menuseparator
8509 \begin_inset Flex Code
8512 \begin_layout Plain Layout
8513 open -a Skim.app $$i
8519 \begin_inset Flex MenuItem
8522 \begin_layout Plain Layout
8523 Skim\SpecialChar menuseparator
8524 設定\SpecialChar menuseparator
8533 \begin_layout Standard
8534 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8537 \begin_layout Subsubsection*
8543 \begin_layout Standard
8546 Reverse search with evince does not work out of the box, but it can be achieved
8547 by means of some third party helper scripts.
8549 \begin_inset CommandInset href
8551 target "http://wiki.lyx.org/LyX/SyncTeX"
8559 \begin_layout Subsubsection*
8563 \begin_layout Standard
8564 \begin_inset Flex MenuItem
8567 \begin_layout Plain Layout
8568 設定\SpecialChar menuseparator
8569 Okularを設定\SpecialChar ldots
8570 \SpecialChar menuseparator
8579 \begin_inset Quotes erd
8583 This inserts the appropriate command (
8584 \begin_inset Flex Code
8587 \begin_layout Plain Layout
8598 \begin_layout Standard
8599 遡及検索は,SHIFT-クリックで始動します.
8602 \begin_layout Subsubsection*
8606 \begin_layout Standard
8607 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8609 \begin_inset Flex MenuItem
8612 \begin_layout Plain Layout
8613 Edit\SpecialChar menuseparator
8614 Settings\SpecialChar menuseparator
8620 を開いて「Source editor」項目の入力フィールドをクリックし,
8621 \begin_inset Flex Code
8624 \begin_layout Plain Layout
8633 \begin_layout Standard
8634 遡及検索は,ダブルクリックで始動します.
8637 \begin_layout Subsubsection*
8641 \begin_layout Standard
8643 \begin_inset Flex MenuItem
8646 \begin_layout Plain Layout
8647 View\SpecialChar menuseparator
8653 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8654 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8656 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8657 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8658 \begin_inset Flex Code
8661 \begin_layout Plain Layout
8667 (以下参照)のあるディレクトリを見つけます.
8668 \begin_inset Flex Code
8671 \begin_layout Plain Layout
8678 \begin_inset Flex Code
8681 \begin_layout Plain Layout
8688 \begin_inset Flex Code
8691 \begin_layout Plain Layout
8701 を通じて\SpecialChar LyX
8702 と通信するためのラッパとして使用され,以下のようになっています.
8705 \begin_layout LyX-Code
8707 \begin_inset Newline newline
8710 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2>
8719 \begin_inset Newline newline
8733 \begin_layout Standard
8735 で指定した\SpecialChar LyX
8737 \begin_inset Flex Code
8740 \begin_layout Plain Layout
8755 \begin_inset Flex Code
8758 \begin_layout Plain Layout
8767 \begin_layout Standard
8768 yapでは,遡及検索はダブルクリックで始動します.
8771 \begin_layout Subsubsection*
8775 \begin_layout Standard
8776 SumatraPDFを遡及検索で使用するためには,
8777 \begin_inset Flex MenuItem
8780 \begin_layout Plain Layout
8781 設定\SpecialChar menuseparator
8782 ファイル処理\SpecialChar menuseparator
8783 ファイル書式\SpecialChar menuseparator
8790 \begin_inset Flex Code
8793 \begin_layout Plain Layout
8794 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8800 \begin_inset Flex Code
8803 \begin_layout Plain Layout
8809 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8812 \begin_layout Standard
8816 \begin_layout Subsubsection*
8820 \begin_layout Standard
8821 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8822 \begin_inset Flex MenuItem
8825 \begin_layout Plain Layout
8826 View\SpecialChar menuseparator
8832 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8833 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8835 Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8836 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8837 \begin_inset Flex Code
8840 \begin_layout Plain Layout
8846 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8847 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8848 \begin_inset Flex Code
8851 \begin_layout Plain Layout
8858 \begin_inset Flex Code
8861 \begin_layout Plain Layout
8867 と指定してください.これによって,\SpecialChar LyX
8872 が使用されるようになります.何らかの理由で
8877 \begin_inset Flex Code
8880 \begin_layout Plain Layout
8886 オプションを削除して,\SpecialChar LyX
8888 Serverパイプパスを指定することを忘れないでください.
8891 \begin_layout Standard
8892 yapでは,遡及検索はダブルクリックで始動します.
8895 \begin_layout Subsubsection*
8899 \begin_layout Standard
8900 SumatraPDFを遡及検索で使用するためには,
8901 \begin_inset Flex MenuItem
8904 \begin_layout Plain Layout
8905 設定\SpecialChar menuseparator
8906 ファイル処理\SpecialChar menuseparator
8907 ファイル書式\SpecialChar menuseparator
8914 \begin_inset Flex Code
8917 \begin_layout Plain Layout
8924 \begin_inset Flex Code
8927 \begin_layout Plain Layout
8933 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8934 \begin_inset Flex Code
8937 \begin_layout Plain Layout
8946 \begin_layout LyX-Code
8948 \begin_inset Newline newline
8952 \begin_inset Newline newline
8955 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8958 \begin_layout Standard
8959 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8960 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8961 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8962 \begin_inset Flex Code
8965 \begin_layout Plain Layout
8980 \begin_inset Flex Code
8983 \begin_layout Plain Layout
8989 オプションを削除して,\SpecialChar LyX
8991 Serverパイプパスを指定することを忘れないでください.
8994 \begin_layout Standard
8998 \begin_layout Section
9002 \begin_layout Standard
9003 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
9004 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
9005 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
9007 \begin_inset Flex MenuItem
9010 \begin_layout Plain Layout
9011 移動\SpecialChar menuseparator
9017 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
9018 \begin_inset Flex MenuItem
9021 \begin_layout Plain Layout
9027 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
9030 \begin_layout Standard
9031 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
9032 ソースに関する情報を追加する必要があります.これは,第
9033 \begin_inset CommandInset ref
9035 reference "subsec:遡及検索"
9039 節に述べられている方法で実行することができます.
9042 \begin_layout Standard
9044 \begin_inset Flex MenuItem
9047 \begin_layout Plain Layout
9048 ツール\SpecialChar menuseparator
9049 設定\SpecialChar menuseparator
9050 出力\SpecialChar menuseparator
9056 で自分の使うビューアを利用するように,\SpecialChar LyX
9057 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
9058 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
9061 \begin_layout Itemize
9062 \begin_inset Flex Code
9065 \begin_layout Plain Layout
9074 \begin_layout Itemize
9075 \begin_inset Flex Code
9078 \begin_layout Plain Layout
9084 :書き出された(一時).texファイル名(パスを除く)
9087 \begin_layout Itemize
9088 \begin_inset Flex Code
9091 \begin_layout Plain Layout
9097 :書き出された(一時).texファイル名(パスを含む)
9100 \begin_layout Itemize
9101 \begin_inset Flex Code
9104 \begin_layout Plain Layout
9110 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
9113 \begin_layout Standard
9114 \begin_inset Note Note
9117 \begin_layout Plain Layout
9120 [Revision 2017-07-25]
9123 \begin_layout Plain Layout
9126 Note that only some of the viewers provide full and usable forward search
9127 functionality out of the box, among them yap, xdvi, okular
9131 \begin_layout Plain Layout
9134 You might want to set
9135 \begin_inset Flex Code
9138 \begin_layout Plain Layout
9147 \begin_inset Flex Noun
9150 \begin_layout Plain Layout
9153 Tools\SpecialChar menuseparator
9154 Preferences\SpecialChar menuseparator
9155 File Handling\SpecialChar menuseparator
9157 \begin_inset space ~
9170 , qpdfview, and SumatraPDF
9174 \begin_layout Plain Layout
9177 SumatraPDF can also use DDE commands through the external program CMCDDE
9179 \begin_inset CommandInset href
9181 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9192 Others, such as evince
9196 \begin_layout Plain Layout
9197 \paragraph_spacing single
9200 Forward search with evince can be achieved by means of third party helper
9203 \begin_inset CommandInset href
9205 target "http://wiki.lyx.org/LyX/SyncTeX"
9215 , require some extra tools in order to use forward search.
9216 While many of the widespread PDF viewers (most notably Adobe Reader) do
9217 not support forward search at all, some other viewers – e.
9218 \begin_inset space \thinspace{}
9222 xpdf – allow at least to reload the document and jump to a specific page
9223 of the file, so you can at least navigate
9224 \begin_inset Quotes eld
9228 \begin_inset Quotes erd
9232 This latter functionality is provided by an external call of synctex (see
9233 the predefined example configurations).
9242 \begin_layout Plain Layout
9243 \begin_inset Flex MenuItem
9246 \begin_layout Plain Layout
9247 ツール\SpecialChar menuseparator
9248 設定\SpecialChar menuseparator
9249 ファイル処理\SpecialChar menuseparator
9256 \begin_inset Flex Code
9259 \begin_layout Plain Layout
9270 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
9274 \begin_layout Plain Layout
9275 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
9276 \begin_inset CommandInset href
9278 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9288 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
9289 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
9290 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
9293 \begin_layout Standard
9294 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
9295 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
9296 チェックして),その形式に適切な設定を選択します.
9299 \begin_layout Chapter
9303 \begin_layout Section
9307 \begin_layout Standard
9313 \begin_layout Subsection
9317 \begin_layout Standard
9324 Astronomy and Astrophysics
9327 \begin_inset Flex URL
9330 \begin_layout Plain Layout
9332 http://www.edpsciences.fr/aa/
9337 )に投稿する論文を執筆するための\SpecialChar LyX
9338 の使用法を説明します.このパッケージは,FTPサイト
9341 \begin_layout Standard
9343 \begin_inset VSpace medskip
9347 \begin_inset Flex URL
9350 \begin_layout Plain Layout
9352 ftp://ftp.edpsciences.org/pub/aa/readme.html
9358 \begin_inset VSpace medskip
9364 \begin_layout Standard
9369 \begin_layout Standard
9370 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
9374 \begin_layout Standard
9375 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
9376 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
9377 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
9378 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
9385 Dir/layouts/aapaper.layout
9390 \begin_layout Subsection
9394 \begin_layout Standard
9396 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
9399 \begin_layout Itemize
9402 文書\SpecialChar menuseparator
9409 を選択してください(まぁ,これは自明ですね).
9412 \begin_layout Itemize
9417 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
9420 \begin_layout Subsection
9424 \begin_layout Standard
9425 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
9428 \begin_layout Itemize
9436 \begin_layout Itemize
9444 \begin_layout Itemize
9452 \begin_layout Itemize
9460 \begin_layout Itemize
9465 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
9468 \begin_layout Itemize
9473 :[非必須]連絡用の電子メールアドレス.
9476 \begin_layout Itemize
9483 Received: <日付>; Accepted <日付>
9488 \begin_layout Standard
9495 コマンドは,へッダが終了した場所に,\SpecialChar LyX
9496 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
9497 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
9500 \begin_layout Standard
9505 Edit\SpecialChar menuseparator
9508 , you'll find two insets which are relevant for the titling:
9511 \begin_layout Itemize
9519 to mark corresponding author\SpecialChar breakableslash
9521 The institutes are numbered sequentially as they appear in the
9525 field, so you have to put a marker to each author.
9528 \begin_layout Itemize
9534 to supply an email address for fast contact.
9537 \begin_layout Standard
9538 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
9540 挿入\SpecialChar menuseparator
9543 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
9553 \begin_layout Standard
9556 In addition to these topics, the macros use one additional \SpecialChar LaTeX
9558 has no counterpart in \SpecialChar LyX
9562 \begin_layout Itemize
9563 複数の著者名あるいは所属名を区切るための
9570 \begin_layout Standard
9571 いずれの場合にも,\SpecialChar LyX
9572 中に対応したコマンドを入力し,\SpecialChar LaTeX
9574 \begin_inset Flex Code
9577 \begin_layout Plain Layout
9587 \begin_layout Subsection
9591 \begin_layout Standard
9592 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
9595 This is done via the paragraph style
9604 \begin_layout Subsection
9608 \begin_layout Standard
9609 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
9612 \begin_layout Itemize
9618 \begin_layout Itemize
9624 \begin_layout Itemize
9630 \begin_layout Itemize
9636 \begin_layout Itemize
9642 \begin_layout Itemize
9648 \begin_layout Itemize
9654 \begin_layout Itemize
9660 \begin_layout Itemize
9666 \begin_layout Itemize
9672 \begin_layout Itemize
9678 \begin_layout Itemize
9685 \begin_layout Subsection
9690 \begin_layout Standard
9696 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9699 \begin_layout Itemize
9707 \begin_layout Itemize
9715 \begin_layout Itemize
9723 \begin_layout Itemize
9731 \begin_layout Standard
9732 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9734 これを\SpecialChar LaTeX
9735 コマンドとしてマークすることを忘れないで下さい.
9738 \begin_layout Subsection
9742 \begin_layout Standard
9760 をサポートしていますので,ここでは詳しい説明はしません.
9764 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9766 編集\SpecialChar menuseparator
9772 \begin_layout Standard
9773 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9776 \begin_layout Enumerate
9779 挿入\SpecialChar menuseparator
9780 フロート\SpecialChar menuseparator
9783 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9784 \begin_inset Flex MenuItem
9787 \begin_layout Plain Layout
9788 設定\SpecialChar ldots
9809 \begin_layout Enumerate
9813 \begin_layout Enumerate
9818 を押して,カーソルをキャプションの上に移動します.
9821 \begin_layout Enumerate
9825 \begin_layout Enumerate
9828 挿入\SpecialChar menuseparator
9829 整形\SpecialChar menuseparator
9847 \begin_layout Enumerate
9850 挿入\SpecialChar menuseparator
9853 を選択して,\SpecialChar TeX
9857 \begin_layout Enumerate
9870 \begin_layout Enumerate
9871 カーソルをキャプション文の後ろに移動し,
9873 挿入\SpecialChar menuseparator
9876 を選択して,別の\SpecialChar TeX
9877 差込枠を挿入し,その中に閉じ括弧を入力します .
9880 \begin_layout Standard
9884 \begin_layout Subsection
9888 \begin_layout Standard
9889 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9893 オプションを与える必要があります.これは,
9895 文書\SpecialChar menuseparator
9903 custom class options
9905 クラスオプションフィールドを使って行うことができます.この欄に
9912 \begin_layout Subsection
9916 \begin_layout Standard
9921 ディレクトリには,\SpecialChar LyX
9922 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9923 用に直したものです.これはヒントを得るために使用したり,元の
9925 コードと\SpecialChar LyX
9926 での書き方の比較に使ったりしてください.
9929 \begin_layout Section
9934 \begin_layout Standard
9942 \begin_layout Subsection
9946 \begin_layout Standard
9948 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9949 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9950 Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9952 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.
9955 requires version 5.0 (or higher) of these macros; preferably 6.0, which is
9956 the version described here, or higher.
9960 は,同マクロ第5.0版以降を必要としており,できればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9961 2.09で使用するよう企図されているため,根本
9963 とは互換性がありません.AAS\SpecialChar TeX
9964 パッケージは,以下のAAS\SpecialChar TeX
9965 ウェブサイトからダウンロードできるでしょう.
9968 \begin_layout Standard
9970 \begin_inset VSpace medskip
9974 \begin_inset Flex URL
9977 \begin_layout Plain Layout
9979 https://aas.org/aastex/aastex-downloads
9985 \begin_inset VSpace medskip
9991 \begin_layout Standard
9992 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9993 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9995 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9996 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9997 いることを確認するのは,あなたの責任です.
10000 \begin_layout Subsection
10004 \begin_layout Standard
10005 論文を書き始めるには,AAS\SpecialChar TeX
10006 ひな型ファイルを土台に始めることを強くお勧めします.
10007 \begin_inset Flex MenuItem
10010 \begin_layout Plain Layout
10011 ファイル\SpecialChar menuseparator
10017 をクリックして,新しいファイル名を入力し,ひな型
10021 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
10025 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
10026 コマンド・AAS\SpecialChar TeX
10027 環境の多くは,\SpecialChar LyX
10028 中で直接実行することができますがこの二つのコマンドは,ひな型ファイルを開いたとき,
10029 赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接La\SpecialChar TeX
10030 コードを入力して,それを\SpecialChar TeX
10031 コードとしてマークしなければなりません.このようなコマン
10032 ドは,\SpecialChar TeX
10033 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.AAS\SpecialChar TeX
10034 文書に必要とされる \SpecialChar TeX
10035 コードを最小にするよう努力はしていますが
10038 \begin_layout Subsection
10042 \begin_layout Standard
10043 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
10046 \begin_layout Enumerate
10047 論文を \SpecialChar LaTeX
10050 ファイル\SpecialChar menuseparator
10051 書き出し\SpecialChar menuseparator
10057 \begin_layout Enumerate
10062 ファイルを好きなエディタで編集します.
10066 \begin_layout Enumerate
10073 コマンドよりも前のコメント行を削除します.
10076 \begin_layout Enumerate
10081 usepackage...{fontenc}
10098 \begin_layout Enumerate
10100 プリアンブル中に意図的に置いたコマンド(
10104 ファイル中,「User specified \SpecialChar LaTeX
10105 commands」というコメントの直後にあります)を除いて,
10117 の間のもの(これらのコマンドを含む)をすべて削除します.
10121 \begin_layout Enumerate
10122 編集後のファイルを \SpecialChar LaTeX
10123 にかけて,正しく処理されることを確認します.
10126 \begin_layout Enumerate
10127 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
10130 \begin_layout Enumerate
10134 \begin_layout Subsection
10138 \begin_layout Standard
10139 AAS\SpecialChar TeX
10144 )に,各AAS\SpecialChar TeX
10145 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
10146 て,必要なところだけコメントを加えることにしましょう.
10149 \begin_layout Subsubsection
10153 \begin_layout Standard
10154 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
10254 begin{thebibliography}
10262 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
10313 \begin_layout Standard
10314 以下のスタイルオプションも正しく動作します.
10335 \begin_inset Flex MenuItem
10338 \begin_layout Plain Layout
10339 文書\SpecialChar menuseparator
10356 \begin_layout Subsubsection
10360 \begin_layout Standard
10361 以下のコマンドは動作しますが,若干の説明が必要です.
10364 \begin_layout Itemize
10365 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
10397 \begin_layout Itemize
10398 以下の項目は,\SpecialChar LaTeX
10399 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
10420 \begin_layout Itemize
10427 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10431 \begin_layout Itemize
10438 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10441 \begin_layout Itemize
10448 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10452 \begin_layout Itemize
10459 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
10462 \begin_layout Itemize
10478 \begin_layout Itemize
10485 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10488 \begin_layout Itemize
10495 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10498 \begin_layout Itemize
10505 (2.14.2)―文章のはじめにカーソルを置いて
10506 \begin_inset Flex MenuItem
10509 \begin_layout Plain Layout
10510 挿入\SpecialChar menuseparator
10516 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
10522 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
10525 \begin_layout Itemize
10532 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10541 \begin_layout Itemize
10548 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10557 \begin_layout Subsubsection
10558 実装されていないため,\SpecialChar TeX
10562 \begin_layout Standard
10573 setcounter{equation}
10575 (2.12)・学術誌名略語(2.12.4)・
10611 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
10624 (2.15.5)・補遺(2.17)の大半(
10675 \begin_layout Subsubsection
10679 \begin_layout Standard
10680 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10681 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10682 \begin_inset Flex MenuItem
10685 \begin_layout Plain Layout
10686 挿入\SpecialChar menuseparator
10688 \begin_inset Formula $\text{\textipa{}}$
10691 \SpecialChar menuseparator
10697 を使用して,\SpecialChar LyX
10698 ファイルに読み込むことを推奨します.この実例は,
10705 \begin_layout Subsection
10709 \begin_layout Subsubsection
10711 をAAS\SpecialChar TeX
10715 \begin_layout Standard
10717 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10720 \begin_layout Enumerate
10722 が,AAS\SpecialChar TeX
10723 を検出できることを確認してください.AAS\SpecialChar TeX
10732 でも可)を,\SpecialChar LaTeX
10733 やAAS\SpecialChar TeX
10734 とまったく関係のないディレクトリにコピーして,
10738 を\SpecialChar LaTeX
10742 \begin_layout Enumerate
10752 フォルダにあることを確認してください.
10755 \begin_layout Enumerate
10759 ツール\SpecialChar menuseparator
10762 を再度実行し,\SpecialChar LyX
10766 \begin_layout Enumerate
10767 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10770 文書\SpecialChar menuseparator
10776 \begin_layout Standard
10777 既存のAAS\SpecialChar TeX
10778 文書を処理する際に,AAS\SpecialChar TeX
10779 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10783 \begin_layout Subsubsection
10784 表を処理する際の\SpecialChar LaTeX
10788 \begin_layout Standard
10789 既定では,\SpecialChar LyX
10790 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10791 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10794 編集\SpecialChar menuseparator
10805 に設定してください.私のところではこれで解決しました.
10808 \begin_layout Subsubsection
10812 \begin_layout Standard
10813 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10826 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10830 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10831 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10834 \begin_layout Subsubsection
10838 \begin_layout Standard
10839 AAS\SpecialChar TeX
10846 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10847 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10854 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10859 usepackage{graphics}
10861 コマンドを\SpecialChar LaTeX
10862 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10863 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10864 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10867 \begin_layout Subsubsection
10871 \begin_layout Standard
10872 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10874 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10875 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10878 \begin_layout Subsection
10882 \begin_layout Standard
10883 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10884 \begin_inset space \thinspace{}
10889 \begin_inset space \thinspace{}
10892 %が,\SpecialChar LaTeX
10893 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10897 \begin_layout Section
10898 AMS \SpecialChar LaTeX
10902 \begin_layout Standard
10912 \begin_inset VSpace bigskip
10918 \begin_layout Standard
10919 AMS \SpecialChar LaTeX
10920 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10921 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10923 必要があるだけです).AMSの説明書は,ウェブWeb上の
10924 \begin_inset Flex URL
10927 \begin_layout Plain Layout
10935 \begin_inset Flex URL
10938 \begin_layout Plain Layout
10940 ftp://ftp.ams.org/pub/tex/amslatex/
10945 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10948 \begin_layout Standard
10949 基本となるAMS \SpecialChar LaTeX
10950 レイアウトには,以下の二つがあります.
10953 \begin_layout Itemize
10954 amsart:標準のAMS article書式.
10957 \begin_layout Itemize
10958 amsbook:標準のAMS book(実際はモノグラフ)書式.
10961 \begin_layout Standard
10962 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10963 m」環境は,何一つ含まれていません.これらは,代わりに
10964 \begin_inset Flex Code
10967 \begin_layout Plain Layout
10973 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10974 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10975 \begin_inset Flex Code
10978 \begin_layout Plain Layout
10984 モジュールがあり,これは手動で読み込む必要があります.
10987 \begin_layout Standard
10988 既定では,定理類は,文書を通して連番が振られますが,これは
10989 \begin_inset Flex Code
10992 \begin_layout Plain Layout
10998 モジュールを読み込めば変更することができ,
10999 \begin_inset Flex Code
11002 \begin_layout Plain Layout
11009 \begin_inset Flex Code
11012 \begin_layout Plain Layout
11018 を用いても変更することができます.これらを用いると,出力は
11019 \begin_inset Formula $n.m$
11022 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
11023 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
11028 \begin_inset Flex Code
11031 \begin_layout Plain Layout
11040 \begin_layout Standard
11041 これらのモジュールは,AMSクラスで使用する
11046 \begin_inset Flex Code
11049 \begin_layout Plain Layout
11055 モジュールや上述の他のモジュールは,他のクラス,たとえば
11056 \begin_inset Flex Code
11059 \begin_layout Plain Layout
11066 \begin_inset Flex Code
11069 \begin_layout Plain Layout
11076 \begin_inset Flex Code
11079 \begin_layout Plain Layout
11085 などで問題なく使用することができます.
11088 \begin_layout Subsection
11092 \begin_layout Standard
11093 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
11094 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
11095 す.しかし,AMSは,\SpecialChar LyX
11096 で利用可能になっている環境のみを使用することを推奨しています.
11099 \begin_layout Standard
11100 \begin_inset Flex Code
11103 \begin_layout Plain Layout
11110 \begin_inset Flex Code
11113 \begin_layout Plain Layout
11120 \begin_inset space ~
11124 \begin_inset Flex Noun
11127 \begin_layout Plain Layout
11134 \begin_inset Flex Noun
11137 \begin_layout Plain Layout
11144 \begin_inset Flex Noun
11147 \begin_layout Plain Layout
11154 \begin_inset Flex Noun
11157 \begin_layout Plain Layout
11164 \begin_inset Flex Noun
11167 \begin_layout Plain Layout
11174 \begin_inset space ~
11178 \begin_inset space ~
11184 \begin_layout Description
11188 \begin_layout Description
11189 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
11192 \begin_layout Description
11196 \begin_layout Description
11200 \begin_layout Description
11201 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
11204 \begin_layout Description
11207 Mathematical Reviews
11209 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
11213 \begin_layout Description
11217 \begin_layout Description
11221 \begin_layout Description
11225 \begin_layout Standard
11227 \begin_inset Flex Code
11230 \begin_layout Plain Layout
11237 \begin_inset Flex Code
11240 \begin_layout Plain Layout
11246 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
11247 \begin_inset Flex Code
11250 \begin_layout Plain Layout
11256 モジュールでは,同環境の星付き版だけが提供されます.
11259 \begin_layout Theorem
11260 これは,通常,得られた主要な結果を叙述するのに使用されます.
11263 \begin_layout Corollary*
11264 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
11267 \begin_layout Lemma
11268 他の叙述を証明するために必要とされる,比較的小さな結果です.
11271 \begin_layout Proposition
11272 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
11275 \begin_layout Conjecture
11276 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
11279 \begin_layout Definition*
11280 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
11283 \begin_layout Problem
11284 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
11287 \begin_layout Exercise*
11292 この環境もtheorem型,通常は重要性の低い所見に用いられます.
11295 \begin_layout Claim*
11296 より大きな結果の証明を与える途中で,しばしば用いられます.
11300 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
11304 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
11307 \begin_layout Proof
11308 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
11309 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
11320 \begin_layout Standard
11322 \begin_inset Flex Code
11325 \begin_layout Plain Layout
11334 \begin_layout Criterion*
11338 \begin_layout Algorithm*
11342 \begin_layout Axiom*
11343 議論されている系内部で真と仮定される性質や命題です.
11346 \begin_layout Condition*
11347 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
11350 \begin_layout Note*
11354 \begin_layout Notation*
11358 \begin_layout Summary
11362 \begin_layout Acknowledgement*
11363 謝辞(acknowledgement)です.
11366 \begin_layout Conclusion*
11371 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
11374 \begin_layout Standard
11375 さらに,AMSクラスは,AMS \SpecialChar LaTeX
11376 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
11380 \begin_layout Section
11386 \begin_layout Standard
11394 \begin_layout Subsection
11398 \begin_layout Standard
11399 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
11401 \begin_inset Flex URL
11404 \begin_layout Plain Layout
11406 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11411 にあります)が導入されていることが必要です.
11414 \begin_layout Subsection
11418 \begin_layout Standard
11427 は,定義し直されています.\SpecialChar LyX
11436 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
11448 \begin_layout Standard
11485 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
11488 \begin_layout Standard
11489 おそらく,これはまだ恐ろしく不完全です.
11492 \begin_layout Subsection
11496 \begin_layout Standard
11505 (Plate)が新しいフロートです.また,
11512 \begin_layout Subsection
11516 \begin_layout Itemize
11519 Journal of Geophysical Research
11528 \begin_layout Standard
11529 ここにあなたの作ったものを加えてください.難しくはありません.
11540 \begin_layout Subsection
11544 \begin_layout Standard
11545 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
11548 \begin_layout Enumerate
11555 ツール\SpecialChar menuseparator
11558 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
11565 \begin_layout Enumerate
11570 と入力してください(すみません,これはバグです).
11573 \begin_layout Enumerate
11574 Bib\SpecialChar TeX
11583 を使用していることを確認してください.標準スタイルはうまく動作しません.
11586 \begin_layout Section
11590 \begin_layout Standard
11598 \begin_layout Subsection
11602 \begin_layout Standard
11603 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
11606 \begin_layout Subsection
11610 \begin_layout Standard
11614 \begin_layout Subsection
11618 \begin_layout Standard
11623 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
11626 \begin_layout Subsection
11630 \begin_layout Standard
11631 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11634 \begin_layout Subsection
11638 \begin_layout Standard
11639 以下の環境を使うことができます.右に記してある
11640 \begin_inset Flex Ruby
11643 \begin_layout Plain Layout
11645 \begin_inset Argument post:1
11648 \begin_layout Plain Layout
11659 割当ては,broadway.bindを使った場合のものです.
11662 \begin_layout Itemize
11666 \begin_inset Newline newline
11671 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11674 \begin_layout Itemize
11678 \begin_inset space \hfill{}
11682 \begin_inset Newline newline
11687 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11690 \begin_layout Itemize
11694 \begin_inset space \hfill{}
11698 \begin_inset Newline newline
11703 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11706 \begin_layout Itemize
11710 \begin_inset space \hfill{}
11714 \begin_inset Newline newline
11719 幕の副題です.単に中央揃えの文になります.
11722 \begin_layout Itemize
11726 \begin_inset space \hfill{}
11730 \begin_inset Newline newline
11735 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11738 \begin_layout Itemize
11742 \begin_inset space \hfill{}
11746 \begin_inset Newline newline
11751 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11754 \begin_layout Itemize
11758 \begin_inset space \hfill{}
11762 \begin_inset Newline newline
11767 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11770 \begin_layout Itemize
11774 \begin_inset space \hfill{}
11778 \begin_inset Newline newline
11783 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11790 \begin_layout Itemize
11794 \begin_inset space \hfill{}
11798 \begin_inset Newline newline
11806 \begin_layout Itemize
11810 \begin_inset space \hfill{}
11814 \begin_inset Newline newline
11822 \begin_layout Itemize
11826 \begin_inset space \hfill{}
11832 \begin_layout Itemize
11836 \begin_inset space \hfill{}
11842 \begin_layout Itemize
11846 \begin_inset space \hfill{}
11852 \begin_layout Section
11856 \begin_layout Standard
11861 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11863 .../lyx/share/templates
11865 にあるので,それを土台として使用してください.
11868 \begin_layout Section
11874 \begin_layout Standard
11882 \begin_layout Subsection
11886 \begin_layout Standard
11887 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11892 \begin_inset Flex URL
11895 \begin_layout Plain Layout
11897 http://www.copernicus.org/
11905 \begin_layout Subsection
11909 \begin_layout Standard
11947 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11951 ファイルを読み込む形に変えた方が便利になると思われます.
11954 \begin_layout Section
11958 \begin_layout Standard
11964 を参照してください.必要な情報は全てそこにあります.
11967 \begin_layout Section
11968 Foils (別名Foil\SpecialChar TeX
11970 \begin_inset CommandInset label
11979 \begin_layout Standard
11987 \begin_layout Subsection
11991 \begin_layout Standard
11992 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11993 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11995 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11998 \begin_layout Standard
11999 誤解のないように,わかりやすく明確に,もう一度言っておきます.
12002 \begin_layout Standard
12003 \begin_inset VSpace bigskip
12009 \begin_layout Standard
12024 \begin_layout Standard
12025 \begin_inset VSpace bigskip
12031 \begin_layout Standard
12034 transparencies (slides)
12037 \begin_inset CommandInset ref
12039 reference "sec:slitex"
12043 節をご覧ください.お使いのコンピュータに
12062 \begin_layout Standard
12067 クラスは,\SpecialChar LaTeX2e
12068 の一部として含まれている\SpecialChar LaTeX
12073 の第2.1版とともに使われるように設計されています.
12076 \begin_layout Subsection
12080 \begin_layout Standard
12081 いうまでもなく,この文書クラスを使うには,
12083 文書\SpecialChar menuseparator
12084 設定\SpecialChar menuseparator
12099 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
12102 \begin_layout Itemize
12115 オプションは変更しないでください.これらは
12122 \begin_layout Itemize
12123 既定のフォント寸法は20ptであり,17
12124 \begin_inset space \thinspace{}
12128 \begin_inset space \thinspace{}
12132 \begin_inset space \thinspace{}
12138 \begin_layout Itemize
12147 ですが,数式ではすべて,通常のローマン体が使用されます.
12150 \begin_layout Itemize
12151 Foil\SpecialChar TeX
12153 \begin_inset space \thinspace{}
12156 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
12159 \begin_layout Itemize
12164 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
12167 \begin_layout Itemize
12172 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
12173 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
12174 \begin_inset CommandInset ref
12176 reference "sec:foilfoot"
12180 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
12184 付けられず,(ロゴが定義されていれば)ロゴは,
12188 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
12192 \begin_layout Labeling
12193 \labelwidthstring MMMMMMM
12200 最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
12203 \begin_layout Labeling
12204 \labelwidthstring MMMMMMM
12211 最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
12214 \begin_layout Labeling
12215 \labelwidthstring MMMMMMM
12220 ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
12223 \begin_layout Labeling
12224 \labelwidthstring MMMMMMM
12233 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
12234 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
12238 \begin_layout Subsubsection
12242 \begin_layout Standard
12247 ダイアログの任意設定クラスオプションボックスで使うことができます.
12250 \begin_layout Labeling
12251 \labelwidthstring MMMMMMx
12256 これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
12257 \begin_inset space \space{}
12260 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
12263 \begin_layout Labeling
12264 \labelwidthstring MMMMMMx
12269 タイトルページを除くすべてのページのへッダの下に罫線を入れます.
12272 \begin_layout Labeling
12273 \labelwidthstring MMMMMMx
12278 タイトルページを除くすべてのページのフッタの上に罫線を入れます.
12281 \begin_layout Labeling
12282 \labelwidthstring MMMMMMx
12291 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
12295 \begin_layout Labeling
12296 \labelwidthstring MMMMMMx
12301 このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
12302 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
12310 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
12313 \begin_layout Labeling
12314 \labelwidthstring MMMMMMx
12322 \begin_layout Labeling
12323 \labelwidthstring MMMMMMx
12331 \begin_layout Subsection
12335 \begin_layout Standard
12336 他のクラスで標準的にサポートされている環境は,
12340 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
12341 が提供している環境と,\SpecialChar LyX
12342 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
12345 \begin_layout Standard
12348 \begin_inset Flex Multiple Columns
12351 \begin_layout Itemize
12357 \begin_layout Itemize
12363 \begin_layout Itemize
12369 \begin_layout Itemize
12375 \begin_layout Itemize
12381 \begin_layout Itemize
12388 \begin_layout Itemize
12394 \begin_layout Itemize
12400 \begin_layout Itemize
12406 \begin_layout Itemize
12412 \begin_layout Itemize
12418 \begin_layout Itemize
12424 \begin_layout Itemize
12430 \begin_layout Itemize
12436 \begin_layout Itemize
12442 \begin_layout Itemize
12453 \begin_layout Standard
12454 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
12459 は新しいスライドを始める以下のようなコマンドを備えています.
12462 \begin_layout Itemize
12468 \begin_layout Itemize
12471 横置きスライドタイトル(Rotatefoilhead)
12474 \begin_layout Standard
12476 は,以下のような,これらを若干修正した環境も用意しています.
12479 \begin_layout Itemize
12482 スライドタイトル(小)(ShortFoilhead)
12485 \begin_layout Itemize
12488 横置きスライドタイトル(小)(ShortRotatefoilhead)
12491 \begin_layout Standard
12495 \begin_layout Standard
12496 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
12501 はそれらを説明するのに便利な環境を幅広く用意しています.
12504 \begin_layout Standard
12507 \begin_inset Flex Multiple Columns
12510 \begin_layout Itemize
12516 \begin_layout Itemize
12522 \begin_layout Itemize
12528 \begin_layout Itemize
12534 \begin_layout Itemize
12540 \begin_layout Itemize
12546 \begin_layout Itemize
12552 \begin_layout Itemize
12558 \begin_layout Itemize
12564 \begin_layout Itemize
12570 \begin_layout Itemize
12581 \begin_layout Standard
12582 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
12583 で追加された以下の2つの箇条書き環境があります.
12586 \begin_layout Itemize
12592 \begin_layout Itemize
12598 \begin_layout Standard
12599 Foil\SpecialChar TeX
12600 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
12601 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
12604 \begin_layout Standard
12605 この目的のためには,以下のコマンドスタイルがあります(
12610 \begin_layout Standard
12611 \begin_inset Flex Multiple Columns
12614 \begin_layout Itemize
12620 \begin_layout Itemize
12626 \begin_layout Itemize
12632 \begin_layout Itemize
12638 \begin_layout Itemize
12645 \begin_layout Plain Layout
12646 \begin_inset space ~
12658 \begin_layout Standard
12659 Foil\SpecialChar TeX
12660 が提供しているコマンドで,\SpecialChar LyX
12661 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12662 \begin_inset CommandInset ref
12664 reference "sec:unsuppfoils"
12671 \begin_layout Subsection
12675 \begin_layout Standard
12676 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12688 \begin_layout Subsubsection
12692 \begin_layout Standard
12713 は独立したページにタイトルを作成します.
12717 環境を使用しなかった場合には,\SpecialChar LaTeX
12718 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12721 \begin_layout Subsubsection
12725 \begin_layout Standard
12726 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12732 スライドタイトル(小)(ShortFoilhead)
12734 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12737 \begin_layout Standard
12740 横向きスライドタイトル(Rotatefoilhead)
12744 ShortRotatefoilhead)
12746 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12750 \begin_layout Standard
12751 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12755 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12759 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12762 \begin_layout Subsubsection
12766 \begin_layout Standard
12767 これらの環境の同じ型をお互いに直接続けて置くことはできません.
12769 If you use a normal paragraph break,
12771 これらは何かによって分離されなくてはなりません.
12773 Rather than that, you need to insert a so-called separator.
12774 Please refer to the section entitled
12785 \begin_layout Subsubsection
12789 \begin_layout Standard
12790 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12791 他の箇条書き環境について詳しく知りたい場合には,
12795 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12796 \begin_inset CommandInset ref
12798 reference "sec:ブリット"
12806 の節も,読まれることが望ましいでしょう.
12809 \begin_layout Standard
12819 \begin_inset Formula $\times$
12822 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12826 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12830 パッケージが導入済であることを要求します.
12833 \begin_layout Subsubsection
12837 \begin_layout Standard
12838 Foil\SpecialChar TeX
12839 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12840 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12843 \begin_layout Subsubsection
12845 \begin_inset CommandInset label
12847 name "sec:foilfoot"
12854 \begin_layout Standard
12863 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by
12868 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12871 \begin_layout Standard
12884 (左上)を使って文字を入れることができます.
12887 \begin_layout Subsection
12894 \begin_inset CommandInset label
12896 name "sec:unsuppfoils"
12903 \begin_layout Standard
12917 \begin_layout Subsubsection
12921 \begin_layout Standard
12944 は,変更したい長さに付けられている名前で置き換え,
12948 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12954 のように文書比あるいはフォント基準の長さで指定する必要があります.
12957 \begin_layout Standard
12964 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12965 \begin_inset space \space{}
12968 inだけスライド本文に近づけるには,プリアンブルに
12974 foilheadskip}{-0.5in}
12979 \begin_layout Standard
12980 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12983 \begin_layout Labeling
12984 \labelwidthstring MMMMMMMMMMM
12994 \begin_layout Labeling
12995 \labelwidthstring MMMMMMMMMMM
13005 \begin_layout Labeling
13006 \labelwidthstring MMMMMMMMMMM
13016 \begin_layout Labeling
13017 \labelwidthstring MMMMMMMMMMM
13024 この長さを調整することでキャプションを,周囲の本文より短くすることができます.
13030 に対する相対的な長さで調整するのが最も良いでしょう.
13033 \begin_layout Standard
13034 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
13037 \begin_layout Labeling
13038 \labelwidthstring MMMMMMMMMMM
13048 \begin_layout Labeling
13049 \labelwidthstring MMMMMMMMMMM
13067 \begin_layout Labeling
13068 \labelwidthstring MMMMMMMMMMM
13082 \begin_layout Labeling
13083 \labelwidthstring MMMMMMMMMMM
13101 \begin_layout Labeling
13102 \labelwidthstring MMMMMMMMMMM
13120 \begin_layout Standard
13121 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
13127 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
13133 を使う必要がないことに注意してください.
13136 \begin_layout Subsubsection
13140 \begin_layout Standard
13157 で定義したロゴを特定のページに入れるかどうかを制御します.
13163 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
13169 を置き,次のスライドタイトルの直後に直接
13178 \begin_layout Standard
13187 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
13201 パッケージが提供するページレイアウトと
13205 クラスの提供するページレイアウトの間に衝突が発生するためです.
13208 \begin_layout Section
13209 Hollywood(Hollywoodスペック・スクリプト)
13212 \begin_layout Standard
13220 \begin_layout Subsection
13224 \begin_layout Standard
13225 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
13226 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
13228 \begin_inset space \space{}
13231 ptフォントを使わなければならず,イタリック体は用いてはいけません.
13234 \begin_layout Subsection
13238 \begin_layout Standard
13243 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
13247 名を再度書き,その後に(Cont'd)と加えます.
13250 \begin_layout Subsection
13254 \begin_layout Standard
13259 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
13260 きに話者名を挿入するのにも使用することができます.
13263 \begin_layout Subsection
13267 \begin_layout Standard
13268 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13271 \begin_layout Subsection
13275 \begin_layout Standard
13276 以下の環境が利用可能です.右に示されている
13277 \begin_inset Flex Ruby
13280 \begin_layout Plain Layout
13282 \begin_inset Argument post:1
13285 \begin_layout Plain Layout
13296 割当てを使用するには,hollywood.bindを使用してください.
13299 \begin_layout Itemize
13303 \begin_inset Newline newline
13308 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
13311 \begin_layout Itemize
13313 \begin_inset space \hfill{}
13321 \begin_inset Newline newline
13324 通常,この後には「Sallyは目を覚ますと」のように続きます.
13327 \begin_layout Itemize
13331 \begin_inset space \hfill{}
13335 \begin_inset Newline newline
13340 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
13344 \begin_layout Itemize
13348 \begin_inset space \hfill{}
13352 \begin_inset Newline newline
13357 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13360 \begin_layout Itemize
13364 \begin_inset space \hfill{}
13368 \begin_inset Newline newline
13376 \begin_layout Itemize
13380 \begin_inset space \hfill{}
13384 \begin_inset Newline newline
13389 への指示.自動的に括弧()が挿入されますが
13392 \begin_layout Itemize
13396 \begin_inset space \hfill{}
13400 \begin_inset Newline newline
13408 \begin_layout Itemize
13412 \begin_inset space \hfill{}
13416 \begin_inset Newline newline
13421 カメラの動きの指示.例:CUT TO:.
13424 \begin_layout Itemize
13428 \begin_inset space \hfill{}
13434 \begin_layout Itemize
13438 \begin_inset space \hfill{}
13444 \begin_layout Itemize
13448 \begin_inset space \hfill{}
13454 \begin_layout Itemize
13458 \begin_inset space \hfill{}
13464 \begin_layout Subsection
13468 \begin_layout Itemize
13472 \begin_layout Itemize
13476 \begin_layout Itemize
13481 \begin_layout Itemize
13486 \begin_layout Itemize
13487 PAN — camera movement
13490 \begin_layout Itemize
13491 INSERT — cut to close-up of
13494 \begin_layout Section
13498 \begin_layout Standard
13501 Panayotis Papasotiriou
13506 \begin_layout Subsection
13510 \begin_layout Standard
13513 International Journal of Modern Physics C
13515 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
13517 International Journal of Modern Physics D
13519 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
13527 です.これらのファイルは,著者のための指針とともに,
13528 \begin_inset Flex URL
13531 \begin_layout Plain Layout
13533 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13539 \begin_inset Flex URL
13542 \begin_layout Plain Layout
13544 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13549 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
13551 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
13552 で書き上げましたが,何らの問題も生じませんでした.
13555 \begin_layout Subsection
13559 \begin_layout Standard
13560 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
13562 ファイル\SpecialChar menuseparator
13573 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
13577 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
13580 \begin_layout Enumerate
13581 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
13582 中でこれらを変更することはできません.
13585 \begin_layout Enumerate
13586 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
13591 arg "dialog-show document"
13596 \SpecialChar menuseparator
13603 \begin_inset Quotes eld
13607 \begin_inset Quotes erd
13617 \begin_layout Enumerate
13618 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
13621 \begin_layout Enumerate
13622 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
13623 ートされていませんので,ご注意ください.
13626 \begin_layout Enumerate
13627 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
13628 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
13629 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
13632 \begin_layout Enumerate
13633 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
13634 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
13635 されます.引用に通常の本文を使用したい場合には,「See Ref.
13636 \begin_inset space \space{}
13646 \begin_inset Flex Ruby
13649 \begin_layout Plain Layout
13655 \begin_inset Argument post:1
13658 \begin_layout Plain Layout
13680 \begin_layout Enumerate
13681 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13684 \begin_layout Enumerate
13693 であれば,入れることができます.\SpecialChar LyX
13694 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13695 てはなりません.この環境は,\SpecialChar LaTeX
13696 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13697 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13698 付録であることを明示します.「付録領域」は,最初の付録の前に
13702 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13705 \begin_layout Enumerate
13706 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13710 コマンドを使用します.そのため,\SpecialChar LyX
13711 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13712 コードを少し使えば,この問題を回避して,キャプション
13713 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13720 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13725 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13730 ファイルに収め,このファイルを\SpecialChar LyX
13733 挿入\SpecialChar menuseparator
13734 ファイル\SpecialChar menuseparator
13737 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13748 \begin_layout Subsection
13752 \begin_layout Standard
13753 論文を投稿する前には,\SpecialChar LyX
13754 文書を\SpecialChar LaTeX
13757 ファイル\SpecialChar menuseparator
13758 書き出し\SpecialChar menuseparator
13766 \begin_layout Plain Layout
13767 実は,\SpecialChar LaTeX
13768 (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13769 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13778 ファイルに以下の変更を加える必要があります.
13781 \begin_layout Enumerate
13788 コマンドより前にあるコメント行を削除する.
13791 \begin_layout Enumerate
13792 自身で明示的に\SpecialChar LaTeX
13805 コマンドの間にあるものをすべて削除する.
13808 \begin_layout Standard
13813 ファイルを保存し,必要な回数\SpecialChar LaTeX
13814 で処理してください.それによって得られた
13818 文書も確認された方がよろしいでしょう.
13821 \begin_layout Section
13825 \begin_layout Standard
13833 \begin_layout Subsection
13837 \begin_layout Standard
13838 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13839 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13840 \begin_inset Flex URL
13843 \begin_layout Plain Layout
13845 ftp://ftp.iop.org/pub/journals/latex2e
13850 からiopartパッケージとともにダウンロード可能です.
13853 \begin_layout Subsection
13857 \begin_layout Standard
13858 論文を書くもっとも簡単な方法は,\SpecialChar LyX
13867 that is available via
13869 File\SpecialChar menuseparator
13870 New From Template\SpecialChar ldots
13873 The template explains
13875 この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13878 \begin_layout Itemize
13879 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13881 ensure that the no AMS packages are loaded in
13883 Document\SpecialChar menuseparator
13884 Settings\SpecialChar menuseparator
13890 \begin_layout Itemize
13891 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13895 \begin_layout Itemize
13901 \begin_layout Itemize
13907 \begin_layout Itemize
13913 \begin_layout Itemize
13919 \begin_layout Itemize
13925 \begin_layout Itemize
13933 \begin_layout Itemize
13934 Preliminary communication用には
13939 \begin_layout Itemize
13940 Rapid communication用には
13945 \begin_layout Itemize
13952 \begin_layout Itemize
13957 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13960 \begin_layout Itemize
13962 では直接にサポートされていませんが,一般的なタイトル環境として
13966 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13967 コードでこれを指定することができます.
13970 \begin_layout Standard
13971 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13974 \begin_layout Section
13978 \begin_layout Standard
13981 Panayotis Papasotiriou
13986 \begin_layout Subsection
13990 \begin_layout Standard
13991 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13992 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13994 Astrophysics and Space Science
14000 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
14001 \begin_inset Flex URL
14004 \begin_layout Plain Layout
14006 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14011 に全覧があります).Kluwerパッケージは,
14012 \begin_inset Flex URL
14015 \begin_layout Plain Layout
14017 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14022 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
14025 \begin_layout Standard
14027 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
14028 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
14030 \begin_inset CommandInset ref
14032 reference "subsec:kluwer_peculiarities"
14036 参照).最近,私は\SpecialChar LyX
14039 Astrophysics and Space Science
14041 に投稿しましたが,何らの問題も発生しませんでした.
14044 \begin_layout Subsection
14048 \begin_layout Standard
14049 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
14051 ファイル\SpecialChar menuseparator
14058 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
14063 を含む)正しい情報で上書きしてください.
14066 \begin_layout Subsection
14070 \begin_layout Standard
14071 AAS\SpecialChar TeX
14072 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
14075 \begin_layout Enumerate
14078 ファイル\SpecialChar menuseparator
14079 書き出し\SpecialChar menuseparator
14082 をクリックして,論文を\SpecialChar LaTeX
14086 \begin_layout Enumerate
14091 ファイルに,テキストエディタを使用して,以下のような変更を加える.
14095 \begin_layout Enumerate
14102 コマンドより前にあるコメント行を削除する.
14105 \begin_layout Enumerate
14106 意図的に\SpecialChar LaTeX
14119 の間にあるものを,これらのコマンドも含め,すべて削除する.
14122 \begin_layout Standard
14131 \begin_layout Enumerate
14136 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
14140 \begin_layout Enumerate
14149 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
14152 \begin_layout Subsection
14153 Kluwerパッケージの「風変わり」な特徴
14154 \begin_inset CommandInset label
14156 name "subsec:kluwer_peculiarities"
14163 \begin_layout Standard
14164 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
14167 \begin_layout Enumerate
14168 複数の論文を1つの\SpecialChar LaTeX
14173 \begin_layout Plain Layout
14174 わざわざこんなことをする必要はないでしょう.
14179 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
14191 で終わります.この環境を\SpecialChar LyX
14192 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
14204 )は,直接本文中に入力して,\SpecialChar LaTeX
14205 コード(「\SpecialChar TeX
14206 コード」のことです)としてマークする必要があります.
14209 \begin_layout Enumerate
14210 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
14211 はなりません.これは\SpecialChar LyX
14212 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
14228 \begin_layout Enumerate
14229 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
14232 \begin_inset Newline newline
14256 \begin_layout Standard
14261 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
14265 \begin_layout Enumerate
14266 ひな型にある\SpecialChar TeX
14270 \begin_layout Enumerate
14271 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
14274 \begin_layout Section
14278 \begin_layout Standard
14286 \begin_layout Subsection
14290 \begin_layout Standard
14294 article (koma-script)
14298 report (koma-script)
14316 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
14333 に対応しています.これらは,標準文書クラス
14349 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
14352 \begin_layout Itemize
14355 article (koma-script)
14359 report (koma-script)
14367 letter (koma-script)
14372 \begin_layout Itemize
14373 見出しや箇条書き(記述)環境のラベル,および
14375 letter (koma-script)
14377 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
14381 \begin_layout Plain Layout
14382 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
14383 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
14387 作の\SpecialChar LaTeX
14397 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
14398 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
14399 とができます(\SpecialChar LyX
14402 文書\SpecialChar menuseparator
14409 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
14416 \begin_layout Itemize
14417 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
14425 オプションを使う方法です(\SpecialChar LyX
14428 文書\SpecialChar menuseparator
14435 フィールドで指定します).これらのオプションは
14437 文書\SpecialChar menuseparator
14440 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
14448 \begin_layout Itemize
14449 Koma-Scriptファミリーの\SpecialChar LaTeX
14450 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
14451 で意味を持つものは,対応する段落環境として実装されています
14455 \begin_layout Standard
14456 Koma-Scriptファミリーの\SpecialChar LaTeX
14457 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
14465 \begin_layout Plain Layout
14475 .以下の各節では,\SpecialChar LyX
14479 \begin_layout Subsection
14480 article (koma-script)・report (koma-script)・book (koma-script)
14483 \begin_layout Standard
14486 article (koma-script)
14490 report (koma-script)
14512 によって実装されています.これらは,対応する標準文書クラス
14524 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
14529 環境は例外であり,同じ機能を持つ新しい
14537 環境以外にも,新しい段落環境が多く追加されています.これらは,
14539 letter (koma-script)
14541 には含まれていないのでご注意ください.
14544 \begin_layout Itemize
14569 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
14579 article (koma-script)
14584 \begin_layout Itemize
14601 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
14607 article (koma-script)
14613 \begin_layout Plain Layout
14620 report (koma-script)
14632 と同一なので,\SpecialChar LyX
14641 \begin_layout Itemize
14646 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
14649 \begin_layout Itemize
14658 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
14659 ねに表の上に置くべきでしょう).また,クラスオプション
14663 を用いれば,キャプションを指定すると,表には
14671 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14674 \begin_layout Itemize
14679 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14681 挿入\SpecialChar menuseparator
14685 \begin_inset space ~
14691 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14697 article (koma-script)
14702 \begin_layout Standard
14715 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14719 \begin_layout Plain Layout
14720 つまり,対応する\SpecialChar LaTeX
14727 コマンドよりも前に現れなくてはなりません.
14732 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14744 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14747 \begin_layout Itemize
14764 )の上に,文書の主題用の中央揃えの段落を生成します.
14767 \begin_layout Itemize
14784 )の下に,出版社名用の中央揃えの段落を生成します.
14787 \begin_layout Itemize
14794 report (koma-script)
14800 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14802 article (koma-script)
14816 )の下に献辞用の中央揃えの段落を生成します.
14819 \begin_layout Itemize
14836 )の上に,文書頭書き用の左揃えの段落を生成します.
14839 \begin_layout Itemize
14846 report (koma-script)
14852 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14854 article (koma-script)
14859 \begin_layout Itemize
14866 report (koma-script)
14872 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14874 article (koma-script)
14879 \begin_layout Itemize
14884 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14887 \begin_layout Standard
14890 article (koma-script)
14894 report (koma-script)
14904 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14908 を,個人用レイアウトディレクトリにコピーして編集してください!
14911 \begin_layout Subsection
14912 letter (koma-script)
14915 \begin_layout Standard
14919 Note: This section discusses the obsolete
14921 KOMA-Script-Letter (v.
14922 \begin_inset space ~
14927 , which is not even included anymore in recent KOMA releases.
14928 Please refer to the next section for the current KOMA-Script-Letter class
14930 \begin_inset space ~
14936 \begin_layout Standard
14940 letter (koma-script)
14946 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14950 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14968 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14985 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14988 \begin_layout Standard
14989 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14990 コマンドを\SpecialChar LaTeX
14991 プリアンブルに置くことで制御することができます
14995 \begin_layout Plain Layout
14996 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
15000 \begin_layout LyX-Code
15010 \begin_layout LyX-Code
15026 \begin_layout LyX-Code
15036 \begin_layout LyX-Code
15052 \begin_layout LyX-Code
15060 .これらの\SpecialChar LaTeX
15061 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
15065 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
15068 \begin_layout Standard
15077 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
15078 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
15086 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
15090 環境は,同じ受取人への書簡を新しく書き出すものであり,
15094 環境は,新しい受取人を生成するものです.
15110 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
15113 \begin_layout Itemize
15118 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
15121 \begin_layout Itemize
15126 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
15129 \begin_layout Itemize
15137 \begin_layout Itemize
15145 \begin_layout Itemize
15153 \begin_layout Itemize
15161 \begin_layout Standard
15202 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
15206 \begin_layout Plain Layout
15215 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
15216 一文字をマークした通常の段落環境として実装しました.さらに,
15224 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
15236 \begin_layout Standard
15237 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
15242 環境で入力した署名は,標準的な挙動では,同じ書簡に
15246 環境も使用されているときのみ,書簡の出力に現れます.
15250 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
15253 \begin_layout Standard
15254 入力環境は,空の段落として使うことができます.これは,たとえば
15262 環境を全く使用しない場合は,標準的な挙動では,
15266 環境の値が署名として使用されますが,空の
15270 環境を作成しておくと,署名の値は無定義となりません.
15273 \begin_layout Standard
15274 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
15277 \begin_layout Itemize
15282 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
15285 \begin_layout Itemize
15305 \begin_layout Itemize
15310 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
15313 \begin_layout Itemize
15318 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
15328 \begin_layout Itemize
15336 \begin_layout Itemize
15349 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
15357 の値如何に関わらず,場所も日付も表示されません.
15361 環境を使用しない場合には,書簡を出力した日付が使用されます.
15364 \begin_layout Itemize
15369 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
15372 \begin_layout Itemize
15377 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
15380 \begin_layout Itemize
15385 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
15388 \begin_layout Itemize
15393 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
15396 \begin_layout Itemize
15408 \begin_layout Standard
15411 Yourref・Yourmail・Myref・顧客・インボイス
15417 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
15418 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
15422 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
15426 の値は書簡には表示されなくなり,\SpecialChar LaTeX
15433 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
15441 \begin_layout Itemize
15449 \begin_layout Itemize
15457 \begin_layout Itemize
15465 \begin_layout Itemize
15473 \begin_layout Itemize
15481 \begin_layout Subsection
15482 新しいletterクラス:letter (koma-script v.2)
15485 \begin_layout Standard
15489 \begin_inset VSpace medskip
15495 \begin_layout Standard
15497 Koma-Script第2.8版では,新しいletterクラス
15505 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
15506 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
15508 ますが,新しい方のクラスを使用することを推奨します.
15511 \begin_layout Standard
15514 letter (koma-script)
15516 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
15536 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
15554 挿入\SpecialChar menuseparator
15561 を入れることができるようになった点です.
15564 \begin_layout Standard
15565 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
15566 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
15574 \begin_layout Plain Layout
15579 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
15593 文書\SpecialChar menuseparator
15594 設定\SpecialChar menuseparator
15595 文書クラス\SpecialChar menuseparator
15602 を加えることで読み込むことができます.
15607 .用例としては,\SpecialChar LyX
15612 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
15619 \begin_layout Subsection
15623 \begin_layout Standard
15624 Koma-Script文書クラスを\SpecialChar LyX
15625 上に表示する上で,\SpecialChar LyX
15629 \begin_layout Itemize
15634 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
15638 ラベル型に対する\SpecialChar LyX
15642 \begin_layout Itemize
15651 環境の見出しは,「本当の」\SpecialChar LaTeX
15652 の目次には追加されますが,\SpecialChar LyX
15660 \begin_layout Itemize
15665 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15668 文書\SpecialChar menuseparator
15671 ダイアログでは,対応するラジオボタンは
15679 は,隙間を空けるために,文書に\SpecialChar LaTeX
15680 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15683 \begin_layout Section
15687 \begin_layout Standard
15695 \begin_layout Subsection
15699 \begin_layout Standard
15700 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15701 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15705 \begin_layout Standard
15706 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15707 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15708 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15709 は,これらすべての素晴らしい機能をネイティブでサポ
15710 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15714 \begin_layout Plain Layout
15716 \begin_inset Flex URL
15719 \begin_layout Plain Layout
15721 lyx-devel@lists.lyx.org
15732 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15733 コマンド(\SpecialChar TeX
15738 \begin_layout Plain Layout
15740 \begin_inset CommandInset ref
15742 reference "sec:LaTeXコードを挿入する"
15751 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15752 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15753 は,Memoirクラスの詳しい取扱説明書
15757 \begin_layout Plain Layout
15759 \begin_inset Flex URL
15762 \begin_layout Plain Layout
15764 CTAN:/macros/latex/memoir/memman.pdf
15774 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15778 \begin_layout Subsection
15782 \begin_layout Standard
15783 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15786 \begin_layout Description
15787 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15790 \begin_layout Description
15791 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15793 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様
15796 Document\SpecialChar menuseparator
15797 Settings\SpecialChar menuseparator
15799 \begin_inset space ~
15805 ).これらを章題ページに使用したい場合には,コマンド
15811 を,本文またはプリアンブルに記述する必要があります(例えば,
15815 chapterstyle{companion}
15820 \begin_layout Description
15821 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15822 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15825 挿入\SpecialChar menuseparator
15828 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.
15841 \begin_layout Description
15842 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15843 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15846 \begin_layout Description
15847 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15852 aliaspagestyle{title}{empty}
15857 \begin_layout Description
15865 Document\SpecialChar menuseparator
15866 Settings\SpecialChar menuseparator
15867 Class Settings\SpecialChar menuseparator
15869 \begin_inset space ~
15875 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15876 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15879 \begin_layout Description
15880 Oldfontcommands: \SpecialChar LaTeX
15881 旧2.09版で使用されていた旧いフォントコマンド(
15893 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15899 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15900 は停止しなくなります).まだ,多くのパッケージと,
15901 就中多くのBib\SpecialChar TeX
15902 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15905 \begin_layout Subsection
15909 \begin_layout Standard
15911 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15915 \begin_layout Plain Layout
15916 \begin_inset Flex URL
15919 \begin_layout Plain Layout
15921 CTAN:/macros/latex/memoir/memman.pdf
15934 \begin_layout Description
15935 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15936 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15939 \begin_layout Description
15940 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15941 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15944 \begin_layout Description
15945 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15948 The motto itself (text) and its (optional) author (source) are divided
15950 The author (source) can be inserted via
15952 Insert\SpecialChar menuseparator
15959 \begin_layout Description
15960 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15961 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15962 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15964 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15968 \begin_layout Description
15969 詩題*: 目次に現れない他は詩題と同じです.
15972 \begin_layout Section
15973 Article (mwart)・book (mwbk)・report (mwrep)
15974 \begin_inset Argument status
15977 \begin_layout Plain Layout
15990 \begin_layout Standard
15998 \begin_layout Standard
16006 report (mwrep)・book
16012 は,それぞれ\SpecialChar LaTeX
16037 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
16040 \begin_layout Standard
16044 \begin_layout Itemize
16052 \begin_layout Itemize
16057 \begin_layout Description
16061 \begin_layout Description
16077 \begin_layout Description
16078 myuheadings 分離線付きカスタムヘッダ
16081 \begin_layout Description
16086 \begin_layout Itemize
16091 \begin_layout Description
16092 rmheadings セリフ体見出し — 既定
16095 \begin_layout Description
16096 sfheadings サンセリフ体見出し
16099 \begin_layout Description
16100 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
16103 \begin_layout Description
16104 titleauthor タイトルページは,タイトル・著者名の順で配置
16107 \begin_layout Description
16108 withmarginpar ページ上に余白のための場所を確保
16112 \begin_layout Section
16116 \begin_layout Standard
16129 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
16132 \begin_layout Section
16133 Rev\SpecialChar TeX
16137 \begin_layout Standard
16143 \begin_layout Standard
16144 \begin_inset VSpace bigskip
16150 \begin_layout Standard
16155 \begin_inset space ~
16160 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
16162 \begin_inset Formula $\beta$
16168 \begin_layout Standard
16170 には,Rev\SpecialChar TeX
16175 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
16176 2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
16177 は\SpecialChar LaTeX2e
16178 を必要とすることから,第3.1版は\SpecialChar LyX
16180 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
16181 4.0は,\SpecialChar LaTeX2e
16182 で素直に動作するようにデザインされているので,\SpecialChar LyX
16185 Rev\SpecialChar TeX
16187 \begin_inset space ~
16192 テキストクラスの組で使用するのは,たいへん簡単です.
16195 \begin_layout Standard
16196 この取扱説明書は,Rev\SpecialChar TeX
16201 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
16202 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
16206 \begin_layout Subsection
16210 \begin_layout Standard
16211 Rev\SpecialChar TeX
16212 4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
16213 4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
16216 \begin_inset Flex URL
16219 \begin_layout Plain Layout
16221 http://publish.aps.org/revtex4/
16226 から入手することができます.これを\SpecialChar LaTeX
16227 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
16228 ィレクトリ)で簡単なRev\SpecialChar TeX
16229 4文書を \SpecialChar LaTeX
16230 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
16231 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
16236 \begin_layout Standard
16241 を使ってRev\SpecialChar TeX
16242 4文書を読み込むか,またはひな型ディレクトリにある
16245 \begin_inset space ~
16250 のひな型を使うのが,おそらく一番簡単な方法でしょう.
16253 \begin_layout Subsection
16257 \begin_layout Standard
16264 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
16266 文書\SpecialChar menuseparator
16267 設定\SpecialChar menuseparator
16274 フィールドに入れます.Rev\SpecialChar TeX
16275 では,少なくとも一つの非必須引数が必要なことに注意してください.
16278 \begin_layout Standard
16285 など他のプリアンブルは,他のクラス同様,
16287 文書\SpecialChar menuseparator
16288 設定\SpecialChar menuseparator
16295 \begin_layout Subsection
16299 \begin_layout Standard
16300 レイアウトは,基本的にRev\SpecialChar TeX
16301 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
16307 に対応しています.(少なくともRev\SpecialChar TeX
16316 はまったく同じものなので,両方を使う必要はありません
16320 \begin_layout Plain Layout
16345 \begin_layout Subsection
16349 \begin_layout Standard
16350 Rev\SpecialChar TeX
16351 4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
16352 ではさらに気をつけなくてはなりません.
16355 \begin_layout Standard
16356 Rev\SpecialChar TeX
16373 に来なくてはなりません.\SpecialChar LyX
16382 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
16386 \begin_layout Standard
16407 )レイアウトの間に置かなければなりません.
16415 の後に置いてしまうと,\SpecialChar LaTeX
16419 \begin_layout Section
16425 \begin_layout Standard
16433 \begin_layout Subsection
16437 \begin_layout Standard
16438 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
16439 \begin_inset Flex URL
16442 \begin_layout Plain Layout
16444 http://www.springer.de/author/tex/help-journals.html
16449 に必要なクラスファイル(\SpecialChar LaTeX2e
16450 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
16454 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
16461 \begin_layout Standard
16462 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
16477 \begin_layout Standard
16478 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
16486 は,標準\SpecialChar LyX
16487 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
16488 を再設定した後(teTeXの場合は,必
16493 を実行します),\SpecialChar LyX
16497 \begin_layout Subsection
16501 \begin_layout Standard
16510 ・\SpecialChar ldots
16518 \begin_layout Standard
16529 サブタイトル・ヘッダ用\SpecialChar LaTeX
16530 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
16533 .詳しくは Springerのクラスファイルの説明書を読んでください.
16536 \begin_layout Subsection
16540 \begin_layout Itemize
16552 \begin_layout Itemize
16555 Probability Theory and Related Fields
16561 — Jean-Marc Lasgouttes
16564 \begin_layout Standard
16565 あなた自身のレイアウトファイルをつくってください.難しくはありません.
16568 \begin_layout Subsection
16572 \begin_layout Standard
16581 は Springerの\SpecialChar LaTeX
16582 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
16583 Lasgouttesのおかげで \SpecialChar LyX
16584 のレイアウトファイルのメカニズムをよりよく理解することができました.
16587 \begin_layout Subsection
16591 \begin_layout Standard
16596 よりは少なくなっているとは思いますが.
16599 \begin_layout Section
16602 Sli\SpecialChar TeX
16609 \begin_layout Plain Layout
16610 (訳註)この節の内容は,全般的に古くなっています.
16616 \begin_inset CommandInset label
16625 \begin_layout Standard
16633 \begin_layout Subsection
16637 \begin_layout Standard
16638 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
16639 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
16641 Foil\SpecialChar TeX
16644 スライドクラスの2つがあります.本節は前者について説明を行います.
16647 \begin_layout Standard
16648 誤解のないように,正しく明確に,もう一度言っておきます.
16651 \begin_layout Standard
16652 \begin_inset VSpace bigskip
16658 \begin_layout Standard
16663 \begin_inset Quotes eld
16668 transparencies (slides)
16671 \begin_inset Quotes erd
16681 \begin_layout Standard
16682 \begin_inset VSpace bigskip
16688 \begin_layout Standard
16691 「slides (Foil\SpecialChar TeX
16695 \begin_inset CommandInset ref
16697 reference "sec:foiltex"
16707 slides (Foil\SpecialChar TeX
16718 \begin_layout Plain Layout
16722 Foil\SpecialChar TeX
16725 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16733 \begin_layout Standard
16734 このクラスは,旧SLI\SpecialChar TeX
16735 パッケージを\SpecialChar LaTeX2e
16736 用に改良したものです.\SpecialChar LaTeX2e
16737 頒布版すべてが,このクラス(以下では単に「
16741 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16745 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16750 ならばできることもあります.詳しくは以下をお読みください.
16753 \begin_layout Subsection
16755 \begin_inset CommandInset label
16757 name "sec:slidesetup"
16764 \begin_layout Standard
16765 当然ながら,この文書クラスを使用するには,
16767 文書\SpecialChar menuseparator
16772 transparencies (slides)
16774 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16777 \begin_layout Itemize
16786 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16790 クラスではサポートされていないので,効果がありません.
16793 \begin_layout Itemize
16798 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16802 \begin_layout Description
16803 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16806 \begin_layout Description
16811 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16814 \begin_layout Description
16815 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16819 \begin_layout Itemize
16828 というオプションがあります.これを使用するには,
16840 \begin_layout Standard
16845 にタイムマーカーを加えることができます.詳細は,第
16846 \begin_inset CommandInset ref
16848 reference "sec:スライド注釈"
16856 \begin_layout Standard
16861 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16865 」を使用することもできます(新規ファイルを開く際に
16867 ファイル\SpecialChar menuseparator
16870 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16873 \begin_layout Subsection
16877 \begin_layout Subsubsection
16883 \begin_layout Standard
16888 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16896 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16897 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16900 \begin_layout Standard
16901 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16906 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16909 \begin_layout Itemize
16915 \begin_layout Itemize
16921 \begin_layout Itemize
16927 \begin_layout Itemize
16933 \begin_layout Itemize
16939 \begin_layout Itemize
16945 \begin_layout Itemize
16951 \begin_layout Itemize
16957 \begin_layout Itemize
16963 \begin_layout Itemize
16970 \begin_layout Standard
16971 これ以外の標準的な環境,例えば節見出し用の環境などは
16978 \begin_layout Standard
16982 \begin_layout Itemize
16988 \begin_layout Itemize
16994 \begin_layout Itemize
17000 \begin_layout Itemize
17006 \begin_layout Itemize
17012 \begin_layout Standard
17013 これら5つの環境は,\SpecialChar LyX
17014 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
17015 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
17016 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
17020 \begin_layout Subsubsection
17022 \begin_inset CommandInset label
17031 \begin_layout Standard
17032 5つの新しい環境にはすべて,\SpecialChar LyX
17033 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
17034 では,環境を別の環境で開始することが禁止されています.これを回避するために,
17042 』で述べられているような段落環境ではなくなっています.
17045 \begin_layout Standard
17058 は「疑似環境」だとお考えください.これらは節見出しや「
17062 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
17070 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
17073 \begin_layout Standard
17094 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
17114 では,まったく意味がなく,\SpecialChar LyX
17115 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
17118 \begin_layout Standard
17127 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
17135 \begin_layout Standard
17136 一方,説明文を入れたくない場合には,\SpecialChar LyX
17137 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
17138 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
17142 \begin_layout Itemize
17170 \begin_layout Itemize
17174 \begin_layout Itemize
17182 \begin_layout Itemize
17206 \begin_layout Standard
17207 将来の\SpecialChar LyX
17208 では,このような癖が解決されることを祈っています\SpecialChar ldots
17213 \begin_layout Plain Layout
17214 (訳註)ここの記述は古くなっています.
17222 \begin_layout Subsection
17236 \begin_layout Subsubsection
17244 \begin_layout Standard
17245 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
17250 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
17254 \begin_layout Standard
17260 \begin_inset CommandInset ref
17262 reference "sec:スライドの癖"
17266 節参照のこと),\SpecialChar LyX
17267 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
17268 環境は,すべて新規スライドに入ります.簡単ですよね.
17271 \begin_layout Standard
17272 Slidesは,おそらく\SpecialChar LyX
17273 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
17277 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
17278 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
17286 \begin_layout Standard
17299 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
17307 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
17310 \begin_layout Standard
17323 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
17331 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
17334 \begin_layout Subsubsection
17340 \begin_layout Standard
17345 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
17349 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
17353 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
17354 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
17361 \begin_layout Standard
17378 \begin_layout Plain Layout
17379 想像できるように,複数のオーバーレイがあれば,「
17391 」などが親スライドのページ番号に付け加えられます.
17404 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
17412 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
17421 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
17429 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
17432 \begin_layout Standard
17433 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
17434 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
17435 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
17446 \begin_layout Standard
17455 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
17456 \begin_inset CommandInset ref
17458 reference "sec:スライドの癖"
17470 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
17478 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
17481 \begin_layout Standard
17486 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
17502 は自動的に終了されることに注意してください.したがって,
17513 \begin_layout Standard
17530 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
17533 \begin_layout Enumerate
17538 かに関わらず,スライド上に現れるすべてを含んだ
17545 \begin_layout Enumerate
17550 のみに表示するすべての図や段落の前に,
17565 \begin_layout Enumerate
17577 \begin_layout Enumerate
17589 \begin_layout Enumerate
17613 \begin_layout Standard
17621 \begin_layout Standard
17627 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
17628 実現するためには,\SpecialChar LaTeX
17633 \begin_layout Plain Layout
17637 \begin_layout Itemize
17642 invisible \SpecialChar ldots
17646 \begin_layout Itemize
17651 visible \SpecialChar ldots
17655 \begin_layout Plain Layout
17657 のような形となり,\SpecialChar TeX
17658 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
17670 コマンドの後ろ)に入れます.\SpecialChar TeX
17671 としてマークする方法がわからない場合は,
17683 \begin_layout Subsubsection
17689 \begin_inset CommandInset label
17698 \begin_layout Standard
17711 に関連付けられています.ここでも\SpecialChar LyX
17724 よりも短く(オーバーレイのラベルよりも長いですが),
17728 のラベルと同様,派手な赤紫色です.加えて,印刷した
17744 3」等を付けたページ番号が付けられます.1つの
17760 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17763 \begin_layout Standard
17772 に関して付け加えたいことを書き留めておくことです.特定の
17776 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17786 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17787 コードを使用することに頼らなくてはなりません.
17790 \begin_layout Standard
17791 タイムマーカを使用するには,クラスオプション「
17796 \begin_inset CommandInset ref
17798 reference "sec:slidesetup"
17802 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17806 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17819 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17825 」は,タイムマーカを特定の時間に設定し,「
17831 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17839 にどれだけの時間をかけるのか忘れないでいられます.
17842 \begin_layout Standard
17843 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17855 はすべて普通の紙に印刷したいはずです.しかしながら,
17863 .ユーザーはどうしたら良いのでしょうか.
17866 \begin_layout Standard
17867 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17868 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17884 のみが含まれるようにするものです.同様に,「
17896 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17897 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17906 のコメントを外して,現ファイル名に「*
17910 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17922 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17925 \begin_layout Standard
17938 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17942 \begin_layout Subsection
17950 \begin_layout Standard
17959 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17961 ファイル\SpecialChar menuseparator
17964 メニューを選択してください.すると新規ファイルには,
17992 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17995 \begin_layout LyX-Code
17996 % Uncomment to print out only slides and overlays
17999 \begin_layout LyX-Code
18003 \begin_layout LyX-Code
18009 \begin_inset Newline newline
18015 \begin_layout LyX-Code
18016 % Uncomment to print out only notes
18019 \begin_layout LyX-Code
18023 \begin_layout LyX-Code
18031 \begin_layout Standard
18032 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
18035 Sli\SpecialChar TeX
18038 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
18039 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
18040 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
18045 \begin_inset CommandInset ref
18047 reference "sec:foiltex"
18055 」パッケージ(一部の\SpecialChar TeX
18056 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
18057 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
18061 \begin_layout Chapter
18062 ソフトウェアを追加する必要がある \SpecialChar LyX
18066 \begin_layout Section
18071 \begin_layout Standard
18079 \begin_layout Subsection
18083 \begin_layout Standard
18092 \begin_layout Plain Layout
18094 頒布版としてMiK\SpecialChar TeX
18118 \begin_inset Newline newline
18122 \begin_inset CommandInset href
18124 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18132 \begin_layout Standard
18135 Chk\SpecialChar TeX
18138 パッケージは,\SpecialChar LaTeX
18139 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
18140 \begin_inset Flex Noun
18143 \begin_layout Plain Layout
18150 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
18151 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
18158 \begin_layout Standard
18159 さて,\SpecialChar LyX
18160 はつねに正しい\SpecialChar LaTeX
18161 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
18162 で何をするというのでしょうか.答えは簡単です.
18170 をチェックするだけでなく,打ち間違いによる
18176 Chk\SpecialChar TeX
18185 Chk\SpecialChar TeX
18188 は,以下のような誤りを検出することができます.
18191 \begin_layout Itemize
18193 \begin_inset Newline newline
18196 ...ではなく\SpecialChar ldots
18200 \begin_layout Itemize
18202 \begin_inset Newline newline
18205 ( wrong spacing ):誤った空白
18208 \begin_layout Itemize
18209 よく使われる省略形の後ろは通常スペースにする:
18210 \begin_inset Newline newline
18214 \begin_inset space \thinspace{}
18218 \begin_inset space \space{}
18221 is too wide spacing.:広すぎる空白
18224 \begin_layout Itemize
18225 直前の文章が大文字で終わっているときに,文末スペースに直す:
18226 \begin_inset Newline newline
18230 And this is wrong spacing.:誤った空白
18233 \begin_layout Itemize
18235 \begin_inset Newline newline
18238 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません.
18239 \begin_inset CommandInset label
18249 \begin_layout Plain Layout
18250 この脚注は,正しくないページに行ってしまう恐れがあります.
18258 \begin_layout Itemize
18259 参照の前にハードスペースではなくスペース:
18260 \begin_inset Newline newline
18263 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
18264 \begin_inset CommandInset ref
18266 reference "sec:chktex"
18273 \begin_layout Itemize
18275 \begin_inset Formula $\times$
18279 \begin_inset Newline newline
18283 \begin_inset Formula $2\times2$
18289 \begin_layout Standard
18290 などなど\SpecialChar ldots
18293 Chk\SpecialChar TeX
18296 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
18299 \begin_layout Subsection
18303 \begin_layout Standard
18304 このプログラムを導入したならば,使うのは
18306 ツール\SpecialChar menuseparator
18310 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
18311 は使用中の文書の\SpecialChar LaTeX
18314 Chk\SpecialChar TeX
18317 を起動し,当該ファイルを検査しますが,
18319 Chk\SpecialChar TeX
18322 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
18323 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
18325 移動\SpecialChar menuseparator
18333 \begin_inset Flex Ruby
18336 \begin_layout Plain Layout
18338 \begin_inset Argument post:1
18341 \begin_layout Plain Layout
18353 \begin_inset Flex Ruby
18356 \begin_layout Plain Layout
18376 \begin_inset Argument post:1
18379 \begin_layout Plain Layout
18394 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
18410 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
18412 Chk\SpecialChar TeX
18415 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
18419 \begin_layout Standard
18420 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
18421 警告のほとんどは実際には警告に値しません.
18424 \begin_layout Subsection
18428 \begin_layout Standard
18431 Chk\SpecialChar TeX
18434 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
18436 Chk\SpecialChar TeX
18439 を無効にするか,あなたにもう少し合うように
18441 Chk\SpecialChar TeX
18447 \begin_layout Standard
18450 Chk\SpecialChar TeX
18453 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
18456 Chk\SpecialChar TeX
18459 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
18462 Chk\SpecialChar TeX
18469 \begin_layout Plain Layout
18480 文書\SpecialChar menuseparator
18489 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
18490 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
18491 ためには,以下の2つの方法があります.
18494 \begin_layout Itemize
18497 \begin_inset Flex MenuItem
18500 \begin_layout Plain Layout
18503 ツール\SpecialChar menuseparator
18504 設定\SpecialChar menuseparator
18505 出力\SpecialChar menuseparator
18507 \SpecialChar menuseparator
18508 Check\SpecialChar TeX
18518 Chk\SpecialChar TeX
18521 起動コマンドラインを調整するか,グローバルな
18523 Chk\SpecialChar TeX
18527 \begin_inset Flex Code
18530 \begin_layout Plain Layout
18536 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
18539 \begin_layout Itemize
18542 ファイル\SpecialChar menuseparator
18543 書き出し\SpecialChar menuseparator
18547 を使って文書を\SpecialChar LaTeX
18548 ファイルに変換し,そのファイルに対して
18552 を手動で実行します.このようにすると,\SpecialChar LyX
18553 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
18556 \begin_layout Standard
18561 で有効化・無効化できる警告メッセージです.警告を無効にするには
18569 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
18571 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18576 \begin_layout Standard
18582 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
18585 \begin_layout Enumerate
18589 Command terminated with space.
18592 \begin_layout Enumerate
18595 Non-breaking space (
18596 \begin_inset Quotes eld
18604 \begin_inset Quotes erd
18607 ) should have been used.
18610 \begin_layout Enumerate
18614 You should enclose the previous parenthesis with
18615 \begin_inset Quotes eld
18623 \begin_inset Quotes erd
18629 \begin_layout Enumerate
18632 Italic correction (
18633 \begin_inset Quotes eld
18643 \begin_inset Quotes erd
18646 ) found in non-italic buffer.
18649 \begin_layout Enumerate
18652 Italic correction (
18653 \begin_inset Quotes eld
18663 \begin_inset Quotes erd
18666 ) found more than once.
18669 \begin_layout Enumerate
18673 No italic correction (
18674 \begin_inset Quotes eld
18684 \begin_inset Quotes erd
18690 \begin_layout Enumerate
18694 \begin_inset Quotes eld
18702 \begin_inset Quotes erd
18706 \begin_inset Quotes eld
18714 \begin_inset Quotes erd
18720 \begin_layout Enumerate
18723 Wrong length of dash may have been used.
18726 \begin_layout Enumerate
18730 \begin_inset Quotes eld
18738 \begin_inset Quotes erd
18742 \begin_inset Quotes eld
18750 \begin_inset Quotes erd
18756 \begin_layout Enumerate
18760 \begin_inset Quotes eld
18768 \begin_inset Quotes erd
18774 \begin_layout Enumerate
18778 \begin_inset Quotes eld
18786 \begin_inset Quotes erd
18789 to achieve an ellipsis.
18792 \begin_layout Enumerate
18795 Inter-word spacing (
18796 \begin_inset Quotes eld
18806 \begin_inset Quotes eld
18809 ) should perhaps be used.
18812 \begin_layout Enumerate
18815 Inter-sentence spacing (
18816 \begin_inset Quotes eld
18826 \begin_inset Quotes erd
18829 ) should perhaps be used.
18832 \begin_layout Enumerate
18835 Could not find argument for command.
18838 \begin_layout Enumerate
18842 \begin_inset Quotes eld
18850 \begin_inset Quotes erd
18856 \begin_layout Enumerate
18859 Math mode still on at end of \SpecialChar LaTeX
18863 \begin_layout Enumerate
18867 \begin_inset Quotes eld
18875 \begin_inset Quotes erd
18878 doesn't match the number of
18879 \begin_inset Quotes eld
18887 \begin_inset Quotes erd
18893 \begin_layout Enumerate
18896 You should use either
18899 \begin_inset Quotes eld
18907 \begin_inset Quotes erd
18912 as an alternative to
18913 \begin_inset Quotes eld
18921 \begin_inset Quotes erd
18927 \begin_layout Enumerate
18934 " (ASCII 39) instead of "" (ASCII 180).
18937 \begin_layout Enumerate
18940 User-specified pattern found.
18943 \begin_layout Enumerate
18946 This command might not be intended.
18949 \begin_layout Enumerate
18956 \begin_layout Enumerate
18974 \begin_layout Enumerate
18977 Delete this space to maintain correct page references.
18980 \begin_layout Enumerate
18984 You might wish to put this between a pair of
18985 \begin_inset Quotes eld
18993 \begin_inset Quotes erd
18999 \begin_layout Enumerate
19002 You ought to remove spaces in front of punctuation.
19005 \begin_layout Enumerate
19008 Could not execute \SpecialChar LaTeX
19012 \begin_layout Enumerate
19021 in front of small punctuation.
19024 \begin_layout Enumerate
19032 may look prettier here.
19035 \begin_layout Enumerate
19039 Multiple spaces detected in output.
19042 \begin_layout Enumerate
19045 This text may be ignored.
19048 \begin_layout Enumerate
19054 \begin_inset Quotes eld
19059 to begin quotation, not
19066 \begin_layout Enumerate
19073 to end quotation, not
19076 \begin_inset Quotes eld
19084 \begin_layout Enumerate
19090 \begin_layout Enumerate
19093 You should perhaps use
19094 \begin_inset Quotes eld
19102 \begin_inset Quotes erd
19108 \begin_layout Enumerate
19111 You should put a space in front of/after parenthesis.
19114 \begin_layout Enumerate
19117 You should avoid spaces in front of/after parenthesis.
19120 \begin_layout Enumerate
19124 You should not use punctuation in front of/after quotes.
19127 \begin_layout Enumerate
19130 Double space found.
19133 \begin_layout Enumerate
19136 You should put punctuation outside inner/inside display math mode.
19139 \begin_layout Enumerate
19142 You ought to not use primitive \SpecialChar TeX
19143 in \SpecialChar LaTeX
19147 \begin_layout Enumerate
19150 You should remove spaces in front of
19151 \begin_inset Quotes eld
19159 \begin_inset Quotes erd
19165 \begin_layout Enumerate
19168 \begin_inset Quotes eld
19176 \begin_inset Quotes erd
19179 is normally not followed by
19180 \begin_inset Quotes eld
19188 \begin_inset Quotes erd
19194 \begin_layout Standard
19196 の将来の版では,このツール(およびその縮小版
19200 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
19201 書に使用してみていただければ,きっと驚かれることでしょう.
19204 \begin_layout Section
19209 \begin_layout Standard
19212 Lars Bullik Bjønnes
19221 \begin_layout Subsection
19225 \begin_layout Standard
19227 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
19231 \begin_layout Standard
19232 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,
19240 \begin_layout Plain Layout
19241 \begin_inset CommandInset href
19243 target "http://svnbook.red-bean.com/"
19253 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
19257 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
19261 で終わるファイルです)の概念に注意を払ってください.
19264 \begin_layout Standard
19266 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
19269 RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
19270 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
19272 表示\SpecialChar menuseparator
19273 ツールバー\SpecialChar menuseparator
19279 \begin_layout Standard
19280 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
19281 関数説明書のvcコマンドを確認してください.
19284 \begin_layout Standard
19285 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
19287 文書\SpecialChar menuseparator
19290 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
19291 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
19294 \begin_layout Subsection
19299 \begin_layout Standard
19300 以下の節では\SpecialChar LyX
19301 でサポートされているRCSコマンドを説明します.それらのコマンドは
19303 ファイル\SpecialChar menuseparator
19306 のサブメニューにあります.\SpecialChar LyX
19307 は,RCS 5.7/5.8に対して試験されています.
19310 \begin_layout Subsubsection
19316 \begin_layout Standard
19317 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
19324 \begin_layout Standard
19325 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
19326 書は読み込み専用モードになるので,変更を加えるためには
19330 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
19333 \begin_layout Standard
19337 \begin_layout LyX-Code
19340 ci -q -u -i -t-"<初期説明文>" <ファイル名>
19343 \begin_layout Standard
19351 \begin_layout Subsubsection
19357 \begin_layout Standard
19358 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
19359 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
19362 \begin_layout Itemize
19365 ci -q -u -m"<説明文>" <ファイル名>
19368 \begin_layout Subsubsection
19374 \begin_layout Standard
19375 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
19376 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
19379 \begin_layout Itemize
19385 \begin_layout Subsubsection
19391 \begin_layout Standard
19392 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
19395 \begin_layout Itemize
19398 co -f -u<バージョン> <ファイル名>
19401 \begin_layout Subsubsection
19407 \begin_layout Standard
19408 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19409 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19410 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19412 ファイル\SpecialChar menuseparator
19413 名前をつけて保存\SpecialChar ldots
19416 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19419 \begin_layout Labeling
19420 \labelwidthstring 00.00.0000
19424 \begin_inset space ~
19428 \begin_inset Newline newline
19434 \begin_inset Flex Code
19437 \begin_layout Plain Layout
19450 \begin_inset Newline newline
19456 \begin_inset Flex Code
19459 \begin_layout Plain Layout
19460 ci -q -u -i "<新ファイル名>"
19468 \begin_layout Labeling
19469 \labelwidthstring 00.00.0000
19470 \begin_inset Flex Code
19473 \begin_layout Plain Layout
19482 \begin_layout Subsubsection
19488 \begin_layout Standard
19489 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
19490 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
19494 \begin_layout Itemize
19497 rcs -o<バージョン> <ファイル名>
19500 \begin_layout Subsubsection
19506 \begin_layout Standard
19507 RCS文書の完全な履歴を表示します.ブラウザ中に,
19518 \begin_layout Subsubsection
19522 \begin_layout Standard
19524 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
19525 \begin_inset CommandInset ref
19527 reference "subsec:VCS改訂情報"
19534 \begin_layout Subsection
19539 \begin_layout Standard
19541 は,現在CVSを一部サポートしています.そのコマンドは,
19543 ファイル\SpecialChar menuseparator
19546 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
19549 \begin_layout Subsubsection
19553 \begin_layout Standard
19554 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
19555 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
19558 \begin_layout Standard
19559 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
19560 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
19561 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
19562 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
19563 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
19564 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
19565 で予備付きチェックアウトを利用したい場合には,
19566 \begin_inset Flex Code
19569 \begin_layout Plain Layout
19576 \begin_inset Flex Code
19579 \begin_layout Plain Layout
19585 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
19586 コピーを書き込み可能にしているとは限りません.
19589 \begin_layout Standard
19591 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
19592 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
19593 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
19595 \begin_inset Flex MenuItem
19598 \begin_layout Plain Layout
19604 メニューを使用しなくてはなりません.その後,
19605 \begin_inset Flex MenuItem
19608 \begin_layout Plain Layout
19614 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
19617 \begin_layout Standard
19619 \begin_inset Flex URL
19622 \begin_layout Plain Layout
19624 http://www.nongnu.org/cvs
19630 \begin_inset Flex URL
19633 \begin_layout Plain Layout
19635 http://ximbiot.com/cvs
19643 \begin_layout Standard
19644 以下に言及するサブコマンドとスイッチを理解するには,
19651 \begin_layout Subsubsection
19655 \begin_layout Standard
19656 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19663 \begin_layout Standard
19664 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
19671 \begin_inset Flex Code
19674 \begin_layout Plain Layout
19680 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19681 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19685 \begin_layout Standard
19686 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19689 \begin_layout Standard
19692 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19697 \begin_layout Standard
19698 上記および他のすべてのCVSコマンドにおける
19702 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19705 \begin_layout Subsubsection
19709 \begin_layout Standard
19710 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19711 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19712 \begin_inset Flex MenuItem
19715 \begin_layout Plain Layout
19724 \begin_layout Labeling
19725 \labelwidthstring 00.00.0000
19727 \begin_inset space ~
19731 \begin_inset Newline newline
19735 \begin_inset Flex Code
19738 \begin_layout Plain Layout
19739 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19745 \begin_inset Newline newline
19749 \begin_inset Flex Code
19752 \begin_layout Plain Layout
19753 cvs -q unedit "<ファイル名>"
19761 \begin_layout Subsubsection
19765 \begin_layout Standard
19766 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19769 \begin_layout Standard
19772 cvs -q update "<ファイル名>"
19775 \begin_layout Standard
19776 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19779 \begin_layout Standard
19782 cvs -q edit "<ファイル名>"
19785 \begin_layout Subsubsection
19789 \begin_layout Standard
19790 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19794 \begin_layout Standard
19797 cvs -q update "<ファイル名>"
19800 \begin_layout Standard
19801 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19804 \begin_layout Standard
19807 cvs -q unedit "<ファイル名>"
19810 \begin_layout Subsubsection
19816 \begin_layout Standard
19817 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19818 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19819 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19821 ファイル\SpecialChar menuseparator
19822 名前をつけて保存\SpecialChar ldots
19825 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19828 \begin_layout Labeling
19829 \labelwidthstring 00.00.0000
19833 \begin_inset space ~
19837 \begin_inset Newline newline
19843 \begin_layout Labeling
19844 \labelwidthstring 00.00.0000
19845 \begin_inset Flex Code
19848 \begin_layout Plain Layout
19855 \begin_inset Flex Code
19858 \begin_layout Plain Layout
19867 \begin_inset Newline newline
19873 \begin_layout Labeling
19874 \labelwidthstring 00.00.0000
19875 \begin_inset Flex Code
19878 \begin_layout Plain Layout
19879 cvs -q add "<新ファイル名>"
19887 \begin_layout Subsubsection
19891 \begin_layout Standard
19892 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19893 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19894 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19897 ファイル\SpecialChar menuseparator
19898 名前をつけて保存\SpecialChar ldots
19901 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19904 \begin_layout Labeling
19905 \labelwidthstring 00.00.0000
19909 \begin_inset space ~
19913 \begin_inset Newline newline
19919 \begin_layout Labeling
19920 \labelwidthstring 00.00.0000
19921 \begin_inset Flex Code
19924 \begin_layout Plain Layout
19931 \begin_inset Flex Code
19934 \begin_layout Plain Layout
19943 \begin_inset space ~
19947 \begin_inset Newline newline
19953 \begin_layout Labeling
19954 \labelwidthstring 00.00.0000
19955 \begin_inset Flex Code
19958 \begin_layout Plain Layout
19959 cvs -q add "<新ファイル名>"
19967 \begin_inset space ~
19971 \begin_inset Newline newline
19977 \begin_layout Labeling
19978 \labelwidthstring 00.00.0000
19979 \begin_inset Flex Code
19982 \begin_layout Plain Layout
19983 cvs -q remove "<ファイル名>"
19991 \begin_layout Subsubsection
19992 ローカルディレクトリチェックアウトのレポジトリからの更新
19995 \begin_layout Standard
19997 \begin_inset Flex Code
20000 \begin_layout Plain Layout
20006 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
20007 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
20008 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
20009 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
20013 \begin_layout Standard
20015 \begin_inset Flex Code
20018 \begin_layout Plain Layout
20024 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
20025 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
20026 \begin_inset Flex Code
20029 \begin_layout Plain Layout
20036 \begin_inset Flex Code
20039 \begin_layout Plain Layout
20046 \begin_inset Flex Code
20049 \begin_layout Plain Layout
20055 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
20056 \begin_inset Flex Code
20059 \begin_layout Plain Layout
20065 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
20068 \begin_layout Labeling
20069 \labelwidthstring 00.00.0000
20071 \begin_inset space ~
20075 \begin_inset Newline newline
20079 \begin_inset Flex Code
20082 \begin_layout Plain Layout
20083 cd $path; cvs diff "."
20089 \begin_inset Newline newline
20093 \begin_inset Flex Code
20096 \begin_layout Plain Layout
20097 cd $path; cvs -q update "."
20105 \begin_layout Standard
20107 \begin_inset Flex Code
20110 \begin_layout Plain Layout
20119 \begin_layout Subsubsection
20123 \begin_layout Standard
20124 これは,CVS文書の全履歴を表示します.
20125 \begin_inset Flex Code
20128 \begin_layout Plain Layout
20130 \begin_inset Quotes eld
20134 \begin_inset Quotes erd
20145 \begin_layout Subsubsection
20149 \begin_layout Standard
20151 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20155 によって抽出されます.詳細については,第
20156 \begin_inset CommandInset ref
20158 reference "subsec:VCS改訂情報"
20165 \begin_layout Subsection
20170 \begin_layout Standard
20172 は,現在SVNを一部サポートしています.そのコマンドは,
20173 \begin_inset Flex MenuItem
20176 \begin_layout Plain Layout
20177 ファイル\SpecialChar menuseparator
20183 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
20185 1.5および1.6に対して試験されています.
20188 \begin_layout Subsubsection
20192 \begin_layout Standard
20193 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20200 \begin_layout Standard
20201 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
20206 \begin_inset Flex Code
20209 \begin_layout Plain Layout
20215 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20218 \begin_layout Standard
20219 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20222 \begin_layout Standard
20224 \begin_inset Flex Code
20227 \begin_layout Plain Layout
20232 \begin_inset Quotes qld
20242 \begin_inset Quotes qld
20253 \begin_layout Standard
20255 \begin_inset Flex Code
20258 \begin_layout Plain Layout
20267 \begin_layout Subsubsection
20271 \begin_layout Standard
20272 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20275 \begin_layout Standard
20280 \begin_layout Plain Layout
20281 ロックが有効になっていない場合です.第
20282 \begin_inset CommandInset ref
20284 reference "subsec:SVNファイルロック"
20294 \begin_inset Flex Code
20297 \begin_layout Plain Layout
20327 \begin_layout Subsubsection
20331 \begin_layout Standard
20332 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
20336 \begin_layout Standard
20341 \begin_layout Plain Layout
20348 \begin_inset Flex Code
20351 \begin_layout Plain Layout
20352 svn update –non-interactive
20356 \begin_inset Quotes qld
20366 \begin_inset Quotes qld
20377 \begin_layout Subsubsection
20381 \begin_layout Standard
20382 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20385 \begin_layout Standard
20387 \begin_inset Flex Code
20390 \begin_layout Plain Layout
20395 \begin_inset Quotes qld
20405 \begin_inset Quotes qld
20416 \begin_layout Subsubsection
20422 \begin_layout Standard
20423 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
20424 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20427 ファイル\SpecialChar menuseparator
20428 名前をつけて保存\SpecialChar ldots
20431 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
20434 \begin_layout Labeling
20435 \labelwidthstring 00.00.0000
20439 \begin_inset space ~
20443 \begin_inset Newline newline
20449 \begin_layout Labeling
20450 \labelwidthstring 00.00.0000
20451 \begin_inset Flex Code
20454 \begin_layout Plain Layout
20455 svn copy -q "<ファイル名>" "<新ファイル名>"
20463 \begin_inset space ~
20467 \begin_inset Newline newline
20473 \begin_layout Labeling
20474 \labelwidthstring 00.00.0000
20475 \begin_inset Flex Code
20478 \begin_layout Plain Layout
20487 \begin_layout Subsubsection
20491 \begin_layout Standard
20492 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20493 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20496 ファイル\SpecialChar menuseparator
20497 名前をつけて保存\SpecialChar ldots
20500 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20503 \begin_layout Labeling
20504 \labelwidthstring 00.00.0000
20508 \begin_inset space ~
20512 \begin_inset Newline newline
20518 \begin_layout Labeling
20519 \labelwidthstring 00.00.0000
20520 \begin_inset Flex Code
20523 \begin_layout Plain Layout
20524 svn move -q add "<ファイル名>" "<新ファイル名>"
20532 \begin_layout Labeling
20533 \labelwidthstring 00.00.0000
20534 \begin_inset Flex Code
20537 \begin_layout Plain Layout
20546 \begin_layout Subsubsection
20547 \begin_inset CommandInset label
20549 name "subsec:レポジトリからSVN同期"
20553 レポジトリを使ったローカルディレクトリの同期
20557 \begin_layout Plain Layout
20559 \begin_inset Formula $\geqq1.5$
20562 でのみ動作することに注意してください.
20570 \begin_layout Standard
20571 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
20572 \begin_inset Flex Code
20575 \begin_layout Plain Layout
20581 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
20582 は,文書のおいてあるツリー全体の更新をサポートします
20586 \begin_layout Plain Layout
20587 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
20592 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
20596 \begin_layout Standard
20597 \begin_inset Flex Code
20600 \begin_layout Plain Layout
20606 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
20607 場合には,更新が開始される前にユーザに警告が与えられます.
20610 \begin_layout Labeling
20611 \labelwidthstring 00.00.0000
20613 \begin_inset space ~
20617 \begin_inset Newline newline
20621 \begin_inset Flex Code
20624 \begin_layout Plain Layout
20625 svn diff $path(変更が発見された場合には通知します)
20626 \begin_inset Newline newline
20629 svn update –accept mine-full $path
20637 \begin_layout Standard
20639 \begin_inset Flex Code
20642 \begin_layout Plain Layout
20651 \begin_layout Subsubsection
20655 \begin_layout Standard
20656 これは,SVN文書の全履歴を表示します.
20657 \begin_inset Flex Code
20660 \begin_layout Plain Layout
20665 \begin_inset Quotes qld
20675 \begin_inset Quotes qld
20686 \begin_layout Subsubsection
20688 \begin_inset CommandInset label
20690 name "subsec:SVNファイルロック"
20697 \begin_layout Standard
20698 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
20699 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
20700 するための,何らかのロック機構を導入することが考えられます.
20703 \begin_layout Standard
20704 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
20705 \begin_inset Flex Code
20708 \begin_layout Plain Layout
20714 svnファイル特性に依拠した書き込み権限の自動設定(第
20715 \begin_inset CommandInset ref
20717 reference "subsec:自動ロック特性"
20725 \begin_layout Plain Layout
20726 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20731 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
20732 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
20733 り替わります.これは特に,\SpecialChar LyX
20734 でのファイルの使われ方に以下の二つのモードがあることを意味します.
20737 \begin_layout Itemize
20738 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
20742 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
20745 \begin_layout Itemize
20746 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20750 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20754 \begin_layout Plain Layout
20755 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20760 ,書き込みロックの解放のみが行われます.
20763 \begin_layout Standard
20767 \begin_layout Labeling
20768 \labelwidthstring 00.00.0000
20770 \begin_inset Flex Code
20773 \begin_layout Plain Layout
20775 \begin_inset Quotes erd
20779 \begin_inset Quotes erd
20783 \begin_inset Quotes eld
20787 \begin_inset Quotes erd
20796 \begin_inset Newline newline
20800 \begin_inset Flex Code
20803 \begin_layout Plain Layout
20805 \begin_inset Quotes eld
20809 \begin_inset Quotes erd
20820 \begin_layout Labeling
20821 \labelwidthstring 00.00.0000
20823 \begin_inset Flex Code
20826 \begin_layout Plain Layout
20828 \begin_inset Quotes eld
20832 \begin_inset Quotes erd
20841 \begin_inset Newline newline
20845 \begin_inset Flex Code
20848 \begin_layout Plain Layout
20850 \begin_inset Quotes eld
20854 \begin_inset Quotes erd
20865 \begin_layout Subsubsection
20867 \begin_inset CommandInset label
20869 name "subsec:自動ロック特性"
20876 \begin_layout Standard
20878 \begin_inset Flex Code
20881 \begin_layout Plain Layout
20887 ファイルに対する書き込み権限の自動設定は,
20888 \begin_inset Flex MenuItem
20891 \begin_layout Plain Layout
20895 File\SpecialChar menuseparator
20897 \begin_inset space ~
20900 Control\SpecialChar menuseparator
20901 Use Locking Property
20906 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20909 \begin_layout Standard
20913 \begin_layout Labeling
20914 \labelwidthstring 00.00.0000
20916 \begin_inset Flex Code
20919 \begin_layout Plain Layout
20920 svn propset svn:needs-lock ON
20921 \begin_inset Quotes eld
20925 \begin_inset Quotes erd
20936 \begin_layout Labeling
20937 \labelwidthstring 00.00.0000
20939 \begin_inset Flex Code
20942 \begin_layout Plain Layout
20943 svn propdel svn:needs-lock
20944 \begin_inset Quotes eld
20948 \begin_inset Quotes erd
20959 \begin_layout Subsubsection
20960 \begin_inset CommandInset label
20962 name "subsec:VCS改訂情報"
20969 \begin_layout Standard
20970 文書中で改訂情報を有効化するにはいくつかの方法があります.
20973 \begin_layout Itemize
20979 \begin_layout Itemize
20981 \begin_inset Flex Code
20984 \begin_layout Plain Layout
20991 \begin_inset Flex Code
20994 \begin_layout Plain Layout
21000 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
21003 \begin_layout Standard
21005 \begin_inset Tabular
21006 <lyxtabular version="3" rows="6" columns="2">
21007 <features tabularvalignment="middle">
21008 <column alignment="center" valignment="top">
21009 <column alignment="center" valignment="top">
21011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21014 \begin_layout Plain Layout
21020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21023 \begin_layout Plain Layout
21031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21034 \begin_layout Plain Layout
21040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21043 \begin_layout Plain Layout
21051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21054 \begin_layout Plain Layout
21060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21063 \begin_layout Plain Layout
21071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21074 \begin_layout Plain Layout
21080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21083 \begin_layout Plain Layout
21091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21094 \begin_layout Plain Layout
21100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21103 \begin_layout Plain Layout
21104 チェックアウト頻度が低かったことによる不完全な作業コピー
21111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21114 \begin_layout Plain Layout
21120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21123 \begin_layout Plain Layout
21124 改訂版が混合し,修正され,スイッチされた作業コピー
21137 \begin_layout Itemize
21139 \begin_inset Flex Code
21142 \begin_layout Plain Layout
21144 \begin_inset space ~
21148 \begin_inset space ~
21152 \begin_inset space ~
21160 の出力を解析したものが返されます.サポートされるフラグは
21164 \begin_layout Itemize
21166 \begin_inset Flex Code
21169 \begin_layout Plain Layout
21178 \begin_layout Itemize
21180 \begin_inset Flex Code
21183 \begin_layout Plain Layout
21192 \begin_layout Itemize
21194 \begin_inset Flex Code
21197 \begin_layout Plain Layout
21206 \begin_layout Itemize
21208 \begin_inset Flex Code
21211 \begin_layout Plain Layout
21221 \begin_layout Standard
21222 これらの情報は,情報差込枠で得ることができます(例:
21223 \begin_inset Flex Code
21226 \begin_layout Plain Layout
21227 info-insert buffer vcs-date
21232 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
21233 \begin_inset Flex Code
21236 \begin_layout Plain Layout
21242 ディレクトリがあるときのみ)利用可能です.
21246 \begin_layout Itemize
21247 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
21251 \begin_layout Plain Layout
21252 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21257 .簡単に言えば,ファイルキーワード特性を設定して(例:
21259 svn propset svn:keywords 'Rev' file.lyx
21261 ),文書中にキーワード\SpecialChar TeX
21266 \begin_layout Plain Layout
21267 これは,\SpecialChar LyX
21268 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
21277 \begin_layout Plain Layout
21284 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
21288 \begin_layout Plain Layout
21295 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
21296 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
21298 \begin_inset Formula $Rev$
21302 \begin_inset Formula $Rev:59$
21305 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
21306 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく
21309 \begin_inset Flex Code
21312 \begin_layout Plain Layout
21322 という文字列全体が表示されてしまいます.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
21327 \begin_layout Subsection
21331 \begin_layout Quote
21332 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
21337 \begin_layout Subsubsection
21341 \begin_layout Standard
21343 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
21344 トプログラムのWindows用インストーラは
21345 \begin_inset CommandInset href
21348 target "http://www.collab.net/nonav/downloads/subversion/"
21354 \begin_inset CommandInset href
21357 target "http://tortoisesvn.tigris.org/"
21362 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
21364 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
21365 自身が使用するクライアントプログラムの代わりとは成りませんので
21369 \begin_layout Subsubsection
21370 文書をSubversion管理下に置くには
21373 \begin_layout Standard
21375 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
21376 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
21377 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
21379 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
21380 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
21382 \begin_inset Flex Code
21385 \begin_layout Plain Layout
21393 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
21394 \begin_inset Flex Code
21397 \begin_layout Plain Layout
21406 \begin_layout Enumerate
21408 \begin_inset Flex Code
21411 \begin_layout Plain Layout
21420 \begin_inset Flex MenuItem
21423 \begin_layout Plain Layout
21424 TortoiseSVN\SpecialChar menuseparator
21430 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
21433 \begin_layout Enumerate
21434 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
21435 \begin_inset Flex MenuItem
21438 \begin_layout Plain Layout
21439 Create folder\SpecialChar ldots
21445 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
21446 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
21449 \begin_layout Enumerate
21451 \begin_inset Flex Code
21454 \begin_layout Plain Layout
21463 \begin_inset Flex MenuItem
21466 \begin_layout Plain Layout
21467 SVN Checkout\SpecialChar ldots
21473 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
21474 \begin_inset Flex Code
21477 \begin_layout Plain Layout
21485 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
21486 \begin_inset Flex Code
21489 \begin_layout Plain Layout
21498 \begin_inset Flex Code
21501 \begin_layout Plain Layout
21510 \begin_layout Enumerate
21513 \begin_inset Flex MenuItem
21516 \begin_layout Plain Layout
21517 ファイル\SpecialChar menuseparator
21518 バージョン管理\SpecialChar menuseparator
21524 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
21527 \begin_layout Standard
21529 \begin_inset Flex MenuItem
21532 \begin_layout Plain Layout
21533 ファイル\SpecialChar menuseparator
21539 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
21540 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
21543 \begin_layout Subsubsection
21544 Windows下でSVNと共にSSHトンネルを使うには
21547 \begin_layout Standard
21548 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
21549 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
21553 \begin_layout Enumerate
21554 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
21555 \begin_inset Flex Code
21558 \begin_layout Plain Layout
21564 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
21567 \begin_layout Enumerate
21568 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
21572 \begin_layout Plain Layout
21573 \begin_inset Flex URL
21576 \begin_layout Plain Layout
21578 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21588 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
21590 \begin_inset Flex Ruby
21593 \begin_layout Plain Layout
21595 \begin_inset Argument post:1
21598 \begin_layout Plain Layout
21613 \begin_layout Enumerate
21614 \begin_inset Flex Code
21617 \begin_layout Plain Layout
21623 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
21624 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
21625 s file:」編集フィールドから,直接サーバの
21626 \begin_inset Flex Code
21629 \begin_layout Plain Layout
21630 ~/.ssh/authorized_keys
21636 \begin_inset Flex Code
21639 \begin_layout Plain Layout
21645 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
21648 \begin_layout Enumerate
21649 Puttyのplinkを入手してください.SVNのconfigファイル
21653 \begin_layout Plain Layout
21654 正確なパスはWindowsのバージョンに依りますが,通常は
21655 \begin_inset Flex Code
21658 \begin_layout Plain Layout
21661 Documents and Settings
21675 \begin_inset Flex Code
21678 \begin_layout Plain Layout
21694 \begin_inset Flex Code
21697 \begin_layout Plain Layout
21703 セクションにsshコマンドを設定してください.例:
21704 \begin_inset Flex Code
21707 \begin_layout Plain Layout
21708 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21717 \begin_layout Plain Layout
21718 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
21719 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
21728 \begin_layout Enumerate
21729 SVNアーカイブをチェックアウトしてください.例:
21730 \begin_inset Newline newline
21734 \begin_inset Flex Code
21737 \begin_layout Plain Layout
21738 svn co svn+ssh://user@server/repository_path
21746 \begin_layout Subsubsection
21750 \begin_layout Standard
21751 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
21752 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
21754 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
21755 \begin_inset Flex Code
21758 \begin_layout Plain Layout
21768 \begin_layout Plain Layout
21770 \begin_inset Flex Code
21773 \begin_layout Plain Layout
21774 svn propset svn:eol-style native FILE_NAME
21784 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21788 \begin_layout Plain Layout
21789 \begin_inset Flex URL
21792 \begin_layout Plain Layout
21794 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21807 \begin_layout Subsection
21812 \begin_layout Standard
21814 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21816 ファイル\SpecialChar menuseparator
21819 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21824 \begin_layout Standard
21825 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21826 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21827 ミットを行います.ローカルリポジトリは,GITコマンドの
21828 \begin_inset Flex Code
21831 \begin_layout Plain Layout
21838 \begin_inset Flex Code
21841 \begin_layout Plain Layout
21847 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21848 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21849 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21850 \begin_inset Flex Code
21853 \begin_layout Plain Layout
21860 \begin_inset Flex Code
21863 \begin_layout Plain Layout
21872 \begin_layout Subsubsection
21876 \begin_layout Standard
21877 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21884 \begin_layout Standard
21885 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21890 \begin_inset Flex Code
21893 \begin_layout Plain Layout
21899 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21902 \begin_layout Standard
21903 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21906 \begin_layout Standard
21908 \begin_inset Flex Code
21911 \begin_layout Plain Layout
21920 \begin_layout Standard
21922 \begin_inset Flex Code
21925 \begin_layout Plain Layout
21934 \begin_layout Subsubsection
21938 \begin_layout Standard
21939 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21942 \begin_layout Standard
21944 \begin_inset Flex Code
21947 \begin_layout Plain Layout
21949 \begin_inset Quotes erd
21953 \begin_inset Quotes erd
21964 \begin_layout Subsubsection
21968 \begin_layout Standard
21969 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21972 \begin_layout Standard
21974 \begin_inset Flex Code
21977 \begin_layout Plain Layout
21982 \begin_inset Quotes qld
21992 \begin_inset Quotes qld
22003 \begin_layout Subsubsection
22007 \begin_layout Standard
22008 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
22009 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
22012 ファイル\SpecialChar menuseparator
22013 名前をつけて保存\SpecialChar ldots
22016 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
22019 \begin_layout Labeling
22020 \labelwidthstring 00.00.0000
22024 \begin_inset space ~
22028 \begin_inset Newline newline
22034 \begin_layout Labeling
22035 \labelwidthstring 00.00.0000
22036 \begin_inset Flex Code
22039 \begin_layout Plain Layout
22040 git mv "<ファイル名>" "<新ファイル名>"
22048 \begin_layout Labeling
22049 \labelwidthstring 00.00.0000
22050 \begin_inset Flex Code
22053 \begin_layout Plain Layout
22062 \begin_layout Subsubsection
22066 \begin_layout Standard
22067 これは,GIT文書の全履歴を表示します.
22068 \begin_inset Flex Code
22071 \begin_layout Plain Layout
22076 \begin_inset Quotes qld
22086 \begin_inset Quotes qld
22097 \begin_layout Subsubsection
22101 \begin_layout Standard
22103 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
22105 git log -n 1 --pretty=format:%H%n%an%n%ai
22107 によって抽出されます.ツリーバージョン情報は,
22109 git describe --abbrev --dirty --long
22112 \begin_inset CommandInset ref
22114 reference "subsec:VCS改訂情報"
22121 \begin_layout Subsection
22125 \begin_layout Standard
22126 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
22127 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
22130 \begin_layout Standard
22131 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
22134 \begin_layout Description
22136 \begin_inset Flex Code
22139 \begin_layout Plain Layout
22140 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22148 \begin_layout Description
22150 \begin_inset Flex Code
22153 \begin_layout Plain Layout
22154 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22162 \begin_layout Subsection
22166 \begin_layout Standard
22168 \begin_inset Flex Code
22171 \begin_layout Plain Layout
22177 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
22179 まり便利ではありません.そこで,\SpecialChar LyX
22180 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
22182 \begin_inset Flex Code
22185 \begin_layout Plain Layout
22193 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
22195 \begin_inset Flex MenuItem
22198 \begin_layout Plain Layout
22199 旧改訂と比較\SpecialChar ldots
22205 メニューないしアイコンを使用する方法です
22207 or by the toolbar icon
22221 .当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
22222 \begin_inset Flex MenuItem
22225 \begin_layout Plain Layout
22231 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
22234 \begin_layout Standard
22235 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
22236 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
22239 \begin_inset Flex Code
22242 \begin_layout Plain Layout
22252 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
22255 \begin_layout Section
22259 \begin_layout Standard
22264 (kayvan@sylvan.com)改訂
22266 Edmar Wienskoski Jr.
22268 (edmar-w-jr@technologist.com)原文
22271 \begin_layout Subsection
22275 \begin_layout Standard
22276 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
22277 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
22278 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
22279 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
22282 \begin_layout Standard
22283 また,あなたが,\SpecialChar LyX
22284 の設定を変更することを厭わない程度まで\SpecialChar LyX
22285 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
22286 するトピックを扱っている,\SpecialChar LyX
22290 \begin_layout Subsection
22294 \begin_layout Standard
22295 以下は,文芸プログラミング FAQからの抜粋です.
22298 \begin_layout Quotation
22299 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
22300 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
22301 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
22303 \begin_inset space \thinspace{}
22307 Knuthが,\SpecialChar TeX
22308 組版ソフトウエアを開発中に作り出したものです.
22311 \begin_layout Standard
22315 \begin_layout Quotation
22318 文芸プログラミングは,冗長なコメント付けと何が違いますか?
22321 \begin_layout Quotation
22322 3つの際立った特徴があります.重要な順に列挙すれば,
22326 \begin_layout Itemize
22330 \begin_layout Itemize
22334 \begin_layout Itemize
22335 特に図式と数式を含んだドキュメンテーションの組版
22339 \begin_layout Quotation
22343 \begin_layout Standard
22344 あなたの興味に火を付けたところで書誌情報を見てみましょう.
22347 \begin_layout Subsubsection
22351 \begin_layout Standard
22355 \begin_layout Quote
22356 Literate Programming FAQ
22357 \begin_inset Flex URL
22360 \begin_layout Plain Layout
22362 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
22370 \begin_layout Standard
22374 \begin_layout Standard
22375 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
22376 を持つものもあります.私は自分で使うのに,いくつかの理由から
22383 \begin_layout Itemize
22384 説明文書を\SpecialChar LaTeX
22388 \begin_layout Itemize
22389 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
22395 \begin_layout Plain Layout
22401 are programs that read a given data stream and output a manipulated data
22403 That way, a WEB file (consisting of literate code) can be turned into a
22404 file consisting only of C program code or \SpecialChar LaTeX
22413 \begin_layout Itemize
22414 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
22417 \begin_layout Itemize
22421 \begin_layout Standard
22425 \begin_layout Quote
22427 \begin_inset Flex URL
22430 \begin_layout Plain Layout
22432 http://www.cs.virginia.edu/~nr/noweb/
22440 \begin_layout Standard
22441 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
22444 \begin_layout Subsection
22446 とNowebを使った文芸プログラミング
22449 \begin_layout Standard
22451 における文芸プログラミングのサポートは,\SpecialChar LyX
22452 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
22453 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
22457 \begin_layout Subsubsection
22458 ドキュメントとコードの生成(weavingおよびtangling)
22461 \begin_layout Paragraph
22465 \begin_layout Standard
22466 Nowebと\SpecialChar LyX
22467 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
22469 文書\SpecialChar menuseparator
22472 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
22473 web」モジュールが表示され,文書に追加できるようになっています.
22476 \begin_layout Paragraph
22480 \begin_layout Standard
22487 \begin_inset Flex Noun
22490 \begin_layout Plain Layout
22496 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
22499 \begin_layout LyX-Code
22503 \begin_layout LyX-Code
22507 \begin_layout LyX-Code
22511 \begin_layout LyX-Code
22515 \begin_layout LyX-Code
22519 \begin_layout Standard
22520 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
22521 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
22523 \begin_inset Flex Noun
22526 \begin_layout Plain Layout
22536 通常の段落のように見えますが,自由に空白を入れることができます.
22539 \begin_layout Standard
22540 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
22543 \begin_layout LyX-Code
22547 \begin_layout LyX-Code
22548 def some_function(args):
22551 \begin_layout LyX-Code
22552 "This is the doc string for this function."
22555 \begin_layout LyX-Code
22556 print "My args: ", args
22559 \begin_layout LyX-Code
22560 @ %def some_function
22563 \begin_layout Standard
22564 これをどのように使って,その結果相互参照がどうなるかは
22566 LIBDIR/examples/listerrors.lyx
22568 の中の文芸pythonプログラムを見るとよくわかります.
22571 \begin_layout Paragraph
22575 \begin_layout Standard
22576 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
22579 文書\SpecialChar menuseparator
22582 等を選ぶだけです.特別な手続きは必要ありません.
22585 \begin_layout Standard
22586 理解を助けるために,\SpecialChar LyX
22587 の内部で何が起っているかを説明しておきましょう.
22590 \begin_layout Enumerate
22593 文書\SpecialChar menuseparator
22596 が選択されると,\SpecialChar LaTeX
22601 \begin_layout Standard
22602 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
22603 \begin_inset Flex MenuItem
22606 \begin_layout Plain Layout
22612 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
22616 \begin_layout Enumerate
22617 違いがファイル名だけなのに注意してください.\SpecialChar LyX
22619 \begin_inset Flex Noun
22622 \begin_layout Plain Layout
22632 環境でコードを入力するのだけがポイントです.
22635 \begin_layout Enumerate
22636 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
22638 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
22643 \begin_layout Plain Layout
22646 ツール\SpecialChar menuseparator
22649 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
22662 を使って\SpecialChar LaTeX
22667 \begin_layout Standard
22668 それ以外の場合はこのステップを飛ばします.
22672 \begin_layout Enumerate
22673 最後に\SpecialChar LaTeX
22674 が実行され,通常の文書と同じ後処理が行われます.
22677 \begin_layout Standard
22678 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
22681 \begin_layout Paragraph
22685 \begin_layout Standard
22686 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
22687 ファイルが生成されます.それから\SpecialChar LyX
22692 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
22695 \begin_layout Enumerate
22696 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
22700 \begin_layout Enumerate
22701 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
22702 が理解できる形へ書き直します.これによって,\SpecialChar LyX
22703 はファイルバッファの正しい位置へエラーボックスを配置することができます.
22706 \begin_layout Standard
22710 \begin_layout LyX-Code
22713 build-script $$i $$r
22716 \begin_layout Standard
22717 と指定します.これは基本的に,\SpecialChar LyX
22719 \begin_inset Quotes erd
22727 \begin_inset Quotes erd
22730 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
22731 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
22732 ファイルのディレクトリパスを使って呼び出すこ
22736 \begin_layout Standard
22737 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
22740 \begin_layout LyX-Code
22746 \begin_layout LyX-Code
22752 \begin_layout LyX-Code
22755 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22758 \begin_layout Standard
22759 変換子設定の次の部分は「フラグ」で,これは
22762 \begin_layout LyX-Code
22765 parselog=$$s/scripts/listerrors
22768 \begin_layout Standard
22770 \begin_inset Newline newline
22774 \begin_inset Quotes erd
22778 \begin_inset Quotes erd
22782 \begin_inset Quotes erd
22786 \begin_inset Quotes erd
22792 \begin_layout Standard
22793 ビルドは,通常\SpecialChar LyX
22794 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
22795 は,主要ファイルとみなされるものをコピーして取り出
22800 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
22801 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
22802 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22805 \begin_layout Paragraph
22809 \begin_layout Standard
22812 \begin_inset Quotes eld
22816 \begin_inset Quotes erd
22819 chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22820 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22823 \begin_layout Standard
22824 以下に典型的なchunkがどのようなものかを書いておきます.
22827 \begin_layout LyX-Code
22829 \begin_inset Newline newline
22835 \begin_layout LyX-Code
22837 \begin_inset Newline newline
22841 \begin_inset Newline newline
22844 if [ -z "${NOWEB_SOURCE}" ]
22845 \begin_inset Newline newline
22851 \begin_layout LyX-Code
22852 NOWEB_SOURCE=myfile.nw
22853 \begin_inset Newline newline
22857 \begin_inset Newline newline
22861 code to extract files ...
22862 use NOWEB_OUTPUT_DIR here ...]
22863 \begin_inset Newline newline
22867 code to compile files ...]
22868 \begin_inset Newline newline
22874 \begin_layout Standard
22877 LIBDIR/examples/listerrors.lyx
22881 LIBDIR/examples/Literate.lyx
22883 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22886 LIBDIR/examples/noweb2lyx.lyx
22888 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22889 の文芸プログラミングのサポートがプログラム言語に依存しない
22893 \begin_layout Subsubsection
22898 \begin_layout Standard
22899 すべての文芸プログラムのための設定は,
22901 ツール\SpecialChar menuseparator
22904 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22907 \begin_layout Description
22908 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22920 に設定してください.これによって,\SpecialChar LyX
22921 に変換プロセスの第一段階でつくられるファイルに
22925 という拡張子をつけることを指示します.
22928 \begin_layout Description
22929 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22932 \begin_layout Description
22942 この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22944 noweave -delay -index $$i > $$o
22949 \begin_layout Description
22958 これは「tangling」を行います.上述のように,変換子は「
22960 build-script $$i $$r
22964 parselog=$$s/scripts/listerrors
22969 \begin_layout Subsubsection
22973 \begin_layout Standard
22974 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22978 \begin_layout Standard
22979 ddd/gdbでデバッグしているとき,一つの
22980 \begin_inset Flex Ruby
22983 \begin_layout Plain Layout
22985 \begin_inset Argument post:1
22988 \begin_layout Plain Layout
22999 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
23000 \begin_inset Flex MenuItem
23003 \begin_layout Plain Layout
23004 ツール\SpecialChar menuseparator
23005 設定\SpecialChar menuseparator
23012 \begin_inset Flex MenuItem
23015 \begin_layout Plain Layout
23021 エントリを変えると変えることができます.
23024 \begin_layout Standard
23025 新しい\SpecialChar LyX
23026 サーバの関数と,このdddの機能を使うために
23027 \begin_inset Flex MenuItem
23030 \begin_layout Plain Layout
23039 \begin_layout LyX-Code
23042 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23045 \begin_layout Standard
23046 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
23047 サーバに情報を送り,\SpecialChar LyX
23049 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
23052 \begin_layout Standard
23053 この機能が動くには\SpecialChar LyX
23054 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
23055 サーバーは使えないようになっています)
23058 \begin_layout Standard
23062 \begin_inset space ~
23066 \begin_inset CommandInset ref
23068 reference "sec:Starting-the-Server"
23072 explains how to do that.
23075 \begin_layout Subsubsection
23079 \begin_layout Standard
23080 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
23096 Four of these buttons are short cuts to layout styles:
23114 , one for the custom inset
23120 最後の一つはファイルメニュー項目の「Build Program」への
23121 \begin_inset Flex Ruby
23124 \begin_layout Plain Layout
23144 \begin_inset Argument post:1
23147 \begin_layout Plain Layout
23161 \begin_layout Standard
23163 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
23164 \begin_inset Flex MenuItem
23167 \begin_layout Plain Layout
23168 文書\SpecialChar menuseparator
23169 更新\SpecialChar menuseparator
23176 \begin_inset Flex MenuItem
23179 \begin_layout Plain Layout
23180 文書\SpecialChar menuseparator
23181 表示\SpecialChar menuseparator
23190 \begin_layout LyX-Code
23194 \begin_layout LyX-Code
23198 \begin_layout LyX-Code
23199 Icon "layout Standard"
23202 \begin_layout LyX-Code
23203 Icon "layout Section"
23206 \begin_layout LyX-Code
23207 Icon "layout \SpecialChar LaTeX
23211 \begin_layout LyX-Code
23212 Icon "layout \SpecialChar LyX
23216 \begin_layout LyX-Code
23224 \begin_layout LyX-Code
23228 \begin_layout LyX-Code
23232 \begin_layout LyX-Code
23233 Icon "buffer-typeset"
23236 \begin_layout LyX-Code
23237 Icon "build-program"
23240 \begin_layout LyX-Code
23244 \begin_layout LyX-Code
23248 \begin_layout LyX-Code
23252 \begin_layout LyX-Code
23256 \begin_layout LyX-Code
23260 \begin_layout Subsubsection
23264 \begin_layout Standard
23267 \begin_inset Flex MenuItem
23270 \begin_layout Plain Layout
23276 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
23277 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
23278 フォントを使うことになっていて,文芸プログラミ
23279 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
23280 \begin_inset Flex MenuItem
23283 \begin_layout Plain Layout
23284 操作性\SpecialChar menuseparator
23293 \begin_layout Standard
23294 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
23295 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
23298 \begin_layout Subsection
23303 \begin_layout Standard
23304 knitrとSweaveへのサポートについては,用例ファイル
23310 ヘルプ\SpecialChar menuseparator
23316 \begin_layout Chapter
23318 \begin_inset CommandInset label
23320 name "chap:Special-features"
23327 \begin_layout Standard
23329 では,\SpecialChar LaTeX
23330 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
23331 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
23332 コードを使用することはできます.本章は,ユーザの興味が
23333 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
23340 \begin_layout Section
23344 \begin_layout Standard
23353 とは別の機能です.文書全体に二段組を行いたい場合には,
23357 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
23360 \begin_layout Standard
23361 文書中で多段組を行うには,\SpecialChar LaTeX
23367 \begin_inset Index idx
23370 \begin_layout Plain Layout
23372 ぱっけーじ @ \SpecialChar LaTeX
23380 文書\SpecialChar menuseparator
23381 設定\SpecialChar menuseparator
23391 \begin_layout Standard
23392 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
23396 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
23399 \begin_layout Subsection
23403 \begin_layout Standard
23404 文章中で二段組を使用したい場合には,段組を始める場所で
23406 挿入\SpecialChar menuseparator
23407 任意設定差込枠\SpecialChar menuseparator
23410 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
23413 \begin_layout Standard
23417 \begin_layout Standard
23419 \begin_inset Flex Multiple Columns
23422 \begin_layout Plain Layout
23427 The Adventure of the Empty House
23430 \begin_inset Newline newline
23433 by Sir Arthur Conan Doyle
23436 \begin_layout Plain Layout
23439 It was in the spring of the year 1894 that all London was interested, and
23440 the fashionable world dismayed, by the murder of the Honourable Ronald
23441 Adair under most unusual and inexplicable circumstances.
23442 The public has already learned those particulars of the crime which came
23443 out in the police investigation, but a good deal was suppressed upon that
23444 occasion, since the case for the prosecution was so overwhelmingly strong
23445 that it was not necessary to bring forward all the facts.
23446 Only now, at the end of nearly ten years, am I allowed to supply those
23447 missing links which make up the whole of that remarkable chain.
23448 The crime was of interest in itself, but that interest was as nothing to
23449 me compared to the inconceivable sequel, which afforded me the greatest
23450 shock and surprise of any event in my adventurous life.
23451 Even now, after this long interval, I find myself thrilling as I think
23452 of it, and feeling once more that sudden flood of joy, amazement, and increduli
23453 ty which utterly submerged my mind.
23454 Let me say to that public, which has shown some interest in those glimpses
23455 which I have occasionally given them of the thoughts and actions of a very
23456 remarkable man, that they are not to blame me if I have not shared my knowledge
23457 with them, for I should have considered it my first duty to do so, had
23458 I not been barred by a positive prohibition from his own lips, which was
23459 only withdrawn upon the third of last month.
23467 \begin_layout Standard
23468 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
23469 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
23471 \begin_inset Newline newline
23477 \begin_layout Standard
23478 \begin_inset Flex Multiple Columns
23481 \begin_layout Plain Layout
23484 \begin_inset Argument 1
23487 \begin_layout Plain Layout
23493 It can be imagined that my close intimacy with Sherlock Holmes had interested
23494 me deeply in crime, and that after his disappearance I never failed to
23495 read with care the various problems which came before the public.
23496 And I even attempted, more than once, for my own private satisfaction,
23497 to employ his methods in their solution, though with indifferent success.
23498 There was none, however, which appealed to me like this tragedy of Ronald
23500 As I read the evidence at the inquest, which led up to a verdict of willful
23501 murder against some person or persons unknown, I realized more clearly
23502 than I had ever done the loss which the community had sustained by the
23503 death of Sherlock Holmes.
23504 There were points about this strange business which would, I was sure,
23505 have specially appealed to him, and the efforts of the police would have
23506 been supplemented, or more probably anticipated, by the trained observation
23507 and the alert mind of the first criminal agent in Europe.
23508 All day, as I drove upon my round, I turned over the case in my mind and
23509 found no explanation which appeared to me to be adequate.
23510 At the risk of telling a twice-told tale, I will recapitulate the facts
23511 as they were known to the public at the conclusion of the inquest.
23519 \begin_layout Standard
23520 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
23523 \begin_layout Standard
23524 \begin_inset Newpage newpage
23530 \begin_layout Subsection
23534 \begin_layout Standard
23538 \begin_layout Standard
23539 \begin_inset Flex Multiple Columns
23542 \begin_layout Plain Layout
23545 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23546 at that time governor of one of the Australian colonies.
23547 Adair's mother had returned from Australia to undergo the operation for
23548 cataract, and she, her son Ronald, and her daughter Hilda were living together
23552 \begin_layout Plain Layout
23553 \begin_inset Flex Multiple Columns
23556 \begin_layout Plain Layout
23559 The youth moved in the best society–had, so far as was known, no enemies
23560 and no particular vices.
23561 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23562 had been broken off by mutual consent some months before, and there was
23563 no sign that it had left any very profound feeling behind it.
23564 For the rest {sic} the man's life moved in a narrow and conventional circle,
23565 for his habits were quiet and his nature unemotional.
23566 Yet it was upon this easy-going young aristocrat that death came, in most
23567 strange and unexpected form, between the hours of ten and eleven-twenty
23568 on the night of March 30, 1894.
23576 \begin_layout Plain Layout
23579 Ronald Adair was fond of cards–playing continually, but never for such stakes
23581 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23582 It was shown that, after dinner on the day of his death, he had played
23583 a rubber of whist at the latter club.
23584 He had also played there in the afternoon.
23589 The evidence of those who had played with him– Mr.
23590 Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23591 and that there was a fairly equal fall of the cards.
23592 Adair might have lost five pounds, but not more.
23593 His fortune was a considerable one, and such a loss could not in any way
23595 He had played nearly every day at one club or other, but he was a cautious
23596 player, and usually rose a winner.
23597 It came out in evidence that, in partnership with Colonel Moran, he had
23598 actually won as much as four hundred and twenty pounds in a sitting, some
23599 weeks before, from Godfrey Milner and Lord Balmoral.
23600 So much for his recent history as it came out at the inquest.
23608 \begin_layout Subsection
23612 \begin_layout Standard
23613 本節の用例は,多段組のさらに特別な機能を示すためのものです.
23616 \begin_layout Standard
23617 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
23625 \begin_inset CommandInset href
23627 name "documentation"
23628 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
23638 \begin_layout Subsubsection
23642 \begin_layout Standard
23643 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
23645 挿入\SpecialChar menuseparator
23648 メニューを使用してください.序文は,この差込枠内に書いてください.
23649 \begin_inset Newline newline
23655 \begin_layout Standard
23656 \begin_inset VSpace bigskip
23662 \begin_layout Standard
23663 \begin_inset Flex Multiple Columns
23666 \begin_layout Plain Layout
23667 \begin_inset Argument 2
23670 \begin_layout Plain Layout
23671 And the story continues and continues and continues and continues\SpecialChar ldots
23679 On the evening of the crime, he returned from the club exactly at ten.
23680 His mother and sister were out spending the evening with a relation.
23681 The servant deposed that she heard him enter the front room on the second
23682 floor, generally used as his sitting-room.
23683 She had lit a fire there, and as it smoked she had opened the window.
23684 No sound was heard from the room until eleven-twenty, the hour of the return
23685 of Lady Maynooth and her daughter.
23686 Desiring to say good-night, she attempted to enter her son's room.
23687 The door was locked on the inside, and no answer could be got to their
23688 cries and knocking.
23689 Help was obtained, and the door forced.
23690 The unfortunate young man was found lying near the table.
23691 His head had been horribly mutilated by an expanding revolver bullet, but
23692 no weapon of any sort was to be found in the room.
23700 \begin_layout Standard
23701 最初の\SpecialChar TeX
23702 コードの後に,節宣言コマンドを\SpecialChar TeX
23703 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
23706 \begin_layout Standard
23714 \begin_layout Standard
23715 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
23718 \begin_layout Standard
23719 \begin_inset Flex Multiple Columns
23722 \begin_layout Plain Layout
23723 \begin_inset Argument 2
23726 \begin_layout Plain Layout
23730 \begin_layout Plain Layout
23743 \begin_layout Plain Layout
23757 A minute examination of the circumstances served only to make the case more
23759 In the first place, no reason could be given why the young man should have
23760 fastened the door upon the inside.
23761 There was the possibility that the murderer had done this, and had afterwards
23762 escaped by the window.
23763 The drop was at least twenty feet, however, and a bed of crocuses in full
23765 Neither the flowers nor the earth showed any sign of having been disturbed,
23766 nor were there any marks upon the narrow strip of grass which separated
23767 the house from the road.
23768 Apparently, therefore, it was the young man himself who had fastened the
23770 But how did he come by his death? No one could have climbed up to the window
23771 without leaving traces.
23772 Suppose a man had fired through the window, he would indeed be a remarkable
23773 shot who could with a revolver inflict so deadly a wound.
23774 Again, Park Lane is a frequented thoroughfare; there is a cab stand within
23775 a hundred yards of the house.
23776 No one had heard a shot.
23784 \begin_layout Standard
23785 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
23786 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
23788 挿入\SpecialChar menuseparator
23791 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
23794 \begin_layout Standard
23801 」を用いて,必要行数を7行に指定しています(コマンド
23808 コードとして入力する必要があります).
23811 \begin_layout Standard
23812 \begin_inset Flex Multiple Columns
23815 \begin_layout Plain Layout
23816 \begin_inset Argument 3
23819 \begin_layout Plain Layout
23824 \begin_layout Plain Layout
23840 On the evening of the crime, he returned from the club exactly at ten.
23841 His mother and sister were out spending the evening with a relation.
23842 The servant deposed that she heard him enter the front room on the second
23843 floor, generally used as his sitting-room.
23844 She had lit a fire there, and as it smoked she had opened the window.
23845 No sound was heard from the room until eleven-twenty, the hour of the return
23846 of Lady Maynooth and her daughter.
23847 Desiring to say good-night, she attempted to enter her son's room.
23848 The door was locked on the inside, and no answer could be got to their
23849 cries and knocking.
23850 Help was obtained, and the door forced.
23851 The unfortunate young man was found lying near the table.
23852 His head had been horribly mutilated by an expanding revolver bullet, but
23853 no weapon of any sort was to be found in the room.
23861 \begin_layout Subsubsection
23865 \begin_layout Standard
23873 multicolsepを変えることで変更することができます
23875 .例えば,\SpecialChar TeX
23879 \begin_layout LyX-Code
23889 \begin_layout Standard
23891 \begin_inset space \thinspace{}
23894 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23895 \begin_inset space \thinspace{}
23901 \begin_layout Standard
23912 \begin_inset space \thinspace{}
23918 \begin_layout Standard
23922 \begin_layout Plain Layout
23928 multicolsep}{2.5cm}
23936 \begin_layout Standard
23937 \begin_inset Flex Multiple Columns
23940 \begin_layout Plain Layout
23943 All day I turned these facts over in my mind, endeavouring to hit upon some
23944 theory which could reconcile them all, and to find that line of least resistanc
23945 e which my poor friend had declared to be the starting-point of every investigat
23947 I confess that I made little progress.
23948 In the evening I strolled across the Park, and found myself about six o'clock
23949 at the Oxford Street end of Park Lane.
23950 A group of loafers upon the pavements, all staring up at a particular window,
23951 directed me to the house which I had come to see.
23952 A tall, thin man with coloured glasses, whom I strongly suspected of being
23953 a plain-clothes detective, was pointing out some theory of his own, while
23954 the others crowded round to listen to what he said.
23955 I got as near him as I could, but his observations seemed to me to be absurd,
23956 so I withdrew again in some disgust.
23957 As I did so I struck against an elderly, deformed man, who had been behind
23958 me, and I knocked down several books which he was carrying.
23966 \begin_layout Standard
23967 \begin_inset Note Greyedout
23970 \begin_layout Plain Layout
23980 ,再度変更されるまでは,以降のすべての多段組で使用されます.
23988 \begin_layout Standard
23992 \begin_layout Plain Layout
24004 \begin_inset Note Note
24007 \begin_layout Plain Layout
24010 go back to the default
24018 \begin_layout Standard
24019 \begin_inset Newpage newpage
24025 \begin_layout Subsubsection
24029 \begin_layout Standard
24030 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
24040 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
24041 \begin_inset Newline newline
24047 \begin_layout Standard
24048 \begin_inset Flex Multiple Columns
24051 \begin_layout Plain Layout
24054 \begin_inset Quotes eld
24057 You're surprised to see me, sir,
24058 \begin_inset Quotes erd
24061 said he, in a strange, croaking voice.
24064 \begin_layout Plain Layout
24067 I acknowledged that I was.
24070 \begin_layout Plain Layout
24073 \begin_inset Quotes eld
24076 Well, I've a conscience, sir, and when I chanced to see you go into this
24077 house, as I came hobbling after you, I thought to myself, I'll just step
24078 in and see that kind gentleman, and tell him that if I was a bit gruff
24079 in my manner there was not any harm meant, and that I am much obliged to
24080 him for picking up my books.
24081 \begin_inset Quotes erd
24087 \begin_layout Plain Layout
24090 \begin_inset Quotes eld
24093 You make too much of a trifle,
24094 \begin_inset Quotes erd
24099 \begin_inset Quotes eld
24102 May I ask how you knew who I was?
24103 \begin_inset Quotes erd
24106 AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24110 \begin_layout Plain Layout
24122 \begin_layout Plain Layout
24125 \begin_inset Quotes eld
24128 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24129 you'll find my little bookshop at the corner of Church Street, and very
24130 happy to see you, I am sure.
24131 Maybe you collect yourself, sir.
24135 \begin_inset space ~
24148 –a bargain, every one of them.
24149 With five volumes you could just fill that gap on that second shelf.
24150 It looks untidy, does it not, sir?
24151 \begin_inset Quotes erd
24162 \begin_layout Subsubsection
24166 \begin_layout Standard
24167 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
24174 columnsepを変更することで実現できます
24177 \begin_inset space \thinspace{}
24190 \begin_inset space \thinspace{}
24196 \begin_layout Standard
24200 \begin_layout Plain Layout
24214 \begin_layout Standard
24215 \begin_inset Flex Multiple Columns
24218 \begin_layout Plain Layout
24221 My observations of No.
24222 \begin_inset space \space{}
24225 427 Park Lane did little to clear up the problem in which I was interested.
24226 The house was separated from the street by a low wall and railing, the
24227 whole not more than five feet high.
24228 It was perfectly easy, therefore, for anyone to get into the garden, but
24229 the window was entirely inaccessible, since there was no water pipe or
24230 anything which could help the most active man to climb it.
24231 More puzzled than ever, I retraced my steps to Kensington.
24232 I had not been in my study five minutes when the maid entered to say that
24233 a person desired to see me.
24234 To my astonishment it was none other than my strange old book collector,
24235 his sharp, wizened face peering out from a frame of white hair, and his
24236 precious volumes, a dozen of them at least, wedged under his right arm.
24244 \begin_layout Standard
24248 \begin_layout Plain Layout
24260 \begin_inset Note Note
24263 \begin_layout Plain Layout
24266 go back to the default
24274 \begin_layout Subsubsection
24278 \begin_layout Standard
24286 columnsepruleの幅を持つ罫線が描かれます
24289 \begin_inset space \thinspace{}
24292 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
24293 \begin_inset space \thinspace{}
24299 \begin_layout Standard
24303 \begin_layout Plain Layout
24309 columnseprule}{2pt}
24317 \begin_layout Standard
24318 \begin_inset Flex Multiple Columns
24321 \begin_layout Plain Layout
24324 \begin_inset Quotes eld
24327 You're surprised to see me, sir,
24328 \begin_inset Quotes erd
24331 said he, in a strange, croaking voice.
24334 \begin_layout Plain Layout
24337 I acknowledged that I was.
24340 \begin_layout Plain Layout
24343 \begin_inset Quotes eld
24346 Well, I've a conscience, sir, and when I chanced to see you go into this
24347 house, as I came hobbling after you, I thought to myself, I'll just step
24348 in and see that kind gentleman, and tell him that if I was a bit gruff
24349 in my manner there was not any harm meant, and that I am much obliged to
24350 him for picking up my books.
24351 \begin_inset Quotes erd
24357 \begin_layout Plain Layout
24360 \begin_inset Quotes eld
24363 You make too much of a trifle,
24364 \begin_inset Quotes erd
24369 \begin_inset Quotes eld
24372 May I ask how you knew who I was?
24373 \begin_inset Quotes erd
24379 \begin_layout Plain Layout
24382 \begin_inset Quotes eld
24385 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24386 you'll find my little bookshop at the corner of Church Street, and very
24387 happy to see you, I am sure.
24388 Maybe you collect yourself, sir.
24392 \begin_inset space ~
24405 –a bargain, every one of them.
24406 With five volumes you could just fill that gap on that second shelf.
24407 It looks untidy, does it not, sir?
24408 \begin_inset Quotes erd
24419 \begin_layout Standard
24420 \begin_inset VSpace defskip
24426 \begin_layout LyX-Code
24434 columnseprulecolorを再定義すれば
24436 ,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
24437 コードで以下のコマンドを挿入すれば,実現できます.
24438 \begin_inset Newline newline
24447 columnseprulecolor}{
24452 \begin_inset Newline newline
24457 このコマンド中のredをお好みの色に変更してください
24459 .既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
24467 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
24468 \begin_inset Newline newline
24477 columnseprulecolor}{
24482 \begin_inset Newline newline
24486 \begin_inset space \thinspace{}
24492 \begin_layout Standard
24496 \begin_layout Plain Layout
24505 \begin_layout Plain Layout
24511 columnseprulecolor}{
24521 \begin_layout Standard
24522 \begin_inset Flex Multiple Columns
24525 \begin_layout Plain Layout
24528 \begin_inset Quotes eld
24531 You're surprised to see me, sir,
24532 \begin_inset Quotes erd
24535 said he, in a strange, croaking voice.
24538 \begin_layout Plain Layout
24541 I acknowledged that I was.
24544 \begin_layout Plain Layout
24547 \begin_inset Quotes eld
24550 Well, I've a conscience, sir, and when I chanced to see you go into this
24551 house, as I came hobbling after you, I thought to myself, I'll just step
24552 in and see that kind gentleman, and tell him that if I was a bit gruff
24553 in my manner there was not any harm meant, and that I am much obliged to
24554 him for picking up my books.
24555 \begin_inset Quotes erd
24561 \begin_layout Plain Layout
24564 \begin_inset Quotes eld
24567 You make too much of a trifle,
24568 \begin_inset Quotes erd
24573 \begin_inset Quotes eld
24576 May I ask how you knew who I was?
24577 \begin_inset Quotes erd
24583 \begin_layout Plain Layout
24586 \begin_inset Quotes eld
24589 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24590 you'll find my little bookshop at the corner of Church Street, and very
24591 happy to see you, I am sure.
24592 Maybe you collect yourself, sir.
24596 \begin_inset space ~
24609 –a bargain, every one of them.
24610 With five volumes you could just fill that gap on that second shelf.
24611 It looks untidy, does it not, sir?
24612 \begin_inset Quotes erd
24623 \begin_layout Standard
24627 \begin_layout Plain Layout
24633 columnseprule}{0pt}
24636 \begin_layout Plain Layout
24642 columnseprulecolor}{
24650 \begin_inset Note Note
24653 \begin_layout Plain Layout
24656 go back to the default
24664 \begin_layout Standard
24665 \begin_inset Newpage newpage
24671 \begin_layout Section
24675 \begin_layout Standard
24678 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
24683 モジュールを読み込んで,\SpecialChar LaTeX
24686 パッケージshapeparを使用させるようにすれば
24691 \begin_layout Subsection
24695 \begin_layout Standard
24703 \begin_layout Standard
24704 \begin_inset Tabular
24705 <lyxtabular version="3" rows="13" columns="3">
24706 <features booktabs="true" islongtable="true" longtabularalignment="center">
24707 <column alignment="center" valignment="middle" width="16col%">
24708 <column alignment="center" valignment="middle" width="40col%">
24709 <column alignment="center" valignment="middle" width="35col%">
24710 <row endhead="true">
24711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24714 \begin_layout Plain Layout
24720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24723 \begin_layout Plain Layout
24729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24732 \begin_layout Plain Layout
24740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24743 \begin_layout Plain Layout
24749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24752 \begin_layout Plain Layout
24753 丸い穴の開いたドーナツ型(CD/DVD大)
24758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24761 \begin_layout Plain Layout
24762 伸縮不可.多くの文字を入れられないことに注意.
24769 <cell alignment="center" valignment="top" topline="true" usebox="none">
24772 \begin_layout Plain Layout
24778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24781 \begin_layout Plain Layout
24787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24790 \begin_layout Plain Layout
24798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24801 \begin_layout Plain Layout
24807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24810 \begin_layout Plain Layout
24812 \begin_inset Quotes eld
24816 \begin_inset Quotes erd
24824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24827 \begin_layout Plain Layout
24835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24838 \begin_layout Plain Layout
24844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24847 \begin_layout Plain Layout
24853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24856 \begin_layout Plain Layout
24864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24867 \begin_layout Plain Layout
24873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24876 \begin_layout Plain Layout
24882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24885 \begin_layout Plain Layout
24893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24896 \begin_layout Plain Layout
24902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24905 \begin_layout Plain Layout
24911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24914 \begin_layout Plain Layout
24922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24925 \begin_layout Plain Layout
24931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24934 \begin_layout Plain Layout
24940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24943 \begin_layout Plain Layout
24951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24954 \begin_layout Plain Layout
24960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24963 \begin_layout Plain Layout
24969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24972 \begin_layout Plain Layout
24980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24983 \begin_layout Plain Layout
24989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24992 \begin_layout Plain Layout
24998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25001 \begin_layout Plain Layout
25009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25012 \begin_layout Plain Layout
25018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25021 \begin_layout Plain Layout
25027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25030 \begin_layout Plain Layout
25038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25041 \begin_layout Plain Layout
25048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25051 \begin_layout Plain Layout
25058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25061 \begin_layout Plain Layout
25069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25072 \begin_layout Plain Layout
25074 \begin_inset Newline newline
25082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25085 \begin_layout Plain Layout
25091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25094 \begin_layout Plain Layout
25108 \begin_layout Standard
25109 段落に形を適用するには,\SpecialChar LyX
25110 ツールバー中の環境プルダウンボックスから形を選んでください.
25113 \begin_layout Standard
25114 \begin_inset Newpage newpage
25120 \begin_layout Standard
25124 \begin_layout Standard
25125 \begin_inset VSpace bigskip
25134 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25135 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25137 At vero eos et accusam et justo duo dolores et ea rebum.
25138 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25140 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25141 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25145 \begin_layout Standard
25146 \begin_inset VSpace bigskip
25152 \begin_layout Standard
25153 \begin_inset Note Greyedout
25156 \begin_layout Plain Layout
25162 shapepar段落は改頁にまたがることはできません
25172 \begin_layout Standard
25173 \begin_inset VSpace bigskip
25179 \begin_layout Standard
25184 ,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ余
25185 白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
25188 \begin_layout Standard
25189 \begin_inset Newpage newpage
25198 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25199 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25201 At vero eos et accusam et justo duo dolores et ea rebum.
25202 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25204 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25205 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25207 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25208 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25210 At vero eos et accusam et justo duo dolores et ea rebum.
25211 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25213 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25214 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25218 \begin_layout Standard
25219 \begin_inset VSpace bigskip
25225 \begin_layout Standard
25230 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
25231 \begin_inset Newline newline
25242 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
25243 \begin_inset Quotes eld
25246 Arithmetic overflow
25247 \begin_inset Quotes erd
25250 という\SpecialChar LaTeX
25251 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
25254 \begin_layout Standard
25255 \begin_inset VSpace bigskip
25261 \begin_layout Standard
25262 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
25263 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
25268 arg "specialchar-insert hyphenation"
25273 )を指定することが往々にして必要になります.
25276 \begin_layout Standard
25277 \begin_inset VSpace bigskip
25283 \begin_layout Standard
25284 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
25285 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
25286 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
25287 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
25290 \begin_layout Standard
25291 \begin_inset Newpage newpage
25297 \begin_layout Heart
25301 Lo\SpecialChar softhyphen
25302 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25303 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25305 At vero eos et accusam et justo duo dolores et ea rebum.
25306 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25310 \begin_layout Standard
25311 \begin_inset VSpace bigskip
25317 \begin_layout Standard
25320 \begin_inset Box Frameless
25330 height_special "totalheight"
25335 backgroundcolor "none"
25338 \begin_layout Heart
25342 Lo\SpecialChar softhyphen
25343 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25344 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25346 At vero eos et accusam et justo duo dolores et ea rebum.
25347 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25356 \begin_layout Subsection
25360 \begin_layout Standard
25361 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
25362 ように,コンピューターに座標を計算させる方法もあります.
25365 \begin_layout Enumerate
25367 \begin_inset CommandInset href
25370 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
25378 \begin_layout Enumerate
25385 TeX/LaTeX\SpecialChar menuseparator
25386 Settings\SpecialChar menuseparator
25389 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
25390 \begin_inset space \thinspace{}
25396 \begin_layout Enumerate
25400 \begin_layout Enumerate
25403 TeX/LaTeX\SpecialChar menuseparator
25406 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
25410 \begin_layout Plain Layout
25412 \begin_inset CommandInset href
25414 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
25427 \begin_layout Standard
25428 座標は\SpecialChar TeX
25429 ファイルに書き込まれます.これを\SpecialChar LyX
25433 \begin_layout Enumerate
25434 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
25437 \begin_layout Enumerate
25441 挿入\SpecialChar menuseparator
25442 ファイル\SpecialChar menuseparator
25456 \begin_layout Standard
25457 \begin_inset VSpace defskip
25463 \begin_layout Standard
25464 \begin_inset Note Greyedout
25467 \begin_layout Plain Layout
25472 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
25480 \begin_layout Standard
25481 \begin_inset VSpace bigskip
25487 \begin_layout Standard
25491 \begin_layout Standard
25492 \begin_inset VSpace bigskip
25498 \begin_layout Standard
25499 \begin_inset CommandInset include
25501 filename "../SpecialParagraphShape.tex"
25507 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25508 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25510 At vero eos et accusam et justo duo dolores et ea rebum.
25511 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25513 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25514 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25518 \begin_layout Standard
25519 \begin_inset VSpace bigskip
25525 \begin_layout Standard
25533 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
25537 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
25540 \begin_layout Standard
25541 \begin_inset VSpace bigskip
25547 \begin_layout Standard
25560 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
25564 \begin_layout Plain Layout
25565 これらのコマンドは,上述の全ての形で内部的に使用されています.
25570 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
25572 shapeparパッケージの取扱説明書
25578 \begin_inset CommandInset href
25580 name "documentation"
25581 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"