1 #LyX 2.2 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 this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
36 \maintain_unincluded_children false
39 InsetLayout Flex:MenuItem
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
58 #\renewcommand{\code}[1]{{\sffamily #1}}
67 Decoration Conglomerate
71 Decoration Conglomerate
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
89 \language_package default
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
103 \default_output_format pdf3
105 \bibtex_command default
106 \index_command default
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
137 \cite_engine_type default
141 \paperorientation portrait
145 \notefontcolor #0000ff
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
175 \begin_inset Newline newline
187 \begin_layout Plain Layout
189 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
191 \begin_inset CommandInset href
193 target "lyx-docs@lists.lyx.org"
198 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください.
205 \begin_inset Newline newline
209 \begin_inset Newline newline
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
222 \begin_inset Note Note
225 \begin_layout Plain Layout
226 本文書を修正する際には,変更追跡機能を使用してください.これによって,
229 \begin_layout Plain Layout
231 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
239 \begin_layout Chapter
243 \begin_layout Standard
244 この取扱説明書は,\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います.ここでは,
246 \begin_inset Flex Ruby
249 \begin_layout Plain Layout
251 \begin_inset Argument post:1
254 \begin_layout Plain Layout
265 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
269 レイアウトの導入などの題材について論じます.おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
271 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
274 \begin_layout Standard
275 \begin_inset Branch OutDated
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280 outdated is contained in the OutDated branch of this document.
281 By default, this information will not appear in the \SpecialChar LaTeX
290 \begin_layout Chapter
295 \begin_layout Standard
296 本章の目的は,\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
298 \begin_inset Flex MenuItem
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
308 を使って,\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです.一
311 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
312 \begin_inset Flex Code
315 \begin_layout Plain Layout
322 \begin_inset Flex MenuItem
325 \begin_layout Plain Layout
334 \begin_layout Section
335 \begin_inset Flex Code
338 \begin_layout Plain Layout
347 \begin_layout Standard
348 \begin_inset Flex Code
351 \begin_layout Plain Layout
357 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
358 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
360 \begin_inset Flex MenuItem
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
370 ダイアログから変更することができます.\SpecialChar LyX
371 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
373 \begin_inset Flex Code
376 \begin_layout Plain Layout
382 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
385 \begin_layout Subsection
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
393 \begin_layout Plain Layout
399 にある各ファイルは,\SpecialChar LyX
400 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
401 うので,一般的には修正しないことが望まれます.
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
409 \begin_layout Plain Layout
415 このファイルには,様々な既定コマンドが置かれています.
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
423 \begin_layout Plain Layout
429 このファイルには,\SpecialChar LyX
430 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
431 プログラム自体には使用されていませんが,抽出された情報その他は,
432 \begin_inset Flex MenuItem
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
445 \begin_layout Labeling
446 \labelwidthstring 00.00.0000
447 \begin_inset Flex Code
450 \begin_layout Plain Layout
457 \begin_inset Flex Code
460 \begin_layout Plain Layout
466 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
470 \begin_layout Labeling
471 \labelwidthstring 00.00.0000
472 \begin_inset Flex Code
475 \begin_layout Plain Layout
482 \begin_inset Flex Code
485 \begin_layout Plain Layout
491 ディレクトリで検出されたレイアウトモジュールの一覧です.
494 \begin_layout Labeling
495 \labelwidthstring 00.00.0000
496 \begin_inset Flex Code
499 \begin_layout Plain Layout
505 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
509 \begin_layout Labeling
510 \labelwidthstring 00.00.0000
511 \begin_inset Flex Code
514 \begin_layout Plain Layout
521 \begin_inset Flex Code
524 \begin_layout Plain Layout
530 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
534 \begin_layout Subsection
538 \begin_layout Standard
540 \begin_inset Flex Code
543 \begin_layout Plain Layout
550 \begin_inset Flex Code
553 \begin_layout Plain Layout
559 に重複して存在します.特定のファイルが両方の場所にある場合には,
560 \begin_inset Flex Code
563 \begin_layout Plain Layout
572 \begin_layout Labeling
573 \labelwidthstring 00.00.0000
574 \begin_inset Flex Code
577 \begin_layout Plain Layout
583 このディレクトリには,\SpecialChar LyX
584 で使用されるキー割当を定義している,拡張子が
585 \begin_inset Flex Code
588 \begin_layout Plain Layout
595 \begin_inset Flex Code
598 \begin_layout Plain Layout
604 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
607 \begin_layout Labeling
608 \labelwidthstring 00.00.0000
609 \begin_inset Flex Code
612 \begin_layout Plain Layout
618 このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
621 \begin_layout Labeling
622 \labelwidthstring 00.00.0000
623 \begin_inset Flex Code
626 \begin_layout Plain Layout
632 このディレクトリには,\SpecialChar LyX
633 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
634 \begin_inset Flex Code
637 \begin_layout Plain Layout
643 ファイルは特に注目に値します.各国語版のヘルプ文書は,
644 \begin_inset Flex Code
647 \begin_layout Plain Layout
653 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
654 \begin_inset CommandInset ref
656 reference "cha:LyXの各国語対応"
663 \begin_layout Labeling
664 \labelwidthstring 00.00.0000
665 \begin_inset Flex Code
668 \begin_layout Plain Layout
674 このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
675 \begin_inset Flex MenuItem
678 \begin_layout Plain Layout
684 ボタンを押すと,このディレクトリが表示されます.
687 \begin_layout Labeling
688 \labelwidthstring 00.00.0000
689 \begin_inset Flex Code
692 \begin_layout Plain Layout
699 \begin_inset Flex MenuItem
702 \begin_layout Plain Layout
708 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
709 を起動したときに現れるバナーも納められています.
712 \begin_layout Labeling
713 \labelwidthstring 00.00.0000
714 \begin_inset Flex Code
717 \begin_layout Plain Layout
723 このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
724 \begin_inset CommandInset ref
726 reference "sec:国際キー配列"
733 \begin_layout Labeling
734 \labelwidthstring 00.00.0000
735 \begin_inset Flex Code
738 \begin_layout Plain Layout
745 \begin_inset CommandInset ref
747 reference "cha:新規文書を導入"
751 に述べられているテキストクラスおよびモジュールのファイルが納められています.
754 \begin_layout Labeling
755 \labelwidthstring 00.00.0000
756 \begin_inset Flex Code
759 \begin_layout Plain Layout
765 このディレクトリには,\SpecialChar LyX
767 \begin_inset Flex Code
770 \begin_layout Plain Layout
776 Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
779 \begin_layout Labeling
780 \labelwidthstring 00.00.0000
781 \begin_inset Flex Code
784 \begin_layout Plain Layout
791 \begin_inset Flex MenuItem
794 \begin_layout Plain Layout
800 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
801 自身が使用するスクリプトもいくつか収められています.
804 \begin_layout Labeling
805 \labelwidthstring 00.00.0000
806 \begin_inset Flex Code
809 \begin_layout Plain Layout
816 \begin_inset CommandInset ref
818 reference "sec:ひな型を作成する"
822 で述べられている標準の\SpecialChar LyX
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
831 \begin_layout Plain Layout
837 このディレクトリには,\SpecialChar LyX
839 \begin_inset Flex Code
842 \begin_layout Plain Layout
848 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
851 \begin_layout Subsection
855 \begin_layout Standard
856 これらのファイルは\SpecialChar LyX
857 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
860 \begin_layout Labeling
861 \labelwidthstring 00.00.0000
862 \begin_inset Flex Code
865 \begin_layout Plain Layout
871 このファイルは,\SpecialChar LyX
872 開発陣の名簿です.この内容は,メニュー項目
873 \begin_inset Flex MenuItem
876 \begin_layout Plain Layout
877 ヘルプ\SpecialChar menuseparator
886 \begin_layout Labeling
887 \labelwidthstring 00.00.0000
888 \begin_inset Flex Code
891 \begin_layout Plain Layout
897 これは,自動設定プロセスによって使用される\SpecialChar LaTeX
898 スクリプトです.直接実行しないでください.
901 \begin_layout Labeling
902 \labelwidthstring 00.00.0000
903 \begin_inset Flex Code
906 \begin_layout Plain Layout
913 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
916 \begin_layout Subsection
920 \begin_layout Labeling
921 \labelwidthstring 00.00.0000
922 \begin_inset Flex Code
925 \begin_layout Plain Layout
931 このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
939 \begin_layout Plain Layout
946 \begin_inset Flex MenuItem
949 \begin_layout Plain Layout
956 \begin_inset CommandInset ref
958 reference "chap:外部素材を取り込む"
965 \begin_layout Labeling
966 \labelwidthstring 00.00.0000
967 \begin_inset Flex Code
970 \begin_layout Plain Layout
976 このファイルには,現在\SpecialChar LyX
977 がサポートしている言語の全一覧が載っています.
980 \begin_layout Labeling
981 \labelwidthstring 00.00.0000
982 \begin_inset Flex Code
985 \begin_layout Plain Layout
991 サポートされているフォントに関する情報が掲載されています.
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
999 \begin_layout Plain Layout
1005 このファイルは,国際化された段落様式の翻訳が収録されています(
1006 \begin_inset CommandInset ref
1008 reference "subsec:段落様式の国際化"
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1020 \begin_layout Plain Layout
1026 このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1028 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1031 \begin_layout Section
1035 \begin_layout Standard
1037 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1038 の設定を変更したいと思うかもしれません.
1039 \begin_inset Flex Code
1042 \begin_layout Plain Layout
1048 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1049 \begin_inset Flex MenuItem
1052 \begin_layout Plain Layout
1053 ヘルプ\SpecialChar menuseparator
1059 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1060 \begin_inset Flex Code
1063 \begin_layout Plain Layout
1070 \begin_inset Flex Code
1073 \begin_layout Plain Layout
1080 \begin_inset Flex Code
1083 \begin_layout Plain Layout
1089 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1092 \begin_layout Standard
1093 わかりやすくするために,いくつか例を挙げましょう.
1096 \begin_layout Itemize
1097 \begin_inset Flex MenuItem
1100 \begin_layout Plain Layout
1101 ツール\SpecialChar menuseparator
1108 \begin_inset Flex Code
1111 \begin_layout Plain Layout
1118 \begin_inset Flex Code
1121 \begin_layout Plain Layout
1130 \begin_layout Itemize
1131 \begin_inset Flex MenuItem
1134 \begin_layout Plain Layout
1135 ツール\SpecialChar menuseparator
1141 を使用して環境構成を行うと,\SpecialChar LyX
1143 \begin_inset Flex Code
1146 \begin_layout Plain Layout
1152 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1153 \begin_inset Flex Code
1156 \begin_layout Plain Layout
1163 \begin_inset Flex MenuItem
1166 \begin_layout Plain Layout
1167 文書\SpecialChar menuseparator
1173 ダイアログのクラス一覧に表示されるようになることを意味します.
1176 \begin_layout Itemize
1177 たとえば,\SpecialChar LyX
1178 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1180 \begin_inset Flex Code
1183 \begin_layout Plain Layout
1190 \begin_inset Flex MenuItem
1193 \begin_layout Plain Layout
1199 メニュー項目はこれらを開くようになります!
1202 \begin_layout Section
1207 \begin_layout Standard
1208 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1209 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1210 どのディレクトリを使用するか指定するのです.
1213 \begin_layout Standard
1216 \begin_inset Flex Code
1219 \begin_layout Plain Layout
1229 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1231 \begin_inset Flex Code
1234 \begin_layout Plain Layout
1240 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1241 は,初めて\SpecialChar LyX
1243 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1244 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1245 \begin_inset Flex Code
1248 \begin_layout Plain Layout
1254 を特定の値に設定しても,全く同じ効果があります.
1257 \begin_layout Standard
1258 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1259 \begin_inset Flex Code
1262 \begin_layout Plain Layout
1268 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1269 クを使用してください.\SpecialChar LyX
1270 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1271 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1272 \begin_inset Flex Code
1275 \begin_layout Plain Layout
1282 \begin_inset Flex MenuItem
1285 \begin_layout Plain Layout
1286 ツール\SpecialChar menuseparator
1292 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1295 \begin_layout Chapter
1299 \begin_layout Standard
1308 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1311 \begin_layout Section
1313 \begin_inset CommandInset label
1322 \begin_layout Standard
1323 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1324 \begin_inset Flex MenuItem
1327 \begin_layout Plain Layout
1328 ツール\SpecialChar menuseparator
1335 \begin_inset Flex MenuItem
1338 \begin_layout Plain Layout
1339 ファイル処理\SpecialChar menuseparator
1346 \begin_inset Flex MenuItem
1349 \begin_layout Plain Layout
1350 新規\SpecialChar ldots
1356 ボタンを押して,登録する新しい形式を定義してください.
1357 \begin_inset Flex MenuItem
1360 \begin_layout Plain Layout
1366 フィールドは,GUI中で形式を認識するために用いられる名称です.
1367 \begin_inset Flex MenuItem
1370 \begin_layout Plain Layout
1376 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1377 \begin_inset Flex MenuItem
1380 \begin_layout Plain Layout
1387 \begin_inset Flex Ruby
1390 \begin_layout Plain Layout
1392 \begin_inset Argument post:1
1395 \begin_layout Plain Layout
1407 \begin_inset Flex MenuItem
1410 \begin_layout Plain Layout
1417 \begin_inset Flex MenuItem
1420 \begin_layout Plain Layout
1421 表示\SpecialChar menuseparator
1430 \begin_layout Standard
1432 \begin_inset Flex MenuItem
1435 \begin_layout Plain Layout
1442 \begin_inset Flex MenuItem
1445 \begin_layout Plain Layout
1451 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1452 \begin_inset Flex MenuItem
1455 \begin_layout Plain Layout
1461 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1462 いることができます.この閲覧プログラムは,\SpecialChar LyX
1464 \begin_inset Flex MenuItem
1467 \begin_layout Plain Layout
1473 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1474 \begin_inset Flex MenuItem
1477 \begin_layout Plain Layout
1486 \begin_layout Standard
1488 \begin_inset Flex MenuItem
1491 \begin_layout Plain Layout
1497 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1499 \begin_inset CommandInset href
1502 target "http://www.iana.org/assignments/media-types/"
1506 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1508 \begin_inset CommandInset href
1510 name "freedesktop.org"
1511 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1515 で指定されているMIME型拡張表を使用しています.
1518 \begin_layout Standard
1519 \begin_inset Flex MenuItem
1522 \begin_layout Plain Layout
1528 オプションは,\SpecialChar LyX
1529 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1530 \begin_inset CommandInset ref
1537 \begin_inset Flex MenuItem
1540 \begin_layout Plain Layout
1541 ファイル\SpecialChar menuseparator
1548 \begin_inset Flex MenuItem
1551 \begin_layout Plain Layout
1557 footlabel Label color for footnotす.
1558 \begin_inset Flex Code
1561 \begin_layout Plain Layout
1567 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1568 \begin_inset Flex Code
1571 \begin_layout Plain Layout
1577 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1580 \begin_layout Standard
1581 \begin_inset Flex MenuItem
1584 \begin_layout Plain Layout
1590 オプションは,\SpecialChar LyX
1591 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1592 \begin_inset Flex MenuItem
1595 \begin_layout Plain Layout
1601 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1602 \begin_inset Flex MenuItem
1605 \begin_layout Plain Layout
1612 \begin_inset Flex MenuItem
1615 \begin_layout Plain Layout
1622 \begin_inset Flex MenuItem
1625 \begin_layout Plain Layout
1632 \begin_inset Flex MenuItem
1635 \begin_layout Plain Layout
1641 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1642 \begin_inset Flex MenuItem
1645 \begin_layout Plain Layout
1652 \begin_inset Flex MenuItem
1655 \begin_layout Plain Layout
1662 \begin_inset Flex MenuItem
1665 \begin_layout Plain Layout
1671 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1672 \begin_inset Flex MenuItem
1675 \begin_layout Plain Layout
1682 \begin_inset Flex MenuItem
1685 \begin_layout Plain Layout
1694 \begin_layout Section
1698 \begin_layout Standard
1699 形式の変換はすべて,\SpecialChar LyX
1700 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1704 \begin_layout Plain Layout
1705 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1711 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1714 \begin_layout Standard
1715 複写子の定義においては,以下の8つの変数を用いることができます.
1718 \begin_layout Labeling
1719 \labelwidthstring 00.00.0000
1720 \begin_inset Flex Code
1723 \begin_layout Plain Layout
1731 \begin_inset Flex MenuItem
1734 \begin_layout Plain Layout
1743 \begin_layout Labeling
1744 \labelwidthstring 00.00.0000
1745 \begin_inset Flex Code
1748 \begin_layout Plain Layout
1757 \begin_layout Labeling
1758 \labelwidthstring 00.00.0000
1759 \begin_inset Flex Code
1762 \begin_layout Plain Layout
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1773 \begin_inset Flex Code
1776 \begin_layout Plain Layout
1783 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1786 \begin_layout Labeling
1787 \labelwidthstring 00.00.0000
1788 \begin_inset Flex Code
1791 \begin_layout Plain Layout
1801 \begin_layout Labeling
1802 \labelwidthstring 00.00.0000
1803 \begin_inset Flex Code
1806 \begin_layout Plain Layout
1812 処理されている元の\SpecialChar LyX
1816 \begin_layout Labeling
1817 \labelwidthstring 00.00.0000
1818 \begin_inset Flex Code
1821 \begin_layout Plain Layout
1828 ファイルのファイル名(ディレクトリパスなし)
1831 \begin_layout Labeling
1832 \labelwidthstring 00.00.0000
1833 \begin_inset Flex Code
1836 \begin_layout Plain Layout
1846 \begin_layout Standard
1847 最後の変数は,\SpecialChar LaTeX
1854 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1857 \begin_layout Standard
1858 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1859 \begin_inset Flex Code
1862 \begin_layout Plain Layout
1868 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1871 \begin_layout Standard
1872 \begin_inset listings
1876 \begin_layout Plain Layout
1881 \begin_layout Plain Layout
1886 \begin_layout Plain Layout
1888 TOFILE=`basename $2`
1891 \begin_layout Plain Layout
1893 DescriptionE /home/you/pdf/$TOFILE
1899 \begin_inset Flex Code
1902 \begin_layout Plain Layout
1903 /home/you/.lyx/scripts/pdfcopier.sh
1908 のような,自身のローカル\SpecialChar LyX
1909 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1910 \begin_inset Flex MenuItem
1913 \begin_layout Plain Layout
1914 ツール\SpecialChar menuseparator
1921 \begin_inset Flex MenuItem
1924 \begin_layout Plain Layout
1925 ファイル処理\SpecialChar menuseparator
1932 \begin_inset Flex MenuItem
1935 \begin_layout Plain Layout
1941 形式—あるいは他のPDF形式のうちどれか—を選択し,
1942 \begin_inset Flex MenuItem
1945 \begin_layout Plain Layout
1952 \begin_inset Flex Code
1955 \begin_layout Plain Layout
1956 pdfcopier.sh $$i $$o
1964 \begin_layout Standard
1965 複写子は,\SpecialChar LyX
1966 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
1968 \begin_inset Flex MenuItem
1971 \begin_layout Plain Layout
1978 \begin_inset Flex MenuItem
1981 \begin_layout Plain Layout
1983 \begin_inset space ~
1991 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1992 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
1993 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
1997 \begin_layout Plain Layout
1998 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
1999 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2000 \begin_inset Flex MenuItem
2003 \begin_layout Plain Layout
2010 \begin_inset Flex MenuItem
2013 \begin_layout Plain Layout
2014 /path/to/filename.lyx
2020 \begin_inset Flex MenuItem
2023 \begin_layout Plain Layout
2024 /path/to/filename.html.LyXconv
2038 \begin_layout Section
2040 \begin_inset CommandInset label
2049 \begin_layout Standard
2050 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2051 \begin_inset Flex MenuItem
2054 \begin_layout Plain Layout
2055 ツール\SpecialChar menuseparator
2056 設定\SpecialChar menuseparator
2057 ファイル処理\SpecialChar menuseparator
2066 \begin_layout Standard
2067 新規に変換子を定義するには,ドロップダウンリストから
2068 \begin_inset Flex MenuItem
2071 \begin_layout Plain Layout
2078 \begin_inset Flex MenuItem
2081 \begin_layout Plain Layout
2087 を選択し,変換に必要なコマンドを入力してから
2088 \begin_inset Flex MenuItem
2091 \begin_layout Plain Layout
2097 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2100 \begin_layout Labeling
2101 \labelwidthstring 00.00.0000
2102 \begin_inset Flex Code
2105 \begin_layout Plain Layout
2115 \begin_layout Labeling
2116 \labelwidthstring 00.00.0000
2117 \begin_inset Flex Code
2120 \begin_layout Plain Layout
2129 \begin_layout Labeling
2130 \labelwidthstring 00.00.0000
2131 \begin_inset Flex Code
2134 \begin_layout Plain Layout
2143 \begin_layout Labeling
2144 \labelwidthstring 00.00.0000
2145 \begin_inset Flex Code
2148 \begin_layout Plain Layout
2154 入力ファイルのベースファイル名(拡張子をとった部分)
2157 \begin_layout Labeling
2158 \labelwidthstring 00.00.0000
2159 \begin_inset Flex Code
2162 \begin_layout Plain Layout
2171 \begin_layout Labeling
2172 \labelwidthstring 00.00.0000
2173 \begin_inset Flex Code
2176 \begin_layout Plain Layout
2182 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2185 \begin_layout Labeling
2186 \labelwidthstring 00.00.0000
2187 \begin_inset Flex Code
2190 \begin_layout Plain Layout
2199 \begin_layout Standard
2200 \begin_inset Flex MenuItem
2203 \begin_layout Plain Layout
2209 フィールドには,以下のフラグをコンマで区切って入力することができます.
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2217 \begin_layout Plain Layout
2223 この変換子が\SpecialChar LaTeX
2224 の一種を実行することを示します.これによって,\SpecialChar LyX
2226 エラーログに記録を残せるようになります.
2229 \begin_layout Labeling
2230 \labelwidthstring 00.00.0000
2231 \begin_inset Flex Code
2234 \begin_layout Plain Layout
2240 変換に\SpecialChar LaTeX
2242 \begin_inset Flex MenuItem
2245 \begin_layout Plain Layout
2254 \begin_layout Labeling
2255 \labelwidthstring 00.00.0000
2256 \begin_inset Flex Code
2259 \begin_layout Plain Layout
2266 \begin_inset Quotes erd
2270 \begin_inset Quotes erd
2273 なファイル,つまり\SpecialChar LyX
2274 が書き出す\SpecialChar LaTeX
2276 \begin_inset Flex Code
2279 \begin_layout Plain Layout
2285 のない\SpecialChar LaTeX
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Flex Code
2294 \begin_layout Plain Layout
2303 \begin_layout Standard
2305 \begin_inset Flex MenuItem
2308 \begin_layout Plain Layout
2310 \begin_inset space ~
2314 \begin_inset space ~
2322 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2325 \begin_layout Labeling
2326 \labelwidthstring 00.00.0000
2327 \begin_inset Flex Code
2330 \begin_layout Plain Layout
2337 \begin_inset Flex Code
2340 \begin_layout Plain Layout
2346 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2347 \begin_inset Flex Code
2350 \begin_layout Plain Layout
2351 script < infile.out > infile.log
2356 の形で実行されるようになります.引数には
2357 \begin_inset Flex Code
2360 \begin_layout Plain Layout
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Flex Code
2374 \begin_layout Plain Layout
2380 これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2381 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2383 \begin_inset Flex Code
2386 \begin_layout Plain Layout
2392 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2393 \begin_inset Newline newline
2396 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2399 \begin_layout Labeling
2400 \labelwidthstring 00.00.0000
2401 \begin_inset Flex Code
2404 \begin_layout Plain Layout
2411 \begin_inset Flex Code
2414 \begin_layout Plain Layout
2420 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2423 \begin_layout Standard
2424 最後の3つは,\SpecialChar LyX
2425 とともに導入される変換子には,現在いずれも使用されておりません.
2428 \begin_layout Standard
2429 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2430 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2432 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2433 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2434 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2435 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2436 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2437 設定は,\SpecialChar LaTeX
2438 からPDFへ変換するのに,以下の3つの方法を
2442 \begin_layout Enumerate
2444 \begin_inset Flex MenuItem
2447 \begin_layout Plain Layout
2456 \begin_layout Enumerate
2457 (DVIと)PostScriptを経由して
2458 \begin_inset Flex MenuItem
2461 \begin_layout Plain Layout
2470 \begin_layout Enumerate
2472 \begin_inset Flex MenuItem
2475 \begin_layout Plain Layout
2484 \begin_layout Enumerate
2486 \begin_inset Flex MenuItem
2489 \begin_layout Plain Layout
2499 \begin_layout Enumerate
2501 \begin_inset Flex MenuItem
2504 \begin_layout Plain Layout
2514 \begin_layout Standard
2516 \begin_inset CommandInset ref
2518 reference "sec:ファイル形式"
2522 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2523 \begin_inset Flex MenuItem
2526 \begin_layout Plain Layout
2533 \begin_inset Flex MenuItem
2536 \begin_layout Plain Layout
2543 \begin_inset Flex MenuItem
2546 \begin_layout Plain Layout
2553 \begin_inset Flex MenuItem
2556 \begin_layout Plain Layout
2563 \begin_inset Flex MenuItem
2566 \begin_layout Plain Layout
2573 \begin_inset Flex MenuItem
2576 \begin_layout Plain Layout
2583 \begin_inset Flex MenuItem
2586 \begin_layout Plain Layout
2593 \begin_inset Flex MenuItem
2596 \begin_layout Plain Layout
2604 \begin_inset Flex MenuItem
2607 \begin_layout Plain Layout
2614 \begin_inset Flex MenuItem
2617 \begin_layout Plain Layout
2624 用\SpecialChar softhyphen
2625 ) と命名された形式が定義されていて,すべて共通の拡張子
2626 \begin_inset Flex MenuItem
2629 \begin_layout Plain Layout
2635 を持ち,上記で言及した各変換方法に対応しています.
2638 \begin_layout Chapter
2641 \begin_inset CommandInset label
2643 name "cha:LyXの各国語対応"
2650 \begin_layout Standard
2652 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2653 は30言語の翻訳を提供しています.選択した言語は,使用する
2657 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2658 \begin_inset Flex Code
2661 \begin_layout Plain Layout
2670 \begin_layout Standard
2671 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2672 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2673 \begin_inset Flex Ruby
2676 \begin_layout Plain Layout
2678 \begin_inset Argument post:1
2681 \begin_layout Plain Layout
2692 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2693 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2697 \begin_layout Plain Layout
2698 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2699 コミュニティに報いるたいへん素晴らしい方法です!
2705 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2708 \begin_layout Section
2713 \begin_layout Subsection
2714 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2715 \begin_inset Argument 1
2718 \begin_layout Plain Layout
2727 \begin_layout Standard
2730 \begin_inset Flex Code
2733 \begin_layout Plain Layout
2739 ライブラリを使用します.\SpecialChar LyX
2740 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2741 \begin_inset Flex Code
2744 \begin_layout Plain Layout
2750 ファイルが必要です.このファイルが利用可能であれば,そこから
2751 \begin_inset Flex Code
2754 \begin_layout Plain Layout
2761 \begin_inset Flex Code
2764 \begin_layout Plain Layout
2770 ファイルをインストールしなくてはなりません.この全過程は,GNU
2771 \begin_inset Flex Code
2774 \begin_layout Plain Layout
2780 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2782 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2783 開発者メーリングリストにメールを送ってください.
2786 \begin_layout Standard
2787 要約すれば,以下のように行います(xxは言語コードを表します).
2790 \begin_layout Itemize
2792 ソースコードをチェックアウトしてください(
2793 \begin_inset CommandInset href
2796 target "http://www.lyx.org/HowToUseGIT"
2803 \begin_layout Itemize
2804 \begin_inset Flex Code
2807 \begin_layout Plain Layout
2814 \begin_inset Flex Code
2817 \begin_layout Plain Layout
2824 \begin_inset Flex Code
2827 \begin_layout Plain Layout
2834 \begin_inset Flex Code
2837 \begin_layout Plain Layout
2843 がどこにもない場合には,コンソールからそのディレクトリで
2844 \begin_inset Flex Code
2847 \begin_layout Plain Layout
2853 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2856 \begin_layout Itemize
2857 \begin_inset Flex Code
2860 \begin_layout Plain Layout
2870 \begin_layout Plain Layout
2871 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2879 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2884 \begin_inset Flex Code
2887 \begin_layout Plain Layout
2893 ファイルを編集するための「モード」があります,第
2894 \begin_inset Flex URL
2897 \begin_layout Plain Layout
2899 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2911 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2912 \begin_inset Flex Ruby
2915 \begin_layout Plain Layout
2917 \begin_inset Argument post:1
2920 \begin_layout Plain Layout
2931 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2932 \begin_inset Flex Code
2935 \begin_layout Plain Layout
2941 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2944 \begin_layout Standard
2945 もし,あなたがこれを自身のためだけに行っているのであれば,
2948 \begin_layout Itemize
2949 \begin_inset Flex Code
2952 \begin_layout Plain Layout
2959 \begin_inset Flex Code
2962 \begin_layout Plain Layout
2963 msgfmt -o xx.mo < xx.po
2971 \begin_layout Itemize
2973 \begin_inset Flex Code
2976 \begin_layout Plain Layout
2982 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
2983 \begin_inset Flex Code
2986 \begin_layout Plain Layout
2993 \begin_inset Flex Code
2996 \begin_layout Plain Layout
2997 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3005 \begin_layout Standard
3007 \begin_inset Flex Code
3010 \begin_layout Plain Layout
3016 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3017 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3018 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3022 \begin_layout Subsubsection
3026 \begin_layout Standard
3027 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3028 \begin_inset Flex Code
3031 \begin_layout Plain Layout
3037 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3038 \begin_inset Flex Code
3041 \begin_layout Plain Layout
3048 \begin_inset Flex Code
3051 \begin_layout Plain Layout
3058 \begin_inset Flex Code
3061 \begin_layout Plain Layout
3062 To[[as in 'From format x to format y']]
3068 \begin_inset Flex Code
3071 \begin_layout Plain Layout
3072 To[[as in 'From page x to page y']]
3077 としなくてはなりません.これによって,これら2つの
3078 \begin_inset Flex Code
3081 \begin_layout Plain Layout
3088 \begin_inset Flex Code
3091 \begin_layout Plain Layout
3097 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3100 \begin_layout Standard
3101 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3103 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3106 \begin_layout Subsection
3110 \begin_layout Standard
3112 \begin_inset Flex MenuItem
3115 \begin_layout Plain Layout
3121 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3125 \begin_layout Plain Layout
3126 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3131 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3132 はこれを自動的に使用します.\SpecialChar LyX
3134 \begin_inset Flex Code
3137 \begin_layout Plain Layout
3138 LyXDir/doc/xx/DocName.lyx
3144 \begin_inset Flex Code
3147 \begin_layout Plain Layout
3153 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3154 \begin_inset Flex Code
3157 \begin_layout Plain Layout
3163 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3167 \begin_layout Itemize
3169 \begin_inset CommandInset href
3171 name "http://www.lyx.org/Translation"
3172 target "http://www.lyx.org/Translation"
3176 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3177 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3180 \begin_layout Standard
3181 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3184 \begin_layout Itemize
3185 文書化チームに所属してください!そのための情報が
3186 \begin_inset Flex Code
3189 \begin_layout Plain Layout
3196 \begin_inset Flex MenuItem
3199 \begin_layout Plain Layout
3200 ヘルプ\SpecialChar menuseparator
3207 \begin_inset Flex Code
3210 \begin_layout Plain Layout
3219 \begin_layout Itemize
3220 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3221 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3223 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3228 \begin_layout Itemize
3229 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3230 \begin_inset Flex Code
3233 \begin_layout Plain Layout
3239 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3240 \begin_inset Newline newline
3244 \begin_inset Note Greyedout
3247 \begin_layout Plain Layout
3252 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3253 ことに注意してください.最も良い方法は,LyXツリーをgit (
3254 \begin_inset Flex URL
3257 \begin_layout Plain Layout
3259 http://www.lyx.org/HowToUseGIT
3264 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3272 \begin_layout Itemize
3274 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3275 \begin_inset CommandInset href
3277 name "http://www.lyx.org/trac/timeline"
3278 target "http://www.lyx.org/trac/timeline"
3282 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3285 \begin_layout Standard
3286 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3289 \begin_layout Standard
3290 \begin_inset Branch OutDated
3293 \begin_layout Section
3294 International Keyboard Support
3297 \begin_layout Standard
3300 [Editor's Note: The following section is by
3308 It needs to be fixed to conform to the new Documentation Style sheet and
3309 to make use of the new v1.0 features.
3310 The whole thing also needs to be merged with the section following it.-jw
3311 It may also be badly out of date.-rh (2008)]
3314 \begin_layout Subsection
3315 Defining Own Keymaps: Keymap File Format
3318 \begin_layout Standard
3319 Let's look at a keyboard definition file a little closer.
3320 It is a plain text file defining
3323 \begin_layout Itemize
3324 key-to-key or key-to-string translations
3327 \begin_layout Itemize
3331 \begin_layout Itemize
3332 dead keys exceptions
3335 \begin_layout Standard
3336 To define key-to-key or key-to-string translation, use this command:
3339 \begin_layout Quotation
3340 \begin_inset Flex Code
3343 \begin_layout Plain Layout
3352 \begin_inset Flex Code
3355 \begin_layout Plain Layout
3364 \begin_layout Standard
3366 \begin_inset Flex Code
3369 \begin_layout Plain Layout
3375 is the key to be translated and
3376 \begin_inset Flex Code
3379 \begin_layout Plain Layout
3385 is the string to be inserted into the document.
3386 To define dead keys, use:
3389 \begin_layout Quotation
3390 \begin_inset Flex Code
3393 \begin_layout Plain Layout
3402 \begin_inset Flex Code
3405 \begin_layout Plain Layout
3414 \begin_layout Standard
3416 \begin_inset Flex Code
3419 \begin_layout Plain Layout
3425 is a keyboard key and
3426 \begin_inset Flex Code
3429 \begin_layout Plain Layout
3436 The following dead keys are supported (shortcut name is in parentheses):
3439 \begin_layout Quotation
3443 \begin_inset space \hfill{}
3449 \begin_layout Quotation
3451 \begin_inset space \hfill{}
3459 \begin_layout Quotation
3461 \begin_inset space \hfill{}
3469 \begin_layout Quotation
3471 \begin_inset space \hfill{}
3479 \begin_layout Quotation
3481 \begin_inset space \hfill{}
3489 \begin_layout Quotation
3491 \begin_inset space \hfill{}
3498 \begin_layout Plain Layout
3510 \begin_layout Quotation
3512 \begin_inset space \hfill{}
3520 \begin_layout Quotation
3522 \begin_inset space \hfill{}
3529 \begin_layout Plain Layout
3541 \begin_layout Quotation
3543 \begin_inset space \hfill{}
3551 \begin_layout Quotation
3553 \begin_inset space \hfill{}
3561 \begin_layout Quotation
3563 \begin_inset space \hfill{}
3570 \begin_layout Plain Layout
3582 \begin_layout Quotation
3584 \begin_inset space \hfill{}
3595 \begin_layout Plain Layout
3607 \begin_layout Quotation
3609 \begin_inset space \hfill{}
3617 \begin_layout Quotation
3618 hungarian umlaut (hug)
3619 \begin_inset space \hfill{}
3627 \begin_layout Quotation
3629 \begin_inset space \hfill{}
3637 \begin_layout Quotation
3639 \begin_inset space \hfill{}
3650 \begin_layout Plain Layout
3662 \begin_layout Standard
3663 Since in many international keyboards there are exceptions to what some
3664 dead keys should do, you can define them using
3667 \begin_layout Quotation
3668 \begin_inset Flex Code
3671 \begin_layout Plain Layout
3679 deadkey key outstring
3682 \begin_layout Standard
3683 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3687 \begin_layout Quotation
3688 \begin_inset Flex Code
3691 \begin_layout Plain Layout
3704 \begin_layout Standard
3705 to make it work correctly.
3706 Also, you have to define as exceptions dead keys over i and j, to remove
3707 the dot from them before inserting an accent mark.
3708 I will change this when the time comes, but so far I haven't had time.
3711 \begin_layout Standard
3712 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3715 \begin_inset Flex Code
3718 \begin_layout Plain Layout
3724 have different meaning.
3726 \begin_inset Flex Code
3729 \begin_layout Plain Layout
3735 marks comments, quotes start and end \SpecialChar LaTeX
3737 To enter quote, you'll need to use
3738 \begin_inset Flex Code
3741 \begin_layout Plain Layout
3750 \begin_inset Flex Code
3753 \begin_layout Plain Layout
3760 \begin_inset Flex Code
3763 \begin_layout Plain Layout
3774 \begin_layout Standard
3775 If you make a keyboard description file that works for your language, please
3776 mail it to me, so I can include it in the next keymap distribution.
3779 \begin_layout Standard
3780 More keywords will be supported in keymap configuration file in future,
3784 \begin_layout Itemize
3785 \begin_inset Flex Code
3788 \begin_layout Plain Layout
3799 \begin_inset space \hfill{}
3803 \begin_inset Flex Code
3806 \begin_layout Plain Layout
3815 \begin_layout Itemize
3816 \begin_inset Flex Code
3819 \begin_layout Plain Layout
3830 \begin_inset space \hfill{}
3834 \begin_inset Flex Code
3837 \begin_layout Plain Layout
3843 an external keymap translation program
3846 \begin_layout Standard
3847 Also, it should look into
3848 \begin_inset Flex Code
3851 \begin_layout Plain Layout
3857 file for defaults, too (for example, a
3858 \begin_inset Flex Code
3861 \begin_layout Plain Layout
3869 option to include default keyboard).
3877 \begin_layout Section
3879 \begin_inset CommandInset label
3888 \begin_layout Standard
3889 \begin_inset Note Note
3892 \begin_layout Plain Layout
3893 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3896 \begin_layout Plain Layout
3905 \begin_layout Standard
3907 \begin_inset Flex Code
3910 \begin_layout Plain Layout
3917 \begin_inset Flex Code
3920 \begin_layout Plain Layout
3926 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3929 \begin_layout Subsection
3933 \begin_layout Standard
3934 \begin_inset Flex Code
3937 \begin_layout Plain Layout
3943 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3944 \begin_inset Flex Code
3947 \begin_layout Plain Layout
3953 ファイルは,以下の各項で説明するように,
3954 \begin_inset Flex Code
3957 \begin_layout Plain Layout
3964 \begin_inset Flex Code
3967 \begin_layout Plain Layout
3974 \begin_inset Flex Code
3977 \begin_layout Plain Layout
3984 \begin_inset Flex Code
3987 \begin_layout Plain Layout
3996 \begin_layout Labeling
3997 \labelwidthstring 00.00.0000
3998 \begin_inset Flex Code
4001 \begin_layout Plain Layout
4010 \begin_layout LyX-Code
4025 \begin_layout Standard
4038 中では,二重引用符(")とバックスラッシュ(
4042 )を付けてエスケープしなくてはならないことに注意してください.
4045 \begin_layout Standard
4046 \begin_inset Flex MenuItem
4049 \begin_layout Plain Layout
4056 \begin_inset Flex MenuItem
4059 \begin_layout Plain Layout
4066 \begin_inset Flex MenuItem
4069 \begin_layout Plain Layout
4078 \begin_layout LyX-Code
4084 \begin_layout Standard
4088 \begin_layout Labeling
4089 \labelwidthstring 00.00.0000
4090 \begin_inset Flex Code
4093 \begin_layout Plain Layout
4102 \begin_layout LyX-Code
4111 \begin_layout Standard
4120 のアクセントとするものです.これはデッドキー
4124 \begin_layout Plain Layout
4129 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4133 のようなウムラウトのついた文字は,このようにして出すことができます.
4141 \begin_layout Standard
4154 の後に許可文字ではないその文字が出力として表示されます.
4155 \begin_inset Flex MenuItem
4158 \begin_layout Plain Layout
4169 \begin_inset Flex MenuItem
4172 \begin_layout Plain Layout
4178 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4181 \begin_layout Standard
4182 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4185 \begin_layout LyX-Code
4188 kmod ' acute aeiouAEIOU
4191 \begin_layout Labeling
4192 \labelwidthstring 00.00.0000
4193 \begin_inset Flex Code
4196 \begin_layout Plain Layout
4205 \begin_layout LyX-Code
4214 \begin_layout Standard
4228 \begin_inset Flex Code
4231 \begin_layout Plain Layout
4239 宣言で打鍵キーを既に割り当てられてなくてはならず,
4251 の集合に属していてはなりません.こうして
4264 \begin_inset Flex Code
4267 \begin_layout Plain Layout
4294 \begin_inset Flex Code
4297 \begin_layout Plain Layout
4308 \begin_layout Standard
4309 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4312 \begin_layout LyX-Code
4326 \begin_layout Labeling
4327 \labelwidthstring 00.00.0000
4328 \begin_inset Flex Code
4331 \begin_layout Plain Layout
4340 \begin_layout LyX-Code
4349 \begin_layout Standard
4350 これはなかなか難解になってきます.これは
4375 \begin_inset Flex Code
4378 \begin_layout Plain Layout
4386 コマンドで設定されていなくてはなりません.
4389 \begin_layout Standard
4390 \begin_inset Flex Code
4393 \begin_layout Plain Layout
4402 \begin_layout LyX-Code
4405 kmod ; acute aeioyvhAEIOYVH
4409 kcomb acute umlaut iyIY
4412 \begin_layout Standard
4414 \begin_inset Flex MenuItem
4417 \begin_layout Plain Layout
4424 \begin_inset Flex Code
4427 \begin_layout Plain Layout
4437 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4438 \begin_inset Flex MenuItem
4441 \begin_layout Plain Layout
4448 \begin_inset Flex Code
4451 \begin_layout Plain Layout
4462 \begin_layout Subsection
4466 \begin_layout Standard
4467 \begin_inset Flex Code
4470 \begin_layout Plain Layout
4477 \begin_inset Flex Code
4480 \begin_layout Plain Layout
4486 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4488 \begin_inset Flex Code
4491 \begin_layout Plain Layout
4498 \begin_inset Flex Code
4501 \begin_layout Plain Layout
4510 \begin_layout Standard
4512 \begin_inset Flex Code
4515 \begin_layout Plain Layout
4524 \begin_layout LyX-Code
4537 \begin_layout Standard
4539 \begin_inset Flex MenuItem
4542 \begin_layout Plain Layout
4550 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4553 \begin_layout LyX-Code
4561 \begin_layout Standard
4567 \begin_inset Flex Code
4570 \begin_layout Plain Layout
4579 \begin_inset Flex Code
4582 \begin_layout Plain Layout
4588 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4589 \begin_inset Flex Code
4592 \begin_layout Plain Layout
4601 \begin_layout LyX-Code
4613 \begin_inset Newline newline
4629 \begin_layout Standard
4630 という例があります.\SpecialChar LyX
4631 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4632 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4635 \begin_layout Subsection
4639 \begin_layout Standard
4640 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4641 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4644 \begin_layout Standard
4645 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4646 \begin_inset Flex Code
4649 \begin_layout Plain Layout
4656 \begin_inset Flex MenuItem
4659 \begin_layout Plain Layout
4666 \begin_inset Flex MenuItem
4669 \begin_layout Plain Layout
4675 キー)を,\SpecialChar LyX
4677 \begin_inset Flex Code
4680 \begin_layout Plain Layout
4687 \begin_inset Flex MenuItem
4690 \begin_layout Plain Layout
4696 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4697 \begin_inset Flex MenuItem
4700 \begin_layout Plain Layout
4706 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4707 \begin_inset Flex MenuItem
4710 \begin_layout Plain Layout
4717 \begin_inset Flex MenuItem
4720 \begin_layout Plain Layout
4726 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4727 はビープを鳴らして文句を付けます.デッドキーの後に
4728 \begin_inset Flex MenuItem
4731 \begin_layout Plain Layout
4737 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4739 \begin_inset Flex MenuItem
4742 \begin_layout Plain Layout
4748 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4751 \begin_layout Standard
4752 デッドキーを割り当てるのによく用いられる方法は,
4753 \begin_inset Flex MenuItem
4756 \begin_layout Plain Layout
4763 \begin_inset Flex MenuItem
4766 \begin_layout Plain Layout
4773 \begin_inset Flex MenuItem
4776 \begin_layout Plain Layout
4783 \begin_inset Flex MenuItem
4786 \begin_layout Plain Layout
4793 \begin_inset Flex MenuItem
4796 \begin_layout Plain Layout
4803 \begin_inset Flex MenuItem
4806 \begin_layout Plain Layout
4812 」のようなアクセントと一緒に用いる方法です.また,
4813 \begin_inset Flex Code
4816 \begin_layout Plain Layout
4823 \begin_inset Flex Code
4826 \begin_layout Plain Layout
4833 \begin_inset Flex Code
4836 \begin_layout Plain Layout
4843 \begin_inset Flex Code
4846 \begin_layout Plain Layout
4853 \begin_inset Flex MenuItem
4856 \begin_layout Plain Layout
4862 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4863 \begin_inset Flex Code
4866 \begin_layout Plain Layout
4872 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4877 \begin_layout Plain Layout
4883 \begin_inset Flex Code
4886 \begin_layout Plain Layout
4893 \begin_inset Flex Code
4896 \begin_layout Plain Layout
4903 \begin_inset Flex MenuItem
4906 \begin_layout Plain Layout
4908 \begin_inset space ~
4917 \begin_inset Flex Code
4920 \begin_layout Plain Layout
4927 \begin_inset Flex Code
4930 \begin_layout Plain Layout
4937 \begin_inset Flex MenuItem
4940 \begin_layout Plain Layout
4942 \begin_inset space ~
4951 \begin_inset Flex MenuItem
4954 \begin_layout Plain Layout
4956 \begin_inset space ~
4964 などに割り当てています.私はこの方法でアクセント文字を入力しています.
4970 \begin_inset Flex Code
4973 \begin_layout Plain Layout
4980 \begin_inset Flex MenuItem
4983 \begin_layout Plain Layout
4989 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
4996 \begin_inset Flex Code
4999 \begin_layout Plain Layout
5005 の項をご覧ください.ここには完備した一覧があります.
5008 \begin_layout Subsection
5012 \begin_layout Standard
5013 \begin_inset Flex MenuItem
5016 \begin_layout Plain Layout
5017 ツール\SpecialChar menuseparator
5023 ダイアログを使えば,\SpecialChar LyX
5024 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5027 \begin_layout Chapter
5028 文書クラス・レイアウト・ひな型の新規導入
5029 \begin_inset CommandInset label
5036 \begin_inset Argument 1
5039 \begin_layout Plain Layout
5048 \begin_layout Standard
5049 この章では,新しく\SpecialChar LyX
5050 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5051 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5055 \begin_layout Standard
5058 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5059 は,La\SpecialChar TeX
5061 云うことです.実際のところ,\SpecialChar LyX
5062 の観点からは,\SpecialChar LaTeX
5064 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5065 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5066 は,とくに重要な形式ですが,\SpecialChar LyX
5068 について持っている情報のほとんどは,実はプログラム本体には含まれて
5073 \begin_layout Plain Layout
5074 過度に複雑なため,\SpecialChar LyX
5075 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5081 \begin_inset Flex Code
5084 \begin_layout Plain Layout
5090 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5091 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5096 \begin_layout Standard
5097 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5098 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5099 構成体・DocBook構成体・XHTML構成体との
5100 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5102 \begin_inset Flex Code
5105 \begin_layout Plain Layout
5111 について知っていることのほとんど総ては,
5112 \begin_inset Flex Code
5115 \begin_layout Plain Layout
5121 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5123 \begin_inset Flex Code
5126 \begin_layout Plain Layout
5133 \begin_inset Flex Code
5136 \begin_layout Plain Layout
5142 や,文書クラス用の他のレイアウトファイルに取り込まれている
5143 \begin_inset Flex Code
5146 \begin_layout Plain Layout
5152 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5153 \begin_inset Flex Code
5156 \begin_layout Plain Layout
5162 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5163 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5165 \begin_inset Flex Code
5168 \begin_layout Plain Layout
5175 \begin_inset Flex Code
5178 \begin_layout Plain Layout
5184 ファイルを取り込んでいるだけのものです.
5187 \begin_layout Standard
5188 しかしながら,\SpecialChar LyX
5190 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5192 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5193 ます.ある段落様式を\SpecialChar LaTeX
5194 に翻訳する仕方を\SpecialChar LyX
5195 に指示することは,その表示の仕方を\SpecialChar LyX
5196 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5198 式をどのように\SpecialChar LaTeX
5199 に翻訳するかを\SpecialChar LyX
5200 に指示するものではありません(ましてや\SpecialChar LaTeX
5201 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5204 \begin_inset space ~
5208 にどのように翻訳するかを\SpecialChar LyX
5210 \begin_inset space ~
5213 それをどのように表示するかを\SpecialChar LyX
5214 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5217 \begin_layout Standard
5218 もちろん,\SpecialChar LyX
5219 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5220 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5221 力するにあたって,当該段落を\SpecialChar LyX
5222 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5223 が内部的に行うことと,外部的に行う物事の間の区
5224 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5225 \begin_inset CommandInset ref
5227 reference "sec:XHTML出力のタグ"
5234 \begin_layout Section
5235 新しい\SpecialChar LaTeX
5239 \begin_layout Standard
5240 頒布版によっては,\SpecialChar LyX
5241 で使いたい\SpecialChar LaTeX
5242 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5243 パッケージである,Foil\SpecialChar TeX
5244 がないかもしれません.\SpecialChar TeX
5245 Live(2008年以降)やMiK\SpecialChar TeX
5246 のような最近の\SpecialChar LaTeX
5247 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5248 ースが用意されています.たとえば,MiK\SpecialChar TeX
5250 \begin_inset space ~
5253 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5257 \begin_layout Standard
5258 お使いの\SpecialChar LaTeX
5259 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5263 \begin_layout Enumerate
5264 \begin_inset CommandInset href
5267 target "http://www.ctan.org/"
5271 などから欲しいパッケージを入手してください.
5274 \begin_layout Enumerate
5276 \begin_inset Flex Code
5279 \begin_layout Plain Layout
5285 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5286 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5287 \begin_inset Flex Code
5290 \begin_layout Plain Layout
5296 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5297 パッケージは圧縮されていないので,このステップは飛ばすこ
5301 \begin_layout Enumerate
5302 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5306 \begin_layout Enumerate
5307 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5310 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5311 \begin_inset Flex Code
5314 \begin_layout Plain Layout
5324 \begin_layout Plain Layout
5330 \begin_inset Flex Code
5333 \begin_layout Plain Layout
5339 を実行してその場所を見つけることもできます.
5344 .「ローカル」\SpecialChar TeX
5346 \begin_inset Flex Code
5349 \begin_layout Plain Layout
5356 \begin_inset Flex Code
5359 \begin_layout Plain Layout
5360 /usr/local/share/texmf/
5366 \begin_inset Flex Code
5369 \begin_layout Plain Layout
5370 /usr/local/texlive/XXXX
5375 (XXXXは導入されている\SpecialChar TeX
5376 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5378 \begin_inset Flex Code
5381 \begin_layout Plain Layout
5388 \begin_inset Flex Code
5391 \begin_layout Plain Layout
5398 \begin_inset Flex Code
5401 \begin_layout Plain Layout
5407 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5408 ,「ユーザー」ツリーにはこのような制限はありません.
5409 \begin_inset Newline newline
5412 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5413 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5416 \begin_layout Enumerate
5417 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5419 \begin_inset Flex Code
5422 \begin_layout Plain Layout
5432 に移動します(MiK\SpecialChar TeX
5434 \begin_inset Flex Code
5437 \begin_layout Plain Layout
5453 \begin_layout Plain Layout
5454 これは,英語版でのみ正しいパスになっています.独語版では
5455 \begin_inset Flex Code
5458 \begin_layout Plain Layout
5476 \begin_inset Flex Code
5479 \begin_layout Plain Layout
5485 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5487 ことを行います.たとえばMiK\SpecialChar TeX
5489 \begin_inset space ~
5493 \begin_inset Newline newline
5497 \begin_inset Flex Code
5500 \begin_layout Plain Layout
5503 Documents and Settings
5515 \begin_inset Newline newline
5519 \begin_inset Phantom HPhantom
5522 \begin_layout Plain Layout
5533 \begin_inset Flex Code
5536 \begin_layout Plain Layout
5549 \begin_inset Newline newline
5553 \begin_inset Newline newline
5557 \begin_inset Flex Code
5560 \begin_layout Plain Layout
5583 \begin_inset Newline newline
5590 \begin_layout Enumerate
5591 ここまで来れば,あとは\SpecialChar LaTeX
5592 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5597 \begin_layout Enumerate
5600 \begin_inset Flex Code
5603 \begin_layout Plain Layout
5609 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5612 \begin_layout Enumerate
5614 では,パッケージを全ユーザー用に導入した場合には,「Settings
5615 \begin_inset space ~
5618 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5623 \begin_layout Enumerate
5624 最後に,\SpecialChar LyX
5625 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5626 からツール\SpecialChar menuseparator
5627 環境構成メニューを実行して,\SpecialChar LyX
5631 \begin_layout Standard
5632 これでパッケージが導入されました.この例では,文書クラス
5633 \begin_inset Flex Code
5636 \begin_layout Plain Layout
5638 \begin_inset space ~
5647 \begin_inset Flex MenuItem
5650 \begin_layout Plain Layout
5651 文書\SpecialChar menuseparator
5652 設定\SpecialChar menuseparator
5661 \begin_layout Standard
5662 \begin_inset Flex MenuItem
5665 \begin_layout Plain Layout
5666 文書\SpecialChar menuseparator
5667 設定\SpecialChar menuseparator
5673 メニューに列挙されてもいない\SpecialChar LaTeX
5674 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5677 \begin_layout Section
5681 \begin_layout Standard
5682 この節は,レイアウト情報を含む各種\SpecialChar LyX
5683 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5685 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5686 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5689 \begin_layout Standard
5690 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5691 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5692 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5693 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5694 を出していますので,気軽に質問を投げかけてみてください.
5697 \begin_layout Standard
5698 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5699 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5700 文書クラス用の\SpecialChar LyX
5702 他の人々にも有用なモジュールをお書きになった場合には,
5703 \begin_inset CommandInset href
5705 name "LyX Wikiのレイアウトに関する節"
5706 target "http://wiki.lyx.org/Layouts/Layouts"
5711 開発者メーリングリストに投稿して,\SpecialChar LyX
5712 頒布版に同梱することができるようにしてください
5716 \begin_layout Plain Layout
5718 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5719 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5727 \begin_layout Subsection
5729 \begin_inset CommandInset label
5731 name "subsec:レイアウトモジュール"
5738 \begin_layout Standard
5739 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5741 \begin_inset Flex Code
5744 \begin_layout Plain Layout
5750 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5751 に提供するものを指します.しかしながら,\SpecialChar LyX
5753 \begin_inset Flex Code
5756 \begin_layout Plain Layout
5766 にも含めることができます.レイアウトが\SpecialChar LaTeX
5767 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5769 \begin_inset Flex Code
5772 \begin_layout Plain Layout
5778 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5779 イアウトで使用できるという意味において,一面,
5780 \begin_inset Flex Code
5783 \begin_layout Plain Layout
5793 \begin_layout Plain Layout
5794 これらは任意の拡張子をつけることができますが,慣習的に
5795 \begin_inset Flex Code
5798 \begin_layout Plain Layout
5810 \begin_inset Flex Code
5813 \begin_layout Plain Layout
5819 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5820 \begin_inset Flex MenuItem
5823 \begin_layout Plain Layout
5824 文書\SpecialChar menuseparator
5833 \begin_layout Standard
5834 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5835 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5838 \begin_layout Standard
5840 \begin_inset Flex Code
5843 \begin_layout Plain Layout
5849 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5850 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5851 \begin_inset Flex MenuItem
5854 \begin_layout Plain Layout
5855 文書\SpecialChar menuseparator
5861 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5863 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5867 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5869 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5870 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5874 \begin_layout Subsubsection
5878 \begin_layout Standard
5880 に於けるモジュールは,\SpecialChar LaTeX
5881 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5882 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5885 \begin_layout Standard
5888 文書\SpecialChar menuseparator
5889 設定\SpecialChar menuseparator
5892 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5893 は,その文書専属のモジュールだと考えることができます.したがって,
5894 \begin_inset Flex Code
5897 \begin_layout Plain Layout
5903 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5907 \begin_layout Standard
5908 \begin_inset Flex Code
5911 \begin_layout Plain Layout
5917 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5918 ているかどうかが検証されます.すると,\SpecialChar LyX
5919 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5921 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5924 \begin_layout Standard
5925 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5926 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5929 \begin_layout Subsection
5930 \begin_inset Flex MenuItem
5933 \begin_layout Plain Layout
5942 \begin_layout Standard
5943 新しく\SpecialChar LaTeX
5944 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5946 \begin_inset Flex Code
5949 \begin_layout Plain Layout
5956 \begin_inset Flex Code
5959 \begin_layout Plain Layout
5965 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
5966 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
5970 \begin_layout Standard
5971 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
5972 \begin_inset Flex MenuItem
5975 \begin_layout Plain Layout
5982 \begin_inset Flex MenuItem
5985 \begin_layout Plain Layout
5994 \begin_layout Standard
5995 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
5999 \begin_layout Plain Layout
6000 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6002 \begin_inset Flex MenuItem
6005 \begin_layout Plain Layout
6011 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6019 \begin_layout LyX-Code
6020 cp report.layout ~/.lyx/layouts/myclass.layout
6023 \begin_layout Standard
6025 \begin_inset Flex Code
6028 \begin_layout Plain Layout
6037 \begin_layout LyX-Code
6040 DeclareLaTeXClass{report}
6043 \begin_layout Standard
6047 \begin_layout LyX-Code
6050 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6053 \begin_layout Standard
6054 のように変更してください.それから,ファイル冒頭辺りに
6057 \begin_layout LyX-Code
6059 \begin_inset Newline newline
6065 \begin_inset Newline newline
6071 \begin_layout Standard
6075 \begin_layout Standard
6078 \begin_inset Flex MenuItem
6081 \begin_layout Plain Layout
6082 ツール\SpecialChar menuseparator
6088 を選択してください.それから\SpecialChar LyX
6089 を再起動し,新規文書を作成してみてください.すると,
6090 \begin_inset Flex MenuItem
6093 \begin_layout Plain Layout
6094 文書\SpecialChar menuseparator
6101 \begin_inset Flex MenuItem
6104 \begin_layout Plain Layout
6110 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6111 \begin_inset Flex Code
6114 \begin_layout Plain Layout
6120 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6121 \begin_inset Flex Code
6124 \begin_layout Plain Layout
6130 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6131 \begin_inset Flex Code
6134 \begin_layout Plain Layout
6141 \begin_inset Flex Code
6144 \begin_layout Plain Layout
6150 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6153 \begin_layout LyX-Code
6157 \begin_layout LyX-Code
6161 \begin_layout LyX-Code
6165 \begin_layout LyX-Code
6169 \begin_layout LyX-Code
6173 \begin_layout Standard
6174 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6177 \begin_layout Standard
6178 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6180 \begin_inset CommandInset ref
6182 reference "sec:テキストクラス"
6189 \begin_layout Standard
6191 \begin_inset Flex Code
6194 \begin_layout Plain Layout
6200 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6201 う.最も簡単なモジュールの例としては,以下のようなものになります.
6204 \begin_layout LyX-Code
6207 DeclareLyXModule{My Package}
6210 \begin_layout LyX-Code
6214 \begin_layout LyX-Code
6215 #Support for mypkg.sty.
6218 \begin_layout LyX-Code
6220 \begin_inset Newline newline
6226 \begin_layout LyX-Code
6228 \begin_inset Newline newline
6234 \begin_layout LyX-Code
6236 \begin_inset Newline newline
6242 \begin_inset Newline newline
6248 \begin_layout Standard
6249 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6250 \begin_inset CommandInset ref
6252 reference "sec:テキストクラス"
6259 \begin_layout Subsection
6260 \begin_inset Flex MenuItem
6263 \begin_layout Plain Layout
6272 \begin_layout Standard
6273 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6274 \begin_inset Flex MenuItem
6277 \begin_layout Plain Layout
6283 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6286 \begin_layout LyX-Code
6292 \begin_layout Standard
6293 という行がないかどうか探してください.もしこれがあれば,
6294 \begin_inset Flex Code
6297 \begin_layout Plain Layout
6298 Declare\SpecialChar LaTeX
6304 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6305 \begin_inset Flex Code
6308 \begin_layout Plain Layout
6315 \begin_inset Flex Code
6318 \begin_layout Plain Layout
6325 \begin_inset Flex Code
6328 \begin_layout Plain Layout
6329 Declare\SpecialChar LaTeX
6339 \begin_layout Plain Layout
6341 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6342 \begin_inset Flex Code
6345 \begin_layout Plain Layout
6359 \begin_layout LyX-Code
6362 DeclareLaTeXClass[thesis,book]{thesis}
6365 \begin_layout Standard
6366 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6368 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6372 \begin_layout Subsection
6374 \begin_inset CommandInset label
6383 \begin_layout Standard
6384 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6385 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6386 添付のひな型をあれこれ見てみるのもよいでしょう.
6389 \begin_layout Standard
6390 ひな型は,通常の文書と同様,\SpecialChar LyX
6391 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6392 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6393 \begin_inset Flex Code
6396 \begin_layout Plain Layout
6405 \begin_inset Flex Code
6408 \begin_layout Plain Layout
6416 などの対応するコマンドをひな型\SpecialChar LyX
6417 ファイルから取り除く必要があります.これは,たとえば
6418 \begin_inset Flex Code
6421 \begin_layout Plain Layout
6428 \begin_inset Flex Code
6431 \begin_layout Plain Layout
6437 のような,どの軽いテキストエディタでも行うことができます.
6440 \begin_layout Standard
6442 \begin_inset Flex Code
6445 \begin_layout Plain Layout
6452 \begin_inset Flex Code
6455 \begin_layout Plain Layout
6461 から使用したいものを同じ場所にコピーし,
6462 \begin_inset Flex MenuItem
6465 \begin_layout Plain Layout
6466 ツール\SpecialChar menuseparator
6467 設定\SpecialChar menuseparator
6473 ダイアログのひな型パスを再定義してください.
6476 \begin_layout Standard
6478 \begin_inset Flex Code
6481 \begin_layout Plain Layout
6487 があることに注意してください.このひな型は,
6488 \begin_inset Flex MenuItem
6491 \begin_layout Plain Layout
6492 ファイル\SpecialChar menuseparator
6498 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6499 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6501 \begin_inset Flex MenuItem
6504 \begin_layout Plain Layout
6513 \begin_layout Subsection
6517 \begin_layout Standard
6518 レイアウトファイルの書式は,\SpecialChar LyX
6519 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6520 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6523 \begin_inset Flex Code
6526 \begin_layout Plain Layout
6528 Dir/scripts/layout2layout.py
6533 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6535 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6538 \begin_layout Enumerate
6540 \begin_inset Flex Code
6543 \begin_layout Plain Layout
6550 \begin_inset Flex Code
6553 \begin_layout Plain Layout
6562 \begin_layout Enumerate
6564 \begin_inset Newline newline
6568 \begin_inset Flex Code
6571 \begin_layout Plain Layout
6572 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6578 \begin_inset Newline newline
6582 \begin_inset Flex Code
6585 \begin_layout Plain Layout
6595 \begin_layout Standard
6596 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6599 \begin_layout Section
6600 \begin_inset CommandInset label
6609 \begin_layout Standard
6610 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6611 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6612 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6613 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6614 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6617 \begin_layout Standard
6618 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6619 \begin_inset Flex Code
6622 \begin_layout Plain Layout
6629 \begin_inset Flex Code
6632 \begin_layout Plain Layout
6639 \begin_inset Flex Code
6642 \begin_layout Plain Layout
6648 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6649 \begin_inset Flex Code
6652 \begin_layout Plain Layout
6660 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6661 \begin_inset Flex Code
6664 \begin_layout Plain Layout
6675 \begin_layout Subsection
6679 \begin_layout Standard
6681 \begin_inset Flex Code
6684 \begin_layout Plain Layout
6690 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6691 \begin_inset Flex Code
6694 \begin_layout Plain Layout
6700 ファイルは,以下のような行で始めなくてはならないのです.
6703 \begin_layout LyX-Code
6706 #% Do not delete the line below; configure depends on this
6709 \begin_layout LyX-Code
6714 DeclareLaTeXClass{Article (Standard Class)}
6717 \begin_layout LyX-Code
6722 DeclareCategory{Articles}
6725 \begin_layout Standard
6726 2行目と3行目は,\SpecialChar LyX
6727 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6729 \begin_inset Flex Code
6732 \begin_layout Plain Layout
6739 \begin_inset Flex Code
6742 \begin_layout Plain Layout
6748 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6749 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6751 \begin_inset Flex Code
6754 \begin_layout Plain Layout
6761 \begin_inset Flex Code
6764 \begin_layout Plain Layout
6770 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6772 \begin_inset Flex Code
6775 \begin_layout Plain Layout
6781 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6782 \begin_inset Flex MenuItem
6785 \begin_layout Plain Layout
6786 文書\SpecialChar menuseparator
6792 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6793 \begin_inset Flex MenuItem
6796 \begin_layout Plain Layout
6797 文書\SpecialChar menuseparator
6803 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6804 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6805 rized」グループに属することになります.
6808 \begin_layout Standard
6810 \begin_inset Flex Code
6813 \begin_layout Plain Layout
6819 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6820 \begin_inset Flex Code
6823 \begin_layout Plain Layout
6829 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6832 \begin_layout LyX-Code
6835 #% Do not delete the line below; configure depends on this
6838 \begin_layout LyX-Code
6843 DeclareLaTeXClass[article]{article (with My Own Headings)}
6846 \begin_layout LyX-Code
6851 DeclareCategory{Articles}
6854 \begin_layout Standard
6855 これは,\SpecialChar LaTeX
6857 \begin_inset Flex Code
6860 \begin_layout Plain Layout
6866 に関連づけられ,「Article (with My Own Headings)」と表示される,
6867 \begin_inset Flex Code
6870 \begin_layout Plain Layout
6876 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6879 \begin_layout LyX-Code
6882 #% Do not delete the line below; configure depends on this
6885 \begin_layout LyX-Code
6890 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
6893 \begin_layout LyX-Code
6898 DeclareCategory{Articles}
6901 \begin_layout Standard
6903 \begin_inset Flex Code
6906 \begin_layout Plain Layout
6912 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
6915 \begin_layout LyX-Code
6918 #% Do not delete the line below; configure depends on this
6921 \begin_layout LyX-Code
6926 DeclareDocBookClass[article]{SGML (DocBook article)}
6929 \begin_layout LyX-Code
6934 DeclareCategory{Articles}
6937 \begin_layout Standard
6938 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
6941 \begin_layout Standard
6942 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
6945 \begin_layout LyX-Code
6950 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6953 \begin_layout LyX-Code
6961 \begin_layout Standard
6962 ここで「クラス」は,\SpecialChar LaTeX
6963 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
6965 名がレイアウトファイル名と同じであると仮定します.
6968 \begin_layout Standard
6969 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
6970 \begin_inset Flex Code
6973 \begin_layout Plain Layout
6980 \begin_inset Flex Code
6983 \begin_layout Plain Layout
6990 \begin_inset Flex MenuItem
6993 \begin_layout Plain Layout
6994 ツール\SpecialChar menuseparator
7000 を実行し,\SpecialChar LyX
7001 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7004 \begin_layout Standard
7005 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7006 を再起動したりすることなく,その変更を確認することができます
7010 \begin_layout Plain Layout
7011 第1.6版よりも前の\SpecialChar LyX
7012 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7014 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7021 \begin_inset Flex MenuItem
7024 \begin_layout Plain Layout
7030 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7031 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7034 \begin_layout Standard
7040 \begin_inset Flex MenuItem
7043 \begin_layout Plain Layout
7049 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7053 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7057 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7059 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7063 \begin_layout Plain Layout
7064 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7065 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7066 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7073 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7077 \begin_layout Plain Layout
7078 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7086 \begin_layout Subsection
7090 \begin_layout Standard
7091 モジュールは,以下のような行で始まらなくてはなりません.
7094 \begin_layout LyX-Code
7097 DeclareLyXModule[endnotes.sty]{Endnotes}
7100 \begin_layout Standard
7101 波括弧内に入っている必須引数はモジュール名で,これは
7102 \begin_inset Flex MenuItem
7105 \begin_layout Plain Layout
7106 文書\SpecialChar menuseparator
7112 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7113 パッケージをすべて宣言します.また,非必須引数として,
7114 \begin_inset Flex Code
7117 \begin_layout Plain Layout
7124 \begin_inset Flex Code
7127 \begin_layout Plain Layout
7134 \begin_inset Flex Code
7137 \begin_layout Plain Layout
7143 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7146 \begin_layout Standard
7147 それから,以下のようなモジュール宣言を行います
7151 \begin_layout Plain Layout
7152 モジュールを\SpecialChar LyX
7153 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7161 \begin_layout LyX-Code
7165 \begin_layout LyX-Code
7166 #Adds an endnote command, in addition to footnotes.
7170 \begin_layout LyX-Code
7171 #You will need to add
7173 theendnotes in TeX code where you
7176 \begin_layout LyX-Code
7177 #want the endnotes to appear.
7181 \begin_layout LyX-Code
7185 \begin_layout LyX-Code
7186 #Requires: somemodule | othermodule
7189 \begin_layout LyX-Code
7190 #Excludes: badmodule
7193 \begin_layout Standard
7194 ここで説明(Description)は,
7195 \begin_inset Flex MenuItem
7198 \begin_layout Plain Layout
7199 文書\SpecialChar menuseparator
7205 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7206 \begin_inset Flex Code
7209 \begin_layout Plain Layout
7215 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7216 \begin_inset Flex Code
7219 \begin_layout Plain Layout
7225 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7226 イプ記号「|」で区切らなくてはなりません.
7227 \begin_inset Flex Code
7230 \begin_layout Plain Layout
7236 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7237 \begin_inset Flex Code
7240 \begin_layout Plain Layout
7250 が使用されていればよいということです.同様に,
7251 \begin_inset Flex Code
7254 \begin_layout Plain Layout
7260 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7261 \begin_inset Flex Code
7264 \begin_layout Plain Layout
7270 拡張子を除いたファイル名で認識されることに注意してください.つまり
7271 \begin_inset Flex Code
7274 \begin_layout Plain Layout
7281 \begin_inset Flex Code
7284 \begin_layout Plain Layout
7293 \begin_layout Subsection
7297 \begin_layout Standard
7298 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7301 \begin_layout Description
7302 \begin_inset Flex Code
7305 \begin_layout Plain Layout
7312 \begin_inset Flex Code
7315 \begin_layout Plain Layout
7324 \begin_layout Standard
7325 このタグは\SpecialChar LyX
7327 \begin_inset space ~
7330 1.4.0で導入されました.\SpecialChar LyX
7332 \begin_inset space ~
7335 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7336 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7337 の各版は,旧版の\SpecialChar LyX
7339 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7342 \begin_layout Subsection
7343 \begin_inset CommandInset label
7345 name "subsec:汎用テキストクラスパラメータ"
7352 \begin_layout Standard
7353 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7354 \begin_inset Flex Code
7357 \begin_layout Plain Layout
7363 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7367 .モジュールには,すべてのレイアウトタグを使用することができます).
7370 \begin_layout Description
7371 \begin_inset Flex Code
7374 \begin_layout Plain Layout
7380 この文書クラスがXHTMLに出力されるときに,
7381 \begin_inset Flex Code
7384 \begin_layout Plain Layout
7390 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7391 \begin_inset Flex Code
7394 \begin_layout Plain Layout
7400 に出力するものであれば,何でも使用することができます.「
7401 \begin_inset Flex Code
7404 \begin_layout Plain Layout
7413 \begin_layout Description
7414 \begin_inset Flex Code
7417 \begin_layout Plain Layout
7423 文書プリアンブルに書き加えられる情報です.「
7424 \begin_inset Flex Code
7427 \begin_layout Plain Layout
7436 \begin_layout Description
7437 \begin_inset Flex Code
7440 \begin_layout Plain Layout
7446 書誌情報の表示に使う書式を定義します.詳細については,
7447 \begin_inset CommandInset ref
7449 reference "subsec:引用書式指定"
7454 \begin_inset Flex Code
7457 \begin_layout Plain Layout
7466 \begin_layout Description
7467 \begin_inset Flex Code
7470 \begin_layout Plain Layout
7476 文書クラスがサポートする様々な大域オプションを記します.説明は,
7477 \begin_inset CommandInset ref
7479 reference "subsec:ClassOptions"
7484 \begin_inset Flex Code
7487 \begin_layout Plain Layout
7496 \begin_layout Description
7497 \begin_inset Flex Code
7500 \begin_layout Plain Layout
7507 \begin_inset Flex Code
7510 \begin_layout Plain Layout
7519 \begin_inset space \thinspace{}
7523 \begin_inset Flex Code
7526 \begin_layout Plain Layout
7532 ] 文書クラスが既定で1段組か2段組かを指定します.
7533 \begin_inset Flex MenuItem
7536 \begin_layout Plain Layout
7537 文書\SpecialChar menuseparator
7546 \begin_layout Description
7547 \begin_inset Flex Code
7550 \begin_layout Plain Layout
7557 \begin_inset Flex Code
7560 \begin_layout Plain Layout
7566 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7567 \begin_inset Flex Code
7570 \begin_layout Plain Layout
7577 \begin_inset Newline newline
7581 \begin_inset CommandInset ref
7583 reference "subsec:カウンタ"
7590 \begin_layout Description
7591 \begin_inset Flex Code
7594 \begin_layout Plain Layout
7600 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7601 \begin_inset CommandInset ref
7603 reference "subsec:フォント指定"
7608 \begin_inset Flex Code
7611 \begin_layout Plain Layout
7620 \begin_layout Description
7621 \begin_inset Flex Code
7624 \begin_layout Plain Layout
7631 \begin_inset Flex Code
7634 \begin_layout Plain Layout
7640 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7641 \begin_inset Flex Code
7644 \begin_layout Plain Layout
7650 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7651 既存の文書にこの文書クラスが選択したときのみ該当します).
7654 \begin_layout Description
7655 \begin_inset Flex Code
7658 \begin_layout Plain Layout
7665 \begin_inset Flex Code
7668 \begin_layout Plain Layout
7678 これは新規段落に割り当てられる様式であり,通常は
7679 \begin_inset Flex MenuItem
7682 \begin_layout Plain Layout
7688 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7691 \begin_layout Description
7692 \begin_inset Flex Code
7695 \begin_layout Plain Layout
7702 \begin_inset Flex Code
7705 \begin_layout Plain Layout
7712 \begin_inset Flex Code
7715 \begin_layout Plain Layout
7721 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7723 \begin_inset Flex Code
7726 \begin_layout Plain Layout
7732 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7736 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7737 \begin_inset CommandInset ref
7739 reference "subsec:レイアウトモジュール"
7746 \begin_layout Description
7747 \begin_inset Flex Code
7750 \begin_layout Plain Layout
7757 \begin_inset CommandInset ref
7759 reference "subsec:フロート"
7764 \begin_inset Flex Code
7767 \begin_layout Plain Layout
7776 \begin_layout Description
7777 \begin_inset Flex Code
7780 \begin_layout Plain Layout
7786 この文書クラスがXHTMLに出力されるときに,
7787 \begin_inset Flex Code
7790 \begin_layout Plain Layout
7796 ブロックに出力される情報です.これより前に出現した
7797 \begin_inset Flex Code
7800 \begin_layout Plain Layout
7807 \begin_inset Flex Code
7810 \begin_layout Plain Layout
7816 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7817 \begin_inset Flex Code
7820 \begin_layout Plain Layout
7827 \begin_inset Flex Code
7830 \begin_layout Plain Layout
7839 \begin_layout Description
7840 \begin_inset Flex Code
7843 \begin_layout Plain Layout
7850 \begin_inset Flex Code
7853 \begin_layout Plain Layout
7859 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7860 .これを指定しない場合には,\SpecialChar LyX
7861 はどのレイアウトを使用するべきか,解析しようと試みます.
7864 \begin_layout Description
7865 \begin_inset Flex Code
7868 \begin_layout Plain Layout
7875 \begin_inset Flex Code
7878 \begin_layout Plain Layout
7884 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7885 \begin_inset Flex Code
7888 \begin_layout Plain Layout
7895 \begin_inset Newline newline
7899 \begin_inset CommandInset ref
7901 reference "subsec:カウンタ"
7908 \begin_layout Description
7909 \begin_inset Flex Code
7912 \begin_layout Plain Layout
7919 \begin_inset Flex Code
7922 \begin_layout Plain Layout
7928 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
7929 \begin_inset Flex Code
7932 \begin_layout Plain Layout
7941 \begin_layout Description
7942 \begin_inset Flex Code
7945 \begin_layout Plain Layout
7952 \begin_inset Flex Code
7955 \begin_layout Plain Layout
7965 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
7967 \begin_inset Flex Code
7970 \begin_layout Plain Layout
7979 \begin_layout Description
7980 \begin_inset Flex Code
7983 \begin_layout Plain Layout
7990 \begin_inset Flex Code
7993 \begin_layout Plain Layout
8003 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8004 \begin_inset Flex Code
8007 \begin_layout Plain Layout
8014 \begin_inset Newline newline
8018 \begin_inset CommandInset ref
8020 reference "subsec:任意設定差込枠"
8027 \begin_layout Description
8028 \begin_inset Flex Code
8031 \begin_layout Plain Layout
8038 \begin_inset Flex Code
8041 \begin_layout Plain Layout
8047 ] 画面上の左余白の幅を指示する文字列.例:「
8048 \begin_inset Flex Code
8051 \begin_layout Plain Layout
8057 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8060 \begin_layout Description
8061 \begin_inset Flex Code
8064 \begin_layout Plain Layout
8071 \begin_inset Flex Code
8074 \begin_layout Plain Layout
8080 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8083 \begin_layout Description
8084 \begin_inset Flex Code
8087 \begin_layout Plain Layout
8094 \begin_inset Flex Code
8097 \begin_layout Plain Layout
8103 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8106 \begin_layout Description
8107 \begin_inset Flex Code
8110 \begin_layout Plain Layout
8117 \begin_inset Flex Code
8120 \begin_layout Plain Layout
8126 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8129 \begin_layout Description
8130 \begin_inset Flex Code
8133 \begin_layout Plain Layout
8140 \begin_inset Flex Code
8143 \begin_layout Plain Layout
8149 ] このクラスによって生成されるファイル形式を示す文字列(
8153 ダイアログで定義される形のもの).おもに,
8154 \begin_inset Flex Code
8157 \begin_layout Plain Layout
8164 \begin_inset Flex Code
8167 \begin_layout Plain Layout
8173 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8174 \begin_inset Flex Code
8177 \begin_layout Plain Layout
8183 パラメーターに遭遇したときには,この文字列は,「
8184 \begin_inset Flex Code
8187 \begin_layout Plain Layout
8194 \begin_inset Flex Code
8197 \begin_layout Plain Layout
8208 \begin_layout Description
8209 \begin_inset Flex Code
8212 \begin_layout Plain Layout
8219 \begin_inset Flex Code
8222 \begin_layout Plain Layout
8233 \begin_inset Flex Code
8236 \begin_layout Plain Layout
8243 \begin_inset Flex Code
8246 \begin_layout Plain Layout
8252 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8255 \begin_layout Description
8256 \begin_inset Flex Code
8259 \begin_layout Plain Layout
8266 \begin_inset Flex Code
8269 \begin_layout Plain Layout
8276 \begin_inset Flex Code
8279 \begin_layout Plain Layout
8285 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8286 \begin_inset Flex Code
8289 \begin_layout Plain Layout
8290 PackageOptions natbib square
8296 \begin_inset Flex Code
8299 \begin_layout Plain Layout
8306 \begin_inset Flex Code
8309 \begin_layout Plain Layout
8315 オプションとともに読み込みます(\SpecialChar TeX
8317 \begin_inset Flex Code
8320 \begin_layout Plain Layout
8326 を読み込む前に,\SpecialChar LyX
8328 \begin_inset Flex Code
8331 \begin_layout Plain Layout
8334 PassOptionsToPackage{natbib}{square}
8342 \begin_layout Description
8343 \begin_inset Flex Code
8346 \begin_layout Plain Layout
8355 \begin_inset Flex Code
8358 \begin_layout Plain Layout
8367 \begin_inset Flex Code
8370 \begin_layout Plain Layout
8377 \begin_inset Flex Code
8380 \begin_layout Plain Layout
8387 \begin_inset Flex MenuItem
8390 \begin_layout Plain Layout
8391 文書\SpecialChar menuseparator
8400 \begin_layout Description
8401 \begin_inset Flex Code
8404 \begin_layout Plain Layout
8411 文書のプリアンブルを設定します.前に行った
8412 \begin_inset Flex Code
8415 \begin_layout Plain Layout
8422 \begin_inset Flex Code
8425 \begin_layout Plain Layout
8431 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8432 \begin_inset Flex Code
8435 \begin_layout Plain Layout
8442 \begin_inset Flex Code
8445 \begin_layout Plain Layout
8454 \begin_layout Description
8455 \begin_inset Flex Code
8458 \begin_layout Plain Layout
8465 \begin_inset Flex Code
8468 \begin_layout Plain Layout
8475 \begin_inset Flex Code
8478 \begin_layout Plain Layout
8487 \begin_inset Flex Code
8490 \begin_layout Plain Layout
8497 \begin_inset Flex Code
8500 \begin_layout Plain Layout
8506 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8507 \begin_inset Flex Code
8510 \begin_layout Plain Layout
8517 \begin_inset Flex Code
8520 \begin_layout Plain Layout
8528 \begin_inset Flex Code
8531 \begin_layout Plain Layout
8538 \begin_inset Flex Code
8541 \begin_layout Plain Layout
8549 \begin_inset CommandInset ref
8551 reference "chap:関数一覧"
8558 \begin_layout Description
8559 \begin_inset Flex Code
8562 \begin_layout Plain Layout
8569 \begin_inset Flex Code
8572 \begin_layout Plain Layout
8579 \begin_inset Flex Code
8582 \begin_layout Plain Layout
8588 で表されているモジュールの機能を提供することを示し,
8589 \begin_inset Flex Code
8592 \begin_layout Plain Layout
8599 \begin_inset Flex Code
8602 \begin_layout Plain Layout
8608 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8609 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8612 \begin_layout Description
8613 \begin_inset Flex Code
8616 \begin_layout Plain Layout
8623 \begin_inset Flex Code
8626 \begin_layout Plain Layout
8633 \begin_inset Flex Code
8636 \begin_layout Plain Layout
8642 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8644 \begin_inset CommandInset ref
8646 reference "chap:関数一覧"
8650 を参照).特定のオプションをとるパッケージを要求する場合,
8651 \begin_inset Flex Code
8654 \begin_layout Plain Layout
8663 \begin_layout Description
8664 \begin_inset Flex Code
8667 \begin_layout Plain Layout
8674 \begin_inset Flex Code
8677 \begin_layout Plain Layout
8683 ] 画面上の右余白の幅を指示する文字列.例:「
8684 \begin_inset Flex Code
8687 \begin_layout Plain Layout
8696 \begin_layout Description
8697 \begin_inset Flex Code
8700 \begin_layout Plain Layout
8707 \begin_inset Flex Code
8710 \begin_layout Plain Layout
8716 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8718 \begin_inset Flex Code
8721 \begin_layout Plain Layout
8730 \begin_layout Description
8731 \begin_inset Flex Code
8734 \begin_layout Plain Layout
8743 \begin_inset Flex Code
8746 \begin_layout Plain Layout
8755 \begin_inset space \thinspace{}
8759 \begin_inset Flex Code
8762 \begin_layout Plain Layout
8768 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8769 \begin_inset Flex MenuItem
8772 \begin_layout Plain Layout
8773 文書\SpecialChar menuseparator
8782 \begin_layout Description
8783 \begin_inset Flex Code
8786 \begin_layout Plain Layout
8793 \begin_inset Flex Code
8796 \begin_layout Plain Layout
8806 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8807 \begin_inset Flex Code
8810 \begin_layout Plain Layout
8817 \begin_inset Newline newline
8821 \begin_inset CommandInset ref
8823 reference "subsec:段落様式-XHTML"
8830 \begin_layout Description
8831 \begin_inset Flex Code
8834 \begin_layout Plain Layout
8841 \begin_inset Flex Code
8844 \begin_layout Plain Layout
8851 \begin_inset Flex Code
8854 \begin_layout Plain Layout
8860 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8862 \begin_inset Flex Code
8865 \begin_layout Plain Layout
8874 \begin_layout Description
8875 \begin_inset Flex Code
8878 \begin_layout Plain Layout
8885 \begin_inset Flex Code
8888 \begin_layout Plain Layout
8897 \begin_inset Flex Code
8900 \begin_layout Plain Layout
8906 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
8907 \begin_inset Flex Code
8910 \begin_layout Plain Layout
8917 \begin_inset Flex Code
8920 \begin_layout Plain Layout
8922 \begin_inset space ~
8930 」が指定されている最後のレイアウトの後に,
8931 \begin_inset Flex Code
8934 \begin_layout Plain Layout
8940 で指定したマクロ名を挿入することを意味します.
8941 \begin_inset Flex Code
8944 \begin_layout Plain Layout
8951 \begin_inset Flex Code
8954 \begin_layout Plain Layout
8956 \begin_inset space ~
8965 \begin_inset Flex Code
8968 \begin_layout Plain Layout
8974 で指定した環境でくるむ場合に対応します.
8977 \begin_layout Description
8978 \begin_inset Flex Code
8981 \begin_layout Plain Layout
8988 \begin_inset Flex Code
8991 \begin_layout Plain Layout
8997 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
8999 \begin_inset Flex Code
9002 \begin_layout Plain Layout
9011 \begin_layout Subsection
9012 \begin_inset Flex Code
9015 \begin_layout Plain Layout
9022 \begin_inset CommandInset label
9024 name "subsec:ClassOptions"
9031 \begin_layout Standard
9032 \begin_inset Flex Code
9035 \begin_layout Plain Layout
9044 \begin_layout Description
9045 \begin_inset Flex Code
9048 \begin_layout Plain Layout
9055 \begin_inset Flex Code
9058 \begin_layout Plain Layout
9064 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9065 \begin_inset Flex Code
9068 \begin_layout Plain Layout
9077 \begin_layout Description
9078 \begin_inset Flex Code
9081 \begin_layout Plain Layout
9087 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9088 \begin_inset Quotes eld
9091 -//OASIS//DTD DocBook V4.2//EN
9092 \begin_inset Quotes erd
9098 \begin_layout Description
9099 \begin_inset Flex Code
9102 \begin_layout Plain Layout
9109 \begin_inset Flex Code
9112 \begin_layout Plain Layout
9113 文字列="empty|plain|headings|fancy"
9119 \begin_inset Flex Code
9122 \begin_layout Plain Layout
9131 \begin_layout Description
9132 \begin_inset Flex Code
9135 \begin_layout Plain Layout
9142 \begin_inset Flex Code
9145 \begin_layout Plain Layout
9152 \begin_inset Flex Code
9155 \begin_layout Plain Layout
9163 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9166 \begin_layout Standard
9167 \begin_inset Flex Code
9170 \begin_layout Plain Layout
9177 \begin_inset Flex Code
9180 \begin_layout Plain Layout
9189 \begin_layout Subsection
9191 \begin_inset CommandInset label
9200 \begin_layout Standard
9205 \begin_layout Plain Layout
9206 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9214 \begin_layout LyX-Code
9221 \begin_layout LyX-Code
9225 \begin_layout LyX-Code
9229 \begin_layout Standard
9230 ここでは,以下のコマンドを使用することができます.
9233 \begin_layout Description
9234 \begin_inset Flex Code
9237 \begin_layout Plain Layout
9244 \begin_inset Flex Code
9247 \begin_layout Plain Layout
9252 , left, right, center
9260 \begin_layout Description
9261 \begin_inset Flex Code
9264 \begin_layout Plain Layout
9271 \begin_inset Flex Code
9274 \begin_layout Plain Layout
9279 , left, right, center
9284 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9285 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9289 \begin_layout Description
9290 \begin_inset Flex Code
9293 \begin_layout Plain Layout
9300 \begin_inset Flex Code
9303 \begin_layout Plain Layout
9309 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9311 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9312 \begin_inset Flex Code
9315 \begin_layout Plain Layout
9321 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9361 \begin_layout Standard
9362 \begin_inset Flex Code
9365 \begin_layout Plain Layout
9371 定義内部では,以下の指定をすることができます.
9374 \begin_layout Itemize
9375 \begin_inset Flex Code
9378 \begin_layout Plain Layout
9385 \begin_inset Flex Code
9388 \begin_layout Plain Layout
9394 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9395 \begin_inset Flex Code
9398 \begin_layout Plain Layout
9404 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9405 \begin_inset space \space{}
9409 \begin_inset Quotes eld
9413 \begin_inset Flex Code
9416 \begin_layout Plain Layout
9423 \begin_inset Quotes erd
9429 \begin_layout Itemize
9430 \begin_inset Flex Code
9433 \begin_layout Plain Layout
9440 \begin_inset Flex Code
9443 \begin_layout Plain Layout
9449 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9450 \begin_inset space \space{}
9454 \begin_inset Quotes eld
9458 \begin_inset Flex Code
9461 \begin_layout Plain Layout
9468 \begin_inset Quotes erd
9471 ).この指定は必須ではありません.指定しない場合には,代わりに
9472 \begin_inset Flex Code
9475 \begin_layout Plain Layout
9484 \begin_layout Itemize
9485 \begin_inset Flex Code
9488 \begin_layout Plain Layout
9495 \begin_inset Flex Code
9498 \begin_layout Plain Layout
9504 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9507 \begin_layout Itemize
9508 \begin_inset Flex Code
9511 \begin_layout Plain Layout
9518 \begin_inset Flex Code
9521 \begin_layout Plain Layout
9530 \begin_inset space \thinspace{}
9534 \begin_inset Flex Code
9537 \begin_layout Plain Layout
9543 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9545 \begin_inset Flex Code
9548 \begin_layout Plain Layout
9555 \begin_inset Flex Code
9558 \begin_layout Plain Layout
9567 \begin_layout Itemize
9568 \begin_inset Flex Code
9571 \begin_layout Plain Layout
9578 \begin_inset Flex Code
9581 \begin_layout Plain Layout
9587 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9589 \begin_inset Flex Code
9592 \begin_layout Plain Layout
9600 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9601 \begin_inset Flex Code
9604 \begin_layout Plain Layout
9611 \begin_inset Flex Code
9614 \begin_layout Plain Layout
9620 ステートメントを置くことで実現できます.
9623 \begin_layout Itemize
9624 \begin_inset Flex Code
9627 \begin_layout Plain Layout
9634 \begin_inset Flex Code
9637 \begin_layout Plain Layout
9644 \begin_inset Flex Code
9647 \begin_layout Plain Layout
9654 \begin_inset Flex Code
9657 \begin_layout Plain Layout
9663 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9664 \begin_inset Flex Code
9667 \begin_layout Plain Layout
9676 \begin_layout Itemize
9677 \begin_inset Flex Code
9680 \begin_layout Plain Layout
9687 \begin_inset Flex Code
9690 \begin_layout Plain Layout
9697 \begin_inset Flex Code
9700 \begin_layout Plain Layout
9707 \begin_inset Flex Code
9710 \begin_layout Plain Layout
9716 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9717 \begin_inset Flex Code
9720 \begin_layout Plain Layout
9729 \begin_layout Itemize
9730 \begin_inset Flex Code
9733 \begin_layout Plain Layout
9740 \begin_inset Flex Code
9743 \begin_layout Plain Layout
9749 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9750 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9753 \begin_layout Itemize
9754 \begin_inset Flex Code
9757 \begin_layout Plain Layout
9764 \begin_inset Flex Code
9767 \begin_layout Plain Layout
9773 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9776 \begin_layout Itemize
9777 \begin_inset Flex Code
9780 \begin_layout Plain Layout
9787 \begin_inset CommandInset ref
9789 reference "subsec:フォント指定"
9796 \begin_layout Itemize
9797 \begin_inset Flex Code
9800 \begin_layout Plain Layout
9807 \begin_inset CommandInset ref
9809 reference "subsec:フォント指定"
9816 \begin_layout Itemize
9817 \begin_inset Flex Code
9820 \begin_layout Plain Layout
9827 \begin_inset Flex Code
9830 \begin_layout Plain Layout
9835 , Minimalistic, Conglomerate
9840 ] 差込枠の枠とボタンに用いられる装飾様式.
9843 \begin_layout Itemize
9844 \begin_inset Flex Code
9847 \begin_layout Plain Layout
9854 \begin_inset Flex Code
9857 \begin_layout Plain Layout
9864 \begin_inset Flex Code
9867 \begin_layout Plain Layout
9873 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9876 \begin_layout Itemize
9877 \begin_inset Flex Code
9880 \begin_layout Plain Layout
9887 \begin_inset Flex Code
9890 \begin_layout Plain Layout
9897 \begin_inset Flex Code
9900 \begin_layout Plain Layout
9906 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
9909 \begin_layout Itemize
9910 \begin_inset Flex Code
9913 \begin_layout Plain Layout
9920 \begin_inset Flex Code
9923 \begin_layout Plain Layout
9934 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
9935 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
9938 \begin_layout Standard
9940 \begin_inset Flex Code
9943 \begin_layout Plain Layout
9950 \begin_inset Flex Code
9953 \begin_layout Plain Layout
9959 のとき,各レイアウトで\SpecialChar LyX
9960 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
9961 \begin_inset Flex Code
9964 \begin_layout Plain Layout
9970 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
9971 \begin_inset Flex Code
9974 \begin_layout Plain Layout
9981 \begin_inset Flex Code
9984 \begin_layout Plain Layout
9991 \begin_inset Flex Code
9994 \begin_layout Plain Layout
10003 \begin_layout Standard
10005 \begin_inset Flex Code
10008 \begin_layout Plain Layout
10017 \begin_inset Flex Code
10020 \begin_layout Plain Layout
10029 \begin_inset Flex Code
10032 \begin_layout Plain Layout
10039 \begin_inset Flex Code
10042 \begin_layout Plain Layout
10052 \begin_layout Description
10053 \begin_inset Flex Code
10056 \begin_layout Plain Layout
10063 \begin_inset Flex Code
10066 \begin_layout Plain Layout
10072 宣言をすべて,完全に上書きしますので注意してください.「
10073 \begin_inset Flex Code
10076 \begin_layout Plain Layout
10082 」で閉じる必要があります.これの利用法についての詳細は,第
10083 \begin_inset CommandInset ref
10085 reference "subsec:段落様式の国際化"
10092 \begin_layout Description
10093 \begin_inset Flex Code
10096 \begin_layout Plain Layout
10103 \begin_inset Flex Code
10106 \begin_layout Plain Layout
10116 \begin_layout Plain Layout
10117 ここで「浮動小数点型」とは1.5のような実数を指します.
10122 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10126 \begin_layout Description
10127 \begin_inset Flex Code
10130 \begin_layout Plain Layout
10137 \begin_inset Flex Code
10140 \begin_layout Plain Layout
10146 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10147 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10150 \begin_layout Description
10151 \begin_inset Flex Code
10154 \begin_layout Plain Layout
10160 XMLコマンドの深度.XML型の書式でのみ使用されます.
10163 \begin_layout Description
10164 \begin_inset Flex Code
10167 \begin_layout Plain Layout
10174 \begin_inset Flex Code
10177 \begin_layout Plain Layout
10183 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10186 \begin_layout Description
10187 \begin_inset Flex Code
10190 \begin_layout Plain Layout
10197 \begin_inset Flex Code
10200 \begin_layout Plain Layout
10214 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10218 \begin_layout Plain Layout
10219 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10220 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10229 \begin_layout Description
10230 \begin_inset Flex Code
10233 \begin_layout Plain Layout
10240 \begin_inset Flex Code
10243 \begin_layout Plain Layout
10248 , Box, Filled_Box, Static
10254 \begin_inset Flex Code
10257 \begin_layout Plain Layout
10264 \begin_inset Flex Code
10267 \begin_layout Plain Layout
10274 \begin_inset Flex Code
10277 \begin_layout Plain Layout
10284 \begin_inset Flex Code
10287 \begin_layout Plain Layout
10293 のいずれかの場合は,段落群の最後)に置くラベル.
10294 \begin_inset Flex Code
10297 \begin_layout Plain Layout
10304 \begin_inset Flex Code
10307 \begin_layout Plain Layout
10314 \begin_inset Flex Code
10317 \begin_layout Plain Layout
10323 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10324 \begin_inset Flex Code
10327 \begin_layout Plain Layout
10336 \begin_layout Description
10337 \begin_inset Flex Code
10340 \begin_layout Plain Layout
10347 \begin_inset Flex Code
10350 \begin_layout Plain Layout
10357 \begin_inset Flex Code
10360 \begin_layout Plain Layout
10367 \begin_inset Flex Code
10370 \begin_layout Plain Layout
10379 \begin_layout Description
10380 \begin_inset Flex Code
10383 \begin_layout Plain Layout
10394 \begin_inset CommandInset ref
10396 reference "subsec:フォント指定"
10400 節を参照.このフォントを定義すると,自動的に
10401 \begin_inset Flex Code
10404 \begin_layout Plain Layout
10410 も同じ値で定義されることに注意してください.したがって,
10411 \begin_inset Flex Code
10414 \begin_layout Plain Layout
10420 も同時に定義したい場合には,これを先に定義してください.
10423 \begin_layout Description
10424 \begin_inset Flex Code
10427 \begin_layout Plain Layout
10434 \begin_inset Flex Code
10437 \begin_layout Plain Layout
10443 ] 新しい様式を\SpecialChar LyX
10444 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10445 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10447 \begin_inset Flex Code
10450 \begin_layout Plain Layout
10456 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10458 もこの様式を取り扱えるようになります.
10459 \begin_inset Flex Code
10462 \begin_layout Plain Layout
10468 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10469 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10472 \begin_layout Description
10473 \begin_inset Flex Code
10476 \begin_layout Plain Layout
10485 \begin_inset Flex Code
10488 \begin_layout Plain Layout
10497 \begin_inset space \thinspace{}
10501 \begin_inset Flex Code
10504 \begin_layout Plain Layout
10511 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10512 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10513 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10514 \begin_inset Flex Code
10517 \begin_layout Plain Layout
10523 を有効にすることが認められています.\SpecialChar LyX
10524 は,\SpecialChar LaTeX
10525 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10528 \begin_layout Description
10529 \begin_inset Flex Code
10532 \begin_layout Plain Layout
10538 これらのタグは,XHTML出力で使用されます.第
10539 \begin_inset CommandInset ref
10541 reference "subsec:段落様式-XHTML"
10548 \begin_layout Description
10549 \begin_inset Flex Code
10552 \begin_layout Plain Layout
10558 [[FIXME]] (XML型書式でのみ使用されます.)
10561 \begin_layout Description
10562 \begin_inset Flex Code
10565 \begin_layout Plain Layout
10574 \begin_inset Flex Code
10577 \begin_layout Plain Layout
10586 \begin_inset space \thinspace{}
10590 \begin_inset Flex Code
10593 \begin_layout Plain Layout
10600 \begin_inset Flex Code
10603 \begin_layout Plain Layout
10609 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10611 \begin_inset Flex Code
10614 \begin_layout Plain Layout
10621 \begin_inset Flex Code
10624 \begin_layout Plain Layout
10631 \begin_inset Flex Code
10634 \begin_layout Plain Layout
10643 \begin_layout Description
10644 \begin_inset Flex Code
10647 \begin_layout Plain Layout
10656 \begin_inset Flex Code
10659 \begin_layout Plain Layout
10668 \begin_inset space \thinspace{}
10672 \begin_inset Flex Code
10675 \begin_layout Plain Layout
10682 \begin_inset Flex Code
10685 \begin_layout Plain Layout
10691 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10692 \begin_inset Flex Code
10695 \begin_layout Plain Layout
10702 \begin_inset Flex Code
10705 \begin_layout Plain Layout
10714 \begin_layout Description
10715 \begin_inset Flex Code
10718 \begin_layout Plain Layout
10725 \begin_inset Flex Code
10728 \begin_layout Plain Layout
10734 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10735 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10737 \begin_inset Flex Code
10740 \begin_layout Plain Layout
10751 \begin_layout Description
10752 \begin_inset Flex Code
10755 \begin_layout Plain Layout
10762 \begin_inset Flex Code
10765 \begin_layout Plain Layout
10771 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10772 \begin_inset Flex Code
10775 \begin_layout Plain Layout
10781 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10782 \begin_inset Flex Code
10785 \begin_layout Plain Layout
10798 \begin_layout Description
10799 \begin_inset Flex Code
10802 \begin_layout Plain Layout
10808 [[FIXME]] (XML型書式でのみ使用されます.)
10811 \begin_layout Description
10812 \begin_inset Flex Code
10815 \begin_layout Plain Layout
10824 \begin_inset Flex Code
10827 \begin_layout Plain Layout
10836 \begin_inset space \thinspace{}
10840 \begin_inset Flex Code
10843 \begin_layout Plain Layout
10849 ] 段落を空のままにすると,\SpecialChar LaTeX
10850 出力が空になってしまうので,通常,\SpecialChar LyX
10851 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10852 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10853 まないある種の改行として使用することもあります.
10856 \begin_layout Description
10857 \begin_inset Flex Code
10860 \begin_layout Plain Layout
10867 \begin_inset Flex Code
10870 \begin_layout Plain Layout
10876 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10877 \begin_inset Flex Code
10880 \begin_layout Plain Layout
10887 \begin_inset Newline linebreak
10891 \begin_inset Flex Code
10894 \begin_layout Plain Layout
10895 Centered_Top_Environment
10903 \begin_layout Description
10904 \begin_inset Flex Code
10907 \begin_layout Plain Layout
10914 \begin_inset Flex Code
10917 \begin_layout Plain Layout
10923 ] 自動連番に使われるカウンタ名(詳しくは第
10924 \begin_inset CommandInset ref
10926 reference "subsec:カウンタ"
10930 節参照).カウンタがラベル中に表示されるようにするためには,
10931 \begin_inset Flex Code
10934 \begin_layout Plain Layout
10940 中で参照する必要があります.これは,少なくとも
10941 \begin_inset Flex Code
10944 \begin_layout Plain Layout
10951 \begin_inset Flex Code
10954 \begin_layout Plain Layout
10961 \begin_inset Flex Code
10964 \begin_layout Plain Layout
10971 \begin_inset Flex Code
10974 \begin_layout Plain Layout
10981 \begin_inset Newline newline
10985 \begin_inset Flex Code
10988 \begin_layout Plain Layout
10995 \begin_inset Flex Code
10998 \begin_layout Plain Layout
11004 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11005 \begin_inset Flex Code
11008 \begin_layout Plain Layout
11009 LabelCounter myenum
11014 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11015 におけるのと同様,実際に使われるカウンタは,
11016 \begin_inset Flex Code
11019 \begin_layout Plain Layout
11026 \begin_inset Flex Code
11029 \begin_layout Plain Layout
11036 \begin_inset Flex Code
11039 \begin_layout Plain Layout
11046 \begin_inset Flex Code
11049 \begin_layout Plain Layout
11055 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11056 \begin_inset Newline newline
11060 \begin_inset CommandInset ref
11062 reference "subsec:カウンタ"
11069 \begin_layout Description
11070 \begin_inset Flex Code
11073 \begin_layout Plain Layout
11080 \begin_inset CommandInset ref
11082 reference "subsec:フォント指定"
11089 \begin_layout Description
11090 \begin_inset Flex Code
11093 \begin_layout Plain Layout
11100 \begin_inset Flex Code
11103 \begin_layout Plain Layout
11109 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11112 \begin_layout Description
11113 \begin_inset Flex Code
11116 \begin_layout Plain Layout
11123 \begin_inset Flex Code
11126 \begin_layout Plain Layout
11132 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11135 \begin_layout Description
11136 \begin_inset Flex Code
11139 \begin_layout Plain Layout
11146 \begin_inset Flex Code
11149 \begin_layout Plain Layout
11156 \begin_inset Flex Code
11159 \begin_layout Plain Layout
11166 \begin_inset Flex Code
11169 \begin_layout Plain Layout
11176 \begin_inset CommandInset ref
11178 reference "subsec:カウンタ"
11182 に述べられている特別な整形コマンドを含めることができます.
11185 \begin_layout Description
11186 \begin_inset Flex Code
11189 \begin_layout Plain Layout
11190 LabelStringAppendix
11196 \begin_inset Flex Code
11199 \begin_layout Plain Layout
11206 \begin_inset Flex Code
11209 \begin_layout Plain Layout
11216 \begin_inset Flex Code
11219 \begin_layout Plain Layout
11226 \begin_inset Flex Code
11229 \begin_layout Plain Layout
11230 LabelStringAppendix
11235 をもリセットすることに注意してください.
11238 \begin_layout Description
11239 \begin_inset Flex Code
11242 \begin_layout Plain Layout
11248 [FIXME] (XML型書式でのみ使用されます.)
11251 \begin_layout Description
11252 \begin_inset Flex Code
11255 \begin_layout Plain Layout
11262 \begin_inset Flex Code
11265 \begin_layout Plain Layout
11270 , Manual, Static, Above,
11271 \begin_inset Newline newline
11274 Centered, Sensitive, Enumerate,
11275 \begin_inset Newline newline
11278 Itemize, Bibliography
11287 \begin_layout Description
11288 \begin_inset Flex Code
11291 \begin_layout Plain Layout
11297 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11300 \begin_layout Description
11301 \begin_inset Flex Code
11304 \begin_layout Plain Layout
11311 \begin_inset Flex Code
11314 \begin_layout Plain Layout
11320 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11321 \begin_inset Flex Code
11324 \begin_layout Plain Layout
11331 \begin_inset Flex Code
11334 \begin_layout Plain Layout
11341 \begin_inset Flex Code
11344 \begin_layout Plain Layout
11350 の段落中,最初の段落にのみ表示されます.
11353 \begin_layout Description
11354 \begin_inset Flex Code
11357 \begin_layout Plain Layout
11364 \begin_inset Flex Code
11367 \begin_layout Plain Layout
11374 \begin_inset Flex Code
11377 \begin_layout Plain Layout
11383 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11386 \begin_layout Description
11387 \begin_inset Flex Code
11390 \begin_layout Plain Layout
11396 はキャプションラベルの「図」や「表」の特別な場合です.
11397 \begin_inset Flex Code
11400 \begin_layout Plain Layout
11406 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11407 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11408 \begin_inset Flex Code
11411 \begin_layout Plain Layout
11417 は「意味を成しません!」と表示されます.
11420 \begin_layout Description
11421 \begin_inset Flex Code
11424 \begin_layout Plain Layout
11430 は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11434 \begin_layout Description
11435 \begin_inset Flex Code
11438 \begin_layout Plain Layout
11444 は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11447 \begin_layout Description
11448 \begin_inset Flex Code
11451 \begin_layout Plain Layout
11458 \begin_inset Flex Code
11461 \begin_layout Plain Layout
11462 LatexType BibEnvironment
11471 \begin_layout Description
11472 \begin_inset Flex Code
11475 \begin_layout Plain Layout
11482 \begin_inset Flex Code
11485 \begin_layout Plain Layout
11491 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11492 \begin_inset CommandInset ref
11494 reference "subsec:段落様式の国際化"
11501 \begin_layout Description
11502 \begin_inset Flex Code
11505 \begin_layout Plain Layout
11512 \begin_inset Flex Code
11515 \begin_layout Plain Layout
11521 ] 対応する\SpecialChar LaTeX
11522 の名称です.環境名かコマンド名を指します.
11525 \begin_layout Description
11526 \begin_inset Flex Code
11529 \begin_layout Plain Layout
11536 \begin_inset Flex Code
11539 \begin_layout Plain Layout
11546 \begin_inset Flex Code
11549 \begin_layout Plain Layout
11555 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11556 内部から変更することはできません(変更可能なパラメータには
11557 \begin_inset Flex Code
11560 \begin_layout Plain Layout
11566 を使用してください).これは,全ての\SpecialChar LaTeX
11568 \begin_inset Flex Code
11571 \begin_layout Plain Layout
11580 \begin_layout Description
11581 \begin_inset Flex Code
11584 \begin_layout Plain Layout
11591 \begin_inset Flex Code
11594 \begin_layout Plain Layout
11599 , Command, Environment, Item_Environment,
11600 \begin_inset Newline newline
11603 List_Environment, Bib_Environment
11608 ] レイアウトがどのように\SpecialChar LaTeX
11613 \begin_layout Plain Layout
11614 これらのルールはSGMLクラスにも適用されるので,
11615 \begin_inset Flex Code
11618 \begin_layout Plain Layout
11624 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11625 \begin_inset Flex Code
11628 \begin_layout Plain Layout
11643 \begin_layout Description
11644 \begin_inset Flex Code
11647 \begin_layout Plain Layout
11656 \begin_layout Description
11657 \begin_inset Flex Code
11660 \begin_layout Plain Layout
11667 \begin_inset Flex Code
11670 \begin_layout Plain Layout
11677 {\SpecialChar ldots
11686 \begin_layout Description
11687 \begin_inset Flex Code
11690 \begin_layout Plain Layout
11697 \begin_inset Flex Code
11700 \begin_layout Plain Layout
11707 }\SpecialChar ldots
11722 \begin_layout Description
11723 \begin_inset Flex Code
11726 \begin_layout Plain Layout
11733 \begin_inset Flex Code
11736 \begin_layout Plain Layout
11743 \begin_inset Flex Code
11746 \begin_layout Plain Layout
11754 がこの環境のすべての段落に付けられるところだけが異なっています.
11757 \begin_layout Description
11758 \begin_inset Flex Code
11761 \begin_layout Plain Layout
11768 \begin_inset Flex Code
11771 \begin_layout Plain Layout
11778 \begin_inset Flex Code
11781 \begin_layout Plain Layout
11787 が環境の引数として渡されるところだけが異なっています.
11788 \begin_inset Flex Code
11791 \begin_layout Plain Layout
11798 \begin_inset Flex MenuItem
11801 \begin_layout Plain Layout
11802 編集\SpecialChar menuseparator
11811 \begin_layout Description
11812 \begin_inset Flex Code
11815 \begin_layout Plain Layout
11822 \begin_inset Flex Code
11825 \begin_layout Plain Layout
11831 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11832 \begin_inset Newline newline
11836 \begin_inset Flex Code
11839 \begin_layout Plain Layout
11842 begin{thebibliography}{99}
11848 \begin_inset Newline newline
11851 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11854 \begin_layout Standard
11855 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11856 出力は,\SpecialChar LaTeX
11860 \begin_layout LyX-Code
11863 LatexName[LatexParam]{\SpecialChar ldots
11867 \begin_layout Standard
11871 \begin_layout LyX-Code
11874 begin{LatexName}[LatexParam] \SpecialChar ldots
11880 \begin_layout Standard
11885 \begin_layout Description
11886 \begin_inset Flex Code
11889 \begin_layout Plain Layout
11896 \begin_inset Flex Code
11899 \begin_layout Plain Layout
11905 ] 様式の内容の最初に置かれる文字列.出力中の改行は
11906 \begin_inset Flex Code
11909 \begin_layout Plain Layout
11918 \begin_layout Description
11919 \begin_inset Flex Code
11922 \begin_layout Plain Layout
11929 \begin_inset Flex Code
11932 \begin_layout Plain Layout
11938 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
11939 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11942 をかけて加えられます.このパラメータは,
11943 \begin_inset Flex Code
11946 \begin_layout Plain Layout
11953 \begin_inset Flex Code
11956 \begin_layout Plain Layout
11963 \begin_inset Flex Code
11966 \begin_layout Plain Layout
11972 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
11973 \begin_inset Newline newline
11977 \begin_inset Flex Code
11980 \begin_layout Plain Layout
11986 」と指定すると,段落を通常フォントの「
11987 \begin_inset Flex Code
11990 \begin_layout Plain Layout
11996 」の幅だけ行頭下げを行います.文字列の前に「
11997 \begin_inset Flex Code
12000 \begin_layout Plain Layout
12006 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12009 \begin_layout Description
12010 \begin_inset Flex Code
12013 \begin_layout Plain Layout
12020 \begin_inset Flex Code
12023 \begin_layout Plain Layout
12028 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12034 \begin_inset Newline newline
12041 \begin_layout Description
12042 \begin_inset Flex Code
12045 \begin_layout Plain Layout
12054 \begin_layout Description
12055 \begin_inset Flex Code
12058 \begin_layout Plain Layout
12065 \begin_inset Flex MenuItem
12068 \begin_layout Plain Layout
12069 編集\SpecialChar menuseparator
12075 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12078 \begin_layout Description
12079 \begin_inset Flex Code
12082 \begin_layout Plain Layout
12088 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12089 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12092 \begin_layout Description
12093 \begin_inset Flex Code
12096 \begin_layout Plain Layout
12102 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12105 \begin_layout Description
12106 \begin_inset Flex Code
12109 \begin_layout Plain Layout
12115 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12119 \begin_layout Description
12120 \begin_inset Flex Code
12123 \begin_layout Plain Layout
12130 \begin_inset Flex Code
12133 \begin_layout Plain Layout
12142 \begin_inset space \thinspace{}
12146 \begin_inset Flex Code
12149 \begin_layout Plain Layout
12155 ] このレイアウト中の脆弱なコマンドが
12156 \begin_inset Flex Code
12159 \begin_layout Plain Layout
12167 されるべきか否か(註:これはこのコマンド自体が
12168 \begin_inset Flex Code
12171 \begin_layout Plain Layout
12186 \begin_layout Description
12187 \begin_inset Flex Code
12190 \begin_layout Plain Layout
12197 \begin_inset Flex Code
12200 \begin_layout Plain Layout
12207 \begin_inset space \thinspace{}
12211 \begin_inset Flex Code
12214 \begin_layout Plain Layout
12222 ] 新規行を\SpecialChar LaTeX
12224 \begin_inset Flex Code
12227 \begin_layout Plain Layout
12237 )に変換するか否か.\SpecialChar LyX
12238 中で\SpecialChar LaTeX
12239 編集をやりやすくするために,変換は無効にすることができます.
12242 \begin_layout Description
12243 \begin_inset Flex Code
12246 \begin_layout Plain Layout
12253 \begin_inset Flex Code
12256 \begin_layout Plain Layout
12265 \begin_inset space \thinspace{}
12269 \begin_inset Flex Code
12272 \begin_layout Plain Layout
12279 \begin_inset Flex Code
12282 \begin_layout Plain Layout
12289 \begin_inset Flex Code
12292 \begin_layout Plain Layout
12298 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12301 \begin_layout Description
12302 \begin_inset Flex Code
12305 \begin_layout Plain Layout
12312 \begin_inset Flex Code
12315 \begin_layout Plain Layout
12321 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12324 \begin_layout Description
12325 \begin_inset Flex Code
12328 \begin_layout Plain Layout
12335 \begin_inset Flex Code
12338 \begin_layout Plain Layout
12345 \begin_inset space \thinspace{}
12349 \begin_inset Flex Code
12352 \begin_layout Plain Layout
12358 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12359 \begin_inset Flex Code
12362 \begin_layout Plain Layout
12368 が一度だけ出力される効果があります.既定では,
12369 \begin_inset Flex Code
12372 \begin_layout Plain Layout
12379 \begin_inset Flex Code
12382 \begin_layout Plain Layout
12389 \begin_inset Flex Code
12392 \begin_layout Plain Layout
12398 については有効であり,他の型すべてについて無効になっています.
12401 \begin_layout Description
12402 \begin_inset Flex Code
12405 \begin_layout Plain Layout
12412 \begin_inset Flex Code
12415 \begin_layout Plain Layout
12424 \begin_inset space \thinspace{}
12428 \begin_inset Flex Code
12431 \begin_layout Plain Layout
12437 ] \SpecialChar LaTeX
12438 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12439 \begin_inset Flex Code
12442 \begin_layout Plain Layout
12448 と併用すれば,(\SpecialChar TeX
12449 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12452 \begin_layout Description
12453 \begin_inset Flex Code
12456 \begin_layout Plain Layout
12463 \begin_inset Flex Code
12466 \begin_layout Plain Layout
12472 ] 段落の最初の行の行頭下げ.レイアウトによっては
12473 \begin_inset Flex Code
12476 \begin_layout Plain Layout
12482 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12483 \begin_inset Flex Code
12486 \begin_layout Plain Layout
12492 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12493 \begin_inset Flex Code
12496 \begin_layout Plain Layout
12503 \begin_inset Flex Code
12506 \begin_layout Plain Layout
12512 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12515 \begin_layout Description
12516 \begin_inset Flex Code
12519 \begin_layout Plain Layout
12526 \begin_inset Flex Code
12529 \begin_layout Plain Layout
12535 ] このレイアウトの2段落間の垂直余白.
12538 \begin_layout Description
12539 \begin_inset Flex Code
12542 \begin_layout Plain Layout
12549 \begin_inset Flex Code
12552 \begin_layout Plain Layout
12559 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12560 択した際には,\SpecialChar LaTeX
12562 \begin_inset Flex Code
12565 \begin_layout Plain Layout
12572 \begin_inset Flex Code
12575 \begin_layout Plain Layout
12581 引数分だけ引き離されます.垂直余白は,
12582 \begin_inset Flex Code
12585 \begin_layout Plain Layout
12591 を標準フォントでの1行の高さとすると,
12592 \begin_inset Flex Code
12595 \begin_layout Plain Layout
12602 \begin_inset Formula $\times$
12606 \begin_inset Flex Code
12609 \begin_layout Plain Layout
12615 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12618 \begin_layout Description
12619 \begin_inset Flex Code
12622 \begin_layout Plain Layout
12631 \begin_inset Flex Code
12634 \begin_layout Plain Layout
12643 \begin_inset space \thinspace{}
12647 \begin_inset Flex Code
12650 \begin_layout Plain Layout
12656 ] この段落の内容が,\SpecialChar LaTeX
12657 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12660 \begin_layout Description
12661 \begin_inset Flex Code
12664 \begin_layout Plain Layout
12671 \begin_inset Flex Code
12674 \begin_layout Plain Layout
12685 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12688 \begin_layout Description
12689 \begin_inset Flex Code
12692 \begin_layout Plain Layout
12698 この様式が使用されたときに,\SpecialChar LaTeX
12699 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12700 \begin_inset Flex Code
12703 \begin_layout Plain Layout
12712 \begin_layout Description
12713 \begin_inset Flex Code
12716 \begin_layout Plain Layout
12723 \begin_inset Flex Code
12726 \begin_layout Plain Layout
12732 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12735 \begin_layout Description
12736 \begin_inset Flex Code
12739 \begin_layout Plain Layout
12746 \begin_inset Flex Code
12749 \begin_layout Plain Layout
12756 \begin_inset Flex Code
12759 \begin_layout Plain Layout
12765 を必要とするかどうか(機能詳細については,第
12766 \begin_inset CommandInset ref
12768 reference "chap:関数一覧"
12772 節参照).特定のオプションをとるパッケージを要求する場合,
12773 \begin_inset Flex Code
12776 \begin_layout Plain Layout
12782 を汎用テキストクラスパラメータとして追加して使うことができます(
12783 \begin_inset CommandInset ref
12785 reference "subsec:汎用テキストクラスパラメータ"
12792 \begin_layout Description
12793 \begin_inset Flex Code
12796 \begin_layout Plain Layout
12803 \begin_inset Flex Code
12806 \begin_layout Plain Layout
12815 \begin_inset Flex Code
12818 \begin_layout Plain Layout
12825 \begin_inset Flex Code
12828 \begin_layout Plain Layout
12834 タグで定義された)この様式の\SpecialChar LaTeX
12836 \begin_inset Flex Code
12839 \begin_layout Plain Layout
12845 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12848 \begin_layout Description
12849 \begin_inset Flex Code
12852 \begin_layout Plain Layout
12859 \begin_inset Flex Code
12862 \begin_layout Plain Layout
12868 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12869 \begin_inset Flex Code
12872 \begin_layout Plain Layout
12881 \begin_layout Description
12882 \begin_inset Flex Code
12885 \begin_layout Plain Layout
12892 \begin_inset Flex Code
12895 \begin_layout Plain Layout
12902 \begin_inset Flex Code
12905 \begin_layout Plain Layout
12914 \begin_layout Description
12915 \begin_inset Flex Code
12918 \begin_layout Plain Layout
12925 \begin_inset Flex Code
12928 \begin_layout Plain Layout
12937 \begin_inset Flex Code
12940 \begin_layout Plain Layout
12947 \begin_inset Flex Code
12950 \begin_layout Plain Layout
12957 \begin_inset Flex Code
12960 \begin_layout Plain Layout
12962 \begin_inset space ~
12978 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
12979 \begin_inset Flex Code
12982 \begin_layout Plain Layout
12989 \begin_inset Flex Code
12992 \begin_layout Plain Layout
12999 \begin_inset Flex Code
13002 \begin_layout Plain Layout
13008 は,それぞれ乗数1・1.25・1.667に対応します.引数
13009 \begin_inset Flex Code
13012 \begin_layout Plain Layout
13018 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13019 \begin_inset Flex Code
13022 \begin_layout Plain Layout
13028 は,\SpecialChar LaTeX
13030 \begin_inset Flex Code
13033 \begin_layout Plain Layout
13039 パッケージを使用した,限定的な\SpecialChar LaTeX
13040 コードを生成することを意味することにご注意ください.
13043 \begin_layout Description
13044 \begin_inset Flex Code
13047 \begin_layout Plain Layout
13054 \begin_inset Flex Code
13057 \begin_layout Plain Layout
13064 \begin_inset space \thinspace{}
13068 \begin_inset Flex Code
13071 \begin_layout Plain Layout
13077 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13080 \begin_layout Description
13081 \begin_inset Flex Code
13084 \begin_layout Plain Layout
13091 \begin_inset CommandInset ref
13093 reference "subsec:フォント指定"
13100 \begin_layout Description
13101 \begin_inset Flex Code
13104 \begin_layout Plain Layout
13111 \begin_inset Flex Code
13114 \begin_layout Plain Layout
13120 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13123 \begin_layout Description
13124 \begin_inset Flex Code
13127 \begin_layout Plain Layout
13136 \begin_inset Flex Code
13139 \begin_layout Plain Layout
13148 \begin_inset Flex Code
13151 \begin_layout Plain Layout
13158 \begin_inset Flex Code
13161 \begin_layout Plain Layout
13167 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13168 \begin_inset Flex Code
13171 \begin_layout Plain Layout
13177 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13178 \begin_inset Flex Code
13181 \begin_layout Plain Layout
13187 は,文書設定にかかわらず変更することができ,
13188 \begin_inset Flex Code
13191 \begin_layout Plain Layout
13197 は,どのような場合でも変更することができません.
13200 \begin_layout Description
13201 \begin_inset Flex Code
13204 \begin_layout Plain Layout
13211 \begin_inset Flex Code
13214 \begin_layout Plain Layout
13220 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13224 \begin_layout Subsection
13226 \begin_inset CommandInset label
13228 name "subsec:段落様式の国際化"
13235 \begin_layout Standard
13237 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13238 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13242 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13245 \begin_layout Standard
13247 \begin_inset Flex MenuItem
13250 \begin_layout Plain Layout
13256 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13257 \begin_inset Flex MenuItem
13260 \begin_layout Plain Layout
13267 \begin_inset Flex MenuItem
13270 \begin_layout Plain Layout
13276 を使用することができます.以下の抜粋(
13277 \begin_inset Flex MenuItem
13280 \begin_layout Plain Layout
13286 より)は,これがどう動作するかを示すものです.
13289 \begin_layout LyX-Code
13294 \begin_layout LyX-Code
13297 theoremstyle{remark}
13300 \begin_layout LyX-Code
13303 newtheorem{claim}[thm]{
13310 \begin_layout LyX-Code
13314 \begin_layout LyX-Code
13318 \begin_layout LyX-Code
13323 claimname}{_(Claim)}
13326 \begin_layout LyX-Code
13330 \begin_layout LyX-Code
13334 \begin_layout LyX-Code
13343 claimname}{_(Claim)}}
13346 \begin_layout LyX-Code
13351 \begin_layout Standard
13353 \begin_inset Flex MenuItem
13356 \begin_layout Plain Layout
13363 \begin_inset Flex MenuItem
13366 \begin_layout Plain Layout
13372 タグ内には,有効な\SpecialChar LaTeX
13373 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13374 は,\SpecialChar LaTeX
13376 \begin_inset Flex Code
13379 \begin_layout Plain Layout
13388 \begin_inset Flex Code
13391 \begin_layout Plain Layout
13402 \begin_layout Standard
13403 \begin_inset Flex Code
13406 \begin_layout Plain Layout
13412 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13413 \begin_inset Flex Code
13416 \begin_layout Plain Layout
13422 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13423 \begin_inset Flex Code
13426 \begin_layout Plain Layout
13432 が使用されていることです.これは,\SpecialChar LyX
13433 が\SpecialChar LaTeX
13434 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13437 \begin_layout Standard
13438 \begin_inset Flex Code
13441 \begin_layout Plain Layout
13448 \begin_inset Flex Code
13451 \begin_layout Plain Layout
13457 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13459 \begin_inset Flex Code
13462 \begin_layout Plain Layout
13468 の引数は,その当該言語への翻訳で置き換えられ,
13469 \begin_inset Flex Code
13472 \begin_layout Plain Layout
13478 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13481 \begin_layout Standard
13482 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13485 \begin_layout LyX-Code
13494 claimname}{Affirmation}}
13495 \begin_inset Newline newline
13506 claimname}{Behauptung}}
13507 \begin_inset Newline newline
13514 claimname}{Behauptung}
13517 \begin_layout Standard
13518 それから,\SpecialChar LaTeX
13520 \begin_inset Flex Code
13523 \begin_layout Plain Layout
13529 は協力して,出力に正しい文字列を生成します.
13532 \begin_layout Standard
13533 ここで注意しておくべき一つの重要な点は,翻訳は,
13534 \begin_inset Flex Code
13537 \begin_layout Plain Layout
13543 ファイルを通じて,\SpecialChar LyX
13544 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13545 \begin_inset Flex Code
13548 \begin_layout Plain Layout
13554 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13555 の国際化ルーチンでは取り扱われないので,
13556 \begin_inset Flex MenuItem
13559 \begin_layout Plain Layout
13566 \begin_inset Flex MenuItem
13569 \begin_layout Plain Layout
13575 は,事実上,\SpecialChar LyX
13576 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13578 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13579 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13580 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13583 \begin_layout Subsection
13585 \begin_inset CommandInset label
13594 \begin_layout Standard
13596 第1.3.0版以来,テキストクラス自体の中でフロート(
13597 \begin_inset Flex MenuItem
13600 \begin_layout Plain Layout
13607 \begin_inset Flex MenuItem
13610 \begin_layout Plain Layout
13616 ・\SpecialChar ldots
13617 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13618 \begin_inset Flex Code
13621 \begin_layout Plain Layout
13627 ファイルに含まれているので,作業中のレイアウトファイルに
13630 \begin_layout LyX-Code
13631 Input stdfloats.inc
13634 \begin_layout Standard
13635 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13636 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13640 \begin_layout Description
13641 \begin_inset Flex Code
13644 \begin_layout Plain Layout
13651 \begin_inset Flex Code
13654 \begin_layout Plain Layout
13660 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13665 \begin_inset Quotes eld
13668 here if possible:可能ならば現在位置に
13669 \begin_inset Quotes erd
13677 \begin_inset Quotes eld
13681 \begin_inset Quotes erd
13689 \begin_inset Quotes eld
13692 bottom of page:ページ下部
13693 \begin_inset Quotes erd
13701 \begin_inset Quotes eld
13704 page of floats:フロートを独立したページに
13705 \begin_inset Quotes erd
13713 \begin_inset Quotes eld
13716 here definitely:何としても現在位置に置く
13717 \begin_inset Quotes erd
13725 \begin_inset Quotes eld
13728 ignore LaTeX rules:LaTeXの規則を無視する
13729 \begin_inset Quotes erd
13732 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13739 \begin_layout Description
13740 \begin_inset Flex Code
13743 \begin_layout Plain Layout
13750 \begin_inset Flex Code
13753 \begin_layout Plain Layout
13760 \begin_inset space \thinspace{}
13766 \begin_inset Flex Code
13769 \begin_layout Plain Layout
13777 ] フロートを,\SpecialChar LaTeX
13782 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13783 \begin_inset Flex Code
13786 \begin_layout Plain Layout
13795 \begin_layout Description
13796 \begin_inset Flex Code
13799 \begin_layout Plain Layout
13806 \begin_inset Flex Code
13809 \begin_layout Plain Layout
13816 \begin_inset space \thinspace{}
13822 \begin_inset Flex Code
13825 \begin_layout Plain Layout
13833 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13834 \begin_inset Flex Code
13837 \begin_layout Plain Layout
13846 \begin_layout Description
13847 \begin_inset Flex Code
13850 \begin_layout Plain Layout
13857 \begin_inset Flex Code
13860 \begin_layout Plain Layout
13867 \begin_inset Quotes erd
13871 \begin_inset Quotes erd
13874 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
13875 がキャプションを書き込むファイルです.
13878 \begin_layout Description
13879 \begin_inset Flex Code
13882 \begin_layout Plain Layout
13889 \begin_inset Flex Code
13892 \begin_layout Plain Layout
13899 \begin_inset Quotes erd
13903 \begin_inset Quotes erd
13906 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
13909 \begin_layout Description
13910 \begin_inset Flex Code
13913 \begin_layout Plain Layout
13919 これらは,XHTML出力で使用されます.
13920 \begin_inset CommandInset ref
13922 reference "sec:XHTML出力のタグ"
13929 \begin_layout Description
13930 \begin_inset Flex Code
13933 \begin_layout Plain Layout
13940 \begin_inset Flex Code
13943 \begin_layout Plain Layout
13952 \begin_inset space \thinspace{}
13956 \begin_inset Flex Code
13959 \begin_layout Plain Layout
13965 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
13967 \begin_inset Flex Code
13970 \begin_layout Plain Layout
13976 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
13977 \begin_inset Flex Code
13980 \begin_layout Plain Layout
13987 \begin_inset Flex Code
13990 \begin_layout Plain Layout
13996 を使用します.\SpecialChar LaTeX
13997 ドキュメントクラス中に既に定義されているときには,
13998 \begin_inset Flex Code
14001 \begin_layout Plain Layout
14010 \begin_layout Description
14011 \begin_inset Flex Code
14014 \begin_layout Plain Layout
14021 \begin_inset Flex Code
14024 \begin_layout Plain Layout
14031 \begin_inset Quotes erd
14035 \begin_inset Quotes erd
14038 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14041 \begin_inset Flex Code
14044 \begin_layout Plain Layout
14050 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14055 \begin_inset Flex Code
14058 \begin_layout Plain Layout
14064 が真の時は,標準的な方法が存在するので,これは無視されます.
14067 \begin_layout Description
14068 \begin_inset Flex Code
14071 \begin_layout Plain Layout
14078 \begin_inset Flex Code
14081 \begin_layout Plain Layout
14088 \begin_inset Quotes erd
14092 \begin_inset Quotes erd
14095 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14096 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14098 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14101 \begin_layout Description
14102 \begin_inset Flex Code
14105 \begin_layout Plain Layout
14112 \begin_inset Flex Code
14115 \begin_layout Plain Layout
14122 \begin_inset Quotes erd
14126 \begin_inset Quotes erd
14129 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14130 \begin_inset Flex Code
14133 \begin_layout Plain Layout
14140 \begin_inset Flex Code
14143 \begin_layout Plain Layout
14149 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14152 \begin_layout Description
14153 \begin_inset Flex Code
14156 \begin_layout Plain Layout
14163 \begin_inset Flex Code
14166 \begin_layout Plain Layout
14173 \begin_inset Quotes erd
14177 \begin_inset Quotes erd
14180 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14182 \begin_inset Flex Code
14185 \begin_layout Plain Layout
14192 \begin_inset Flex Code
14195 \begin_layout Plain Layout
14202 \begin_inset Flex Code
14205 \begin_layout Plain Layout
14212 \begin_inset Flex Code
14215 \begin_layout Plain Layout
14225 \begin_layout Plain Layout
14227 同様,文字列中でのこれらの文字の順序は関係ありません.
14233 \begin_inset Flex Code
14236 \begin_layout Plain Layout
14242 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14243 \begin_inset Flex Code
14246 \begin_layout Plain Layout
14252 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14254 \begin_inset Flex Code
14257 \begin_layout Plain Layout
14266 \begin_layout Description
14267 \begin_inset Flex Code
14270 \begin_layout Plain Layout
14277 \begin_inset Flex Code
14280 \begin_layout Plain Layout
14286 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14287 \begin_inset Flex Code
14290 \begin_layout Plain Layout
14296 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14299 \begin_layout Description
14300 \begin_inset Flex Code
14303 \begin_layout Plain Layout
14310 \begin_inset Flex Code
14313 \begin_layout Plain Layout
14320 \begin_inset Quotes erd
14324 \begin_inset Quotes erd
14328 \begin_inset Flex Code
14331 \begin_layout Plain Layout
14339 を使用してフロートを定義する際に使用される様式.
14342 \begin_layout Description
14343 \begin_inset Flex Code
14346 \begin_layout Plain Layout
14353 \begin_inset Flex Code
14356 \begin_layout Plain Layout
14363 \begin_inset Quotes erd
14367 \begin_inset Quotes erd
14370 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14371 \begin_inset Flex Code
14374 \begin_layout Plain Layout
14383 \begin_inset Flex Code
14386 \begin_layout Plain Layout
14395 \begin_inset Flex Code
14398 \begin_layout Plain Layout
14409 \begin_layout Description
14410 \begin_inset Flex Code
14413 \begin_layout Plain Layout
14420 \begin_inset Flex Code
14423 \begin_layout Plain Layout
14430 \begin_inset space \thinspace{}
14434 \begin_inset Flex Code
14437 \begin_layout Plain Layout
14445 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14447 \begin_inset Flex Code
14450 \begin_layout Plain Layout
14456 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14457 自身がオン・ザ・フライで定義しているのかを示します.
14460 \begin_layout Standard
14461 \begin_inset Flex Code
14464 \begin_layout Plain Layout
14477 \begin_inset Flex Code
14480 \begin_layout Plain Layout
14491 \begin_layout Subsection
14493 \begin_inset CommandInset label
14495 name "subsec:任意設定差込枠"
14502 \begin_layout Standard
14506 \begin_layout Itemize
14508 \begin_inset Flex Code
14511 \begin_layout Plain Layout
14518 \begin_inset Flex Code
14521 \begin_layout Plain Layout
14530 \begin_inset Flex Code
14533 \begin_layout Plain Layout
14541 などの\SpecialChar LaTeX
14542 コマンドに対応した意味論的マークアップを定義するものです.
14545 \begin_layout Itemize
14547 \begin_inset Flex Code
14550 \begin_layout Plain Layout
14556 ).これは,\SpecialChar TeX
14557 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14558 \begin_inset Flex Code
14561 \begin_layout Plain Layout
14570 \begin_layout Itemize
14572 \begin_inset Flex Code
14575 \begin_layout Plain Layout
14581 ).DocBookクラスで使用するものです.
14584 \begin_layout Standard
14586 \begin_inset Flex Code
14589 \begin_layout Plain Layout
14598 \begin_layout Standard
14599 \begin_inset Flex Code
14602 \begin_layout Plain Layout
14608 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14609 \begin_inset Flex Code
14612 \begin_layout Plain Layout
14618 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14619 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14623 \begin_layout Standard
14624 \begin_inset Flex Code
14627 \begin_layout Plain Layout
14633 定義は以下の形の行では始まらなくてはなりません.
14636 \begin_layout LyX-Code
14640 \begin_layout Standard
14642 \begin_inset Flex Code
14645 \begin_layout Plain Layout
14651 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14654 \begin_layout Enumerate
14655 既存の差込枠のレイアウトを変更する場合.この場合,
14656 \begin_inset Flex Code
14659 \begin_layout Plain Layout
14666 \begin_inset Flex Code
14669 \begin_layout Plain Layout
14676 \begin_inset Flex Code
14679 \begin_layout Plain Layout
14686 \begin_inset Flex Code
14689 \begin_layout Plain Layout
14696 \begin_inset Flex Code
14699 \begin_layout Plain Layout
14706 \begin_inset Flex Code
14709 \begin_layout Plain Layout
14716 \begin_inset Flex Code
14719 \begin_layout Plain Layout
14726 \begin_inset Flex Code
14729 \begin_layout Plain Layout
14736 \begin_inset Flex Code
14739 \begin_layout Plain Layout
14746 \begin_inset Flex Code
14749 \begin_layout Plain Layout
14756 \begin_inset Flex Code
14759 \begin_layout Plain Layout
14766 \begin_inset Flex Code
14769 \begin_layout Plain Layout
14776 \begin_inset Flex Code
14779 \begin_layout Plain Layout
14786 \begin_inset Flex Code
14789 \begin_layout Plain Layout
14796 \begin_inset Flex Code
14799 \begin_layout Plain Layout
14806 \begin_inset Flex Code
14809 \begin_layout Plain Layout
14816 \begin_inset Flex Code
14819 \begin_layout Plain Layout
14826 \begin_inset Flex Code
14829 \begin_layout Plain Layout
14836 \begin_inset Flex Code
14839 \begin_layout Plain Layout
14846 \begin_inset Flex Code
14849 \begin_layout Plain Layout
14856 \begin_inset Flex Code
14859 \begin_layout Plain Layout
14868 \begin_layout Enumerate
14869 自由差込枠のレイアウトを定義する場合.この場合,
14870 \begin_inset Flex Code
14873 \begin_layout Plain Layout
14880 \begin_inset Flex Code
14883 \begin_layout Plain Layout
14890 \begin_inset Flex Code
14893 \begin_layout Plain Layout
14899 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
14900 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
14901 \begin_inset Flex Code
14904 \begin_layout Plain Layout
14910 項目が含まれていなくてはならないことに注意してください.
14913 \begin_layout Enumerate
14914 ユーザー定義派生枝を定義する場合.この場合,
14915 \begin_inset Flex Code
14918 \begin_layout Plain Layout
14925 \begin_inset Flex Code
14928 \begin_layout Plain Layout
14935 \begin_inset Flex Code
14938 \begin_layout Plain Layout
14944 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
14945 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
14946 がくるむことができるようにすることです.
14949 \begin_layout Enumerate
14950 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
14951 \begin_inset Flex Code
14954 \begin_layout Plain Layout
14961 \begin_inset Flex Code
14964 \begin_layout Plain Layout
14971 \begin_inset Flex Code
14974 \begin_layout Plain Layout
14980 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
14981 \begin_inset Flex Code
14984 \begin_layout Plain Layout
14990 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
14991 \begin_inset Flex Code
14994 \begin_layout Plain Layout
15001 \begin_inset Flex Code
15004 \begin_layout Plain Layout
15015 \begin_inset Flex Code
15018 \begin_layout Plain Layout
15027 \begin_layout Standard
15028 \begin_inset Flex Code
15031 \begin_layout Plain Layout
15037 定義には以下の項目を入れることができます.
15040 \begin_layout Description
15041 \begin_inset Flex Code
15044 \begin_layout Plain Layout
15051 \begin_inset Flex Code
15054 \begin_layout Plain Layout
15060 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15061 \begin_inset Flex Code
15064 \begin_layout Plain Layout
15071 \begin_inset CommandInset ref
15073 reference "subsec:段落様式"
15080 \begin_layout Description
15081 \begin_inset Flex Code
15084 \begin_layout Plain Layout
15091 \begin_inset CommandInset ref
15093 reference "subsec:段落様式の国際化"
15100 \begin_layout Description
15101 \begin_inset Flex Code
15104 \begin_layout Plain Layout
15111 \begin_inset Flex Code
15114 \begin_layout Plain Layout
15120 ] 差込枠の背景色.使用できる色名一覧は
15121 \begin_inset CommandInset ref
15123 reference "chap:色名"
15130 \begin_layout Description
15131 \begin_inset Flex Code
15134 \begin_layout Plain Layout
15141 \begin_inset Flex Code
15144 \begin_layout Plain Layout
15153 \begin_inset space \thinspace{}
15157 \begin_inset Flex Code
15160 \begin_layout Plain Layout
15166 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15169 \begin_layout Description
15170 \begin_inset Flex Code
15173 \begin_layout Plain Layout
15180 \begin_inset CommandInset ref
15182 reference "subsec:段落様式"
15186 参照のこと.完全な型を指定する必要があることに注意してください.例:
15187 \begin_inset Flex Code
15190 \begin_layout Plain Layout
15191 CopyStyle Flex:<名称>
15199 \begin_layout Description
15200 \begin_inset Flex Code
15203 \begin_layout Plain Layout
15210 \begin_inset Flex Code
15213 \begin_layout Plain Layout
15222 \begin_inset space \thinspace{}
15226 \begin_inset Flex Code
15229 \begin_layout Plain Layout
15235 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15238 \begin_layout Description
15239 \begin_inset Flex Code
15242 \begin_layout Plain Layout
15248 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15249 \begin_inset Flex Code
15252 \begin_layout Plain Layout
15259 \begin_inset Flex Code
15262 \begin_layout Plain Layout
15269 \begin_inset Flex Code
15272 \begin_layout Plain Layout
15278 のいずれかを指定することができます.脚註は通常
15279 \begin_inset Flex Code
15282 \begin_layout Plain Layout
15288 を使用し,\SpecialChar TeX
15290 \begin_inset Flex Code
15293 \begin_layout Plain Layout
15300 \begin_inset Flex Code
15303 \begin_layout Plain Layout
15312 \begin_layout Description
15313 \begin_inset Flex Code
15316 \begin_layout Plain Layout
15323 \begin_inset Flex Code
15326 \begin_layout Plain Layout
15333 \begin_inset space \thinspace{}
15337 \begin_inset Flex Code
15340 \begin_layout Plain Layout
15349 \begin_inset Flex Code
15352 \begin_layout Plain Layout
15359 \begin_inset Flex Code
15362 \begin_layout Plain Layout
15368 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15370 \begin_inset Flex Code
15373 \begin_layout Plain Layout
15382 \begin_inset Flex Code
15385 \begin_layout Plain Layout
15393 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15396 \begin_layout Description
15397 \begin_inset Flex Code
15400 \begin_layout Plain Layout
15407 \begin_inset Flex Code
15410 \begin_layout Plain Layout
15419 \begin_layout Description
15420 \begin_inset Flex Code
15423 \begin_layout Plain Layout
15434 \begin_inset CommandInset ref
15436 reference "subsec:フォント指定"
15440 を参照.このフォントを定義すると自動的に
15441 \begin_inset Flex Code
15444 \begin_layout Plain Layout
15450 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15451 \begin_inset Flex Code
15454 \begin_layout Plain Layout
15460 を定義しなくてはならないことに注意してください.
15463 \begin_layout Description
15464 \begin_inset Flex Code
15467 \begin_layout Plain Layout
15468 FixedWidthPreambleEncoding
15474 \begin_inset Flex Code
15477 \begin_layout Plain Layout
15486 \begin_inset space \thinspace{}
15490 \begin_inset Flex Code
15493 \begin_layout Plain Layout
15500 \begin_inset Flex Code
15503 \begin_layout Plain Layout
15510 \begin_inset Flex Code
15513 \begin_layout Plain Layout
15519 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15527 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15528 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15529 やLua\SpecialChar TeX
15530 のようなUnicodeを完全に解する\SpecialChar LaTeX
15535 \begin_layout Description
15536 \begin_inset Flex Code
15539 \begin_layout Plain Layout
15540 ForceLocalFontSwitch
15546 \begin_inset Flex Code
15549 \begin_layout Plain Layout
15558 \begin_inset space \thinspace{}
15562 \begin_inset Flex Code
15565 \begin_layout Plain Layout
15571 ] babel使用時に,常にローカルフォント切替(
15572 \begin_inset Flex Code
15575 \begin_layout Plain Layout
15584 \begin_inset Flex Code
15587 \begin_layout Plain Layout
15598 \begin_layout Description
15599 \begin_inset Flex Code
15602 \begin_layout Plain Layout
15609 \begin_inset Flex Code
15612 \begin_layout Plain Layout
15621 \begin_inset space \thinspace{}
15625 \begin_inset Flex Code
15628 \begin_layout Plain Layout
15634 ] たとえば\SpecialChar TeX
15635 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15638 \begin_layout Description
15639 \begin_inset Flex Code
15642 \begin_layout Plain Layout
15649 \begin_inset Flex Code
15652 \begin_layout Plain Layout
15661 \begin_inset space \thinspace{}
15665 \begin_inset Flex Code
15668 \begin_layout Plain Layout
15674 ] \SpecialChar LaTeX
15675 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15678 \begin_layout Description
15679 \begin_inset Flex Code
15682 \begin_layout Plain Layout
15689 \begin_inset Flex Code
15692 \begin_layout Plain Layout
15701 \begin_inset space \thinspace{}
15705 \begin_inset Flex Code
15708 \begin_layout Plain Layout
15714 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15717 \begin_layout Description
15718 \begin_inset Flex Code
15721 \begin_layout Plain Layout
15730 \begin_inset Flex Code
15733 \begin_layout Plain Layout
15742 \begin_inset space \thinspace{}
15746 \begin_inset Flex Code
15749 \begin_layout Plain Layout
15756 \begin_inset CommandInset ref
15758 reference "subsec:段落様式"
15765 \begin_layout Description
15766 \begin_inset Flex Code
15769 \begin_layout Plain Layout
15775 これらは,XHTML出力で使用されます.
15776 \begin_inset CommandInset ref
15778 reference "sec:XHTML出力のタグ"
15785 \begin_layout Description
15786 \begin_inset Flex Code
15789 \begin_layout Plain Layout
15796 \begin_inset Flex Code
15799 \begin_layout Plain Layout
15808 \begin_inset space \thinspace{}
15812 \begin_inset Flex Code
15815 \begin_layout Plain Layout
15821 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15822 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15825 \begin_layout Description
15826 \begin_inset Flex Code
15829 \begin_layout Plain Layout
15838 \begin_inset Flex Code
15841 \begin_layout Plain Layout
15850 \begin_inset space \thinspace{}
15854 \begin_inset Flex Code
15857 \begin_layout Plain Layout
15864 \begin_inset CommandInset ref
15866 reference "subsec:段落様式"
15873 \begin_layout Description
15874 \begin_inset Flex Code
15877 \begin_layout Plain Layout
15884 \begin_inset CommandInset ref
15886 reference "subsec:フォント指定"
15890 節を参照.非効率を回避するため,この定義は
15891 \begin_inset Flex Code
15894 \begin_layout Plain Layout
15903 \begin_layout Description
15904 \begin_inset Flex Code
15907 \begin_layout Plain Layout
15914 \begin_inset Flex Code
15917 \begin_layout Plain Layout
15924 \begin_inset Quotes erd
15928 \begin_inset Quotes erd
15935 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
15936 コードや派生枝),ラベルが動的に変更されます.
15939 \begin_layout Description
15940 \begin_inset Flex Code
15943 \begin_layout Plain Layout
15950 \begin_inset CommandInset ref
15952 reference "subsec:段落様式の国際化"
15959 \begin_layout Description
15960 \begin_inset Flex Code
15963 \begin_layout Plain Layout
15970 \begin_inset Flex Code
15973 \begin_layout Plain Layout
15979 ] 対応する\SpecialChar LaTeX
15980 関連物の名称.環境名ないしはコマンド名.
15983 \begin_layout Description
15984 \begin_inset Flex Code
15987 \begin_layout Plain Layout
15994 \begin_inset Flex Code
15997 \begin_layout Plain Layout
16008 \begin_inset Flex Code
16011 \begin_layout Plain Layout
16018 \begin_inset Flex Code
16021 \begin_layout Plain Layout
16027 のような括弧対を含む.このパラメータは\SpecialChar LyX
16028 内部から変更することはできません(変更可能なパラメータには
16029 \begin_inset Flex Code
16032 \begin_layout Plain Layout
16038 を使用してください).これは,全ての\SpecialChar LaTeX
16040 \begin_inset Flex Code
16043 \begin_layout Plain Layout
16052 \begin_layout Description
16053 \begin_inset Flex Code
16056 \begin_layout Plain Layout
16063 \begin_inset Flex Code
16066 \begin_layout Plain Layout
16067 Command, Environment, None
16072 ] 様式がどのように\SpecialChar LaTeX
16077 \begin_layout Plain Layout
16078 これらのルールはSGMLクラスにも適用されるので,
16079 \begin_inset Flex Code
16082 \begin_layout Plain Layout
16088 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16097 \begin_layout Description
16098 \begin_inset Flex Code
16101 \begin_layout Plain Layout
16110 \begin_layout Description
16111 \begin_inset Flex Code
16114 \begin_layout Plain Layout
16121 \begin_inset Flex Code
16124 \begin_layout Plain Layout
16131 {\SpecialChar ldots
16140 \begin_layout Description
16141 \begin_inset Flex Code
16144 \begin_layout Plain Layout
16151 \begin_inset Flex Code
16154 \begin_layout Plain Layout
16161 }\SpecialChar ldots
16176 \begin_layout Standard
16177 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16178 出力は,\SpecialChar LaTeX
16182 \begin_layout LyX-Code
16185 LatexName[LatexParam]{\SpecialChar ldots
16189 \begin_layout Standard
16193 \begin_layout LyX-Code
16196 begin{LatexName}[LatexParam] \SpecialChar ldots
16202 \begin_layout Standard
16207 \begin_layout Description
16208 \begin_inset Flex Code
16211 \begin_layout Plain Layout
16218 \begin_inset Flex Code
16221 \begin_layout Plain Layout
16227 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16228 \begin_inset Flex Code
16231 \begin_layout Plain Layout
16240 \begin_layout Description
16241 \begin_inset Flex Code
16244 \begin_layout Plain Layout
16251 \begin_inset Flex Code
16254 \begin_layout Plain Layout
16261 \begin_inset Flex Code
16264 \begin_layout Plain Layout
16271 \begin_inset Flex Code
16274 \begin_layout Plain Layout
16281 \begin_inset Flex Code
16284 \begin_layout Plain Layout
16290 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16291 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16292 \begin_inset Flex Code
16295 \begin_layout Plain Layout
16302 \begin_inset Flex Code
16305 \begin_layout Plain Layout
16312 \begin_inset Flex Code
16315 \begin_layout Plain Layout
16326 \begin_inset Flex Code
16329 \begin_layout Plain Layout
16340 \begin_inset Flex Code
16343 \begin_layout Plain Layout
16354 \begin_inset Flex Code
16357 \begin_layout Plain Layout
16368 \begin_inset Flex Code
16371 \begin_layout Plain Layout
16381 設定すれば,真に設定することができます.
16384 \begin_layout Description
16385 \begin_inset Flex Code
16388 \begin_layout Plain Layout
16395 \begin_inset Flex Code
16398 \begin_layout Plain Layout
16407 \begin_inset space \thinspace{}
16411 \begin_inset Flex Code
16414 \begin_layout Plain Layout
16420 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16421 \begin_inset Flex Code
16424 \begin_layout Plain Layout
16431 \begin_inset Flex Code
16434 \begin_layout Plain Layout
16441 \begin_inset Flex Code
16444 \begin_layout Plain Layout
16454 指定されれば,他の値に指定し直すことができます.既定値は真です.
16457 \begin_layout Description
16458 \begin_inset Flex Code
16461 \begin_layout Plain Layout
16468 \begin_inset Flex Code
16471 \begin_layout Plain Layout
16480 \begin_inset space \thinspace{}
16484 \begin_inset Flex Code
16487 \begin_layout Plain Layout
16494 \begin_inset Flex Code
16497 \begin_layout Plain Layout
16505 するか否か(註:当該コマンド自身をprotectするかどうかでは
16512 \begin_layout Description
16513 \begin_inset Flex Code
16516 \begin_layout Plain Layout
16523 \begin_inset Flex Code
16526 \begin_layout Plain Layout
16533 \begin_inset Flex Code
16536 \begin_layout Plain Layout
16545 \begin_layout Description
16546 \begin_inset Flex Code
16549 \begin_layout Plain Layout
16556 \begin_inset Flex Code
16559 \begin_layout Plain Layout
16566 \begin_inset Flex Code
16569 \begin_layout Plain Layout
16576 \begin_inset Flex Code
16579 \begin_layout Plain Layout
16586 \begin_inset Flex Code
16589 \begin_layout Plain Layout
16595 の改名を,後方互換性を維持しながら行うために用いられます.
16598 \begin_layout Description
16599 \begin_inset Flex Code
16602 \begin_layout Plain Layout
16609 \begin_inset Flex Code
16612 \begin_layout Plain Layout
16621 \begin_inset space \thinspace{}
16625 \begin_inset Flex Code
16628 \begin_layout Plain Layout
16635 \begin_inset CommandInset ref
16637 reference "subsec:段落様式"
16644 \begin_layout Description
16645 \begin_inset Flex Code
16648 \begin_layout Plain Layout
16657 \begin_inset Flex Code
16660 \begin_layout Plain Layout
16669 \begin_inset space \thinspace{}
16673 \begin_inset Flex Code
16676 \begin_layout Plain Layout
16683 \begin_inset CommandInset ref
16685 reference "subsec:段落様式"
16692 \begin_layout Description
16693 \begin_inset Flex Code
16696 \begin_layout Plain Layout
16703 \begin_inset CommandInset ref
16705 reference "subsec:段落様式"
16712 \begin_layout Description
16713 \begin_inset Flex Code
16716 \begin_layout Plain Layout
16723 \begin_inset Flex Code
16726 \begin_layout Plain Layout
16732 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16735 \begin_layout Description
16736 \begin_inset Flex Code
16739 \begin_layout Plain Layout
16746 \begin_inset Flex Code
16749 \begin_layout Plain Layout
16756 \begin_inset CommandInset ref
16758 reference "subsec:段落様式"
16765 \begin_layout Description
16766 \begin_inset Flex Code
16769 \begin_layout Plain Layout
16776 \begin_inset Flex Code
16779 \begin_layout Plain Layout
16788 \begin_inset space \thinspace{}
16792 \begin_inset Flex Code
16795 \begin_layout Plain Layout
16802 \begin_inset Flex Code
16805 \begin_layout Plain Layout
16811 タグで定義された)この様式の\SpecialChar LaTeX
16813 \begin_inset Flex Code
16816 \begin_layout Plain Layout
16822 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16825 \begin_layout Description
16826 \begin_inset Flex Code
16829 \begin_layout Plain Layout
16836 \begin_inset Flex Code
16839 \begin_layout Plain Layout
16846 \begin_inset space \thinspace{}
16850 \begin_inset Flex Code
16853 \begin_layout Plain Layout
16861 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16862 \begin_inset Note Note
16865 \begin_layout Plain Layout
16866 This is outdated: The default changed from 1 to 0
16874 \begin_layout Description
16875 \begin_inset Flex Code
16878 \begin_layout Plain Layout
16885 \begin_inset Flex Code
16888 \begin_layout Plain Layout
16894 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16895 \begin_inset Flex Code
16898 \begin_layout Plain Layout
16907 \begin_layout Description
16908 \begin_inset Flex Code
16911 \begin_layout Plain Layout
16918 \begin_inset Flex Code
16921 \begin_layout Plain Layout
16928 \begin_inset space \thinspace{}
16932 \begin_inset Flex Code
16935 \begin_layout Plain Layout
16943 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
16946 \begin_layout Subsection
16948 \begin_inset CommandInset label
16957 \begin_layout Standard
16959 \begin_inset Flex MenuItem
16962 \begin_layout Plain Layout
16969 \begin_inset Flex MenuItem
16972 \begin_layout Plain Layout
16978 ・\SpecialChar ldots
16979 )を定義することが必要です.標準的なカウンタは
16980 \begin_inset Flex Code
16983 \begin_layout Plain Layout
16989 ファイルに含まれているので,作業中のレイアウトファイルに
16992 \begin_layout LyX-Code
16993 Input stdcounters.inc
16996 \begin_layout Standard
16997 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17000 \begin_layout LyX-Code
17004 \begin_layout Standard
17006 \begin_inset Flex Code
17009 \begin_layout Plain Layout
17015 」は,実際のカウンタ名で置き換えます.また,宣言は「
17016 \begin_inset Flex Code
17019 \begin_layout Plain Layout
17028 \begin_layout Standard
17029 以下のパラメータを使用することができます.
17032 \begin_layout Description
17033 \begin_inset Flex Code
17036 \begin_layout Plain Layout
17043 \begin_inset Flex Code
17046 \begin_layout Plain Layout
17052 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17055 \begin_layout Description
17056 \begin_inset Flex Code
17059 \begin_layout Plain Layout
17060 LabelString [文字列=""]
17065 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17066 \begin_inset Flex Code
17069 \begin_layout Plain Layout
17070 LabelStringAppendix
17075 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17079 \begin_layout Itemize
17080 \begin_inset Flex Code
17083 \begin_layout Plain Layout
17092 \begin_inset Flex Code
17095 \begin_layout Plain Layout
17102 \begin_inset Flex Code
17105 \begin_layout Plain Layout
17112 \begin_inset Newline linebreak
17116 \begin_inset Flex Code
17119 \begin_layout Plain Layout
17120 LabelStringAppendix
17128 \begin_layout Itemize
17129 カウンタ値は,\SpecialChar LaTeX
17131 \begin_inset Flex Code
17134 \begin_layout Plain Layout
17150 を用いて表現することができます.ここで
17151 \begin_inset Flex Code
17154 \begin_layout Plain Layout
17163 \begin_inset Flex Code
17166 \begin_layout Plain Layout
17172 :1, 2, 3,\SpecialChar ldots
17174 \begin_inset Flex Code
17177 \begin_layout Plain Layout
17183 :a, b, c, \SpecialChar ldots
17185 \begin_inset Flex Code
17188 \begin_layout Plain Layout
17194 :A, B, C, \SpecialChar ldots
17196 \begin_inset Flex Code
17199 \begin_layout Plain Layout
17205 :i, ii, iii, \SpecialChar ldots
17207 \begin_inset Flex Code
17210 \begin_layout Plain Layout
17216 :I, II, III\SpecialChar ldots
17221 \begin_layout Standard
17222 \begin_inset Flex Code
17225 \begin_layout Plain Layout
17231 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17232 \begin_inset Flex Code
17235 \begin_layout Plain Layout
17242 \begin_inset Flex Code
17245 \begin_layout Plain Layout
17252 \begin_inset Newline linebreak
17256 \begin_inset Flex Code
17259 \begin_layout Plain Layout
17270 \begin_inset Flex Code
17273 \begin_layout Plain Layout
17284 \begin_layout Description
17285 \begin_inset Flex Code
17288 \begin_layout Plain Layout
17289 LabelStringAppendix
17295 \begin_inset Flex Code
17298 \begin_layout Plain Layout
17305 \begin_inset Flex Code
17308 \begin_layout Plain Layout
17314 と同様ですが,付録で使用するためのものです.
17317 \begin_layout Description
17318 \begin_inset Flex Code
17321 \begin_layout Plain Layout
17328 \begin_inset Flex Code
17331 \begin_layout Plain Layout
17338 \begin_inset Quotes erd
17342 \begin_inset Quotes erd
17345 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17346 \begin_inset space ~
17349 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17353 \begin_layout Description
17354 \begin_inset Flex Code
17357 \begin_layout Plain Layout
17364 \begin_inset Flex Code
17367 \begin_layout Plain Layout
17374 \begin_inset Quotes erd
17378 \begin_inset Quotes erd
17381 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17382 \begin_inset Flex Code
17385 \begin_layout Plain Layout
17392 \begin_inset Flex Code
17395 \begin_layout Plain Layout
17404 \begin_layout Subsection
17406 \begin_inset CommandInset label
17408 name "subsec:フォント指定"
17415 \begin_layout Standard
17416 フォント指定は,以下のような形を取ります.
17419 \begin_layout LyX-Code
17435 \begin_layout LyX-Code
17439 \begin_layout LyX-Code
17443 \begin_layout Standard
17444 以下のコマンドを使用することができます.
17447 \begin_layout Description
17448 \begin_inset Flex Code
17451 \begin_layout Plain Layout
17458 \begin_inset Flex Code
17461 \begin_layout Plain Layout
17470 \begin_inset Flex Code
17473 \begin_layout Plain Layout
17480 \begin_inset Flex Code
17483 \begin_layout Plain Layout
17490 \begin_inset Flex Code
17493 \begin_layout Plain Layout
17500 \begin_inset Flex Code
17503 \begin_layout Plain Layout
17510 \begin_inset Flex Code
17513 \begin_layout Plain Layout
17520 \begin_inset Flex Code
17523 \begin_layout Plain Layout
17530 \begin_inset Flex Code
17533 \begin_layout Plain Layout
17540 \begin_inset Flex Code
17543 \begin_layout Plain Layout
17550 \begin_inset Flex Code
17553 \begin_layout Plain Layout
17560 \begin_inset Flex Code
17563 \begin_layout Plain Layout
17570 \begin_inset Flex Code
17573 \begin_layout Plain Layout
17580 \begin_inset Flex Code
17583 \begin_layout Plain Layout
17590 \begin_inset Flex Code
17593 \begin_layout Plain Layout
17600 \begin_inset Flex Code
17603 \begin_layout Plain Layout
17610 \begin_inset Flex Code
17613 \begin_layout Plain Layout
17620 \begin_inset Flex Code
17623 \begin_layout Plain Layout
17630 \begin_inset Flex Code
17633 \begin_layout Plain Layout
17640 \begin_inset Flex Code
17643 \begin_layout Plain Layout
17650 \begin_inset Flex Code
17653 \begin_layout Plain Layout
17662 \begin_layout Description
17663 \begin_inset Flex Code
17666 \begin_layout Plain Layout
17675 \begin_inset Flex Code
17678 \begin_layout Plain Layout
17687 \begin_inset Flex Code
17690 \begin_layout Plain Layout
17697 \begin_inset Flex Code
17700 \begin_layout Plain Layout
17709 \begin_layout Description
17710 \begin_inset Flex Code
17713 \begin_layout Plain Layout
17720 \begin_inset Flex Code
17723 \begin_layout Plain Layout
17730 \begin_inset Flex Code
17733 \begin_layout Plain Layout
17740 \begin_inset Flex Code
17743 \begin_layout Plain Layout
17750 \begin_inset Flex Code
17753 \begin_layout Plain Layout
17760 \begin_inset Flex Code
17763 \begin_layout Plain Layout
17770 \begin_inset Flex Code
17773 \begin_layout Plain Layout
17780 \begin_inset Flex Code
17783 \begin_layout Plain Layout
17790 \begin_inset Flex Code
17793 \begin_layout Plain Layout
17800 \begin_inset Flex Code
17803 \begin_layout Plain Layout
17810 \begin_inset Flex Code
17813 \begin_layout Plain Layout
17820 \begin_inset Flex Code
17823 \begin_layout Plain Layout
17830 \begin_inset Flex Code
17833 \begin_layout Plain Layout
17840 \begin_inset Flex Code
17843 \begin_layout Plain Layout
17849 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17850 \begin_inset Newline newline
17854 \begin_inset Flex Code
17857 \begin_layout Plain Layout
17864 \begin_inset Flex Code
17867 \begin_layout Plain Layout
17873 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17875 \begin_inset Flex Code
17878 \begin_layout Plain Layout
17884 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17887 \begin_layout Description
17888 \begin_inset Flex Code
17891 \begin_layout Plain Layout
17900 \begin_inset Flex Code
17903 \begin_layout Plain Layout
17912 \begin_inset Flex Code
17915 \begin_layout Plain Layout
17924 \begin_layout Description
17925 \begin_inset Flex Code
17928 \begin_layout Plain Layout
17937 \begin_inset Flex Code
17940 \begin_layout Plain Layout
17949 \begin_inset Flex Code
17952 \begin_layout Plain Layout
17959 \begin_inset Flex Code
17962 \begin_layout Plain Layout
17969 \begin_inset Flex Code
17972 \begin_layout Plain Layout
17981 \begin_layout Description
17982 \begin_inset Flex Code
17985 \begin_layout Plain Layout
17992 \begin_inset Flex Code
17995 \begin_layout Plain Layout
18002 \begin_inset Flex Code
18005 \begin_layout Plain Layout
18012 \begin_inset Flex Code
18015 \begin_layout Plain Layout
18024 \begin_inset Flex Code
18027 \begin_layout Plain Layout
18034 \begin_inset Flex Code
18037 \begin_layout Plain Layout
18044 \begin_inset Flex Code
18047 \begin_layout Plain Layout
18054 \begin_inset Flex Code
18057 \begin_layout Plain Layout
18064 \begin_inset Flex Code
18067 \begin_layout Plain Layout
18076 \begin_layout Subsection
18077 \begin_inset CommandInset label
18079 name "subsec:引用書式指定"
18086 \begin_layout Standard
18087 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18088 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18089 \begin_inset Flex Code
18092 \begin_layout Plain Layout
18098 ブロックが使用されています.このブロックは,以下のような形をしています.
18101 \begin_layout LyX-Code
18105 \begin_layout LyX-Code
18109 \begin_layout LyX-Code
18113 \begin_layout LyX-Code
18117 \begin_layout Standard
18118 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18120 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18121 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18123 \begin_inset Flex Code
18126 \begin_layout Plain Layout
18132 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18133 文書クラスにインクルードされています.
18136 \begin_layout Standard
18137 この定義は,Bib\SpecialChar TeX
18138 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18139 \begin_inset Flex Code
18142 \begin_layout Plain Layout
18149 \begin_inset Flex Code
18152 \begin_layout Plain Layout
18158 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18161 \begin_layout LyX-Code
18163 \begin_inset Quotes eld
18167 \begin_inset Quotes erd
18173 \begin_layout Standard
18174 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18177 \begin_layout Standard
18178 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18179 \begin_inset Flex Code
18182 \begin_layout Plain Layout
18184 \begin_inset space ~
18192 のように,条件付きの構成を使用することができます.これは,
18193 \begin_inset Flex Code
18196 \begin_layout Plain Layout
18203 \begin_inset space ~
18206 」とvolumeキーを出力するという意味です.また,
18207 \begin_inset Newline newline
18211 \begin_inset Flex Code
18214 \begin_layout Plain Layout
18215 {%author%[[%author%]][[%editor%, ed.]]}
18221 \begin_inset Newline newline
18224 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18225 \begin_inset Flex Code
18228 \begin_layout Plain Layout
18234 キーが存在するならば出力され,そうでなければeditorキーと「,
18235 \begin_inset space ~
18238 ed.」が出力されます.ここでもキーは,
18239 \begin_inset Flex Code
18242 \begin_layout Plain Layout
18248 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18249 \begin_inset Flex Code
18252 \begin_layout Plain Layout
18259 \begin_inset Flex Code
18262 \begin_layout Plain Layout
18268 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18271 \begin_layout Standard
18272 もう一つ,定義中で使用することのできる文法として,
18273 \begin_inset Flex Code
18276 \begin_layout Plain Layout
18282 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18283 グを出力させたくはありませんから,HTMLタグは「
18284 \begin_inset Flex Code
18287 \begin_layout Plain Layout
18294 \begin_inset Flex Code
18297 \begin_layout Plain Layout
18303 」でくるんでやらなくてはならないのです.
18306 \begin_layout Standard
18307 \begin_inset Flex Code
18310 \begin_layout Plain Layout
18316 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18319 \begin_layout LyX-Code
18321 \begin_inset Quotes eld
18325 \begin_inset Quotes erd
18331 \begin_layout Standard
18332 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18333 \begin_inset Flex Code
18336 \begin_layout Plain Layout
18342 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18344 \begin_inset Flex Code
18347 \begin_layout Plain Layout
18353 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18356 \begin_layout LyX-Code
18360 \begin_layout Standard
18361 のようなことはしないでください.\SpecialChar LyX
18362 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18365 \begin_layout Standard
18369 \begin_layout LyX-Code
18373 \begin_layout Standard
18374 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18375 \begin_inset Flex Code
18378 \begin_layout Plain Layout
18384 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18385 \begin_inset Flex Code
18388 \begin_layout Plain Layout
18394 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18397 \begin_layout Standard
18398 以下は,これらの機能を全て使った例です.
18399 \begin_inset VSpace defskip
18405 \begin_layout Standard
18409 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18412 \begin_layout Standard
18413 \begin_inset VSpace defskip
18417 \begin_inset Flex Code
18420 \begin_layout Plain Layout
18426 キーが定義されているならば,著者とコンマを出力し,
18427 \begin_inset Flex Code
18430 \begin_layout Plain Layout
18437 \begin_inset Flex Code
18440 \begin_layout Plain Layout
18446 キーが定義されているならば,編集者名の後に
18447 \begin_inset Flex Code
18450 \begin_layout Plain Layout
18456 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18457 \begin_inset Flex Code
18460 \begin_layout Plain Layout
18466 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18469 \begin_layout Section
18470 \begin_inset CommandInset label
18472 name "sec:XHTML出力のタグ"
18479 \begin_layout Standard
18481 やDocBookと同様,\SpecialChar LyX
18482 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18483 は適切な既定値を提供し,前述したように,他のレイアウト
18484 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18486 \begin_inset Flex Code
18489 \begin_layout Plain Layout
18495 宣言で提供されている情報を利用しようと試みます.
18498 \begin_layout Standard
18499 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18500 ,これが必要になる場合もあるので,\SpecialChar LyX
18501 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18504 \begin_layout Standard
18505 様式宣言や差込枠宣言の外で使用することができるタグに,
18506 \begin_inset Flex Code
18509 \begin_layout Plain Layout
18516 \begin_inset Flex Code
18519 \begin_layout Plain Layout
18525 の2つがあることに注意してください.これらの詳細については,
18526 \begin_inset CommandInset ref
18528 reference "subsec:汎用テキストクラスパラメータ"
18535 \begin_layout Subsection
18536 \begin_inset CommandInset label
18538 name "subsec:段落様式-XHTML"
18545 \begin_layout Standard
18547 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18548 \begin_inset Flex Code
18551 \begin_layout Plain Layout
18561 \begin_layout Standard
18562 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18565 \begin_layout LyX-Code
18567 \begin_inset Quotes erd
18571 \begin_inset Quotes erd
18577 \begin_layout LyX-Code
18579 \begin_inset Quotes erd
18583 \begin_inset Quotes erd
18589 \begin_layout LyX-Code
18593 \begin_layout LyX-Code
18597 \begin_layout Standard
18598 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18601 \begin_layout Standard
18602 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18605 \begin_layout LyX-Code
18607 \begin_inset Quotes erd
18611 \begin_inset Quotes erd
18617 \begin_layout LyX-Code
18619 \begin_inset Quotes erd
18623 \begin_inset Quotes erd
18627 \begin_inset Quotes erd
18631 \begin_inset Quotes erd
18634 >環境ラベル</labeltag>最初の段落.
18637 \begin_layout LyX-Code
18641 \begin_layout LyX-Code
18642 <itemtag>二つめの段落.</itemtag>
18645 \begin_layout LyX-Code
18649 \begin_layout Standard
18650 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18653 \begin_layout Standard
18654 リストに関しては,次のような形になります.
18657 \begin_layout LyX-Code
18659 \begin_inset Quotes erd
18663 \begin_inset Quotes erd
18669 \begin_layout LyX-Code
18671 \begin_inset Quotes erd
18675 \begin_inset Quotes erd
18679 \begin_inset Quotes erd
18683 \begin_inset Quotes erd
18686 >リストのラベル</labeltag>最初の項目.</itemtag>
18689 \begin_layout LyX-Code
18691 \begin_inset Quotes erd
18695 \begin_inset Quotes erd
18699 \begin_inset Quotes erd
18703 \begin_inset Quotes erd
18706 >リストのラベル</labeltag>二つめの項目.</itemtag>
18709 \begin_layout LyX-Code
18713 \begin_layout LyX-Code
18717 \begin_layout LyX-Code
18719 \begin_inset Quotes erd
18723 \begin_inset Quotes erd
18729 \begin_layout LyX-Code
18731 \begin_inset Quotes erd
18735 \begin_inset Quotes erd
18738 >リストのラベル</labeltag><itemtag attr=
18739 \begin_inset Quotes erd
18743 \begin_inset Quotes erd
18749 \begin_layout LyX-Code
18751 \begin_inset Quotes erd
18755 \begin_inset Quotes erd
18758 >リストのラベル</labeltag><itemtag attr=
18759 \begin_inset Quotes erd
18763 \begin_inset Quotes erd
18769 \begin_layout LyX-Code
18773 \begin_layout Standard
18775 \begin_inset Flex Code
18778 \begin_layout Plain Layout
18785 \begin_inset Flex Code
18788 \begin_layout Plain Layout
18794 の順序が違っていることに注意してください.どちらの順序になるかは,
18795 \begin_inset Flex Code
18798 \begin_layout Plain Layout
18805 \begin_inset Flex Code
18808 \begin_layout Plain Layout
18814 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18817 \begin_layout Standard
18818 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18820 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18824 \begin_layout Description
18825 \begin_inset Flex Code
18828 \begin_layout Plain Layout
18835 \begin_inset Flex Code
18838 \begin_layout Plain Layout
18844 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18845 \begin_inset Flex Code
18848 \begin_layout Plain Layout
18854 」のようなものです.既定においては,\SpecialChar LyX
18856 \begin_inset Flex Code
18859 \begin_layout Plain Layout
18866 \begin_inset Flex Code
18869 \begin_layout Plain Layout
18875 は,レイアウトの\SpecialChar LyX
18876 名であり,chapterのように小文字で記述します.
18879 \begin_layout Description
18880 \begin_inset Flex Code
18883 \begin_layout Plain Layout
18890 \begin_inset Flex Code
18893 \begin_layout Plain Layout
18904 \begin_inset Flex Code
18907 \begin_layout Plain Layout
18913 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
18914 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
18915 \begin_inset Flex Code
18918 \begin_layout Plain Layout
18924 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
18925 \begin_inset Flex Code
18928 \begin_layout Plain Layout
18937 \begin_layout Description
18938 \begin_inset Flex Code
18941 \begin_layout Plain Layout
18948 \begin_inset Flex Code
18951 \begin_layout Plain Layout
18957 ] 環境の段落に使用されるタグ.上記各例の
18958 \begin_inset Flex Code
18961 \begin_layout Plain Layout
18968 \begin_inset Flex Code
18971 \begin_layout Plain Layout
18980 \begin_layout Description
18981 \begin_inset Flex Code
18984 \begin_layout Plain Layout
18991 \begin_inset Flex Code
18994 \begin_layout Plain Layout
19001 \begin_inset Flex Code
19004 \begin_layout Plain Layout
19005 class=`レイアウト名_item'
19015 \begin_inset Flex Code
19018 \begin_layout Plain Layout
19027 \begin_layout Description
19028 \begin_inset Flex Code
19031 \begin_layout Plain Layout
19038 \begin_inset Flex Code
19041 \begin_layout Plain Layout
19047 ] 段落と項目ラベルに使用されるタグ.上記各例の
19048 \begin_inset Flex Code
19051 \begin_layout Plain Layout
19058 \begin_inset Flex Code
19061 \begin_layout Plain Layout
19068 \begin_inset Flex Code
19071 \begin_layout Plain Layout
19078 \begin_inset Flex Code
19081 \begin_layout Plain Layout
19082 Centered_Top_Environment
19088 \begin_inset Flex Code
19091 \begin_layout Plain Layout
19098 \begin_inset Flex Code
19101 \begin_layout Plain Layout
19110 \begin_layout Description
19111 \begin_inset Flex Code
19114 \begin_layout Plain Layout
19121 \begin_inset Flex Code
19124 \begin_layout Plain Layout
19131 \begin_inset Flex Code
19134 \begin_layout Plain Layout
19135 class=`レイアウト名_label'
19145 \begin_inset Flex Code
19148 \begin_layout Plain Layout
19157 \begin_layout Description
19158 \begin_inset Flex Code
19161 \begin_layout Plain Layout
19168 \begin_inset Flex Code
19171 \begin_layout Plain Layout
19181 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19183 \begin_inset Flex Code
19186 \begin_layout Plain Layout
19187 `<dt>\SpecialChar ldots
19188 </dt><dd>\SpecialChar ldots
19194 という形を得るために使用されます.既定値は
19195 \begin_inset Flex Code
19198 \begin_layout Plain Layout
19204 で,labelタグはitemタグの中に出力されます.
19207 \begin_layout Description
19208 \begin_inset Flex Code
19211 \begin_layout Plain Layout
19218 \begin_inset Flex Code
19221 \begin_layout Plain Layout
19227 セクションに出力される情報.これは,たとえば,
19228 \begin_inset Flex Code
19231 \begin_layout Plain Layout
19238 \begin_inset Flex Code
19241 \begin_layout Plain Layout
19247 ブロックをインクルードするのに使用することができます.
19250 \begin_layout Description
19251 \begin_inset Flex Code
19254 \begin_layout Plain Layout
19260 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19261 \begin_inset Flex Code
19264 \begin_layout Plain Layout
19270 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19271 \begin_inset Flex Code
19274 \begin_layout Plain Layout
19283 \begin_layout Description
19284 \begin_inset Flex Code
19287 \begin_layout Plain Layout
19294 \begin_inset Flex Code
19297 \begin_layout Plain Layout
19303 ] 主幹ラベルに使用されるタグ.上記各例の
19304 \begin_inset Flex Code
19307 \begin_layout Plain Layout
19314 \begin_inset Flex Code
19317 \begin_layout Plain Layout
19326 \begin_layout Description
19327 \begin_inset Flex Code
19330 \begin_layout Plain Layout
19337 \begin_inset Flex Code
19340 \begin_layout Plain Layout
19351 \begin_inset Flex Code
19354 \begin_layout Plain Layout
19360 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19361 \begin_inset Flex Code
19364 \begin_layout Plain Layout
19371 \begin_inset Flex Code
19374 \begin_layout Plain Layout
19383 \begin_layout Subsection
19387 \begin_layout Standard
19388 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19392 \begin_layout Plain Layout
19393 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19399 .ここでも,\SpecialChar LyX
19400 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19403 \begin_layout Standard
19405 が差込枠用に出力するXHTMLは,以下の形を取ります.
19408 \begin_layout LyX-Code
19410 \begin_inset Quotes erd
19414 \begin_inset Quotes erd
19420 \begin_layout LyX-Code
19421 <labeltag>ラベル</labeltag>
19424 \begin_layout LyX-Code
19426 \begin_inset Quotes erd
19430 \begin_inset Quotes erd
19433 >差込枠の内容.</innertag>
19436 \begin_layout LyX-Code
19440 \begin_layout Standard
19442 \begin_inset Flex Code
19445 \begin_layout Plain Layout
19451 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19452 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19453 \begin_inset Flex Code
19456 \begin_layout Plain Layout
19462 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19466 \begin_layout Description
19467 \begin_inset Flex Code
19470 \begin_layout Plain Layout
19477 \begin_inset Flex Code
19480 \begin_layout Plain Layout
19486 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19487 \begin_inset Flex Code
19490 \begin_layout Plain Layout
19491 class=`myinset' onclick=`\SpecialChar ldots
19497 」のようなものです.既定においては,\SpecialChar LyX
19499 \begin_inset Flex Code
19502 \begin_layout Plain Layout
19509 \begin_inset Flex Code
19512 \begin_layout Plain Layout
19518 は,差込枠の\SpecialChar LyX
19519 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19522 \begin_layout Description
19523 \begin_inset Flex Code
19526 \begin_layout Plain Layout
19533 \begin_inset Flex Code
19536 \begin_layout Plain Layout
19547 \begin_inset Flex Code
19550 \begin_layout Plain Layout
19556 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19557 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19558 \begin_inset Flex Code
19561 \begin_layout Plain Layout
19567 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19568 \begin_inset Flex Code
19571 \begin_layout Plain Layout
19580 \begin_layout Description
19581 \begin_inset Flex Code
19584 \begin_layout Plain Layout
19591 \begin_inset Flex Code
19594 \begin_layout Plain Layout
19601 \begin_inset Flex Code
19604 \begin_layout Plain Layout
19613 \begin_layout Description
19614 \begin_inset Flex Code
19617 \begin_layout Plain Layout
19624 \begin_inset Flex Code
19627 \begin_layout Plain Layout
19634 \begin_inset Flex Code
19637 \begin_layout Plain Layout
19646 \begin_layout Description
19647 \begin_inset Flex Code
19650 \begin_layout Plain Layout
19657 \begin_inset Flex Code
19660 \begin_layout Plain Layout
19668 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19671 \begin_layout Description
19672 \begin_inset Flex Code
19675 \begin_layout Plain Layout
19682 \begin_inset Flex Code
19685 \begin_layout Plain Layout
19691 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19692 \begin_inset Flex Code
19695 \begin_layout Plain Layout
19703 など.これは非必須であり,既定値はありません.
19706 \begin_layout Description
19707 \begin_inset Flex Code
19710 \begin_layout Plain Layout
19717 \begin_inset Flex Code
19720 \begin_layout Plain Layout
19726 セクションに出力される情報.これは,たとえば,
19727 \begin_inset Flex Code
19730 \begin_layout Plain Layout
19737 \begin_inset Flex Code
19740 \begin_layout Plain Layout
19746 ブロックをインクルードするのに使用することができます.
19749 \begin_layout Description
19750 \begin_inset Flex Code
19753 \begin_layout Plain Layout
19759 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19760 \begin_inset Flex Code
19763 \begin_layout Plain Layout
19769 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19772 \begin_layout Description
19773 \begin_inset Flex Code
19776 \begin_layout Plain Layout
19783 \begin_inset Flex Code
19786 \begin_layout Plain Layout
19792 ] 主幹ラベルに使用されるタグ.上記各例の
19793 \begin_inset Flex Code
19796 \begin_layout Plain Layout
19803 \begin_inset Flex Code
19806 \begin_layout Plain Layout
19813 \begin_inset Flex Code
19816 \begin_layout Plain Layout
19823 \begin_inset Flex Code
19826 \begin_layout Plain Layout
19833 \begin_inset Flex Code
19836 \begin_layout Plain Layout
19845 \begin_layout Subsection
19849 \begin_layout Standard
19850 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19853 \begin_layout LyX-Code
19855 \begin_inset Quotes erd
19859 \begin_inset Quotes erd
19865 \begin_layout LyX-Code
19869 \begin_layout LyX-Code
19873 \begin_layout Standard
19874 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19878 \begin_layout Description
19879 \begin_inset Flex Code
19882 \begin_layout Plain Layout
19889 \begin_inset Flex Code
19892 \begin_layout Plain Layout
19898 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19899 \begin_inset Flex Code
19902 \begin_layout Plain Layout
19903 class=`myfloat' onclick=`\SpecialChar ldots
19909 」のようなものです.既定においては,\SpecialChar LyX
19911 \begin_inset Flex Code
19914 \begin_layout Plain Layout
19915 class=`float フロート-フロート型'
19921 \begin_inset Flex Code
19924 \begin_layout Plain Layout
19931 \begin_inset CommandInset ref
19933 reference "subsec:フロート"
19937 参照),この型のフロートの\SpecialChar LyX
19938 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
19941 \begin_layout Description
19942 \begin_inset Flex Code
19945 \begin_layout Plain Layout
19951 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19952 \begin_inset Flex Code
19955 \begin_layout Plain Layout
19961 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19964 \begin_layout Description
19965 \begin_inset Flex Code
19968 \begin_layout Plain Layout
19975 \begin_inset Flex Code
19978 \begin_layout Plain Layout
19984 ] このフロートに使用されるタグ.上記各例の
19985 \begin_inset Flex Code
19988 \begin_layout Plain Layout
19995 \begin_inset Flex Code
19998 \begin_layout Plain Layout
20004 であり,ほとんどの場合変更する必要はありません.
20007 \begin_layout Subsection
20011 \begin_layout Standard
20013 \begin_inset Flex Code
20016 \begin_layout Plain Layout
20022 ブロックを使用して整形することができます.詳細については,
20023 \begin_inset CommandInset ref
20025 reference "subsec:引用書式指定"
20032 \begin_layout Subsection
20037 \begin_layout Standard
20039 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20041 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20044 \begin_layout Standard
20047 \begin_inset Flex Code
20050 \begin_layout Plain Layout
20057 \begin_inset Flex Code
20060 \begin_layout Plain Layout
20067 \begin_inset Flex Code
20070 \begin_layout Plain Layout
20077 \begin_inset Flex Code
20080 \begin_layout Plain Layout
20087 \begin_inset Flex Code
20090 \begin_layout Plain Layout
20096 を利用して,フォント情報についてのみCSSを自動生成します(
20097 \begin_inset CommandInset ref
20099 reference "subsec:フォント指定"
20103 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20104 \begin_inset Flex Code
20107 \begin_layout Plain Layout
20114 \begin_inset Flex Code
20117 \begin_layout Plain Layout
20118 font-family: sans-serif
20123 」になります.\SpecialChar LyX
20124 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20125 \begin_inset Flex URL
20128 \begin_layout Plain Layout
20136 \begin_inset Flex Code
20139 \begin_layout Plain Layout
20148 \begin_layout Chapter
20150 \begin_inset CommandInset label
20152 name "chap:外部素材を取り込む"
20159 \begin_layout Standard
20160 \begin_inset Box Shadowbox
20170 height_special "totalheight"
20175 backgroundcolor "none"
20178 \begin_layout Plain Layout
20179 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20187 \begin_layout Standard
20189 外部のソースから素材を使用する方法は,取扱説明書『
20193 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20196 \begin_layout Section
20200 \begin_layout Standard
20201 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20202 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20204 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20205 \begin_inset Flex MenuItem
20208 \begin_layout Plain Layout
20209 挿入\SpecialChar menuseparator
20210 ファイル\SpecialChar menuseparator
20216 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20217 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20218 の後の版に取り込むことができるようにしてくださることを希望します.
20221 \begin_layout Standard
20222 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20224 \begin_inset Flex Code
20227 \begin_layout Plain Layout
20233 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20234 \begin_inset Flex Code
20237 \begin_layout Plain Layout
20243 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20244 \begin_inset Flex Code
20247 \begin_layout Plain Layout
20253 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20254 ファイルにそのままインクルードできるように,
20255 \begin_inset Flex Code
20258 \begin_layout Plain Layout
20264 を呼び出してPostScriptファイルを生成します.この場合には,
20265 \begin_inset Flex Code
20268 \begin_layout Plain Layout
20274 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20277 \begin_layout Standard
20278 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20279 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20280 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20283 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20286 \begin_layout Standard
20288 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20289 の場合には,\SpecialChar LyX
20290 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20291 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20292 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20296 \begin_layout Section
20300 \begin_layout Standard
20302 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20303 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20304 \begin_inset CommandInset ref
20306 reference "sec:セキュリティに関する論点"
20310 のセキュリティに関する議論を読んでおいてください.
20313 \begin_layout Standard
20314 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20317 \begin_layout Standard
20319 \begin_inset Flex Code
20322 \begin_layout Plain Layout
20323 LyXDir/lib/external_templates
20328 ファイルで定義されています.自分用の版を
20329 \begin_inset Flex Code
20332 \begin_layout Plain Layout
20333 UserDir/external_templates
20341 \begin_layout Standard
20342 典型的なひな型は以下のようになります.
20345 \begin_layout LyX-Code
20349 \begin_layout LyX-Code
20350 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20353 \begin_layout LyX-Code
20357 \begin_layout LyX-Code
20361 \begin_layout LyX-Code
20365 \begin_layout LyX-Code
20369 \begin_layout LyX-Code
20373 \begin_layout LyX-Code
20374 AutomaticProduction true
20377 \begin_layout LyX-Code
20381 \begin_layout LyX-Code
20385 \begin_layout LyX-Code
20389 \begin_layout LyX-Code
20390 TransformCommand Rotate RotationLatexCommand
20393 \begin_layout LyX-Code
20394 TransformCommand Resize ResizeLatexCommand
20397 \begin_layout LyX-Code
20398 Product "$$RotateFront$$ResizeFront
20401 \begin_layout LyX-Code
20406 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20409 \begin_layout LyX-Code
20410 $$ResizeBack$$RotateBack"
20413 \begin_layout LyX-Code
20417 \begin_layout LyX-Code
20418 UpdateResult "$$AbsPath$$Basename.pstex_t"
20421 \begin_layout LyX-Code
20422 Requirement "graphicx"
20425 \begin_layout LyX-Code
20426 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20429 \begin_layout LyX-Code
20430 ReferencedFile latex "$$AbsPath$$Basename.eps"
20433 \begin_layout LyX-Code
20434 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20437 \begin_layout LyX-Code
20441 \begin_layout LyX-Code
20445 \begin_layout LyX-Code
20446 TransformCommand Rotate RotationLatexCommand
20449 \begin_layout LyX-Code
20450 TransformCommand Resize ResizeLatexCommand
20453 \begin_layout LyX-Code
20454 Product "$$RotateFront$$ResizeFront
20457 \begin_layout LyX-Code
20462 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20465 \begin_layout LyX-Code
20466 $$ResizeBack$$RotateBack"
20469 \begin_layout LyX-Code
20470 UpdateFormat pdftex
20473 \begin_layout LyX-Code
20474 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20477 \begin_layout LyX-Code
20478 Requirement "graphicx"
20481 \begin_layout LyX-Code
20482 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20485 \begin_layout LyX-Code
20486 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20489 \begin_layout LyX-Code
20493 \begin_layout LyX-Code
20497 \begin_layout LyX-Code
20498 Product "$$Contents(
20500 "$$AbsPath$$Basename.asc
20505 \begin_layout LyX-Code
20506 UpdateFormat asciixfig
20509 \begin_layout LyX-Code
20510 UpdateResult "$$AbsPath$$Basename.asc"
20513 \begin_layout LyX-Code
20517 \begin_layout LyX-Code
20521 \begin_layout LyX-Code
20522 Product "<graphic fileref=
20524 "$$AbsOrRelPathMaster$$Basename.eps
20529 \begin_layout LyX-Code
20533 \begin_layout LyX-Code
20537 \begin_layout LyX-Code
20538 UpdateResult "$$AbsPath$$Basename.eps"
20541 \begin_layout LyX-Code
20542 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20545 \begin_layout LyX-Code
20546 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20549 \begin_layout LyX-Code
20553 \begin_layout LyX-Code
20554 Product "[XFig: $$FName]"
20557 \begin_layout LyX-Code
20561 \begin_layout LyX-Code
20565 \begin_layout Standard
20567 \begin_inset Flex Code
20570 \begin_layout Plain Layout
20578 \begin_inset Flex Code
20581 \begin_layout Plain Layout
20587 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20588 \begin_inset Flex Code
20591 \begin_layout Plain Layout
20599 \begin_inset Flex Code
20602 \begin_layout Plain Layout
20611 \begin_layout Subsection
20615 \begin_layout Description
20616 \begin_inset Flex Code
20619 \begin_layout Plain Layout
20620 AutomaticProduction
20621 \begin_inset space ~
20629 このひな型で扱うファイルを\SpecialChar LyX
20630 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20633 \begin_layout Description
20634 \begin_inset Flex Code
20637 \begin_layout Plain Layout
20639 \begin_inset space ~
20647 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20648 \begin_inset Flex Code
20651 \begin_layout Plain Layout
20658 \begin_inset Flex Code
20661 \begin_layout Plain Layout
20668 \begin_inset Flex Code
20671 \begin_layout Plain Layout
20677 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20680 \begin_layout Description
20681 \begin_inset Flex Code
20684 \begin_layout Plain Layout
20686 \begin_inset space ~
20694 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20697 \begin_layout Description
20698 \begin_inset Flex Code
20701 \begin_layout Plain Layout
20703 \begin_inset space ~
20707 \begin_inset space ~
20715 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20719 \begin_layout Description
20720 \begin_inset Flex Code
20723 \begin_layout Plain Layout
20725 \begin_inset space ~
20733 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20734 が知っている書式名でなくてはなりません(
20735 \begin_inset CommandInset ref
20737 reference "sec:ファイル形式"
20741 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20742 \begin_inset Flex Code
20745 \begin_layout Plain Layout
20751 」を使用してください.この場合,\SpecialChar LyX
20752 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20755 \begin_layout Description
20756 \begin_inset Flex Code
20759 \begin_layout Plain Layout
20761 \begin_inset space ~
20769 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20772 \begin_layout Description
20773 \begin_inset Flex Code
20776 \begin_layout Plain Layout
20778 \begin_inset space ~
20781 Rotate|Resize|Clip|Extra
20786 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20787 ログ中の対応するタブを使用可能にします.
20788 \begin_inset Flex Code
20791 \begin_layout Plain Layout
20798 \begin_inset Flex Code
20801 \begin_layout Plain Layout
20808 \begin_inset Flex Code
20811 \begin_layout Plain Layout
20818 \begin_inset Flex Code
20821 \begin_layout Plain Layout
20827 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20830 \begin_layout Subsection
20831 \begin_inset Flex Code
20834 \begin_layout Plain Layout
20843 \begin_layout Description
20844 \begin_inset Flex Code
20847 \begin_layout Plain Layout
20849 \begin_inset space ~
20852 LaTeX|PDFLaTeX|PlainText|DocBook
20857 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20858 \begin_inset Flex Code
20861 \begin_layout Plain Layout
20867 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20871 \begin_layout Description
20872 \begin_inset Flex Code
20875 \begin_layout Plain Layout
20877 \begin_inset space ~
20881 \begin_inset space ~
20890 \begin_inset Flex Code
20893 \begin_layout Plain Layout
20900 \begin_inset Flex Code
20903 \begin_layout Plain Layout
20910 \begin_inset Flex Code
20913 \begin_layout Plain Layout
20919 自体にも代入マクロを使うことができます.
20920 \begin_inset Flex Code
20923 \begin_layout Plain Layout
20930 \begin_inset Flex Code
20933 \begin_layout Plain Layout
20940 \begin_inset Flex Code
20943 \begin_layout Plain Layout
20949 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
20952 \begin_layout Description
20953 \begin_inset Flex Code
20956 \begin_layout Plain Layout
20958 \begin_inset space ~
20966 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
20970 \begin_layout Description
20971 \begin_inset Flex Code
20974 \begin_layout Plain Layout
20976 \begin_inset space ~
20984 このコマンドは,\SpecialChar LaTeX
20985 プリアンブルに入れるプリアンブル片を指定します.これは
20986 \begin_inset Flex Code
20989 \begin_layout Plain Layout
20997 \begin_inset Flex Code
21000 \begin_layout Plain Layout
21006 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21009 \begin_layout Description
21010 \begin_inset Flex Code
21013 \begin_layout Plain Layout
21015 \begin_inset space ~
21019 \begin_inset space ~
21027 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21028 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21031 \begin_layout Description
21032 \begin_inset Flex Code
21035 \begin_layout Plain Layout
21037 \begin_inset space ~
21045 必要とされる\SpecialChar LaTeX
21046 パッケージ名.パッケージは,\SpecialChar LaTeX
21048 \begin_inset Flex Code
21051 \begin_layout Plain Layout
21059 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21062 \begin_layout Description
21063 \begin_inset Flex Code
21066 \begin_layout Plain Layout
21068 \begin_inset space ~
21072 \begin_inset space ~
21075 RotationLatexCommand
21080 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21081 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21084 \begin_layout Description
21085 \begin_inset Flex Code
21088 \begin_layout Plain Layout
21090 \begin_inset space ~
21094 \begin_inset space ~
21102 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21103 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21106 \begin_layout Description
21107 \begin_inset Flex Code
21110 \begin_layout Plain Layout
21112 \begin_inset space ~
21116 \begin_inset space ~
21119 RotationLatexOption
21124 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21127 \begin_layout Description
21128 \begin_inset Flex Code
21131 \begin_layout Plain Layout
21133 \begin_inset space ~
21137 \begin_inset space ~
21145 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21148 \begin_layout Description
21149 \begin_inset Flex Code
21152 \begin_layout Plain Layout
21154 \begin_inset space ~
21158 \begin_inset space ~
21166 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21169 \begin_layout Description
21170 \begin_inset Flex Code
21173 \begin_layout Plain Layout
21175 \begin_inset space ~
21179 \begin_inset space ~
21187 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21190 \begin_layout Description
21191 \begin_inset Flex Code
21194 \begin_layout Plain Layout
21196 \begin_inset space ~
21204 変換されたファイルのファイル形式.これは,\SpecialChar LyX
21205 が知っている書式名でなくてはなりません(
21206 \begin_inset Flex MenuItem
21209 \begin_layout Plain Layout
21210 ツール\SpecialChar menuseparator
21211 設定\SpecialChar menuseparator
21212 ファイル処理\SpecialChar menuseparator
21218 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21219 \begin_inset Flex Code
21222 \begin_layout Plain Layout
21228 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21231 \begin_layout Description
21232 \begin_inset Flex Code
21235 \begin_layout Plain Layout
21237 \begin_inset space ~
21245 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21248 \begin_layout Subsection
21252 \begin_layout Standard
21254 \begin_inset Flex Code
21257 \begin_layout Plain Layout
21265 \begin_inset Flex Code
21268 \begin_layout Plain Layout
21274 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21275 \begin_inset Flex Code
21278 \begin_layout Plain Layout
21287 \begin_layout Section
21291 \begin_layout Standard
21292 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21293 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21296 \begin_layout Standard
21297 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21300 \begin_layout Standard
21304 \begin_layout Description
21305 \begin_inset Flex Code
21308 \begin_layout Plain Layout
21309 $$AbsOrRelPathMaster
21315 親文書への絶対ファイルパスないしは相対ファイルパス
21318 \begin_layout Description
21319 \begin_inset Flex Code
21322 \begin_layout Plain Layout
21323 $$AbsOrRelPathParent
21329 文書への絶対ファイルパスないしは相対ファイルパス
21332 \begin_layout Description
21333 \begin_inset Flex Code
21336 \begin_layout Plain Layout
21345 \begin_layout Description
21346 \begin_inset Flex Code
21349 \begin_layout Plain Layout
21358 \begin_layout Description
21359 \begin_inset Flex Code
21362 \begin_layout Plain Layout
21364 \begin_inset Quotes eld
21368 \begin_inset Quotes erd
21377 \begin_inset Flex Code
21380 \begin_layout Plain Layout
21386 と云う名のファイルの中身を展開します.
21389 \begin_layout Description
21390 \begin_inset Flex Code
21393 \begin_layout Plain Layout
21402 \begin_layout Description
21403 \begin_inset Flex Code
21406 \begin_layout Plain Layout
21412 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21413 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21414 出力形式に対してこのマクロを使用します.
21417 \begin_layout Description
21418 \begin_inset Flex Code
21421 \begin_layout Plain Layout
21427 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21428 文書への絶対パスでも良いですし,相対パスでも構いません.
21431 \begin_layout Description
21432 \begin_inset Flex Code
21435 \begin_layout Plain Layout
21442 \begin_inset Flex Code
21445 \begin_layout Plain Layout
21451 のパス部分(\SpecialChar LyX
21455 \begin_layout Description
21456 \begin_inset Flex Code
21459 \begin_layout Plain Layout
21469 \begin_layout Description
21470 \begin_inset Flex Code
21473 \begin_layout Plain Layout
21483 \begin_layout Description
21484 \begin_inset Flex Code
21487 \begin_layout Plain Layout
21493 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21494 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21497 \begin_layout Description
21498 \begin_inset Flex Code
21501 \begin_layout Plain Layout
21507 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21510 \begin_layout Standard
21511 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
21512 \begin_inset Flex Code
21515 \begin_layout Plain Layout
21516 $$AbsPath$$Basename$$Extension
21524 \begin_layout Standard
21525 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21526 \begin_inset Flex Code
21529 \begin_layout Plain Layout
21536 \begin_inset Flex Code
21539 \begin_layout Plain Layout
21546 \begin_inset Flex Code
21549 \begin_layout Plain Layout
21555 コマンドは,これらに加えて以下の代入もサポートします.
21558 \begin_layout Description
21559 \begin_inset Flex Code
21562 \begin_layout Plain Layout
21571 \begin_layout Description
21572 \begin_inset Flex Code
21575 \begin_layout Plain Layout
21584 \begin_layout Description
21585 \begin_inset Flex Code
21588 \begin_layout Plain Layout
21597 \begin_layout Description
21598 \begin_inset Flex Code
21601 \begin_layout Plain Layout
21610 \begin_layout Standard
21611 \begin_inset Flex Code
21614 \begin_layout Plain Layout
21621 \begin_inset Flex Code
21624 \begin_layout Plain Layout
21631 \begin_inset Flex Code
21634 \begin_layout Plain Layout
21640 コマンドが有効にされていれば,以下の代入もサポートされます.
21643 \begin_layout Description
21644 \begin_inset Flex Code
21647 \begin_layout Plain Layout
21656 \begin_layout Description
21657 \begin_inset Flex Code
21660 \begin_layout Plain Layout
21669 \begin_layout Description
21670 \begin_inset Flex Code
21673 \begin_layout Plain Layout
21682 \begin_layout Description
21683 \begin_inset Flex Code
21686 \begin_layout Plain Layout
21695 \begin_layout Standard
21696 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21699 \begin_layout Enumerate
21700 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21701 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21704 \begin_layout Enumerate
21706 は,相対ファイル名に関して,\SpecialChar LyX
21707 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21708 にとって相対ファイル名とは,常にこのファイル名が書か
21709 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21710 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21711 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21712 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21713 を選びさえすれば,これは\SpecialChar LyX
21717 \begin_layout Standard
21718 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21721 \begin_layout Itemize
21723 \begin_inset Flex Code
21726 \begin_layout Plain Layout
21735 \begin_layout Itemize
21736 代入された文字列が,\SpecialChar LaTeX
21738 \begin_inset Flex Code
21741 \begin_layout Plain Layout
21742 $$AbsOrRelPathMaster
21750 \begin_layout Itemize
21751 それ以外ならば,ユーザの選択を尊重するために
21752 \begin_inset Flex Code
21755 \begin_layout Plain Layout
21756 $$AbsOrRelPathParent
21764 \begin_layout Standard
21765 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21766 \begin_inset Flex Code
21769 \begin_layout Plain Layout
21770 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21776 \begin_inset Flex Code
21779 \begin_layout Plain Layout
21785 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21788 \begin_layout Section
21790 \begin_inset CommandInset label
21792 name "sec:セキュリティに関する論点"
21799 \begin_layout Standard
21800 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21801 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21802 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21805 \begin_layout Standard
21806 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21807 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21809 \begin_inset Flex Code
21812 \begin_layout Plain Layout
21819 \begin_inset Flex Code
21822 \begin_layout Plain Layout
21828 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21831 \begin_layout Standard
21832 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21833 できません.これは,\SpecialChar LyX
21834 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21835 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21838 \begin_layout Standard
21839 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21840 うになるため,一般的には,統御下に置いた状態で
21841 \begin_inset Flex Code
21844 \begin_layout Plain Layout
21850 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21851 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21855 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21856 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21857 には,安全でないひな型は決して入っていません
21861 \begin_layout Standard
21862 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21863 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21864 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21865 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21866 使用する前に,行うようにしてください.
21869 \begin_layout Chapter
21871 サポートされているレイアウト用\SpecialChar LyX
21873 \begin_inset CommandInset label
21882 \begin_layout Standard
21884 \begin_inset Tabular
21885 <lyxtabular version="3" rows="11" columns="8">
21886 <features tabularvalignment="middle">
21887 <column alignment="left" valignment="top">
21888 <column alignment="left" valignment="top">
21889 <column alignment="left" valignment="top">
21890 <column alignment="left" valignment="top">
21891 <column alignment="left" valignment="top">
21892 <column alignment="left" valignment="top">
21893 <column alignment="left" valignment="top">
21894 <column alignment="left" valignment="top">
21896 <cell alignment="left" valignment="top" usebox="none">
21899 \begin_layout Plain Layout
21905 <cell alignment="left" valignment="top" usebox="none">
21908 \begin_layout Plain Layout
21914 <cell alignment="left" valignment="top" usebox="none">
21917 \begin_layout Plain Layout
21923 <cell alignment="left" valignment="top" usebox="none">
21926 \begin_layout Plain Layout
21932 <cell alignment="center" valignment="top" usebox="none">
21935 \begin_layout Plain Layout
21941 <cell alignment="center" valignment="top" usebox="none">
21944 \begin_layout Plain Layout
21950 <cell alignment="center" valignment="top" usebox="none">
21953 \begin_layout Plain Layout
21959 <cell alignment="center" valignment="top" usebox="none">
21962 \begin_layout Plain Layout
21970 <cell alignment="left" valignment="top" usebox="none">
21973 \begin_layout Plain Layout
21979 <cell alignment="left" valignment="top" usebox="none">
21982 \begin_layout Plain Layout
21988 <cell alignment="left" valignment="top" usebox="none">
21991 \begin_layout Plain Layout
21997 <cell alignment="left" valignment="top" usebox="none">
22000 \begin_layout Plain Layout
22006 <cell alignment="center" valignment="top" usebox="none">
22009 \begin_layout Plain Layout
22015 <cell alignment="center" valignment="top" usebox="none">
22018 \begin_layout Plain Layout
22024 <cell alignment="center" valignment="top" usebox="none">
22027 \begin_layout Plain Layout
22033 <cell alignment="center" valignment="top" usebox="none">
22036 \begin_layout Plain Layout
22044 <cell alignment="left" valignment="top" usebox="none">
22047 \begin_layout Plain Layout
22053 <cell alignment="left" valignment="top" usebox="none">
22056 \begin_layout Plain Layout
22062 <cell alignment="left" valignment="top" usebox="none">
22065 \begin_layout Plain Layout
22071 <cell alignment="left" valignment="top" usebox="none">
22074 \begin_layout Plain Layout
22080 <cell alignment="center" valignment="top" usebox="none">
22083 \begin_layout Plain Layout
22089 <cell alignment="center" valignment="top" usebox="none">
22092 \begin_layout Plain Layout
22098 <cell alignment="center" valignment="top" usebox="none">
22101 \begin_layout Plain Layout
22107 <cell alignment="center" valignment="top" usebox="none">
22110 \begin_layout Plain Layout
22118 <cell alignment="left" valignment="top" usebox="none">
22121 \begin_layout Plain Layout
22127 <cell alignment="left" valignment="top" usebox="none">
22130 \begin_layout Plain Layout
22136 <cell alignment="left" valignment="top" usebox="none">
22139 \begin_layout Plain Layout
22145 <cell alignment="left" valignment="top" usebox="none">
22148 \begin_layout Plain Layout
22154 <cell alignment="center" valignment="top" usebox="none">
22157 \begin_layout Plain Layout
22163 <cell alignment="center" valignment="top" usebox="none">
22166 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" usebox="none">
22184 \begin_layout Plain Layout
22192 <cell alignment="left" valignment="top" usebox="none">
22195 \begin_layout Plain Layout
22201 <cell alignment="left" valignment="top" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="left" valignment="top" usebox="none">
22213 \begin_layout Plain Layout
22219 <cell alignment="left" valignment="top" usebox="none">
22222 \begin_layout Plain Layout
22228 <cell alignment="center" valignment="top" usebox="none">
22231 \begin_layout Plain Layout
22237 <cell alignment="center" valignment="top" usebox="none">
22240 \begin_layout Plain Layout
22246 <cell alignment="center" valignment="top" usebox="none">
22249 \begin_layout Plain Layout
22255 <cell alignment="center" valignment="top" usebox="none">
22258 \begin_layout Plain Layout
22266 <cell alignment="left" valignment="top" usebox="none">
22269 \begin_layout Plain Layout
22275 <cell alignment="left" valignment="top" usebox="none">
22278 \begin_layout Plain Layout
22284 <cell alignment="left" valignment="top" usebox="none">
22287 \begin_layout Plain Layout
22293 <cell alignment="left" valignment="top" usebox="none">
22296 \begin_layout Plain Layout
22302 <cell alignment="center" valignment="top" usebox="none">
22305 \begin_layout Plain Layout
22311 <cell alignment="center" valignment="top" usebox="none">
22314 \begin_layout Plain Layout
22320 <cell alignment="center" valignment="top" usebox="none">
22323 \begin_layout Plain Layout
22329 <cell alignment="center" valignment="top" usebox="none">
22332 \begin_layout Plain Layout
22340 <cell alignment="left" valignment="top" usebox="none">
22343 \begin_layout Plain Layout
22349 <cell alignment="left" valignment="top" usebox="none">
22352 \begin_layout Plain Layout
22358 <cell alignment="left" valignment="top" usebox="none">
22361 \begin_layout Plain Layout
22367 <cell alignment="left" valignment="top" usebox="none">
22370 \begin_layout Plain Layout
22376 <cell alignment="center" valignment="top" usebox="none">
22379 \begin_layout Plain Layout
22385 <cell alignment="center" valignment="top" usebox="none">
22388 \begin_layout Plain Layout
22394 <cell alignment="center" valignment="top" usebox="none">
22397 \begin_layout Plain Layout
22403 <cell alignment="center" valignment="top" usebox="none">
22406 \begin_layout Plain Layout
22414 <cell alignment="left" valignment="top" usebox="none">
22417 \begin_layout Plain Layout
22423 <cell alignment="left" valignment="top" usebox="none">
22426 \begin_layout Plain Layout
22432 <cell alignment="left" valignment="top" usebox="none">
22435 \begin_layout Plain Layout
22441 <cell alignment="left" valignment="top" usebox="none">
22444 \begin_layout Plain Layout
22450 <cell alignment="center" valignment="top" usebox="none">
22453 \begin_layout Plain Layout
22459 <cell alignment="center" valignment="top" usebox="none">
22462 \begin_layout Plain Layout
22468 <cell alignment="center" valignment="top" usebox="none">
22471 \begin_layout Plain Layout
22477 <cell alignment="center" valignment="top" usebox="none">
22480 \begin_layout Plain Layout
22488 <cell alignment="left" valignment="top" usebox="none">
22491 \begin_layout Plain Layout
22497 <cell alignment="left" valignment="top" usebox="none">
22500 \begin_layout Plain Layout
22506 <cell alignment="left" valignment="top" usebox="none">
22509 \begin_layout Plain Layout
22515 <cell alignment="left" valignment="top" usebox="none">
22518 \begin_layout Plain Layout
22524 <cell alignment="center" valignment="top" usebox="none">
22527 \begin_layout Plain Layout
22533 <cell alignment="center" valignment="top" usebox="none">
22536 \begin_layout Plain Layout
22542 <cell alignment="center" valignment="top" usebox="none">
22545 \begin_layout Plain Layout
22551 <cell alignment="center" valignment="top" usebox="none">
22554 \begin_layout Plain Layout
22562 <cell alignment="left" valignment="top" usebox="none">
22565 \begin_layout Plain Layout
22571 <cell alignment="left" valignment="top" usebox="none">
22574 \begin_layout Plain Layout
22580 <cell alignment="left" valignment="top" usebox="none">
22583 \begin_layout Plain Layout
22589 <cell alignment="left" valignment="top" usebox="none">
22592 \begin_layout Plain Layout
22598 <cell alignment="center" valignment="top" usebox="none">
22601 \begin_layout Plain Layout
22607 <cell alignment="center" valignment="top" usebox="none">
22610 \begin_layout Plain Layout
22616 <cell alignment="center" valignment="top" usebox="none">
22619 \begin_layout Plain Layout
22625 <cell alignment="center" valignment="top" usebox="none">
22628 \begin_layout Plain Layout
22636 <cell alignment="center" valignment="top" usebox="none">
22639 \begin_layout Plain Layout
22645 <cell alignment="center" valignment="top" usebox="none">
22648 \begin_layout Plain Layout
22654 <cell alignment="center" valignment="top" usebox="none">
22657 \begin_layout Plain Layout
22663 <cell alignment="center" valignment="top" usebox="none">
22666 \begin_layout Plain Layout
22672 <cell alignment="center" valignment="top" usebox="none">
22675 \begin_layout Plain Layout
22681 <cell alignment="center" valignment="top" usebox="none">
22684 \begin_layout Plain Layout
22690 <cell alignment="center" valignment="top" usebox="none">
22693 \begin_layout Plain Layout
22699 <cell alignment="center" valignment="top" usebox="none">
22702 \begin_layout Plain Layout
22716 \begin_layout Chapter
22718 \begin_inset CommandInset label
22727 \begin_layout Standard
22728 ここに列挙されている色は標準色であり,\SpecialChar LyX
22732 \begin_layout Description
22737 特定の色ではありません – 透明か既定色です
22740 \begin_layout Description
22744 \begin_layout Description
22748 \begin_layout Description
22752 \begin_layout Description
22756 \begin_layout Description
22760 \begin_layout Description
22764 \begin_layout Description
22768 \begin_layout Description
22772 \begin_layout Description
22776 \begin_layout Description
22780 \begin_layout Description
22784 \begin_layout Description
22788 \begin_layout Description
22792 \begin_layout Description
22793 branchlabel 派生枝ラベル色
22796 \begin_layout Description
22800 \begin_layout Description
22801 buttonhoverbg フォーカスを得ているボタンの背景色
22804 \begin_layout Description
22808 \begin_layout Description
22812 \begin_layout Description
22813 changedtextauthor1 変更された文章:第1著者の色
22816 \begin_layout Description
22817 changedtextauthor2 変更された文章:第2著者の色
22820 \begin_layout Description
22821 changedtextauthor3 変更された文章:第3著者の色
22824 \begin_layout Description
22825 changedtextauthor4 変更された文章:第4著者の色
22828 \begin_layout Description
22829 changedtextauthor5 変更された文章:第5著者の色
22832 \begin_layout Description
22833 collapsable_inset_frame 畳み込み可能枠の縁色
22836 \begin_layout Description
22837 collapsable_inset_text 畳み込み可能枠の文字色
22840 \begin_layout Description
22841 command コマンド差込枠の文字色
22844 \begin_layout Description
22845 commandbg コマンド差込枠の背景色
22848 \begin_layout Description
22849 commandframe コマンド差込枠の縁色
22852 \begin_layout Description
22856 \begin_layout Description
22860 \begin_layout Description
22864 \begin_layout Description
22865 deletedtext 削除された文章の色
22868 \begin_layout Description
22869 deletedtextmodifier 削除された文章の修飾子の色
22872 \begin_layout Description
22873 depthbar 余白部の階層表示線の色
22876 \begin_layout Description
22880 \begin_layout Description
22881 error \SpecialChar LaTeX
22885 \begin_layout Description
22889 \begin_layout Description
22890 graphicsbg 画像差込枠の背景色
22893 \begin_layout Description
22894 greyedout 淡色表示差込枠のラベル色
22897 \begin_layout Description
22898 greyedoutbg 淡色表示差込枠の背景色
22901 \begin_layout Description
22902 greyedouttext 淡色表示差込枠の文字色
22905 \begin_layout Description
22906 indexlabel 索引差込枠のラベル色
22909 \begin_layout Description
22913 \begin_layout Description
22917 \begin_layout Description
22918 inlinecompletion 行内補完色
22921 \begin_layout Description
22925 \begin_layout Description
22929 \begin_layout Description
22930 language 外国語の単語を標識するための色
22933 \begin_layout Description
22934 latex \SpecialChar LaTeX
22938 \begin_layout Description
22939 listingsbg プログラムリスト差込枠の背景色
22942 \begin_layout Description
22943 marginlabel 傍註のラベル色
22946 \begin_layout Description
22950 \begin_layout Description
22954 \begin_layout Description
22955 mathcorners フォーカスを得ていない数式差込枠の縁色
22958 \begin_layout Description
22959 mathframe フォーカスを得ている数式差込枠の縁色
22962 \begin_layout Description
22966 \begin_layout Description
22967 mathmacrobg 数式マクロ差込枠の背景色
22970 \begin_layout Description
22971 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22974 \begin_layout Description
22975 mathmacroframe 数式マクロ差込枠の縁色
22978 \begin_layout Description
22979 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22982 \begin_layout Description
22983 mathmacrolabel 数式マクロ差込枠のラベル色
22986 \begin_layout Description
22987 mathmacronewarg 数式マクロ新パラメーターのひな型色
22990 \begin_layout Description
22991 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22994 \begin_layout Description
22998 \begin_layout Description
22999 nonunique_inlinecompletion 行内補完の一意でない部分の色
23002 \begin_layout Description
23006 \begin_layout Description
23010 \begin_layout Description
23014 \begin_layout Description
23015 paragraphmarker 段落末を標識するための段落標の色
23018 \begin_layout Description
23019 phantomtext 埋め草差込枠の文字色
23022 \begin_layout Description
23023 preview プレビューに用いられる色
23026 \begin_layout Description
23027 previewframe プレビュー縁色
23030 \begin_layout Description
23031 regexpframe 正規表現枠の色
23034 \begin_layout Description
23035 selection 文章選択部の背景色
23038 \begin_layout Description
23039 selectiontext 文章選択部の前景色
23042 \begin_layout Description
23043 shadedbg 影付きボックスの背景色
23046 \begin_layout Description
23050 \begin_layout Description
23054 \begin_layout Description
23055 tabularonoffline 罫線色
23058 \begin_layout Description
23059 urllabel URL差込枠のラベル色
23062 \begin_layout Description