1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
8 % DO NOT ALTER THIS PREAMBLE!!!
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected. If you
13 % have problems LaTeXing this file, please contact
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
17 % the pages of the TOC is numbered roman
18 % and a pdf-bookmark for the TOC is added
19 \let\myTOC\tableofcontents
20 \renewcommand\tableofcontents{%
22 \pdfbookmark[1]{\contentsname}{}
26 % Added only for Japanese translation
27 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
28 \usepackage[T1]{fontenc}
30 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
31 \use_default_options false
35 \maintain_unincluded_children false
38 InsetLayout Flex:MenuItem
47 \newcommand*{\menuitem}[1]{{\sffamily #1}}
51 # In case we need to do with sans...
52 #InsetLayout CharStyle:Code
57 #\renewcommand{\code}[1]{{\sffamily #1}}
66 Decoration Conglomerate
70 Decoration Conglomerate
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
88 \language_package default
91 \font_roman "default" "default"
92 \font_sans "default" "default"
93 \font_typewriter "default" "default"
94 \font_math "auto" "auto"
95 \font_default_family default
96 \use_non_tex_fonts false
99 \font_sf_scale 100 100
100 \font_tt_scale 100 100
102 \default_output_format default
104 \bibtex_command default
105 \index_command default
109 \pdf_title "LyX Configuration Manual"
110 \pdf_author "LyX Team"
111 \pdf_subject "LyX-Documentation Customization"
112 \pdf_keywords "LyX, documentation, customization"
114 \pdf_bookmarksnumbered true
115 \pdf_bookmarksopen true
116 \pdf_bookmarksopenlevel 1
117 \pdf_breaklinks false
121 \pdf_pdfusetitle false
122 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
125 \use_package amsmath 0
126 \use_package amssymb 0
127 \use_package cancel 0
129 \use_package mathdots 0
130 \use_package mathtools 0
131 \use_package mhchem 0
132 \use_package stackrel 0
133 \use_package stmaryrd 0
134 \use_package undertilde 0
136 \cite_engine_type default
140 \paperorientation portrait
155 \paragraph_separation indent
156 \paragraph_indentation default
157 \quotes_language english
160 \paperpagestyle headings
161 \tracking_changes false
162 \output_changes false
173 \begin_inset Newline newline
185 \begin_layout Plain Layout
187 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
189 \begin_inset CommandInset href
191 target "lyx-docs@lists.lyx.org"
196 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
197 ast.net>をccにして送ってください。
203 \begin_inset Newline newline
207 \begin_inset Newline newline
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
220 \begin_inset Note Note
223 \begin_layout Plain Layout
224 本文書を修正する際には、変更追跡機能を使用してください。これによって、
227 \begin_layout Plain Layout
229 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
237 \begin_layout Chapter
241 \begin_layout Standard
242 この取扱説明書は、\SpecialChar LyX
243 に備わっている高度設定機能を取り扱います。ここでは、
244 \begin_inset Flex Ruby
247 \begin_layout Plain Layout
249 \begin_inset Argument post:1
252 \begin_layout Plain Layout
263 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
264 サーバ経由での\SpecialChar LyX
265 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
267 レイアウトの導入などの題材について論じます。おそらくは変更
268 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
269 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
272 \begin_layout Standard
273 \begin_inset Branch OutDated
276 \begin_layout Standard
277 Information from previous versions of this document that now seems to be
278 outdated is contained in the OutDated branch of this document.
279 By default, this information will not appear in the \SpecialChar LaTeX
288 \begin_layout Chapter
293 \begin_layout Standard
294 本章の目的は、\SpecialChar LyX
295 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
296 \begin_inset Flex MenuItem
299 \begin_layout Plain Layout
300 ヘルプ\SpecialChar menuseparator
305 \begin_layout Plain Layout
317 を使って、\SpecialChar LyX
318 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
319 がシステム全体の設定ファイルを置いておくところです。一
320 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
321 \begin_inset Flex Code
324 \begin_layout Plain Layout
329 \begin_layout Plain Layout
342 \begin_inset Flex MenuItem
345 \begin_layout Plain Layout
354 \begin_layout Section
355 \begin_inset Flex Code
358 \begin_layout Plain Layout
363 \begin_layout Plain Layout
378 \begin_layout Standard
379 \begin_inset Flex Code
382 \begin_layout Plain Layout
387 \begin_layout Plain Layout
399 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
400 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
402 \begin_inset Flex MenuItem
405 \begin_layout Plain Layout
406 ツール\SpecialChar menuseparator
412 ダイアログから変更することができます。\SpecialChar LyX
413 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
415 \begin_inset Flex Code
418 \begin_layout Plain Layout
423 \begin_layout Plain Layout
435 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
438 \begin_layout Subsection
442 \begin_layout Standard
443 \begin_inset Flex MenuItem
446 \begin_layout Plain Layout
452 にある各ファイルは、\SpecialChar LyX
453 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
454 うので、一般的には修正しないことが望まれます。
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
462 \begin_layout Plain Layout
468 このファイルには、様々な既定コマンドが置かれています。
471 \begin_layout Labeling
472 \labelwidthstring 00.00.0000
473 \begin_inset Flex Code
476 \begin_layout Plain Layout
482 このファイルには、\SpecialChar LyX
483 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
484 プログラム自体には使用されていませんが、抽出された情報その他は、
485 \begin_inset Flex MenuItem
488 \begin_layout Plain Layout
489 ヘルプ\SpecialChar menuseparator
494 \begin_layout Plain Layout
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 Labeling
535 \labelwidthstring 00.00.0000
536 \begin_inset Flex Code
539 \begin_layout Plain Layout
546 \begin_inset Flex Code
549 \begin_layout Plain Layout
555 ディレクトリで検出されたレイアウトモジュールの一覧です。
558 \begin_layout Labeling
559 \labelwidthstring 00.00.0000
560 \begin_inset Flex Code
563 \begin_layout Plain Layout
569 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
573 \begin_layout Labeling
574 \labelwidthstring 00.00.0000
575 \begin_inset Flex Code
578 \begin_layout Plain Layout
583 \begin_layout Plain Layout
596 \begin_inset Flex Code
599 \begin_layout Plain Layout
604 \begin_layout Plain Layout
616 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
620 \begin_layout Subsection
624 \begin_layout Standard
626 \begin_inset Flex Code
629 \begin_layout Plain Layout
634 \begin_layout Plain Layout
647 \begin_inset Flex Code
650 \begin_layout Plain Layout
656 に重複して存在します。特定のファイルが両方の場所にある場合には、
657 \begin_inset Flex Code
660 \begin_layout Plain Layout
669 \begin_layout Labeling
670 \labelwidthstring 00.00.0000
671 \begin_inset Flex Code
674 \begin_layout Plain Layout
680 このディレクトリには、\SpecialChar LyX
681 で使用されるキー割当を定義している、拡張子が
682 \begin_inset Flex Code
685 \begin_layout Plain Layout
692 \begin_inset Flex Code
695 \begin_layout Plain Layout
701 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
709 \begin_layout Plain Layout
715 このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
718 \begin_layout Labeling
719 \labelwidthstring 00.00.0000
720 \begin_inset Flex Code
723 \begin_layout Plain Layout
729 このディレクトリには、\SpecialChar LyX
730 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
731 \begin_inset Flex Code
734 \begin_layout Plain Layout
739 \begin_layout Plain Layout
751 ファイルは特に注目に値します。各国語版のヘルプ文書は、
752 \begin_inset Flex Code
755 \begin_layout Plain Layout
761 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
762 \begin_inset CommandInset ref
764 reference "cha:LyXの各国語対応"
771 \begin_layout Labeling
772 \labelwidthstring 00.00.0000
773 \begin_inset Flex Code
776 \begin_layout Plain Layout
782 このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
783 \begin_inset Flex MenuItem
786 \begin_layout Plain Layout
792 ボタンを押すと、このディレクトリが表示されます。
795 \begin_layout Labeling
796 \labelwidthstring 00.00.0000
797 \begin_inset Flex Code
800 \begin_layout Plain Layout
807 \begin_inset Flex MenuItem
810 \begin_layout Plain Layout
816 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
817 を起動したときに現れるバナーも納められています。
820 \begin_layout Labeling
821 \labelwidthstring 00.00.0000
822 \begin_inset Flex Code
825 \begin_layout Plain Layout
831 このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
832 \begin_inset CommandInset ref
834 reference "sec:国際キー配列"
841 \begin_layout Labeling
842 \labelwidthstring 00.00.0000
843 \begin_inset Flex Code
846 \begin_layout Plain Layout
853 \begin_inset CommandInset ref
855 reference "cha:新規文書を導入"
859 に述べられているテキストクラスおよびモジュールのファイルが納められています。
862 \begin_layout Labeling
863 \labelwidthstring 00.00.0000
864 \begin_inset Flex Code
867 \begin_layout Plain Layout
873 このディレクトリには、\SpecialChar LyX
875 \begin_inset Flex Code
878 \begin_layout Plain Layout
884 Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
887 \begin_layout Labeling
888 \labelwidthstring 00.00.0000
889 \begin_inset Flex Code
892 \begin_layout Plain Layout
899 \begin_inset Flex MenuItem
902 \begin_layout Plain Layout
908 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
909 自身が使用するスクリプトもいくつか収められています。
912 \begin_layout Labeling
913 \labelwidthstring 00.00.0000
914 \begin_inset Flex Code
917 \begin_layout Plain Layout
924 \begin_inset CommandInset ref
926 reference "sec:ひな型を作成する"
930 で述べられている標準の\SpecialChar LyX
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
939 \begin_layout Plain Layout
945 このディレクトリには、\SpecialChar LyX
947 \begin_inset Flex Code
950 \begin_layout Plain Layout
956 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
959 \begin_layout Subsection
963 \begin_layout Standard
964 これらのファイルは\SpecialChar LyX
965 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
968 \begin_layout Labeling
969 \labelwidthstring 00.00.0000
970 \begin_inset Flex Code
973 \begin_layout Plain Layout
979 このファイルは、\SpecialChar LyX
980 開発陣の名簿です。この内容は、メニュー項目
981 \begin_inset Flex MenuItem
984 \begin_layout Plain Layout
985 ヘルプ\SpecialChar menuseparator
990 \begin_layout Plain Layout
1005 \begin_layout Labeling
1006 \labelwidthstring 00.00.0000
1007 \begin_inset Flex Code
1010 \begin_layout Plain Layout
1016 これは、自動設定プロセスによって使用される\SpecialChar LaTeX
1017 スクリプトです。直接実行しないでください。
1020 \begin_layout Labeling
1021 \labelwidthstring 00.00.0000
1022 \begin_inset Flex Code
1025 \begin_layout Plain Layout
1031 これは、\SpecialChar LyX
1032 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
1035 \begin_layout Subsection
1039 \begin_layout Labeling
1040 \labelwidthstring 00.00.0000
1041 \begin_inset Flex Code
1044 \begin_layout Plain Layout
1050 このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
1053 \begin_layout Labeling
1054 \labelwidthstring 00.00.0000
1055 \begin_inset Flex Code
1058 \begin_layout Plain Layout
1065 \begin_inset Flex MenuItem
1068 \begin_layout Plain Layout
1075 \begin_inset CommandInset ref
1077 reference "chap:外部素材を取り込む"
1084 \begin_layout Labeling
1085 \labelwidthstring 00.00.0000
1086 \begin_inset Flex Code
1089 \begin_layout Plain Layout
1095 このファイルには、現在\SpecialChar LyX
1096 がサポートしている言語の全一覧が載っています。
1099 \begin_layout Labeling
1100 \labelwidthstring 00.00.0000
1101 \begin_inset Flex Code
1104 \begin_layout Plain Layout
1110 サポートされているフォントに関する情報が掲載されています。
1113 \begin_layout Labeling
1114 \labelwidthstring 00.00.0000
1115 \begin_inset Flex Code
1118 \begin_layout Plain Layout
1124 このファイルは、国際化された段落様式の翻訳が収録されています(
1125 \begin_inset CommandInset ref
1127 reference "subsec:段落様式の国際化"
1134 \begin_layout Labeling
1135 \labelwidthstring 00.00.0000
1136 \begin_inset Flex Code
1139 \begin_layout Plain Layout
1145 このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1147 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1150 \begin_layout Section
1154 \begin_layout Standard
1156 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1157 の設定を変更したいと思うかもしれません。
1158 \begin_inset Flex Code
1161 \begin_layout Plain Layout
1167 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1168 \begin_inset Flex MenuItem
1171 \begin_layout Plain Layout
1172 ヘルプ\SpecialChar menuseparator
1177 \begin_layout Plain Layout
1188 \begin_layout Plain Layout
1200 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1201 \begin_inset Flex Code
1204 \begin_layout Plain Layout
1209 \begin_layout Plain Layout
1222 \begin_inset Flex Code
1225 \begin_layout Plain Layout
1232 \begin_inset Flex Code
1235 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1252 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1255 \begin_layout Standard
1256 わかりやすくするために、いくつか例を挙げましょう。
1259 \begin_layout Itemize
1260 \begin_inset Flex MenuItem
1263 \begin_layout Plain Layout
1264 ツール\SpecialChar menuseparator
1271 \begin_inset Flex Code
1274 \begin_layout Plain Layout
1281 \begin_inset Flex Code
1284 \begin_layout Plain Layout
1293 \begin_layout Itemize
1294 \begin_inset Flex MenuItem
1297 \begin_layout Plain Layout
1298 ツール\SpecialChar menuseparator
1304 を使用して環境構成を行うと、\SpecialChar LyX
1306 \begin_inset Flex Code
1309 \begin_layout Plain Layout
1315 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1316 \begin_inset Flex Code
1319 \begin_layout Plain Layout
1326 \begin_inset Flex MenuItem
1329 \begin_layout Plain Layout
1330 文書\SpecialChar menuseparator
1336 ダイアログのクラス一覧に表示されるようになることを意味します。
1339 \begin_layout Itemize
1340 たとえば、\SpecialChar LyX
1341 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1343 \begin_inset Flex Code
1346 \begin_layout Plain Layout
1353 \begin_inset Flex MenuItem
1356 \begin_layout Plain Layout
1362 メニュー項目はこれらを開くようになります!
1365 \begin_layout Section
1370 \begin_layout Standard
1371 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1372 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1373 どのディレクトリを使用するか指定するのです。
1376 \begin_layout Standard
1379 \begin_inset Flex Code
1382 \begin_layout Plain Layout
1392 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1394 \begin_inset Flex Code
1397 \begin_layout Plain Layout
1403 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1404 は、初めて\SpecialChar LyX
1406 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1407 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1408 \begin_inset Flex Code
1411 \begin_layout Plain Layout
1417 を特定の値に設定しても、全く同じ効果があります。
1420 \begin_layout Standard
1421 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1422 \begin_inset Flex Code
1425 \begin_layout Plain Layout
1431 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1432 クを使用してください。\SpecialChar LyX
1433 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1434 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1435 \begin_inset Flex Code
1438 \begin_layout Plain Layout
1445 \begin_inset Flex MenuItem
1448 \begin_layout Plain Layout
1449 ツール\SpecialChar menuseparator
1455 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1458 \begin_layout Chapter
1462 \begin_layout Standard
1471 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1474 \begin_layout Section
1476 \begin_inset CommandInset label
1485 \begin_layout Standard
1486 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1487 \begin_inset Flex MenuItem
1490 \begin_layout Plain Layout
1491 ツール\SpecialChar menuseparator
1498 \begin_inset Flex MenuItem
1501 \begin_layout Plain Layout
1502 ファイル処理\SpecialChar menuseparator
1509 \begin_inset Flex MenuItem
1512 \begin_layout Plain Layout
1513 新規\SpecialChar ldots
1519 ボタンを押して、登録する新しい形式を定義してください。
1520 \begin_inset Flex MenuItem
1523 \begin_layout Plain Layout
1529 フィールドは、GUI中で形式を認識するために用いられる名称です。
1530 \begin_inset Flex MenuItem
1533 \begin_layout Plain Layout
1539 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1540 \begin_inset Flex MenuItem
1543 \begin_layout Plain Layout
1550 \begin_inset Flex Ruby
1553 \begin_layout Plain Layout
1555 \begin_inset Argument post:1
1558 \begin_layout Plain Layout
1570 \begin_inset Flex MenuItem
1573 \begin_layout Plain Layout
1580 \begin_inset Flex MenuItem
1583 \begin_layout Plain Layout
1584 表示\SpecialChar menuseparator
1593 \begin_layout Standard
1595 \begin_inset Flex MenuItem
1598 \begin_layout Plain Layout
1605 \begin_inset Flex MenuItem
1608 \begin_layout Plain Layout
1614 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1615 \begin_inset Flex MenuItem
1618 \begin_layout Plain Layout
1624 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1625 いることができます。この閲覧プログラムは、\SpecialChar LyX
1627 \begin_inset Flex MenuItem
1630 \begin_layout Plain Layout
1636 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1637 \begin_inset Flex MenuItem
1640 \begin_layout Plain Layout
1649 \begin_layout Standard
1651 \begin_inset Flex MenuItem
1654 \begin_layout Plain Layout
1660 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1662 \begin_inset CommandInset href
1665 target "http://www.iana.org/assignments/media-types/"
1669 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1671 \begin_inset CommandInset href
1673 name "freedesktop.org"
1674 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1678 で指定されているMIME型拡張表を使用しています。
1681 \begin_layout Standard
1682 \begin_inset Flex MenuItem
1685 \begin_layout Plain Layout
1691 オプションは、\SpecialChar LyX
1692 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1693 \begin_inset CommandInset ref
1700 \begin_inset Flex MenuItem
1703 \begin_layout Plain Layout
1704 ファイル\SpecialChar menuseparator
1711 \begin_inset Flex MenuItem
1714 \begin_layout Plain Layout
1720 footlabel Label color for footnotす。
1721 \begin_inset Flex Code
1724 \begin_layout Plain Layout
1730 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1731 \begin_inset Flex Code
1734 \begin_layout Plain Layout
1740 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1743 \begin_layout Standard
1744 \begin_inset Flex MenuItem
1747 \begin_layout Plain Layout
1753 オプションは、\SpecialChar LyX
1754 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1755 \begin_inset Flex MenuItem
1758 \begin_layout Plain Layout
1764 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1765 \begin_inset Flex MenuItem
1768 \begin_layout Plain Layout
1775 \begin_inset Flex MenuItem
1778 \begin_layout Plain Layout
1785 \begin_inset Flex MenuItem
1788 \begin_layout Plain Layout
1795 \begin_inset Flex MenuItem
1798 \begin_layout Plain Layout
1804 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1805 \begin_inset Flex MenuItem
1808 \begin_layout Plain Layout
1815 \begin_inset Flex MenuItem
1818 \begin_layout Plain Layout
1825 \begin_inset Flex MenuItem
1828 \begin_layout Plain Layout
1834 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1835 \begin_inset Flex MenuItem
1838 \begin_layout Plain Layout
1845 \begin_inset Flex MenuItem
1848 \begin_layout Plain Layout
1857 \begin_layout Section
1861 \begin_layout Standard
1862 形式の変換はすべて、\SpecialChar LyX
1863 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1867 \begin_layout Plain Layout
1868 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1874 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1877 \begin_layout Standard
1878 複写子の定義においては、以下の4つの変数を用いることができます。
1881 \begin_layout Labeling
1882 \labelwidthstring 00.00.0000
1883 \begin_inset Flex Code
1886 \begin_layout Plain Layout
1894 \begin_inset Flex MenuItem
1897 \begin_layout Plain Layout
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908 \begin_inset Flex Code
1911 \begin_layout Plain Layout
1920 \begin_layout Labeling
1921 \labelwidthstring 00.00.0000
1922 \begin_inset Flex Code
1925 \begin_layout Plain Layout
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1939 \begin_layout Plain Layout
1946 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1954 \begin_layout Plain Layout
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1969 \begin_layout Plain Layout
1975 処理されている元の\SpecialChar LyX
1979 \begin_layout Labeling
1980 \labelwidthstring 00.00.0000
1981 \begin_inset Flex Code
1984 \begin_layout Plain Layout
1991 ファイルのファイル名(ディレクトリパスなし)
1994 \begin_layout Labeling
1995 \labelwidthstring 00.00.0000
1996 \begin_inset Flex Code
1999 \begin_layout Plain Layout
2009 \begin_layout Standard
2010 最後の変数は、\SpecialChar LaTeX
2017 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
2020 \begin_layout Standard
2021 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
2022 \begin_inset Flex Code
2025 \begin_layout Plain Layout
2031 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
2034 \begin_layout Standard
2035 \begin_inset listings
2039 \begin_layout Plain Layout
2044 \begin_layout Plain Layout
2049 \begin_layout Plain Layout
2051 TOFILE=`basename $2`
2054 \begin_layout Plain Layout
2056 DescriptionE /home/you/pdf/$TOFILE
2062 \begin_inset Flex Code
2065 \begin_layout Plain Layout
2066 /home/you/.lyx/scripts/pdfcopier.sh
2071 のような、自身のローカル\SpecialChar LyX
2072 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
2073 \begin_inset Flex MenuItem
2076 \begin_layout Plain Layout
2077 ツール\SpecialChar menuseparator
2084 \begin_inset Flex MenuItem
2087 \begin_layout Plain Layout
2088 ファイル処理\SpecialChar menuseparator
2095 \begin_inset Flex MenuItem
2098 \begin_layout Plain Layout
2104 形式—あるいは他のPDF形式のうちどれか—を選択し、
2105 \begin_inset Flex MenuItem
2108 \begin_layout Plain Layout
2115 \begin_inset Flex Code
2118 \begin_layout Plain Layout
2119 pdfcopier.sh $$i $$o
2127 \begin_layout Standard
2128 複写子は、\SpecialChar LyX
2129 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
2131 \begin_inset Flex MenuItem
2134 \begin_layout Plain Layout
2141 \begin_inset Flex MenuItem
2144 \begin_layout Plain Layout
2146 \begin_inset space ~
2154 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2155 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2156 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2160 \begin_layout Plain Layout
2161 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2162 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2163 \begin_inset Flex MenuItem
2166 \begin_layout Plain Layout
2171 \begin_layout Plain Layout
2184 \begin_inset Flex MenuItem
2187 \begin_layout Plain Layout
2188 /path/to/filename.lyx
2194 \begin_inset Flex MenuItem
2197 \begin_layout Plain Layout
2198 /path/to/filename.html.L
2202 \begin_layout Plain Layout
2223 \begin_layout Section
2225 \begin_inset CommandInset label
2234 \begin_layout Standard
2235 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2236 \begin_inset Flex MenuItem
2239 \begin_layout Plain Layout
2240 ツール\SpecialChar menuseparator
2241 設定\SpecialChar menuseparator
2242 ファイル処理\SpecialChar menuseparator
2251 \begin_layout Standard
2252 新規に変換子を定義するには、ドロップダウンリストから
2253 \begin_inset Flex MenuItem
2256 \begin_layout Plain Layout
2263 \begin_inset Flex MenuItem
2266 \begin_layout Plain Layout
2272 を選択し、変換に必要なコマンドを入力してから
2273 \begin_inset Flex MenuItem
2276 \begin_layout Plain Layout
2282 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Flex Code
2290 \begin_layout Plain Layout
2300 \begin_layout Labeling
2301 \labelwidthstring 00.00.0000
2302 \begin_inset Flex Code
2305 \begin_layout Plain Layout
2314 \begin_layout Labeling
2315 \labelwidthstring 00.00.0000
2316 \begin_inset Flex Code
2319 \begin_layout Plain Layout
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Flex Code
2333 \begin_layout Plain Layout
2339 入力ファイルのベースファイル名(拡張子をとった部分)
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Flex Code
2347 \begin_layout Plain Layout
2356 \begin_layout Labeling
2357 \labelwidthstring 00.00.0000
2358 \begin_inset Flex Code
2361 \begin_layout Plain Layout
2367 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2370 \begin_layout Labeling
2371 \labelwidthstring 00.00.0000
2372 \begin_inset Flex Code
2375 \begin_layout Plain Layout
2384 \begin_layout Standard
2385 \begin_inset Flex MenuItem
2388 \begin_layout Plain Layout
2394 フィールドには、以下のフラグをコンマで区切って入力することができます。
2397 \begin_layout Labeling
2398 \labelwidthstring 00.00.0000
2399 \begin_inset Flex Code
2402 \begin_layout Plain Layout
2408 この変換子が\SpecialChar LaTeX
2409 の一種を実行することを示します。これによって、\SpecialChar LyX
2411 エラーログに記録を残せるようになります。
2414 \begin_layout Labeling
2415 \labelwidthstring 00.00.0000
2416 \begin_inset Flex Code
2419 \begin_layout Plain Layout
2425 変換に\SpecialChar LaTeX
2427 \begin_inset Flex MenuItem
2430 \begin_layout Plain Layout
2439 \begin_layout Labeling
2440 \labelwidthstring 00.00.0000
2441 \begin_inset Flex Code
2444 \begin_layout Plain Layout
2451 \begin_inset Quotes erd
2455 \begin_inset Quotes erd
2458 なファイル、つまり\SpecialChar LyX
2459 が書き出す\SpecialChar LaTeX
2461 \begin_inset Flex Code
2464 \begin_layout Plain Layout
2470 のない\SpecialChar LaTeX
2474 \begin_layout Labeling
2475 \labelwidthstring 00.00.0000
2476 \begin_inset Flex Code
2479 \begin_layout Plain Layout
2488 \begin_layout Standard
2490 \begin_inset Flex MenuItem
2493 \begin_layout Plain Layout
2495 \begin_inset space ~
2499 \begin_inset space ~
2507 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2512 \begin_inset Flex Code
2515 \begin_layout Plain Layout
2522 \begin_inset Flex Code
2525 \begin_layout Plain Layout
2531 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2532 \begin_inset Flex Code
2535 \begin_layout Plain Layout
2536 script < infile.out > infile.log
2541 の形で実行されるようになります。引数には
2542 \begin_inset Flex Code
2545 \begin_layout Plain Layout
2554 \begin_layout Labeling
2555 \labelwidthstring 00.00.0000
2556 \begin_inset Flex Code
2559 \begin_layout Plain Layout
2565 これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2566 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2568 \begin_inset Flex Code
2571 \begin_layout Plain Layout
2577 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2578 \begin_inset Newline newline
2581 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2584 \begin_layout Labeling
2585 \labelwidthstring 00.00.0000
2586 \begin_inset Flex Code
2589 \begin_layout Plain Layout
2596 \begin_inset Flex Code
2599 \begin_layout Plain Layout
2605 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2608 \begin_layout Standard
2609 最後の3つは、\SpecialChar LyX
2610 とともに導入される変換子には、現在いずれも使用されておりません。
2613 \begin_layout Standard
2614 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2615 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2617 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2618 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2619 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2620 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2621 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2622 設定は、\SpecialChar LaTeX
2623 からPDFへ変換するのに、以下の3つの方法を
2627 \begin_layout Enumerate
2629 \begin_inset Flex MenuItem
2632 \begin_layout Plain Layout
2641 \begin_layout Enumerate
2642 (DVIと)PostScriptを経由して
2643 \begin_inset Flex MenuItem
2646 \begin_layout Plain Layout
2655 \begin_layout Enumerate
2657 \begin_inset Flex MenuItem
2660 \begin_layout Plain Layout
2669 \begin_layout Enumerate
2671 \begin_inset Flex MenuItem
2674 \begin_layout Plain Layout
2684 \begin_layout Enumerate
2686 \begin_inset Flex MenuItem
2689 \begin_layout Plain Layout
2699 \begin_layout Standard
2701 \begin_inset CommandInset ref
2703 reference "sec:ファイル形式"
2707 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2708 \begin_inset Flex MenuItem
2711 \begin_layout Plain Layout
2718 \begin_inset Flex MenuItem
2721 \begin_layout Plain Layout
2728 \begin_inset Flex MenuItem
2731 \begin_layout Plain Layout
2738 \begin_inset Flex MenuItem
2741 \begin_layout Plain Layout
2748 \begin_inset Flex MenuItem
2751 \begin_layout Plain Layout
2758 \begin_inset Flex MenuItem
2761 \begin_layout Plain Layout
2768 \begin_inset Flex MenuItem
2771 \begin_layout Plain Layout
2778 \begin_inset Flex MenuItem
2781 \begin_layout Plain Layout
2789 \begin_inset Flex MenuItem
2792 \begin_layout Plain Layout
2799 \begin_inset Flex MenuItem
2802 \begin_layout Plain Layout
2809 用\SpecialChar softhyphen
2810 ) と命名された形式が定義されていて、すべて共通の拡張子
2811 \begin_inset Flex MenuItem
2814 \begin_layout Plain Layout
2820 を持ち、上記で言及した各変換方法に対応しています。
2823 \begin_layout Chapter
2826 \begin_inset CommandInset label
2828 name "cha:LyXの各国語対応"
2835 \begin_layout Standard
2837 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2838 は30言語の翻訳を提供しています。選択した言語は、使用する
2842 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2843 \begin_inset Flex Code
2846 \begin_layout Plain Layout
2855 \begin_layout Standard
2856 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2857 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2858 \begin_inset Flex Ruby
2861 \begin_layout Plain Layout
2863 \begin_inset Argument post:1
2866 \begin_layout Plain Layout
2877 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2878 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2882 \begin_layout Plain Layout
2883 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2884 コミュニティに報いるたいへん素晴らしい方法です!
2890 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2893 \begin_layout Section
2898 \begin_layout Subsection
2899 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2900 \begin_inset Argument 1
2903 \begin_layout Plain Layout
2912 \begin_layout Standard
2915 \begin_inset Flex Code
2918 \begin_layout Plain Layout
2924 ライブラリを使用します。\SpecialChar LyX
2925 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2926 \begin_inset Flex Code
2929 \begin_layout Plain Layout
2935 ファイルが必要です。このファイルが利用可能であれば、そこから
2936 \begin_inset Flex Code
2939 \begin_layout Plain Layout
2946 \begin_inset Flex Code
2949 \begin_layout Plain Layout
2955 ファイルをインストールしなくてはなりません。この全過程は、GNU
2956 \begin_inset Flex Code
2959 \begin_layout Plain Layout
2965 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2967 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2968 開発者メーリングリストにメールを送ってください。
2971 \begin_layout Standard
2972 要約すれば、以下のように行います(xxは言語コードを表します)。
2975 \begin_layout Itemize
2977 ソースコードをチェックアウトしてください(
2978 \begin_inset CommandInset href
2981 target "http://www.lyx.org/devel/cvs.php"
2988 \begin_layout Itemize
2989 \begin_inset Flex Code
2992 \begin_layout Plain Layout
2999 \begin_inset Flex Code
3002 \begin_layout Plain Layout
3009 \begin_inset Flex Code
3012 \begin_layout Plain Layout
3019 \begin_inset Flex Code
3022 \begin_layout Plain Layout
3028 がどこにもない場合には、コンソールからそのディレクトリで
3029 \begin_inset Flex Code
3032 \begin_layout Plain Layout
3038 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
3041 \begin_layout Itemize
3042 \begin_inset Flex Code
3045 \begin_layout Plain Layout
3055 \begin_layout Plain Layout
3056 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
3064 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
3069 \begin_inset Flex Code
3072 \begin_layout Plain Layout
3078 ファイルを編集するための「モード」があります。
3083 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
3084 \begin_inset Flex Ruby
3087 \begin_layout Plain Layout
3089 \begin_inset Argument post:1
3092 \begin_layout Plain Layout
3103 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
3104 \begin_inset Flex Code
3107 \begin_layout Plain Layout
3113 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
3116 \begin_layout Standard
3117 もし、あなたがこれを自身のためだけに行っているのであれば、
3120 \begin_layout Itemize
3121 \begin_inset Flex Code
3124 \begin_layout Plain Layout
3131 \begin_inset Flex Code
3134 \begin_layout Plain Layout
3135 msgfmt -o xx.mo < xx.po
3143 \begin_layout Itemize
3145 \begin_inset Flex Code
3148 \begin_layout Plain Layout
3154 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3155 \begin_inset Flex Code
3158 \begin_layout Plain Layout
3165 \begin_inset Flex Code
3168 \begin_layout Plain Layout
3169 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3177 \begin_layout Standard
3179 \begin_inset Flex Code
3182 \begin_layout Plain Layout
3188 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3189 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3190 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3194 \begin_layout Subsubsection
3198 \begin_layout Standard
3199 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3200 \begin_inset Flex Code
3203 \begin_layout Plain Layout
3209 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU
3210 \begin_inset Flex Code
3213 \begin_layout Plain Layout
3220 \begin_inset Flex Code
3223 \begin_layout Plain Layout
3230 \begin_inset Flex Code
3233 \begin_layout Plain Layout
3234 To[[as in 'From format x to format y']]
3240 \begin_inset Flex Code
3243 \begin_layout Plain Layout
3244 To[[as in 'From page x to page y']]
3249 としなくてはなりません。これによって、これら2つの
3250 \begin_inset Flex Code
3253 \begin_layout Plain Layout
3260 \begin_inset Flex Code
3263 \begin_layout Plain Layout
3269 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3272 \begin_layout Standard
3273 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3275 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3278 \begin_layout Subsection
3282 \begin_layout Standard
3284 \begin_inset Flex MenuItem
3287 \begin_layout Plain Layout
3293 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3297 \begin_layout Plain Layout
3298 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3303 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3304 はこれを自動的に使用します。\SpecialChar LyX
3306 \begin_inset Flex Code
3309 \begin_layout Plain Layout
3314 \begin_layout Plain Layout
3321 yXDir/doc/xx/DocName.lyx
3327 \begin_inset Flex Code
3330 \begin_layout Plain Layout
3336 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3337 \begin_inset Flex Code
3340 \begin_layout Plain Layout
3346 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3350 \begin_layout Itemize
3352 \begin_inset CommandInset href
3354 name "http://www.lyx.org/Translation"
3355 target "http://www.lyx.org/Translation"
3359 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3360 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3363 \begin_layout Standard
3364 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3367 \begin_layout Itemize
3368 文書化チームに所属してください!そのための情報が
3369 \begin_inset Flex Code
3372 \begin_layout Plain Layout
3379 \begin_inset Flex MenuItem
3382 \begin_layout Plain Layout
3383 ヘルプ\SpecialChar menuseparator
3390 \begin_inset Flex Code
3393 \begin_layout Plain Layout
3402 \begin_layout Itemize
3403 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3404 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3406 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3411 \begin_layout Itemize
3412 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3413 \begin_inset Flex Code
3416 \begin_layout Plain Layout
3422 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3425 \begin_layout Itemize
3427 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3428 \begin_inset CommandInset href
3430 name "http://www.lyx.org/trac/timeline"
3431 target "http://www.lyx.org/trac/timeline"
3435 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3438 \begin_layout Standard
3439 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3442 \begin_layout Standard
3443 \begin_inset Branch OutDated
3446 \begin_layout Section
3447 International Keyboard Support
3450 \begin_layout Standard
3453 [Editor's Note: The following section is by
3461 It needs to be fixed to conform to the new Documentation Style sheet and
3462 to make use of the new v1.0 features.
3463 The whole thing also needs to be merged with the section following it.-jw
3464 It may also be badly out of date.-rh (2008)]
3467 \begin_layout Subsection
3468 Defining Own Keymaps: Keymap File Format
3471 \begin_layout Standard
3472 Let's look at a keyboard definition file a little closer.
3473 It is a plain text file defining
3476 \begin_layout Itemize
3477 key-to-key or key-to-string translations
3480 \begin_layout Itemize
3484 \begin_layout Itemize
3485 dead keys exceptions
3488 \begin_layout Standard
3489 To define key-to-key or key-to-string translation, use this command:
3492 \begin_layout Quotation
3493 \begin_inset Flex Code
3496 \begin_layout Plain Layout
3505 \begin_inset Flex Code
3508 \begin_layout Plain Layout
3517 \begin_layout Standard
3519 \begin_inset Flex Code
3522 \begin_layout Plain Layout
3528 is the key to be translated and
3529 \begin_inset Flex Code
3532 \begin_layout Plain Layout
3538 is the string to be inserted into the document.
3539 To define dead keys, use:
3542 \begin_layout Quotation
3543 \begin_inset Flex Code
3546 \begin_layout Plain Layout
3555 \begin_inset Flex Code
3558 \begin_layout Plain Layout
3567 \begin_layout Standard
3569 \begin_inset Flex Code
3572 \begin_layout Plain Layout
3578 is a keyboard key and
3579 \begin_inset Flex Code
3582 \begin_layout Plain Layout
3589 The following dead keys are supported (shortcut name is in parentheses):
3592 \begin_layout Quotation
3596 \begin_inset space \hfill{}
3602 \begin_layout Quotation
3604 \begin_inset space \hfill{}
3612 \begin_layout Quotation
3614 \begin_inset space \hfill{}
3622 \begin_layout Quotation
3624 \begin_inset space \hfill{}
3632 \begin_layout Quotation
3634 \begin_inset space \hfill{}
3642 \begin_layout Quotation
3644 \begin_inset space \hfill{}
3651 \begin_layout Plain Layout
3663 \begin_layout Quotation
3665 \begin_inset space \hfill{}
3673 \begin_layout Quotation
3675 \begin_inset space \hfill{}
3682 \begin_layout Plain Layout
3694 \begin_layout Quotation
3696 \begin_inset space \hfill{}
3704 \begin_layout Quotation
3706 \begin_inset space \hfill{}
3714 \begin_layout Quotation
3716 \begin_inset space \hfill{}
3723 \begin_layout Plain Layout
3735 \begin_layout Quotation
3737 \begin_inset space \hfill{}
3748 \begin_layout Plain Layout
3760 \begin_layout Quotation
3762 \begin_inset space \hfill{}
3770 \begin_layout Quotation
3771 hungarian umlaut (hug)
3772 \begin_inset space \hfill{}
3780 \begin_layout Quotation
3782 \begin_inset space \hfill{}
3790 \begin_layout Quotation
3792 \begin_inset space \hfill{}
3803 \begin_layout Plain Layout
3815 \begin_layout Standard
3816 Since in many international keyboards there are exceptions to what some
3817 dead keys should do, you can define them using
3820 \begin_layout Quotation
3821 \begin_inset Flex Code
3824 \begin_layout Plain Layout
3832 deadkey key outstring
3835 \begin_layout Standard
3836 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3840 \begin_layout Quotation
3841 \begin_inset Flex Code
3844 \begin_layout Plain Layout
3857 \begin_layout Standard
3858 to make it work correctly.
3859 Also, you have to define as exceptions dead keys over i and j, to remove
3860 the dot from them before inserting an accent mark.
3861 I will change this when the time comes, but so far I haven't had time.
3864 \begin_layout Standard
3865 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3868 \begin_inset Flex Code
3871 \begin_layout Plain Layout
3877 have different meaning.
3879 \begin_inset Flex Code
3882 \begin_layout Plain Layout
3888 marks comments, quotes start and end \SpecialChar LaTeX
3890 To enter quote, you'll need to use
3891 \begin_inset Flex Code
3894 \begin_layout Plain Layout
3903 \begin_inset Flex Code
3906 \begin_layout Plain Layout
3913 \begin_inset Flex Code
3916 \begin_layout Plain Layout
3927 \begin_layout Standard
3928 If you make a keyboard description file that works for your language, please
3929 mail it to me, so I can include it in the next keymap distribution.
3932 \begin_layout Standard
3933 More keywords will be supported in keymap configuration file in future,
3937 \begin_layout Itemize
3938 \begin_inset Flex Code
3941 \begin_layout Plain Layout
3952 \begin_inset space \hfill{}
3956 \begin_inset Flex Code
3959 \begin_layout Plain Layout
3968 \begin_layout Itemize
3969 \begin_inset Flex Code
3972 \begin_layout Plain Layout
3983 \begin_inset space \hfill{}
3987 \begin_inset Flex Code
3990 \begin_layout Plain Layout
3996 an external keymap translation program
3999 \begin_layout Standard
4000 Also, it should look into
4001 \begin_inset Flex Code
4004 \begin_layout Plain Layout
4010 file for defaults, too (for example, a
4011 \begin_inset Flex Code
4014 \begin_layout Plain Layout
4022 option to include default keyboard).
4030 \begin_layout Section
4032 \begin_inset CommandInset label
4041 \begin_layout Standard
4042 \begin_inset Note Note
4045 \begin_layout Plain Layout
4046 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
4049 \begin_layout Plain Layout
4058 \begin_layout Standard
4060 \begin_inset Flex Code
4063 \begin_layout Plain Layout
4070 \begin_inset Flex Code
4073 \begin_layout Plain Layout
4079 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
4082 \begin_layout Subsection
4086 \begin_layout Standard
4087 \begin_inset Flex Code
4090 \begin_layout Plain Layout
4096 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
4097 \begin_inset Flex Code
4100 \begin_layout Plain Layout
4106 ファイルは、以下の各項で説明するように、
4107 \begin_inset Flex Code
4110 \begin_layout Plain Layout
4117 \begin_inset Flex Code
4120 \begin_layout Plain Layout
4127 \begin_inset Flex Code
4130 \begin_layout Plain Layout
4137 \begin_inset Flex Code
4140 \begin_layout Plain Layout
4149 \begin_layout Labeling
4150 \labelwidthstring 00.00.0000
4151 \begin_inset Flex Code
4154 \begin_layout Plain Layout
4163 \begin_layout LyX-Code
4178 \begin_layout Standard
4191 中では、二重引用符(")とバックスラッシュ(
4195 )を付けてエスケープしなくてはならないことに注意してください。
4198 \begin_layout Standard
4199 \begin_inset Flex MenuItem
4202 \begin_layout Plain Layout
4209 \begin_inset Flex MenuItem
4212 \begin_layout Plain Layout
4219 \begin_inset Flex MenuItem
4222 \begin_layout Plain Layout
4231 \begin_layout LyX-Code
4237 \begin_layout Standard
4241 \begin_layout Labeling
4242 \labelwidthstring 00.00.0000
4243 \begin_inset Flex Code
4246 \begin_layout Plain Layout
4255 \begin_layout LyX-Code
4264 \begin_layout Standard
4273 のアクセントとするものです。これはデッドキー
4277 \begin_layout Plain Layout
4282 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4286 のようなウムラウトのついた文字は、このようにして出すことができます。
4294 \begin_layout Standard
4307 の後に許可文字ではないその文字が出力として表示されます。
4308 \begin_inset Flex MenuItem
4311 \begin_layout Plain Layout
4322 \begin_inset Flex MenuItem
4325 \begin_layout Plain Layout
4331 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4334 \begin_layout Standard
4335 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4338 \begin_layout LyX-Code
4341 kmod ' acute aeiouAEIOU
4344 \begin_layout Labeling
4345 \labelwidthstring 00.00.0000
4346 \begin_inset Flex Code
4349 \begin_layout Plain Layout
4358 \begin_layout LyX-Code
4367 \begin_layout Standard
4381 \begin_inset Flex Code
4384 \begin_layout Plain Layout
4392 宣言で打鍵キーを既に割り当てられてなくてはならず、
4404 の集合に属していてはなりません。こうして
4417 \begin_inset Flex Code
4420 \begin_layout Plain Layout
4447 \begin_inset Flex Code
4450 \begin_layout Plain Layout
4461 \begin_layout Standard
4462 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4465 \begin_layout LyX-Code
4479 \begin_layout Labeling
4480 \labelwidthstring 00.00.0000
4481 \begin_inset Flex Code
4484 \begin_layout Plain Layout
4493 \begin_layout LyX-Code
4502 \begin_layout Standard
4503 これはなかなか難解になってきます。これは
4528 \begin_inset Flex Code
4531 \begin_layout Plain Layout
4539 コマンドで設定されていなくてはなりません。
4542 \begin_layout Standard
4543 \begin_inset Flex Code
4546 \begin_layout Plain Layout
4555 \begin_layout LyX-Code
4558 kmod ; acute aeioyvhAEIOYVH
4562 kcomb acute umlaut iyIY
4565 \begin_layout Standard
4567 \begin_inset Flex MenuItem
4570 \begin_layout Plain Layout
4577 \begin_inset Flex Code
4580 \begin_layout Plain Layout
4590 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4591 \begin_inset Flex MenuItem
4594 \begin_layout Plain Layout
4601 \begin_inset Flex Code
4604 \begin_layout Plain Layout
4615 \begin_layout Subsection
4619 \begin_layout Standard
4620 \begin_inset Flex Code
4623 \begin_layout Plain Layout
4630 \begin_inset Flex Code
4633 \begin_layout Plain Layout
4639 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4641 \begin_inset Flex Code
4644 \begin_layout Plain Layout
4651 \begin_inset Flex Code
4654 \begin_layout Plain Layout
4663 \begin_layout Standard
4665 \begin_inset Flex Code
4668 \begin_layout Plain Layout
4677 \begin_layout LyX-Code
4690 \begin_layout Standard
4692 \begin_inset Flex MenuItem
4695 \begin_layout Plain Layout
4703 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4706 \begin_layout LyX-Code
4714 \begin_layout Standard
4720 \begin_inset Flex Code
4723 \begin_layout Plain Layout
4732 \begin_inset Flex Code
4735 \begin_layout Plain Layout
4741 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4742 \begin_inset Flex Code
4745 \begin_layout Plain Layout
4754 \begin_layout LyX-Code
4766 \begin_inset Newline newline
4782 \begin_layout Standard
4783 という例があります。\SpecialChar LyX
4784 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4785 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4788 \begin_layout Subsection
4792 \begin_layout Standard
4793 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4794 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4797 \begin_layout Standard
4798 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4799 \begin_inset Flex Code
4802 \begin_layout Plain Layout
4809 \begin_inset Flex MenuItem
4812 \begin_layout Plain Layout
4819 \begin_inset Flex MenuItem
4822 \begin_layout Plain Layout
4828 キー)を、\SpecialChar LyX
4830 \begin_inset Flex Code
4833 \begin_layout Plain Layout
4840 \begin_inset Flex MenuItem
4843 \begin_layout Plain Layout
4849 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4850 \begin_inset Flex MenuItem
4853 \begin_layout Plain Layout
4859 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4860 \begin_inset Flex MenuItem
4863 \begin_layout Plain Layout
4870 \begin_inset Flex MenuItem
4873 \begin_layout Plain Layout
4879 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4880 はビープを鳴らして文句を付けます。デッドキーの後に
4881 \begin_inset Flex MenuItem
4884 \begin_layout Plain Layout
4890 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4892 \begin_inset Flex MenuItem
4895 \begin_layout Plain Layout
4901 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4904 \begin_layout Standard
4905 デッドキーを割り当てるのによく用いられる方法は、
4906 \begin_inset Flex MenuItem
4909 \begin_layout Plain Layout
4916 \begin_inset Flex MenuItem
4919 \begin_layout Plain Layout
4926 \begin_inset Flex MenuItem
4929 \begin_layout Plain Layout
4936 \begin_inset Flex MenuItem
4939 \begin_layout Plain Layout
4946 \begin_inset Flex MenuItem
4949 \begin_layout Plain Layout
4956 \begin_inset Flex MenuItem
4959 \begin_layout Plain Layout
4965 」のようなアクセントと一緒に用いる方法です。また、
4966 \begin_inset Flex Code
4969 \begin_layout Plain Layout
4976 \begin_inset Flex Code
4979 \begin_layout Plain Layout
4986 \begin_inset Flex Code
4989 \begin_layout Plain Layout
4996 \begin_inset Flex Code
4999 \begin_layout Plain Layout
5006 \begin_inset Flex MenuItem
5009 \begin_layout Plain Layout
5015 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
5016 \begin_inset Flex Code
5019 \begin_layout Plain Layout
5025 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
5030 \begin_layout Plain Layout
5036 \begin_inset Flex Code
5039 \begin_layout Plain Layout
5046 \begin_inset Flex Code
5049 \begin_layout Plain Layout
5056 \begin_inset Flex MenuItem
5059 \begin_layout Plain Layout
5061 \begin_inset space ~
5070 \begin_inset Flex Code
5073 \begin_layout Plain Layout
5080 \begin_inset Flex Code
5083 \begin_layout Plain Layout
5090 \begin_inset Flex MenuItem
5093 \begin_layout Plain Layout
5095 \begin_inset space ~
5104 \begin_inset Flex MenuItem
5107 \begin_layout Plain Layout
5109 \begin_inset space ~
5117 などに割り当てています。私はこの方法でアクセント文字を入力しています。
5123 \begin_inset Flex Code
5126 \begin_layout Plain Layout
5133 \begin_inset Flex MenuItem
5136 \begin_layout Plain Layout
5142 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5149 \begin_inset Flex Code
5152 \begin_layout Plain Layout
5158 の項をご覧ください。ここには完備した一覧があります。
5161 \begin_layout Subsection
5165 \begin_layout Standard
5166 \begin_inset Flex MenuItem
5169 \begin_layout Plain Layout
5170 ツール\SpecialChar menuseparator
5176 ダイアログを使えば、\SpecialChar LyX
5177 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5180 \begin_layout Chapter
5181 文書クラス・レイアウト・ひな型の新規導入
5182 \begin_inset CommandInset label
5189 \begin_inset Argument 1
5192 \begin_layout Plain Layout
5201 \begin_layout Standard
5202 この章では、新しく\SpecialChar LyX
5203 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5204 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5208 \begin_layout Standard
5211 の間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5212 は、La\SpecialChar TeX
5214 云うことです。実際のところ、\SpecialChar LyX
5215 の観点からは、\SpecialChar LaTeX
5217 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5218 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5219 は、とくに重要な形式ですが、\SpecialChar LyX
5221 について持っている情報のほとんどは、実はプログラム本体には含まれて
5226 \begin_layout Plain Layout
5227 過度に複雑なため、\SpecialChar LyX
5228 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5234 \begin_inset Flex Code
5237 \begin_layout Plain Layout
5243 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5244 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5249 \begin_layout Standard
5250 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5251 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5252 構成体・DocBook構成体・XHTML構成体との
5253 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5255 \begin_inset Flex Code
5258 \begin_layout Plain Layout
5264 について知っていることのほとんど総ては、
5265 \begin_inset Flex Code
5268 \begin_layout Plain Layout
5274 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5276 \begin_inset Flex Code
5279 \begin_layout Plain Layout
5286 \begin_inset Flex Code
5289 \begin_layout Plain Layout
5295 や、文書クラス用の他のレイアウトファイルに取り込まれている
5296 \begin_inset Flex Code
5299 \begin_layout Plain Layout
5305 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5306 \begin_inset Flex Code
5309 \begin_layout Plain Layout
5315 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5316 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5318 \begin_inset Flex Code
5321 \begin_layout Plain Layout
5328 \begin_inset Flex Code
5331 \begin_layout Plain Layout
5337 ファイルを取り込んでいるだけのものです。
5340 \begin_layout Standard
5341 しかしながら、\SpecialChar LyX
5343 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5345 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5346 ます。ある段落様式を\SpecialChar LaTeX
5347 に翻訳する仕方を\SpecialChar LyX
5348 に指示することは、その表示の仕方を\SpecialChar LyX
5349 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5351 式をどのように\SpecialChar LaTeX
5352 に翻訳するかを\SpecialChar LyX
5353 に指示するものではありません(ましてや\SpecialChar LaTeX
5354 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5357 \begin_inset space ~
5361 にどのように翻訳するかを\SpecialChar LyX
5363 \begin_inset space ~
5366 それをどのように表示するかを\SpecialChar LyX
5367 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5370 \begin_layout Standard
5371 もちろん、\SpecialChar LyX
5372 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5373 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5374 力するにあたって、当該段落を\SpecialChar LyX
5375 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5376 が内部的に行うことと、外部的に行う物事の間の区
5377 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5378 \begin_inset CommandInset ref
5380 reference "sec:XHTML出力のタグ"
5387 \begin_layout Section
5388 新しい\SpecialChar LaTeX
5392 \begin_layout Standard
5393 頒布版によっては、\SpecialChar LyX
5394 で使いたい\SpecialChar LaTeX
5395 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5396 パッケージである、Foil\SpecialChar TeX
5397 がないかもしれません。\SpecialChar TeX
5398 Live(2008年以降)やMiK\SpecialChar TeX
5399 のような最近の\SpecialChar LaTeX
5400 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5401 ースが用意されています。たとえば、MiK\SpecialChar TeX
5403 \begin_inset space ~
5406 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5410 \begin_layout Standard
5411 お使いの\SpecialChar LaTeX
5412 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5416 \begin_layout Enumerate
5417 \begin_inset CommandInset href
5420 target "http://www.ctan.org/"
5424 などから欲しいパッケージを入手してください。
5427 \begin_layout Enumerate
5429 \begin_inset Flex Code
5432 \begin_layout Plain Layout
5438 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5439 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5440 \begin_inset Flex Code
5443 \begin_layout Plain Layout
5449 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5450 パッケージは圧縮されていないので、このステップは飛ばすこ
5454 \begin_layout Enumerate
5455 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5456 \begin_inset Separator parbreak
5463 \begin_layout Enumerate
5464 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5467 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5468 \begin_inset Flex Code
5471 \begin_layout Plain Layout
5481 \begin_layout Plain Layout
5487 \begin_inset Flex Code
5490 \begin_layout Plain Layout
5496 を実行してその場所を見つけることもできます。
5501 。「ローカル」\SpecialChar TeX
5503 \begin_inset Flex Code
5506 \begin_layout Plain Layout
5513 \begin_inset Flex Code
5516 \begin_layout Plain Layout
5517 /usr/local/share/texmf/
5522 のような場所になっています。「ユーザー」\SpecialChar TeX
5524 \begin_inset Flex Code
5527 \begin_layout Plain Layout
5534 \begin_inset Flex Code
5537 \begin_layout Plain Layout
5543 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5544 、「ユーザー」ツリーにはこのような制限はありません。
5545 \begin_inset Newline newline
5548 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5549 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5552 \begin_layout Enumerate
5553 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5555 \begin_inset Flex Code
5558 \begin_layout Plain Layout
5568 に移動します(MiK\SpecialChar TeX
5570 \begin_inset Flex Code
5573 \begin_layout Plain Layout
5580 \begin_layout Plain Layout
5600 \begin_layout Plain Layout
5601 これは、英語版でのみ正しいパスになっています。独語版では
5602 \begin_inset Flex Code
5605 \begin_layout Plain Layout
5624 \begin_inset Flex Code
5627 \begin_layout Plain Layout
5633 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5635 ことを行います。たとえばMiK\SpecialChar TeX
5637 \begin_inset space ~
5641 \begin_inset Newline newline
5645 \begin_inset Flex Code
5648 \begin_layout Plain Layout
5651 Documents and Settings
5663 \begin_inset Newline newline
5667 \begin_inset Phantom HPhantom
5670 \begin_layout Plain Layout
5681 \begin_inset Flex Code
5684 \begin_layout Plain Layout
5689 \begin_layout Plain Layout
5708 \begin_inset Newline newline
5712 \begin_inset Newline newline
5716 \begin_inset Flex Code
5719 \begin_layout Plain Layout
5736 \begin_layout Plain Layout
5753 \begin_inset Newline newline
5760 \begin_layout Enumerate
5761 ここまで来れば、あとは\SpecialChar LaTeX
5762 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5764 \begin_inset Separator parbreak
5771 \begin_layout Enumerate
5774 \begin_inset Flex Code
5777 \begin_layout Plain Layout
5783 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5786 \begin_layout Enumerate
5788 では、パッケージを全ユーザー用に導入した場合には、「Settings
5789 \begin_inset space ~
5792 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5797 \begin_layout Enumerate
5798 最後に、\SpecialChar LyX
5799 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5800 からツール\SpecialChar menuseparator
5801 環境構成メニューを実行して、\SpecialChar LyX
5805 \begin_layout Standard
5806 これでパッケージが導入されました。この例では、文書クラス
5807 \begin_inset Flex Code
5810 \begin_layout Plain Layout
5812 \begin_inset space ~
5819 \begin_layout Plain Layout
5832 \begin_inset Flex MenuItem
5835 \begin_layout Plain Layout
5836 文書\SpecialChar menuseparator
5837 設定\SpecialChar menuseparator
5846 \begin_layout Standard
5847 \begin_inset Flex MenuItem
5850 \begin_layout Plain Layout
5851 文書\SpecialChar menuseparator
5852 設定\SpecialChar menuseparator
5858 メニューに列挙されてもいない\SpecialChar LaTeX
5859 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5862 \begin_layout Section
5866 \begin_layout Standard
5867 この節は、レイアウト情報を含む各種\SpecialChar LyX
5868 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5870 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5871 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5874 \begin_layout Standard
5875 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5876 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5877 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5878 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5879 を出していますので、気軽に質問を投げかけてみてください。
5882 \begin_layout Standard
5883 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5884 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5885 文書クラス用の\SpecialChar LyX
5887 他の人々にも有用なモジュールをお書きになった場合には、
5888 \begin_inset CommandInset href
5890 name "LyX Wikiのレイアウトに関する節"
5891 target "http://wiki.lyx.org/Layouts/Layouts"
5896 開発者メーリングリストに投稿して、\SpecialChar LyX
5897 頒布版に同梱することができるようにしてください
5901 \begin_layout Plain Layout
5903 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5904 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5912 \begin_layout Subsection
5914 \begin_inset CommandInset label
5916 name "subsec:レイアウトモジュール"
5923 \begin_layout Standard
5924 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5926 \begin_inset Flex Code
5929 \begin_layout Plain Layout
5935 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5936 に提供するものを指します。しかしながら、\SpecialChar LyX
5938 \begin_inset Flex Code
5941 \begin_layout Plain Layout
5951 にも含めることができます。レイアウトが\SpecialChar LaTeX
5952 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5954 \begin_inset Flex Code
5957 \begin_layout Plain Layout
5963 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5964 イアウトで使用できるという意味において、一面、
5965 \begin_inset Flex Code
5968 \begin_layout Plain Layout
5978 \begin_layout Plain Layout
5979 これらは任意の拡張子をつけることができますが、慣習的に
5980 \begin_inset Flex Code
5983 \begin_layout Plain Layout
5995 \begin_inset Flex Code
5998 \begin_layout Plain Layout
6004 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
6005 \begin_inset Flex MenuItem
6008 \begin_layout Plain Layout
6009 文書\SpecialChar menuseparator
6018 \begin_layout Standard
6019 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
6020 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
6023 \begin_layout Standard
6025 \begin_inset Flex Code
6028 \begin_layout Plain Layout
6034 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
6035 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
6036 \begin_inset Flex MenuItem
6039 \begin_layout Plain Layout
6040 文書\SpecialChar menuseparator
6046 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
6048 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
6052 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
6054 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
6055 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
6059 \begin_layout Subsubsection
6063 \begin_layout Standard
6065 に於けるモジュールは、\SpecialChar LaTeX
6066 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
6067 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
6070 \begin_layout Standard
6073 文書\SpecialChar menuseparator
6074 設定\SpecialChar menuseparator
6077 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
6078 は、その文書専属のモジュールだと考えることができます。したがって、
6079 \begin_inset Flex Code
6082 \begin_layout Plain Layout
6088 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
6089 2.1では、最新書式は48です)。また、
6090 ローカルレイアウトは、\SpecialChar LyX
6091 1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
6092 1.5またはそれ以前の版に(ローカルレイアウト
6093 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
6094 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
6095 1.6で使用できるレイアウト要素のみを使用してください。
6098 \begin_layout Standard
6099 \begin_inset Flex Code
6102 \begin_layout Plain Layout
6108 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
6109 ているかどうかが検証されます。すると、\SpecialChar LyX
6110 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
6112 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
6115 \begin_layout Standard
6116 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
6117 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
6120 \begin_layout Subsection
6121 \begin_inset Flex MenuItem
6124 \begin_layout Plain Layout
6133 \begin_layout Standard
6134 新しく\SpecialChar LaTeX
6135 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
6137 \begin_inset Flex Code
6140 \begin_layout Plain Layout
6147 \begin_inset Flex Code
6150 \begin_layout Plain Layout
6156 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
6157 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
6161 \begin_layout Standard
6162 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
6163 \begin_inset Flex MenuItem
6166 \begin_layout Plain Layout
6173 \begin_inset Flex MenuItem
6176 \begin_layout Plain Layout
6185 \begin_layout Standard
6186 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6190 \begin_layout Plain Layout
6191 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6193 \begin_inset Flex MenuItem
6196 \begin_layout Plain Layout
6202 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6210 \begin_layout LyX-Code
6211 cp report.layout ~/.lyx/layouts/myclass.layout
6214 \begin_layout Standard
6216 \begin_inset Flex Code
6219 \begin_layout Plain Layout
6228 \begin_layout LyX-Code
6235 \begin_layout Plain Layout
6245 \begin_layout Standard
6249 \begin_layout LyX-Code
6259 \begin_layout Plain Layout
6269 eXClass[report, myclass.sty]{report (myclass)}
6272 \begin_layout Standard
6273 のように変更してください。それから、ファイル冒頭辺りに
6276 \begin_layout LyX-Code
6278 \begin_inset Newline newline
6284 \begin_inset Newline newline
6290 \begin_layout Standard
6294 \begin_layout Standard
6297 \begin_inset Flex MenuItem
6300 \begin_layout Plain Layout
6301 ツール\SpecialChar menuseparator
6307 を選択してください。それから\SpecialChar LyX
6308 を再起動し、新規文書を作成してみてください。すると、
6309 \begin_inset Flex MenuItem
6312 \begin_layout Plain Layout
6313 文書\SpecialChar menuseparator
6320 \begin_inset Flex MenuItem
6323 \begin_layout Plain Layout
6329 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6330 \begin_inset Flex Code
6333 \begin_layout Plain Layout
6339 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6340 \begin_inset Flex Code
6343 \begin_layout Plain Layout
6349 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6350 \begin_inset Flex Code
6353 \begin_layout Plain Layout
6360 \begin_inset Flex Code
6363 \begin_layout Plain Layout
6369 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6372 \begin_layout LyX-Code
6376 \begin_layout LyX-Code
6380 \begin_layout LyX-Code
6384 \begin_layout LyX-Code
6388 \begin_layout LyX-Code
6392 \begin_layout Standard
6393 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6396 \begin_layout Standard
6397 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6399 \begin_inset CommandInset ref
6401 reference "sec:テキストクラス"
6408 \begin_layout Standard
6410 \begin_inset Flex Code
6413 \begin_layout Plain Layout
6419 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6420 う。最も簡単なモジュールの例としては、以下のようなものになります。
6423 \begin_layout LyX-Code
6426 Declare\SpecialChar LyX
6430 \begin_layout LyX-Code
6434 \begin_layout LyX-Code
6435 #Support for mypkg.sty.
6438 \begin_layout LyX-Code
6440 \begin_inset Newline newline
6446 \begin_layout LyX-Code
6448 \begin_inset Newline newline
6454 \begin_layout LyX-Code
6456 \begin_inset Newline newline
6462 \begin_inset Newline newline
6468 \begin_layout Standard
6469 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6470 \begin_inset CommandInset ref
6472 reference "sec:テキストクラス"
6479 \begin_layout Subsection
6480 \begin_inset Flex MenuItem
6483 \begin_layout Plain Layout
6492 \begin_layout Standard
6493 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6494 \begin_inset Flex MenuItem
6497 \begin_layout Plain Layout
6503 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6506 \begin_layout LyX-Code
6512 \begin_layout Standard
6513 という行がないかどうか探してください。もしこれがあれば、
6514 \begin_inset Flex Code
6517 \begin_layout Plain Layout
6518 Declare\SpecialChar LaTeX
6524 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6525 \begin_inset Flex Code
6528 \begin_layout Plain Layout
6535 \begin_inset Flex Code
6538 \begin_layout Plain Layout
6545 \begin_inset Flex Code
6548 \begin_layout Plain Layout
6549 Declare\SpecialChar LaTeX
6559 \begin_layout Plain Layout
6561 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6562 \begin_inset Flex Code
6565 \begin_layout Plain Layout
6579 \begin_layout LyX-Code
6586 \begin_layout Plain Layout
6593 eXClass[thesis,book]{thesis}
6596 \begin_layout Standard
6597 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6599 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6603 \begin_layout Subsection
6605 \begin_inset CommandInset label
6614 \begin_layout Standard
6615 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6616 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6617 添付のひな型をあれこれ見てみるのもよいでしょう。
6620 \begin_layout Standard
6621 ひな型は、通常の文書と同様、\SpecialChar LyX
6622 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6623 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6624 \begin_inset Flex Code
6627 \begin_layout Plain Layout
6636 \begin_inset Flex Code
6639 \begin_layout Plain Layout
6647 などの対応するコマンドをひな型\SpecialChar LyX
6648 ファイルから取り除く必要があります。これは、たとえば
6649 \begin_inset Flex Code
6652 \begin_layout Plain Layout
6659 \begin_inset Flex Code
6662 \begin_layout Plain Layout
6668 のような、どの軽いテキストエディタでも行うことができます。
6671 \begin_layout Standard
6673 \begin_inset Flex Code
6676 \begin_layout Plain Layout
6683 \begin_inset Flex Code
6686 \begin_layout Plain Layout
6693 から使用したいものを同じ場所にコピーし、
6694 \begin_inset Flex MenuItem
6697 \begin_layout Plain Layout
6698 ツール\SpecialChar menuseparator
6699 設定\SpecialChar menuseparator
6705 ダイアログのひな型パスを再定義してください。
6708 \begin_layout Standard
6710 \begin_inset Flex Code
6713 \begin_layout Plain Layout
6719 があることに注意してください。このひな型は、
6720 \begin_inset Flex MenuItem
6723 \begin_layout Plain Layout
6724 ファイル\SpecialChar menuseparator
6730 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6731 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6733 \begin_inset Flex MenuItem
6736 \begin_layout Plain Layout
6745 \begin_layout Subsection
6749 \begin_layout Standard
6750 レイアウトファイルの書式は、\SpecialChar LyX
6751 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6752 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6755 \begin_inset Flex Code
6758 \begin_layout Plain Layout
6760 Dir/scripts/layout2layout.py
6765 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6767 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6770 \begin_layout Enumerate
6772 \begin_inset Flex Code
6775 \begin_layout Plain Layout
6782 \begin_inset Flex Code
6785 \begin_layout Plain Layout
6794 \begin_layout Enumerate
6796 \begin_inset Newline newline
6800 \begin_inset Flex Code
6803 \begin_layout Plain Layout
6804 python \SpecialChar LyX
6805 Dir/scripts/layout2layout.py myclass.old myclass.layout
6811 \begin_inset Newline newline
6815 \begin_inset Flex Code
6818 \begin_layout Plain Layout
6829 \begin_layout Standard
6830 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6833 \begin_layout Section
6834 \begin_inset CommandInset label
6843 \begin_layout Standard
6844 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6845 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6846 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6847 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6848 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6851 \begin_layout Standard
6852 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6853 \begin_inset Flex Code
6856 \begin_layout Plain Layout
6863 \begin_inset Flex Code
6866 \begin_layout Plain Layout
6873 \begin_inset Flex Code
6876 \begin_layout Plain Layout
6882 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6883 \begin_inset Flex Code
6886 \begin_layout Plain Layout
6894 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6895 \begin_inset Flex Code
6898 \begin_layout Plain Layout
6909 \begin_layout Subsection
6913 \begin_layout Standard
6915 \begin_inset Flex Code
6918 \begin_layout Plain Layout
6924 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6925 \begin_inset Flex Code
6928 \begin_layout Plain Layout
6934 ファイルは、以下のような行で始めなくてはならないのです。
6937 \begin_layout LyX-Code
6940 #% Do not delete the line below; configure depends on this
6943 \begin_layout LyX-Code
6954 \begin_layout Plain Layout
6963 eXClass{Article (Standard Class)}
6966 \begin_layout LyX-Code
6971 DeclareCategory{Articles}
6974 \begin_layout Standard
6975 2行目と3行目は、\SpecialChar LyX
6976 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6978 \begin_inset Flex Code
6981 \begin_layout Plain Layout
6988 \begin_inset Flex Code
6991 \begin_layout Plain Layout
6997 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6998 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
7000 \begin_inset Flex Code
7003 \begin_layout Plain Layout
7010 \begin_inset Flex Code
7013 \begin_layout Plain Layout
7019 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
7021 \begin_inset Flex Code
7024 \begin_layout Plain Layout
7030 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
7031 \begin_inset Flex MenuItem
7034 \begin_layout Plain Layout
7035 文書\SpecialChar menuseparator
7041 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
7042 \begin_inset Flex MenuItem
7045 \begin_layout Plain Layout
7046 文書\SpecialChar menuseparator
7052 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
7053 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
7054 rized」グループに属することになります。
7057 \begin_layout Standard
7059 \begin_inset Flex Code
7062 \begin_layout Plain Layout
7068 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
7069 \begin_inset Flex Code
7072 \begin_layout Plain Layout
7078 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
7081 \begin_layout LyX-Code
7084 #% Do not delete the line below; configure depends on this
7087 \begin_layout LyX-Code
7098 \begin_layout Plain Layout
7107 eXClass[article]{article (with My Own Headings)}
7110 \begin_layout LyX-Code
7115 DeclareCategory{Articles}
7118 \begin_layout Standard
7119 これは、\SpecialChar LaTeX
7121 \begin_inset Flex Code
7124 \begin_layout Plain Layout
7130 に関連づけられ、「Article (with My Own Headings)」と表示される、
7131 \begin_inset Flex Code
7134 \begin_layout Plain Layout
7140 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
7143 \begin_layout LyX-Code
7146 #% Do not delete the line below; configure depends on this
7149 \begin_layout LyX-Code
7160 \begin_layout Plain Layout
7169 eXClass[article,foo.sty]{Article (with My Own Headings)}
7172 \begin_layout LyX-Code
7177 DeclareCategory{Articles}
7180 \begin_layout Standard
7182 \begin_inset Flex Code
7185 \begin_layout Plain Layout
7191 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
7194 \begin_layout LyX-Code
7197 #% Do not delete the line below; configure depends on this
7200 \begin_layout LyX-Code
7205 DeclareDocBookClass[article]{SGML (DocBook article)}
7208 \begin_layout LyX-Code
7213 DeclareCategory{Articles}
7216 \begin_layout Standard
7217 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
7220 \begin_layout Standard
7221 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
7224 \begin_layout LyX-Code
7235 \begin_layout Plain Layout
7244 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7247 \begin_layout LyX-Code
7255 \begin_layout Standard
7256 ここで「クラス」は、\SpecialChar LaTeX
7257 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
7259 名がレイアウトファイル名と同じであると仮定します。
7262 \begin_layout Standard
7263 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7264 \begin_inset Flex Code
7267 \begin_layout Plain Layout
7272 \begin_layout Plain Layout
7285 \begin_inset Flex Code
7288 \begin_layout Plain Layout
7295 \begin_inset Flex MenuItem
7298 \begin_layout Plain Layout
7299 ツール\SpecialChar menuseparator
7305 を実行し、\SpecialChar LyX
7306 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7309 \begin_layout Standard
7310 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7311 を再起動したりすることなく、その変更を確認することができます
7315 \begin_layout Plain Layout
7316 第1.6版よりも前の\SpecialChar LyX
7317 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7319 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7326 \begin_inset Flex MenuItem
7329 \begin_layout Plain Layout
7335 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7336 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7339 \begin_layout Standard
7345 \begin_inset Flex MenuItem
7348 \begin_layout Plain Layout
7354 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7358 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7362 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7364 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7368 \begin_layout Plain Layout
7369 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7370 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7371 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7378 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7382 \begin_layout Plain Layout
7383 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7391 \begin_layout Subsection
7395 \begin_layout Standard
7396 モジュールは、以下のような行で始まらなくてはなりません。
7399 \begin_layout LyX-Code
7406 \begin_layout Plain Layout
7413 yXModule[endnotes.sty]{Endnotes}
7416 \begin_layout Standard
7417 波括弧内に入っている必須引数はモジュール名で、これは
7418 \begin_inset Flex MenuItem
7421 \begin_layout Plain Layout
7422 文書\SpecialChar menuseparator
7428 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7429 パッケージをすべて宣言します。また、非必須引数として、
7430 \begin_inset Flex Code
7433 \begin_layout Plain Layout
7440 \begin_inset Flex Code
7443 \begin_layout Plain Layout
7450 \begin_inset Flex Code
7453 \begin_layout Plain Layout
7459 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7462 \begin_layout Standard
7463 それから、以下のようなモジュール宣言を行います
7467 \begin_layout Plain Layout
7468 モジュールを\SpecialChar LyX
7469 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7477 \begin_layout LyX-Code
7481 \begin_layout LyX-Code
7482 #Adds an endnote command, in addition to footnotes.
7486 \begin_layout LyX-Code
7487 #You will need to add
7493 \begin_layout Plain Layout
7503 \begin_layout LyX-Code
7504 #want the endnotes to appear.
7508 \begin_layout LyX-Code
7512 \begin_layout LyX-Code
7513 #Requires: somemodule | othermodule
7516 \begin_layout LyX-Code
7517 #Excludes: badmodule
7520 \begin_layout Standard
7521 ここで説明(Description)は、
7522 \begin_inset Flex MenuItem
7525 \begin_layout Plain Layout
7526 文書\SpecialChar menuseparator
7532 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7533 \begin_inset Flex Code
7536 \begin_layout Plain Layout
7542 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7543 \begin_inset Flex Code
7546 \begin_layout Plain Layout
7552 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7553 イプ記号「|」で区切らなくてはなりません。
7554 \begin_inset Flex Code
7557 \begin_layout Plain Layout
7563 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7564 \begin_inset Flex Code
7567 \begin_layout Plain Layout
7577 が使用されていればよいということです。同様に、
7578 \begin_inset Flex Code
7581 \begin_layout Plain Layout
7587 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7588 \begin_inset Flex Code
7591 \begin_layout Plain Layout
7597 拡張子を除いたファイル名で認識されることに注意してください。つまり
7598 \begin_inset Flex Code
7601 \begin_layout Plain Layout
7608 \begin_inset Flex Code
7611 \begin_layout Plain Layout
7620 \begin_layout Subsection
7624 \begin_layout Standard
7625 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7628 \begin_layout Description
7629 \begin_inset Flex Code
7632 \begin_layout Plain Layout
7639 \begin_inset Flex Code
7642 \begin_layout Plain Layout
7651 \begin_layout Standard
7652 このタグは\SpecialChar LyX
7654 \begin_inset space ~
7657 1.4.0で導入されました。\SpecialChar LyX
7659 \begin_inset space ~
7662 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7663 現行版のファイル形式は、書式35です。しかし、\SpecialChar LyX
7664 の各版は、旧版の\SpecialChar LyX
7666 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7669 \begin_layout Subsection
7670 \begin_inset CommandInset label
7672 name "subsec:汎用テキストクラスパラメータ"
7679 \begin_layout Standard
7680 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7681 \begin_inset Flex Code
7684 \begin_layout Plain Layout
7690 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7694 。モジュールには、すべてのレイアウトタグを使用することができます)。
7697 \begin_layout Description
7698 \begin_inset Flex Code
7701 \begin_layout Plain Layout
7707 この文書クラスがXHTMLに出力されるときに、
7708 \begin_inset Flex Code
7711 \begin_layout Plain Layout
7717 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7718 \begin_inset Flex Code
7721 \begin_layout Plain Layout
7727 に出力するものであれば、何でも使用することができます。「
7728 \begin_inset Flex Code
7731 \begin_layout Plain Layout
7740 \begin_layout Description
7741 \begin_inset Flex Code
7744 \begin_layout Plain Layout
7750 文書プリアンブルに書き加えられる情報です。「
7751 \begin_inset Flex Code
7754 \begin_layout Plain Layout
7763 \begin_layout Description
7764 \begin_inset Flex Code
7767 \begin_layout Plain Layout
7773 書誌情報の表示に使う書式を定義します。詳細については、
7774 \begin_inset CommandInset ref
7776 reference "subsec:引用書式指定"
7781 \begin_inset Flex Code
7784 \begin_layout Plain Layout
7793 \begin_layout Description
7794 \begin_inset Flex Code
7797 \begin_layout Plain Layout
7803 文書クラスがサポートする様々な大域オプションを記します。説明は、
7804 \begin_inset CommandInset ref
7806 reference "subsec:ClassOptions"
7811 \begin_inset Flex Code
7814 \begin_layout Plain Layout
7823 \begin_layout Description
7824 \begin_inset Flex Code
7827 \begin_layout Plain Layout
7834 \begin_inset Flex Code
7837 \begin_layout Plain Layout
7846 \begin_inset space \thinspace{}
7850 \begin_inset Flex Code
7853 \begin_layout Plain Layout
7859 ] 文書クラスが既定で1段組か2段組かを指定します。
7860 \begin_inset Flex MenuItem
7863 \begin_layout Plain Layout
7864 文書\SpecialChar menuseparator
7873 \begin_layout Description
7874 \begin_inset Flex Code
7877 \begin_layout Plain Layout
7884 \begin_inset Flex Code
7887 \begin_layout Plain Layout
7893 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7894 \begin_inset Flex Code
7897 \begin_layout Plain Layout
7904 \begin_inset Newline newline
7908 \begin_inset CommandInset ref
7910 reference "subsec:カウンタ"
7917 \begin_layout Description
7918 \begin_inset Flex Code
7921 \begin_layout Plain Layout
7927 文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7928 \begin_inset CommandInset ref
7930 reference "subsec:フォント指定"
7935 \begin_inset Flex Code
7938 \begin_layout Plain Layout
7947 \begin_layout Description
7948 \begin_inset Flex Code
7951 \begin_layout Plain Layout
7958 \begin_inset Flex Code
7961 \begin_layout Plain Layout
7967 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7968 \begin_inset Flex Code
7971 \begin_layout Plain Layout
7977 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7978 既存の文書にこの文書クラスが選択したときのみ該当します)。
7981 \begin_layout Description
7982 \begin_inset Flex Code
7985 \begin_layout Plain Layout
7992 \begin_inset Flex Code
7995 \begin_layout Plain Layout
8005 これは新規段落に割り当てられる様式であり、通常は
8006 \begin_inset Flex MenuItem
8009 \begin_layout Plain Layout
8015 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
8018 \begin_layout Description
8019 \begin_inset Flex Code
8022 \begin_layout Plain Layout
8029 \begin_inset Flex Code
8032 \begin_layout Plain Layout
8039 \begin_inset Flex Code
8042 \begin_layout Plain Layout
8048 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
8050 \begin_inset Flex Code
8053 \begin_layout Plain Layout
8059 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
8063 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
8064 \begin_inset CommandInset ref
8066 reference "subsec:レイアウトモジュール"
8073 \begin_layout Description
8074 \begin_inset Flex Code
8077 \begin_layout Plain Layout
8084 \begin_inset CommandInset ref
8086 reference "subsec:フロート"
8091 \begin_inset Flex Code
8094 \begin_layout Plain Layout
8103 \begin_layout Description
8104 \begin_inset Flex Code
8107 \begin_layout Plain Layout
8113 この文書クラスがXHTMLに出力されるときに、
8114 \begin_inset Flex Code
8117 \begin_layout Plain Layout
8123 ブロックに出力される情報です。これより前に出現した
8124 \begin_inset Flex Code
8127 \begin_layout Plain Layout
8134 \begin_inset Flex Code
8137 \begin_layout Plain Layout
8143 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
8144 \begin_inset Flex Code
8147 \begin_layout Plain Layout
8154 \begin_inset Flex Code
8157 \begin_layout Plain Layout
8166 \begin_layout Description
8167 \begin_inset Flex Code
8170 \begin_layout Plain Layout
8177 \begin_inset Flex Code
8180 \begin_layout Plain Layout
8186 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
8187 。これを指定しない場合には、\SpecialChar LyX
8188 はどのレイアウトを使用するべきか、解析しようと試みます。
8191 \begin_layout Description
8192 \begin_inset Flex Code
8195 \begin_layout Plain Layout
8202 \begin_inset Flex Code
8205 \begin_layout Plain Layout
8211 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
8212 \begin_inset Flex Code
8215 \begin_layout Plain Layout
8222 \begin_inset Newline newline
8226 \begin_inset CommandInset ref
8228 reference "subsec:カウンタ"
8235 \begin_layout Description
8236 \begin_inset Flex Code
8239 \begin_layout Plain Layout
8246 \begin_inset Flex Code
8249 \begin_layout Plain Layout
8259 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8261 \begin_inset Flex Code
8264 \begin_layout Plain Layout
8273 \begin_layout Description
8274 \begin_inset Flex Code
8277 \begin_layout Plain Layout
8284 \begin_inset Flex Code
8287 \begin_layout Plain Layout
8297 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8298 \begin_inset Flex Code
8301 \begin_layout Plain Layout
8308 \begin_inset Newline newline
8312 \begin_inset CommandInset ref
8314 reference "subsec:任意設定差込枠"
8321 \begin_layout Description
8322 \begin_inset Flex Code
8325 \begin_layout Plain Layout
8332 \begin_inset Flex Code
8335 \begin_layout Plain Layout
8341 ] 画面上の左余白の幅を指示する文字列。例:「
8342 \begin_inset Flex Code
8345 \begin_layout Plain Layout
8351 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8354 \begin_layout Description
8355 \begin_inset Flex Code
8358 \begin_layout Plain Layout
8365 \begin_inset Flex Code
8368 \begin_layout Plain Layout
8374 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
8375 \begin_inset Flex Code
8378 \begin_layout Plain Layout
8387 \begin_layout Description
8388 \begin_inset Flex Code
8391 \begin_layout Plain Layout
8398 \begin_inset Flex Code
8401 \begin_layout Plain Layout
8407 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8410 \begin_layout Description
8411 \begin_inset Flex Code
8414 \begin_layout Plain Layout
8421 \begin_inset Flex Code
8424 \begin_layout Plain Layout
8430 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8433 \begin_layout Description
8434 \begin_inset Flex Code
8437 \begin_layout Plain Layout
8444 \begin_inset Flex Code
8447 \begin_layout Plain Layout
8453 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8456 \begin_layout Description
8457 \begin_inset Flex Code
8460 \begin_layout Plain Layout
8467 \begin_inset Flex Code
8470 \begin_layout Plain Layout
8476 ] このクラスによって生成されるファイル形式を示す文字列(
8480 ダイアログで定義される形のもの)。おもに、
8481 \begin_inset Flex Code
8484 \begin_layout Plain Layout
8491 \begin_inset Flex Code
8494 \begin_layout Plain Layout
8500 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8501 \begin_inset Flex Code
8504 \begin_layout Plain Layout
8510 パラメーターに遭遇したときには、この文字列は、「
8511 \begin_inset Flex Code
8514 \begin_layout Plain Layout
8521 \begin_inset Flex Code
8524 \begin_layout Plain Layout
8535 \begin_layout Description
8536 \begin_inset Flex Code
8539 \begin_layout Plain Layout
8546 \begin_inset Flex Code
8549 \begin_layout Plain Layout
8560 \begin_inset Flex Code
8563 \begin_layout Plain Layout
8570 \begin_inset Flex Code
8573 \begin_layout Plain Layout
8579 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8582 \begin_layout Description
8583 \begin_inset Flex Code
8586 \begin_layout Plain Layout
8593 \begin_inset Flex Code
8596 \begin_layout Plain Layout
8603 \begin_inset Flex Code
8606 \begin_layout Plain Layout
8612 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8613 \begin_inset Flex Code
8616 \begin_layout Plain Layout
8617 PackageOptions natbib square
8623 \begin_inset Flex Code
8626 \begin_layout Plain Layout
8633 \begin_inset Flex Code
8636 \begin_layout Plain Layout
8642 オプションとともに読み込みます(\SpecialChar TeX
8644 \begin_inset Flex Code
8647 \begin_layout Plain Layout
8653 を読み込む前に、\SpecialChar LyX
8655 \begin_inset Flex Code
8658 \begin_layout Plain Layout
8661 PassOptionsToPackage{natbib}{square}
8669 \begin_layout Description
8670 \begin_inset Flex Code
8673 \begin_layout Plain Layout
8682 \begin_inset Flex Code
8685 \begin_layout Plain Layout
8694 \begin_inset Flex Code
8697 \begin_layout Plain Layout
8704 \begin_inset Flex Code
8707 \begin_layout Plain Layout
8714 \begin_inset Flex MenuItem
8717 \begin_layout Plain Layout
8718 文書\SpecialChar menuseparator
8727 \begin_layout Description
8728 \begin_inset Flex Code
8731 \begin_layout Plain Layout
8738 文書のプリアンブルを設定します。前に行った
8739 \begin_inset Flex Code
8742 \begin_layout Plain Layout
8749 \begin_inset Flex Code
8752 \begin_layout Plain Layout
8758 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8759 \begin_inset Flex Code
8762 \begin_layout Plain Layout
8769 \begin_inset Flex Code
8772 \begin_layout Plain Layout
8781 \begin_layout Description
8782 \begin_inset Flex Code
8785 \begin_layout Plain Layout
8792 \begin_inset Flex Code
8795 \begin_layout Plain Layout
8802 \begin_inset Flex Code
8805 \begin_layout Plain Layout
8814 \begin_inset Flex Code
8817 \begin_layout Plain Layout
8824 \begin_inset Flex Code
8827 \begin_layout Plain Layout
8833 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8834 \begin_inset Flex Code
8837 \begin_layout Plain Layout
8844 \begin_inset Flex Code
8847 \begin_layout Plain Layout
8855 \begin_inset Flex Code
8858 \begin_layout Plain Layout
8865 \begin_inset Flex Code
8868 \begin_layout Plain Layout
8876 \begin_inset CommandInset ref
8878 reference "chap:関数一覧"
8885 \begin_layout Description
8886 \begin_inset Flex Code
8889 \begin_layout Plain Layout
8896 \begin_inset Flex Code
8899 \begin_layout Plain Layout
8906 \begin_inset Flex Code
8909 \begin_layout Plain Layout
8915 で表されているモジュールの機能を提供することを示し、
8916 \begin_inset Flex Code
8919 \begin_layout Plain Layout
8926 \begin_inset Flex Code
8929 \begin_layout Plain Layout
8935 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8936 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8939 \begin_layout Description
8940 \begin_inset Flex Code
8943 \begin_layout Plain Layout
8950 \begin_inset Flex Code
8953 \begin_layout Plain Layout
8961 Creates a new paragraph style if it does not already exist.
8962 If the style does exist, this section is ignored.
8966 \begin_inset Flex Code
8969 \begin_layout Plain Layout
8978 \begin_layout Description
8979 \begin_inset Flex Code
8982 \begin_layout Plain Layout
8989 \begin_inset Flex Code
8992 \begin_layout Plain Layout
8999 \begin_inset Flex Code
9002 \begin_layout Plain Layout
9008 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
9010 \begin_inset CommandInset ref
9012 reference "chap:関数一覧"
9018 If you require a package with specific options, you can additionally use
9020 \begin_inset Flex Code
9023 \begin_layout Plain Layout
9034 \begin_layout Description
9035 \begin_inset Flex Code
9038 \begin_layout Plain Layout
9045 \begin_inset Flex Code
9048 \begin_layout Plain Layout
9054 ] 画面上の右余白の幅を指示する文字列。例:「
9055 \begin_inset Flex Code
9058 \begin_layout Plain Layout
9067 \begin_layout Description
9068 \begin_inset Flex Code
9071 \begin_layout Plain Layout
9078 \begin_inset Flex Code
9081 \begin_layout Plain Layout
9087 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
9089 \begin_inset Flex Code
9092 \begin_layout Plain Layout
9101 \begin_layout Description
9102 \begin_inset Flex Code
9105 \begin_layout Plain Layout
9114 \begin_inset Flex Code
9117 \begin_layout Plain Layout
9126 \begin_inset space \thinspace{}
9130 \begin_inset Flex Code
9133 \begin_layout Plain Layout
9139 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
9140 \begin_inset Flex MenuItem
9143 \begin_layout Plain Layout
9144 文書\SpecialChar menuseparator
9153 \begin_layout Description
9154 \begin_inset Flex Code
9157 \begin_layout Plain Layout
9164 \begin_inset Flex Code
9167 \begin_layout Plain Layout
9177 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
9178 \begin_inset Flex Code
9181 \begin_layout Plain Layout
9188 \begin_inset Newline newline
9192 \begin_inset CommandInset ref
9194 reference "subsec:段落様式-XHTML"
9201 \begin_layout Description
9202 \begin_inset Flex Code
9205 \begin_layout Plain Layout
9212 \begin_inset Flex Code
9215 \begin_layout Plain Layout
9222 \begin_inset Flex Code
9225 \begin_layout Plain Layout
9231 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
9233 \begin_inset Flex Code
9236 \begin_layout Plain Layout
9245 \begin_layout Description
9246 \begin_inset Flex Code
9249 \begin_layout Plain Layout
9256 \begin_inset Flex Code
9259 \begin_layout Plain Layout
9268 \begin_inset Flex Code
9271 \begin_layout Plain Layout
9277 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9278 \begin_inset Flex Code
9281 \begin_layout Plain Layout
9288 \begin_inset Flex Code
9291 \begin_layout Plain Layout
9293 \begin_inset space ~
9301 」が指定されている最後のレイアウトの後に、
9302 \begin_inset Flex Code
9305 \begin_layout Plain Layout
9311 で指定したマクロ名を挿入することを意味します。
9312 \begin_inset Flex Code
9315 \begin_layout Plain Layout
9322 \begin_inset Flex Code
9325 \begin_layout Plain Layout
9327 \begin_inset space ~
9336 \begin_inset Flex Code
9339 \begin_layout Plain Layout
9345 で指定した環境でくるむ場合に対応します。
9348 \begin_layout Description
9349 \begin_inset Flex Code
9352 \begin_layout Plain Layout
9359 \begin_inset Flex Code
9362 \begin_layout Plain Layout
9368 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9370 \begin_inset Flex Code
9373 \begin_layout Plain Layout
9382 \begin_layout Subsection
9383 \begin_inset Flex Code
9386 \begin_layout Plain Layout
9393 \begin_inset CommandInset label
9395 name "subsec:ClassOptions"
9402 \begin_layout Standard
9403 \begin_inset Flex Code
9406 \begin_layout Plain Layout
9415 \begin_layout Description
9416 \begin_inset Flex Code
9419 \begin_layout Plain Layout
9426 \begin_inset Flex Code
9429 \begin_layout Plain Layout
9435 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9436 \begin_inset Flex Code
9439 \begin_layout Plain Layout
9448 \begin_layout Description
9449 \begin_inset Flex Code
9452 \begin_layout Plain Layout
9458 XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC
9459 \begin_inset Quotes eld
9462 -//OASIS//DTD DocBook V4.2//EN
9463 \begin_inset Quotes erd
9469 \begin_layout Description
9470 \begin_inset Flex Code
9473 \begin_layout Plain Layout
9480 \begin_inset Flex Code
9483 \begin_layout Plain Layout
9484 文字列="empty|plain|headings|fancy"
9490 \begin_inset Flex Code
9493 \begin_layout Plain Layout
9502 \begin_layout Description
9503 \begin_inset Flex Code
9506 \begin_layout Plain Layout
9513 \begin_inset Flex Code
9516 \begin_layout Plain Layout
9523 \begin_inset Flex Code
9526 \begin_layout Plain Layout
9534 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9537 \begin_layout Standard
9538 \begin_inset Flex Code
9541 \begin_layout Plain Layout
9548 \begin_inset Flex Code
9551 \begin_layout Plain Layout
9560 \begin_layout Subsection
9562 \begin_inset CommandInset label
9571 \begin_layout Standard
9576 \begin_layout Plain Layout
9577 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9585 \begin_layout LyX-Code
9592 \begin_layout LyX-Code
9596 \begin_layout LyX-Code
9600 \begin_layout Standard
9601 ここでは、以下のコマンドを使用することができます。
9604 \begin_layout Description
9605 \begin_inset Flex Code
9608 \begin_layout Plain Layout
9615 \begin_inset Flex Code
9618 \begin_layout Plain Layout
9623 , left, right, center
9631 \begin_layout Description
9632 \begin_inset Flex Code
9635 \begin_layout Plain Layout
9642 \begin_inset Flex Code
9645 \begin_layout Plain Layout
9650 , left, right, center
9655 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9656 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9660 \begin_layout Description
9661 \begin_inset Flex Code
9664 \begin_layout Plain Layout
9671 \begin_inset Flex Code
9674 \begin_layout Plain Layout
9680 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9682 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9683 \begin_inset Flex Code
9686 \begin_layout Plain Layout
9692 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9693 \begin_inset Separator parbreak
9736 \begin_layout Standard
9737 \begin_inset Flex Code
9740 \begin_layout Plain Layout
9746 定義内部では、以下の指定をすることができます。
9749 \begin_layout Itemize
9750 \begin_inset Flex Code
9753 \begin_layout Plain Layout
9760 \begin_inset Flex Code
9763 \begin_layout Plain Layout
9769 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9770 \begin_inset Flex Code
9773 \begin_layout Plain Layout
9779 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9780 \begin_inset space \space{}
9784 \begin_inset Quotes eld
9788 \begin_inset Flex Code
9791 \begin_layout Plain Layout
9798 \begin_inset Quotes erd
9804 \begin_layout Itemize
9805 \begin_inset Flex Code
9808 \begin_layout Plain Layout
9815 \begin_inset Flex Code
9818 \begin_layout Plain Layout
9824 メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9825 \begin_inset space \space{}
9829 \begin_inset Quotes eld
9833 \begin_inset Flex Code
9836 \begin_layout Plain Layout
9843 \begin_inset Quotes erd
9846 )。この指定は必須ではありません。指定しない場合には、代わりに
9847 \begin_inset Flex Code
9850 \begin_layout Plain Layout
9859 \begin_layout Itemize
9860 \begin_inset Flex Code
9863 \begin_layout Plain Layout
9870 \begin_inset Flex Code
9873 \begin_layout Plain Layout
9879 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9882 \begin_layout Itemize
9883 \begin_inset Flex Code
9886 \begin_layout Plain Layout
9893 \begin_inset Flex Code
9896 \begin_layout Plain Layout
9905 \begin_inset space \thinspace{}
9909 \begin_inset Flex Code
9912 \begin_layout Plain Layout
9918 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9920 \begin_inset Flex Code
9923 \begin_layout Plain Layout
9930 \begin_inset Flex Code
9933 \begin_layout Plain Layout
9942 \begin_layout Itemize
9943 \begin_inset Flex Code
9946 \begin_layout Plain Layout
9953 \begin_inset Flex Code
9956 \begin_layout Plain Layout
9962 この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9964 \begin_inset Flex Code
9967 \begin_layout Plain Layout
9975 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9976 \begin_inset Flex Code
9979 \begin_layout Plain Layout
9986 \begin_inset Flex Code
9989 \begin_layout Plain Layout
9995 ステートメントを置くことで実現できます。
9998 \begin_layout Itemize
9999 \begin_inset Flex Code
10002 \begin_layout Plain Layout
10009 \begin_inset Flex Code
10012 \begin_layout Plain Layout
10019 \begin_inset Flex Code
10022 \begin_layout Plain Layout
10029 \begin_inset Flex Code
10032 \begin_layout Plain Layout
10038 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
10039 \begin_inset Flex Code
10042 \begin_layout Plain Layout
10051 \begin_layout Itemize
10052 \begin_inset Flex Code
10055 \begin_layout Plain Layout
10062 \begin_inset Flex Code
10065 \begin_layout Plain Layout
10072 \begin_inset Flex Code
10075 \begin_layout Plain Layout
10082 \begin_inset Flex Code
10085 \begin_layout Plain Layout
10091 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
10092 \begin_inset Flex Code
10095 \begin_layout Plain Layout
10104 \begin_layout Itemize
10105 \begin_inset Flex Code
10108 \begin_layout Plain Layout
10115 \begin_inset Flex Code
10118 \begin_layout Plain Layout
10124 ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10125 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
10128 \begin_layout Itemize
10129 \begin_inset Flex Code
10132 \begin_layout Plain Layout
10139 \begin_inset Flex Code
10142 \begin_layout Plain Layout
10148 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
10151 \begin_layout Itemize
10152 \begin_inset Flex Code
10155 \begin_layout Plain Layout
10162 \begin_inset CommandInset ref
10164 reference "subsec:フォント指定"
10171 \begin_layout Itemize
10172 \begin_inset Flex Code
10175 \begin_layout Plain Layout
10182 \begin_inset CommandInset ref
10184 reference "subsec:フォント指定"
10191 \begin_layout Itemize
10192 \begin_inset Flex Code
10195 \begin_layout Plain Layout
10202 \begin_inset Flex Code
10205 \begin_layout Plain Layout
10210 , Minimalistic, Conglomerate
10215 ] 差込枠の枠とボタンに用いられる装飾様式。
10218 \begin_layout Itemize
10219 \begin_inset Flex Code
10222 \begin_layout Plain Layout
10229 \begin_inset Flex Code
10232 \begin_layout Plain Layout
10239 \begin_inset Flex Code
10242 \begin_layout Plain Layout
10248 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
10251 \begin_layout Itemize
10254 \begin_inset Flex Code
10257 \begin_layout Plain Layout
10266 \begin_inset Flex Code
10269 \begin_layout Plain Layout
10278 \begin_inset Flex Code
10281 \begin_layout Plain Layout
10289 , this argument will be inserted with a copy of the co-text (either selected
10290 text or the whole paragraph) as content.
10293 \begin_layout Itemize
10296 \begin_inset Flex Code
10299 \begin_layout Plain Layout
10308 \begin_inset Flex Code
10311 \begin_layout Plain Layout
10314 string of characters
10323 Defines individual characters that should be output in raw form, meaning
10324 without special translations that \SpecialChar LaTeX
10326 Note that, contrary to PassThru, this needs to be explicitly defined for
10328 That is, arguments do not inherit PassThruChars from their parent inset
10332 \begin_layout Standard
10334 \begin_inset Flex Code
10337 \begin_layout Plain Layout
10344 \begin_inset Flex Code
10347 \begin_layout Plain Layout
10353 のとき、各レイアウトで\SpecialChar LyX
10354 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10355 \begin_inset Flex Code
10358 \begin_layout Plain Layout
10364 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10365 \begin_inset Flex Code
10368 \begin_layout Plain Layout
10375 \begin_inset Flex Code
10378 \begin_layout Plain Layout
10385 \begin_inset Flex Code
10388 \begin_layout Plain Layout
10397 \begin_layout Standard
10399 \begin_inset Flex Code
10402 \begin_layout Plain Layout
10411 \begin_inset Flex Code
10414 \begin_layout Plain Layout
10423 \begin_inset Flex Code
10426 \begin_layout Plain Layout
10433 \begin_inset Flex Code
10436 \begin_layout Plain Layout
10446 \begin_layout Description
10447 \begin_inset Flex Code
10450 \begin_layout Plain Layout
10457 \begin_inset Flex Code
10460 \begin_layout Plain Layout
10466 宣言をすべて、完全に上書きしますので注意してください。「
10467 \begin_inset Flex Code
10470 \begin_layout Plain Layout
10476 」で閉じる必要があります。これの利用法についての詳細は、第
10477 \begin_inset CommandInset ref
10479 reference "subsec:段落様式の国際化"
10486 \begin_layout Description
10487 \begin_inset Flex Code
10490 \begin_layout Plain Layout
10497 \begin_inset Flex Code
10500 \begin_layout Plain Layout
10510 \begin_layout Plain Layout
10511 ここで「浮動小数点型」とは1.5のような実数を指します。
10516 このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10520 \begin_layout Description
10521 \begin_inset Flex Code
10524 \begin_layout Plain Layout
10531 \begin_inset Flex Code
10534 \begin_layout Plain Layout
10540 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10541 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10544 \begin_layout Description
10545 \begin_inset Flex Code
10548 \begin_layout Plain Layout
10554 XMLコマンドの深度。XML型の書式でのみ使用されます。
10557 \begin_layout Description
10558 \begin_inset Flex Code
10561 \begin_layout Plain Layout
10568 \begin_inset Flex Code
10571 \begin_layout Plain Layout
10577 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10580 \begin_layout Description
10581 \begin_inset Flex Code
10584 \begin_layout Plain Layout
10591 \begin_inset Flex Code
10594 \begin_layout Plain Layout
10608 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10612 \begin_layout Plain Layout
10613 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10614 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10623 \begin_layout Description
10624 \begin_inset Flex Code
10627 \begin_layout Plain Layout
10634 \begin_inset Flex Code
10637 \begin_layout Plain Layout
10642 , Box, Filled_Box, Static
10648 \begin_inset Flex Code
10651 \begin_layout Plain Layout
10658 \begin_inset Flex Code
10661 \begin_layout Plain Layout
10668 \begin_inset Flex Code
10671 \begin_layout Plain Layout
10678 \begin_inset Flex Code
10681 \begin_layout Plain Layout
10687 のいずれかの場合は、段落群の最後)に置くラベル。
10688 \begin_inset Flex Code
10691 \begin_layout Plain Layout
10698 \begin_inset Flex Code
10701 \begin_layout Plain Layout
10708 \begin_inset Flex Code
10711 \begin_layout Plain Layout
10717 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10718 \begin_inset Flex Code
10721 \begin_layout Plain Layout
10730 \begin_layout Description
10731 \begin_inset Flex Code
10734 \begin_layout Plain Layout
10741 \begin_inset Flex Code
10744 \begin_layout Plain Layout
10751 \begin_inset Flex Code
10754 \begin_layout Plain Layout
10761 \begin_inset Flex Code
10764 \begin_layout Plain Layout
10773 \begin_layout Description
10774 \begin_inset Flex Code
10777 \begin_layout Plain Layout
10788 \begin_inset CommandInset ref
10790 reference "subsec:フォント指定"
10794 節を参照。このフォントを定義すると、自動的に
10795 \begin_inset Flex Code
10798 \begin_layout Plain Layout
10804 も同じ値で定義されることに注意してください。したがって、
10805 \begin_inset Flex Code
10808 \begin_layout Plain Layout
10814 も同時に定義したい場合には、これを先に定義してください。
10817 \begin_layout Description
10818 \begin_inset Flex Code
10821 \begin_layout Plain Layout
10828 \begin_inset Flex Code
10831 \begin_layout Plain Layout
10837 ] 新しい様式を\SpecialChar LyX
10838 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10839 2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10841 \begin_inset Flex Code
10844 \begin_layout Plain Layout
10850 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10852 もこの様式を取り扱えるようになります。
10853 \begin_inset Flex Code
10856 \begin_layout Plain Layout
10862 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10863 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10866 \begin_layout Description
10867 \begin_inset Flex Code
10870 \begin_layout Plain Layout
10879 \begin_inset Flex Code
10882 \begin_layout Plain Layout
10891 \begin_inset space \thinspace{}
10895 \begin_inset Flex Code
10898 \begin_layout Plain Layout
10905 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10906 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10907 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10908 \begin_inset Flex Code
10911 \begin_layout Plain Layout
10917 を有効にすることが認められています。\SpecialChar LyX
10918 は、\SpecialChar LaTeX
10919 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10922 \begin_layout Description
10923 \begin_inset Flex Code
10926 \begin_layout Plain Layout
10932 これらのタグは、XHTML出力で使用されます。第
10933 \begin_inset CommandInset ref
10935 reference "subsec:段落様式-XHTML"
10942 \begin_layout Description
10943 \begin_inset Flex Code
10946 \begin_layout Plain Layout
10952 [[FIXME]] (XML型書式でのみ使用されます。)
10955 \begin_layout Description
10956 \begin_inset Flex Code
10959 \begin_layout Plain Layout
10968 \begin_inset Flex Code
10971 \begin_layout Plain Layout
10980 \begin_inset space \thinspace{}
10984 \begin_inset Flex Code
10987 \begin_layout Plain Layout
10994 \begin_inset Flex Code
10997 \begin_layout Plain Layout
11003 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11005 \begin_inset Flex Code
11008 \begin_layout Plain Layout
11015 \begin_inset Flex Code
11018 \begin_layout Plain Layout
11025 \begin_inset Flex Code
11028 \begin_layout Plain Layout
11037 \begin_layout Description
11038 \begin_inset Flex Code
11041 \begin_layout Plain Layout
11050 \begin_inset Flex Code
11053 \begin_layout Plain Layout
11062 \begin_inset space \thinspace{}
11066 \begin_inset Flex Code
11069 \begin_layout Plain Layout
11076 \begin_inset Flex Code
11079 \begin_layout Plain Layout
11085 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11086 \begin_inset Flex Code
11089 \begin_layout Plain Layout
11096 \begin_inset Flex Code
11099 \begin_layout Plain Layout
11108 \begin_layout Description
11109 \begin_inset Flex Code
11112 \begin_layout Plain Layout
11119 \begin_inset Flex Code
11122 \begin_layout Plain Layout
11128 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11129 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
11131 \begin_inset Flex Code
11134 \begin_layout Plain Layout
11145 \begin_layout Description
11146 \begin_inset Flex Code
11149 \begin_layout Plain Layout
11156 \begin_inset Flex Code
11159 \begin_layout Plain Layout
11165 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
11166 \begin_inset Flex Code
11169 \begin_layout Plain Layout
11175 だけ分離されます。しかし、その環境の項目全体は、さらにこの
11176 \begin_inset Flex Code
11179 \begin_layout Plain Layout
11192 \begin_layout Description
11193 \begin_inset Flex Code
11196 \begin_layout Plain Layout
11202 [[FIXME]] (XML型書式でのみ使用されます。)
11205 \begin_layout Description
11206 \begin_inset Flex Code
11209 \begin_layout Plain Layout
11218 \begin_inset Flex Code
11221 \begin_layout Plain Layout
11230 \begin_inset space \thinspace{}
11234 \begin_inset Flex Code
11237 \begin_layout Plain Layout
11243 ] 段落を空のままにすると、\SpecialChar LaTeX
11244 出力が空になってしまうので、通常、\SpecialChar LyX
11245 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
11246 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
11247 まないある種の改行として使用することもあります。
11250 \begin_layout Description
11251 \begin_inset Flex Code
11254 \begin_layout Plain Layout
11261 \begin_inset Flex Code
11264 \begin_layout Plain Layout
11270 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11271 \begin_inset Flex Code
11274 \begin_layout Plain Layout
11281 \begin_inset Newline linebreak
11285 \begin_inset Flex Code
11288 \begin_layout Plain Layout
11289 Centered_Top_Environment
11297 \begin_layout Description
11298 \begin_inset Flex Code
11301 \begin_layout Plain Layout
11308 \begin_inset Flex Code
11311 \begin_layout Plain Layout
11317 ] 自動連番に使われるカウンタ名(詳しくは第
11318 \begin_inset CommandInset ref
11320 reference "subsec:カウンタ"
11324 節参照)。カウンタがラベル中に表示されるようにするためには、
11325 \begin_inset Flex Code
11328 \begin_layout Plain Layout
11334 中で参照する必要があります。これは、少なくとも
11335 \begin_inset Flex Code
11338 \begin_layout Plain Layout
11345 \begin_inset Flex Code
11348 \begin_layout Plain Layout
11355 \begin_inset Flex Code
11358 \begin_layout Plain Layout
11365 \begin_inset Flex Code
11368 \begin_layout Plain Layout
11375 \begin_inset Newline newline
11379 \begin_inset Flex Code
11382 \begin_layout Plain Layout
11389 \begin_inset Flex Code
11392 \begin_layout Plain Layout
11398 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11399 \begin_inset Flex Code
11402 \begin_layout Plain Layout
11403 LabelCounter myenum
11408 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11409 におけるのと同様、実際に使われるカウンタは、
11410 \begin_inset Flex Code
11413 \begin_layout Plain Layout
11420 \begin_inset Flex Code
11423 \begin_layout Plain Layout
11430 \begin_inset Flex Code
11433 \begin_layout Plain Layout
11440 \begin_inset Flex Code
11443 \begin_layout Plain Layout
11449 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11450 \begin_inset Newline newline
11454 \begin_inset CommandInset ref
11456 reference "subsec:カウンタ"
11463 \begin_layout Description
11464 \begin_inset Flex Code
11467 \begin_layout Plain Layout
11474 \begin_inset CommandInset ref
11476 reference "subsec:フォント指定"
11483 \begin_layout Description
11484 \begin_inset Flex Code
11487 \begin_layout Plain Layout
11494 \begin_inset Flex Code
11497 \begin_layout Plain Layout
11503 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11506 \begin_layout Description
11507 \begin_inset Flex Code
11510 \begin_layout Plain Layout
11517 \begin_inset Flex Code
11520 \begin_layout Plain Layout
11526 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11529 \begin_layout Description
11530 \begin_inset Flex Code
11533 \begin_layout Plain Layout
11540 \begin_inset Flex Code
11543 \begin_layout Plain Layout
11550 \begin_inset Flex Code
11553 \begin_layout Plain Layout
11560 \begin_inset Flex Code
11563 \begin_layout Plain Layout
11570 \begin_inset CommandInset ref
11572 reference "subsec:カウンタ"
11576 に述べられている特別な整形コマンドを含めることができます。
11579 \begin_layout Description
11580 \begin_inset Flex Code
11583 \begin_layout Plain Layout
11584 LabelStringAppendix
11590 \begin_inset Flex Code
11593 \begin_layout Plain Layout
11600 \begin_inset Flex Code
11603 \begin_layout Plain Layout
11610 \begin_inset Flex Code
11613 \begin_layout Plain Layout
11620 \begin_inset Flex Code
11623 \begin_layout Plain Layout
11624 LabelStringAppendix
11629 をもリセットすることに注意してください。
11632 \begin_layout Description
11633 \begin_inset Flex Code
11636 \begin_layout Plain Layout
11642 [FIXME] (XML型書式でのみ使用されます。)
11645 \begin_layout Description
11646 \begin_inset Flex Code
11649 \begin_layout Plain Layout
11656 \begin_inset Flex Code
11659 \begin_layout Plain Layout
11664 , Manual, Static, Above,
11665 \begin_inset Newline newline
11668 Centered, Sensitive, Enumerate,
11669 \begin_inset Newline newline
11672 Itemize, Bibliography
11678 \begin_inset Separator parbreak
11685 \begin_layout Description
11686 \begin_inset Flex Code
11689 \begin_layout Plain Layout
11695 は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11698 \begin_layout Description
11699 \begin_inset Flex Code
11702 \begin_layout Plain Layout
11709 \begin_inset Flex Code
11712 \begin_layout Plain Layout
11718 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11719 \begin_inset Flex Code
11722 \begin_layout Plain Layout
11729 \begin_inset Flex Code
11732 \begin_layout Plain Layout
11739 \begin_inset Flex Code
11742 \begin_layout Plain Layout
11748 の段落中、最初の段落にのみ表示されます。
11751 \begin_layout Description
11752 \begin_inset Flex Code
11755 \begin_layout Plain Layout
11762 \begin_inset Flex Code
11765 \begin_layout Plain Layout
11772 \begin_inset Flex Code
11775 \begin_layout Plain Layout
11781 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11784 \begin_layout Description
11785 \begin_inset Flex Code
11788 \begin_layout Plain Layout
11794 はキャプションラベルの「図」や「表」の特別な場合です。
11795 \begin_inset Flex Code
11798 \begin_layout Plain Layout
11804 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11805 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11806 \begin_inset Flex Code
11809 \begin_layout Plain Layout
11815 は「意味を成しません!」と表示されます。
11818 \begin_layout Description
11819 \begin_inset Flex Code
11822 \begin_layout Plain Layout
11828 は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11832 \begin_layout Description
11833 \begin_inset Flex Code
11836 \begin_layout Plain Layout
11842 は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11845 \begin_layout Description
11846 \begin_inset Flex Code
11849 \begin_layout Plain Layout
11856 \begin_inset Flex Code
11859 \begin_layout Plain Layout
11860 LatexType BibEnvironment
11869 \begin_layout Description
11870 \begin_inset Flex Code
11873 \begin_layout Plain Layout
11880 \begin_inset Flex Code
11883 \begin_layout Plain Layout
11889 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11890 \begin_inset CommandInset ref
11892 reference "subsec:段落様式の国際化"
11899 \begin_layout Description
11900 \begin_inset Flex Code
11903 \begin_layout Plain Layout
11910 \begin_inset Flex Code
11913 \begin_layout Plain Layout
11919 ] 対応する\SpecialChar LaTeX
11920 の名称です。環境名かコマンド名を指します。
11923 \begin_layout Description
11924 \begin_inset Flex Code
11927 \begin_layout Plain Layout
11934 \begin_inset Flex Code
11937 \begin_layout Plain Layout
11944 \begin_inset Flex Code
11947 \begin_layout Plain Layout
11953 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11954 内部から変更することはできません(変更可能なパラメータには
11955 \begin_inset Flex Code
11958 \begin_layout Plain Layout
11964 を使用してください)。これは、全ての\SpecialChar LaTeX
11966 \begin_inset Flex Code
11969 \begin_layout Plain Layout
11978 \begin_layout Description
11979 \begin_inset Flex Code
11982 \begin_layout Plain Layout
11989 \begin_inset Flex Code
11992 \begin_layout Plain Layout
11997 , Command, Environment, Item_Environment,
11998 \begin_inset Newline newline
12001 List_Environment, Bib_Environment
12006 ] レイアウトがどのように\SpecialChar LaTeX
12011 \begin_layout Plain Layout
12012 これらのルールはSGMLクラスにも適用されるので、
12013 \begin_inset Flex Code
12016 \begin_layout Plain Layout
12022 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
12023 \begin_inset Flex Code
12026 \begin_layout Plain Layout
12038 \begin_inset Separator parbreak
12045 \begin_layout Description
12046 \begin_inset Flex Code
12049 \begin_layout Plain Layout
12058 \begin_layout Description
12059 \begin_inset Flex Code
12062 \begin_layout Plain Layout
12069 \begin_inset Flex Code
12072 \begin_layout Plain Layout
12079 {\SpecialChar ldots
12088 \begin_layout Description
12089 \begin_inset Flex Code
12092 \begin_layout Plain Layout
12099 \begin_inset Flex Code
12102 \begin_layout Plain Layout
12109 }\SpecialChar ldots
12124 \begin_layout Description
12125 \begin_inset Flex Code
12128 \begin_layout Plain Layout
12135 \begin_inset Flex Code
12138 \begin_layout Plain Layout
12145 \begin_inset Flex Code
12148 \begin_layout Plain Layout
12156 がこの環境のすべての段落に付けられるところだけが異なっています。
12159 \begin_layout Description
12160 \begin_inset Flex Code
12163 \begin_layout Plain Layout
12170 \begin_inset Flex Code
12173 \begin_layout Plain Layout
12180 \begin_inset Flex Code
12183 \begin_layout Plain Layout
12189 が環境の引数として渡されるところだけが異なっています。
12190 \begin_inset Flex Code
12193 \begin_layout Plain Layout
12200 \begin_inset Flex MenuItem
12203 \begin_layout Plain Layout
12204 編集\SpecialChar menuseparator
12213 \begin_layout Description
12214 \begin_inset Flex Code
12217 \begin_layout Plain Layout
12224 \begin_inset Flex Code
12227 \begin_layout Plain Layout
12233 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
12234 \begin_inset Newline newline
12238 \begin_inset Flex Code
12241 \begin_layout Plain Layout
12244 begin{thebibliography}{99}
12250 \begin_inset Newline newline
12253 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
12256 \begin_layout Standard
12257 上記最後のいくつかをまとめると、\SpecialChar LaTeX
12258 出力は、\SpecialChar LaTeX
12262 \begin_layout LyX-Code
12265 LatexName[LatexParam]{\SpecialChar ldots
12269 \begin_layout Standard
12273 \begin_layout LyX-Code
12276 begin{LatexName}[LatexParam] \SpecialChar ldots
12282 \begin_layout Standard
12287 \begin_layout Description
12288 \begin_inset Flex Code
12291 \begin_layout Plain Layout
12298 \begin_inset Flex Code
12301 \begin_layout Plain Layout
12307 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12308 \begin_inset Flex Code
12311 \begin_layout Plain Layout
12320 \begin_layout Description
12321 \begin_inset Flex Code
12324 \begin_layout Plain Layout
12331 \begin_inset Flex Code
12334 \begin_layout Plain Layout
12340 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12341 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12344 をかけて加えられます。このパラメータは、
12345 \begin_inset Flex Code
12348 \begin_layout Plain Layout
12355 \begin_inset Flex Code
12358 \begin_layout Plain Layout
12365 \begin_inset Flex Code
12368 \begin_layout Plain Layout
12374 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12375 \begin_inset Newline newline
12379 \begin_inset Flex Code
12382 \begin_layout Plain Layout
12388 」と指定すると、段落を通常フォントの「
12389 \begin_inset Flex Code
12392 \begin_layout Plain Layout
12398 」の幅だけ行頭下げを行います。文字列の前に「
12399 \begin_inset Flex Code
12402 \begin_layout Plain Layout
12408 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12411 \begin_layout Description
12412 \begin_inset Flex Code
12415 \begin_layout Plain Layout
12422 \begin_inset Flex Code
12425 \begin_layout Plain Layout
12430 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12436 \begin_inset Newline newline
12440 \begin_inset Separator parbreak
12447 \begin_layout Description
12448 \begin_inset Flex Code
12451 \begin_layout Plain Layout
12460 \begin_layout Description
12461 \begin_inset Flex Code
12464 \begin_layout Plain Layout
12471 \begin_inset Flex MenuItem
12474 \begin_layout Plain Layout
12475 編集\SpecialChar menuseparator
12481 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12484 \begin_layout Description
12485 \begin_inset Flex Code
12488 \begin_layout Plain Layout
12494 は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12495 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12498 \begin_layout Description
12499 \begin_inset Flex Code
12502 \begin_layout Plain Layout
12508 は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12511 \begin_layout Description
12512 \begin_inset Flex Code
12515 \begin_layout Plain Layout
12521 は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12525 \begin_layout Description
12526 \begin_inset Flex Code
12529 \begin_layout Plain Layout
12536 \begin_inset Flex Code
12539 \begin_layout Plain Layout
12548 \begin_inset space \thinspace{}
12552 \begin_inset Flex Code
12555 \begin_layout Plain Layout
12561 ] このレイアウト中の脆弱なコマンドが
12562 \begin_inset Flex Code
12565 \begin_layout Plain Layout
12573 されるべきか否か(註:これはこのコマンド自体が
12574 \begin_inset Flex Code
12577 \begin_layout Plain Layout
12592 \begin_layout Description
12593 \begin_inset Flex Code
12596 \begin_layout Plain Layout
12603 \begin_inset Flex Code
12606 \begin_layout Plain Layout
12613 \begin_inset space \thinspace{}
12617 \begin_inset Flex Code
12620 \begin_layout Plain Layout
12628 ] 新規行を\SpecialChar LaTeX
12630 \begin_inset Flex Code
12633 \begin_layout Plain Layout
12643 )に変換するか否か。\SpecialChar LyX
12644 中で\SpecialChar LaTeX
12645 編集をやりやすくするために、変換は無効にすることができます。
12648 \begin_layout Description
12649 \begin_inset Flex Code
12652 \begin_layout Plain Layout
12659 \begin_inset Flex Code
12662 \begin_layout Plain Layout
12671 \begin_inset space \thinspace{}
12675 \begin_inset Flex Code
12678 \begin_layout Plain Layout
12684 ] 次の段落に最初の行の行頭下げを許すか否か。
12685 \begin_inset Flex Code
12688 \begin_layout Plain Layout
12695 \begin_inset Flex Code
12698 \begin_layout Plain Layout
12704 は望むならば行頭下げできることを意味します。
12707 \begin_layout Description
12708 \begin_inset Flex Code
12711 \begin_layout Plain Layout
12718 \begin_inset Flex Code
12721 \begin_layout Plain Layout
12727 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12730 \begin_layout Description
12731 \begin_inset Flex Code
12734 \begin_layout Plain Layout
12741 \begin_inset Flex Code
12744 \begin_layout Plain Layout
12751 \begin_inset space \thinspace{}
12755 \begin_inset Flex Code
12758 \begin_layout Plain Layout
12766 Determines whether consecutive pragraphs of the same type are treated as
12767 belonging together.
12768 This has the effect that the
12769 \begin_inset Flex Code
12772 \begin_layout Plain Layout
12780 is only printed once before such a group.
12781 By default, this is true for
12782 \begin_inset Flex Code
12785 \begin_layout Plain Layout
12794 \begin_inset Flex Code
12797 \begin_layout Plain Layout
12806 \begin_inset Flex Code
12809 \begin_layout Plain Layout
12817 and false for all other types.
12820 \begin_layout Description
12821 \begin_inset Flex Code
12824 \begin_layout Plain Layout
12831 \begin_inset Flex Code
12834 \begin_layout Plain Layout
12843 \begin_inset space \thinspace{}
12847 \begin_inset Flex Code
12850 \begin_layout Plain Layout
12856 ] \SpecialChar LaTeX
12857 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12858 \begin_inset Flex Code
12861 \begin_layout Plain Layout
12867 と併用すれば、(\SpecialChar TeX
12868 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12871 \begin_layout Description
12872 \begin_inset Flex Code
12875 \begin_layout Plain Layout
12882 \begin_inset Flex Code
12885 \begin_layout Plain Layout
12891 ] 段落の最初の行の行頭下げ。レイアウトによっては
12892 \begin_inset Flex Code
12895 \begin_layout Plain Layout
12901 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12902 \begin_inset Flex Code
12905 \begin_layout Plain Layout
12911 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12912 \begin_inset Flex Code
12915 \begin_layout Plain Layout
12922 \begin_inset Flex Code
12925 \begin_layout Plain Layout
12931 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12934 \begin_layout Description
12935 \begin_inset Flex Code
12938 \begin_layout Plain Layout
12945 \begin_inset Flex Code
12948 \begin_layout Plain Layout
12954 ] このレイアウトの2段落間の垂直余白。
12957 \begin_layout Description
12958 \begin_inset Flex Code
12961 \begin_layout Plain Layout
12968 \begin_inset Flex Code
12971 \begin_layout Plain Layout
12978 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12979 択した際には、\SpecialChar LaTeX
12981 \begin_inset Flex Code
12984 \begin_layout Plain Layout
12991 \begin_inset Flex Code
12994 \begin_layout Plain Layout
13000 引数分だけ引き離されます。垂直余白は、
13001 \begin_inset Flex Code
13004 \begin_layout Plain Layout
13010 を標準フォントでの1行の高さとすると、
13011 \begin_inset Flex Code
13014 \begin_layout Plain Layout
13021 \begin_inset Formula $\times$
13025 \begin_inset Flex Code
13028 \begin_layout Plain Layout
13034 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
13037 \begin_layout Description
13038 \begin_inset Flex Code
13041 \begin_layout Plain Layout
13050 \begin_inset Flex Code
13053 \begin_layout Plain Layout
13062 \begin_inset space \thinspace{}
13066 \begin_inset Flex Code
13069 \begin_layout Plain Layout
13075 ] この段落の内容が、\SpecialChar LaTeX
13076 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
13079 \begin_layout Description
13080 \begin_inset Flex Code
13083 \begin_layout Plain Layout
13090 \begin_inset Flex Code
13093 \begin_layout Plain Layout
13104 Defines individual characters that should be output in raw form, meaning
13105 without special translations that \SpecialChar LaTeX
13109 \begin_layout Description
13110 \begin_inset Flex Code
13113 \begin_layout Plain Layout
13119 この様式が使用されたときに、\SpecialChar LaTeX
13120 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
13121 \begin_inset Flex Code
13124 \begin_layout Plain Layout
13133 \begin_layout Description
13134 \begin_inset Flex Code
13137 \begin_layout Plain Layout
13144 \begin_inset Flex Code
13147 \begin_layout Plain Layout
13153 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
13156 \begin_layout Description
13157 \begin_inset Flex Code
13160 \begin_layout Plain Layout
13167 \begin_inset Flex Code
13170 \begin_layout Plain Layout
13177 \begin_inset Flex Code
13180 \begin_layout Plain Layout
13191 \begin_inset CommandInset ref
13193 reference "chap:関数一覧"
13199 for the list of features).
13200 If you require a package with specific options, you can additionally use
13202 \begin_inset Flex Code
13205 \begin_layout Plain Layout
13213 as a general text class parameter (see
13216 \begin_inset CommandInset ref
13218 reference "subsec:汎用テキストクラスパラメータ"
13225 \begin_layout Description
13226 \begin_inset Flex Code
13229 \begin_layout Plain Layout
13236 \begin_inset Flex Code
13239 \begin_layout Plain Layout
13248 \begin_inset Flex Code
13251 \begin_layout Plain Layout
13258 \begin_inset Flex Code
13261 \begin_layout Plain Layout
13267 タグで定義された)この様式の\SpecialChar LaTeX
13269 \begin_inset Flex Code
13272 \begin_layout Plain Layout
13278 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
13281 \begin_layout Description
13282 \begin_inset Flex Code
13285 \begin_layout Plain Layout
13292 \begin_inset Flex Code
13295 \begin_layout Plain Layout
13301 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13302 \begin_inset Flex Code
13305 \begin_layout Plain Layout
13314 \begin_layout Description
13315 \begin_inset Flex Code
13318 \begin_layout Plain Layout
13325 \begin_inset Flex Code
13328 \begin_layout Plain Layout
13335 \begin_inset Flex Code
13338 \begin_layout Plain Layout
13347 \begin_layout Description
13348 \begin_inset Flex Code
13351 \begin_layout Plain Layout
13358 \begin_inset Flex Code
13361 \begin_layout Plain Layout
13370 \begin_inset Flex Code
13373 \begin_layout Plain Layout
13380 \begin_inset Flex Code
13383 \begin_layout Plain Layout
13390 \begin_inset Flex Code
13393 \begin_layout Plain Layout
13395 \begin_inset space ~
13411 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13412 \begin_inset Flex Code
13415 \begin_layout Plain Layout
13422 \begin_inset Flex Code
13425 \begin_layout Plain Layout
13432 \begin_inset Flex Code
13435 \begin_layout Plain Layout
13441 は、それぞれ乗数1・1.25・1.667に対応します。引数
13442 \begin_inset Flex Code
13445 \begin_layout Plain Layout
13451 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13452 \begin_inset Flex Code
13455 \begin_layout Plain Layout
13461 は、\SpecialChar LaTeX
13463 \begin_inset Flex Code
13466 \begin_layout Plain Layout
13472 パッケージを使用した、限定的な\SpecialChar LaTeX
13473 コードを生成することを意味することにご注意ください。
13476 \begin_layout Description
13477 \begin_inset Flex Code
13480 \begin_layout Plain Layout
13487 \begin_inset Flex Code
13490 \begin_layout Plain Layout
13497 \begin_inset space \thinspace{}
13501 \begin_inset Flex Code
13504 \begin_layout Plain Layout
13510 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13513 \begin_layout Description
13514 \begin_inset Flex Code
13517 \begin_layout Plain Layout
13524 \begin_inset CommandInset ref
13526 reference "subsec:フォント指定"
13533 \begin_layout Description
13534 \begin_inset Flex Code
13537 \begin_layout Plain Layout
13544 \begin_inset Flex Code
13547 \begin_layout Plain Layout
13553 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13556 \begin_layout Description
13557 \begin_inset Flex Code
13560 \begin_layout Plain Layout
13569 \begin_inset Flex Code
13572 \begin_layout Plain Layout
13581 \begin_inset Flex Code
13584 \begin_layout Plain Layout
13591 \begin_inset Flex Code
13594 \begin_layout Plain Layout
13602 This tag determines whether the first line indentation of this paragraph
13603 can be toggled via the Paragraph settings dialog.
13607 \begin_inset Flex Code
13610 \begin_layout Plain Layout
13621 is set, indentation can be toggled if the document settings use
13622 \begin_inset Quotes eld
13626 \begin_inset Quotes erd
13629 paragraph style, with
13630 \begin_inset Flex Code
13633 \begin_layout Plain Layout
13641 , indentation can always be toggled, notwithstanding the document settings,
13643 \begin_inset Flex Code
13646 \begin_layout Plain Layout
13654 , indentation can never be toggled.
13657 \begin_layout Description
13658 \begin_inset Flex Code
13661 \begin_layout Plain Layout
13668 \begin_inset Flex Code
13671 \begin_layout Plain Layout
13677 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13681 \begin_layout Subsection
13683 \begin_inset CommandInset label
13685 name "subsec:段落様式の国際化"
13692 \begin_layout Standard
13694 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13695 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13699 1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13702 \begin_layout Standard
13704 \begin_inset Flex MenuItem
13707 \begin_layout Plain Layout
13713 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13714 \begin_inset Flex MenuItem
13717 \begin_layout Plain Layout
13724 \begin_inset Flex MenuItem
13727 \begin_layout Plain Layout
13733 を使用することができます。以下の抜粋(
13734 \begin_inset Flex MenuItem
13737 \begin_layout Plain Layout
13743 より)は、これがどう動作するかを示すものです。
13746 \begin_layout LyX-Code
13748 \begin_inset Separator parbreak
13755 \begin_layout LyX-Code
13758 theoremstyle{remark}
13761 \begin_layout LyX-Code
13764 newtheorem{claim}[thm]{
13771 \begin_layout LyX-Code
13775 \begin_layout LyX-Code
13779 \begin_layout LyX-Code
13784 claimname}{_(Claim)}
13787 \begin_layout LyX-Code
13791 \begin_layout LyX-Code
13795 \begin_layout LyX-Code
13804 claimname}{_(Claim)}}
13807 \begin_layout LyX-Code
13812 \begin_layout Standard
13814 \begin_inset Flex MenuItem
13817 \begin_layout Plain Layout
13824 \begin_inset Flex MenuItem
13827 \begin_layout Plain Layout
13833 タグ内には、有効な\SpecialChar LaTeX
13834 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13835 は、\SpecialChar LaTeX
13837 \begin_inset Flex Code
13840 \begin_layout Plain Layout
13849 \begin_inset Flex Code
13852 \begin_layout Plain Layout
13863 \begin_layout Standard
13864 \begin_inset Flex Code
13867 \begin_layout Plain Layout
13873 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13874 \begin_inset Flex Code
13877 \begin_layout Plain Layout
13883 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13884 \begin_inset Flex Code
13887 \begin_layout Plain Layout
13893 が使用されていることです。これは、\SpecialChar LyX
13894 が\SpecialChar LaTeX
13895 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13898 \begin_layout Standard
13899 \begin_inset Flex Code
13902 \begin_layout Plain Layout
13909 \begin_inset Flex Code
13912 \begin_layout Plain Layout
13918 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13920 \begin_inset Flex Code
13923 \begin_layout Plain Layout
13929 の引数は、その当該言語への翻訳で置き換えられ、
13930 \begin_inset Flex Code
13933 \begin_layout Plain Layout
13939 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13942 \begin_layout Standard
13943 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13946 \begin_layout LyX-Code
13955 claimname}{Affirmation}}
13956 \begin_inset Newline newline
13967 claimname}{Behauptung}}
13968 \begin_inset Newline newline
13975 claimname}{Behauptung}
13978 \begin_layout Standard
13979 それから、\SpecialChar LaTeX
13981 \begin_inset Flex Code
13984 \begin_layout Plain Layout
13990 は協力して、出力に正しい文字列を生成します。
13993 \begin_layout Standard
13994 ここで注意しておくべき一つの重要な点は、翻訳は、
13995 \begin_inset Flex Code
13998 \begin_layout Plain Layout
14004 ファイルを通じて、\SpecialChar LyX
14005 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
14006 \begin_inset Flex Code
14009 \begin_layout Plain Layout
14015 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
14016 の国際化ルーチンでは取り扱われないので、
14017 \begin_inset Flex MenuItem
14020 \begin_layout Plain Layout
14027 \begin_inset Flex MenuItem
14030 \begin_layout Plain Layout
14036 は、事実上、\SpecialChar LyX
14037 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
14039 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
14040 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
14041 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
14044 \begin_layout Subsection
14046 \begin_inset CommandInset label
14055 \begin_layout Standard
14057 第1.3.0版以来、テキストクラス自体の中でフロート(
14058 \begin_inset Flex MenuItem
14061 \begin_layout Plain Layout
14068 \begin_inset Flex MenuItem
14071 \begin_layout Plain Layout
14077 ・\SpecialChar ldots
14078 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14079 \begin_inset Flex Code
14082 \begin_layout Plain Layout
14088 ファイルに含まれているので、作業中のレイアウトファイルに
14091 \begin_layout LyX-Code
14092 Input stdfloats.inc
14095 \begin_layout Standard
14096 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
14097 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
14101 \begin_layout Description
14102 \begin_inset Flex Code
14105 \begin_layout Plain Layout
14112 \begin_inset Flex Code
14115 \begin_layout Plain Layout
14123 Allowed placement options for this float type.
14124 The value is a string of placement characters.
14125 Possible characters include:
14130 \begin_inset Quotes eld
14134 \begin_inset Quotes erd
14142 \begin_inset Quotes eld
14146 \begin_inset Quotes erd
14154 \begin_inset Quotes eld
14158 \begin_inset Quotes erd
14166 \begin_inset Quotes eld
14170 \begin_inset Quotes erd
14178 \begin_inset Quotes eld
14182 \begin_inset Quotes erd
14190 \begin_inset Quotes eld
14194 \begin_inset Quotes erd
14198 The order of the characters in the string does not matter.
14199 If no placement options are allowed, use the string
14206 \begin_layout Description
14207 \begin_inset Flex Code
14210 \begin_layout Plain Layout
14217 \begin_inset Flex Code
14220 \begin_layout Plain Layout
14227 \begin_inset space \thinspace{}
14233 \begin_inset Flex Code
14236 \begin_layout Plain Layout
14246 Defines whether the float allows to be rotated via the \SpecialChar LaTeX
14253 \begin_inset Flex Code
14256 \begin_layout Plain Layout
14264 if the float does not support this feature.
14267 \begin_layout Description
14268 \begin_inset Flex Code
14271 \begin_layout Plain Layout
14278 \begin_inset Flex Code
14281 \begin_layout Plain Layout
14288 \begin_inset space \thinspace{}
14294 \begin_inset Flex Code
14297 \begin_layout Plain Layout
14307 Defines whether the float has a starred variant that spans columns in a
14308 two column paragraph.
14310 \begin_inset Flex Code
14313 \begin_layout Plain Layout
14321 if the float does not support this feature.
14324 \begin_layout Description
14325 \begin_inset Flex Code
14328 \begin_layout Plain Layout
14335 \begin_inset Flex Code
14338 \begin_layout Plain Layout
14345 \begin_inset Quotes erd
14349 \begin_inset Quotes erd
14352 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14353 がキャプションを書き込むファイルです。
14356 \begin_layout Description
14357 \begin_inset Flex Code
14360 \begin_layout Plain Layout
14367 \begin_inset Flex Code
14370 \begin_layout Plain Layout
14377 \begin_inset Quotes erd
14381 \begin_inset Quotes erd
14384 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14387 \begin_layout Description
14388 \begin_inset Flex Code
14391 \begin_layout Plain Layout
14397 これらは、XHTML出力で使用されます。
14398 \begin_inset CommandInset ref
14400 reference "sec:XHTML出力のタグ"
14407 \begin_layout Description
14408 \begin_inset Flex Code
14411 \begin_layout Plain Layout
14418 \begin_inset Flex Code
14421 \begin_layout Plain Layout
14430 \begin_inset space \thinspace{}
14434 \begin_inset Flex Code
14437 \begin_layout Plain Layout
14443 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14445 \begin_inset Flex Code
14448 \begin_layout Plain Layout
14454 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14455 \begin_inset Flex Code
14458 \begin_layout Plain Layout
14465 \begin_inset Flex Code
14468 \begin_layout Plain Layout
14474 を使用します。\SpecialChar LaTeX
14475 ドキュメントクラス中に既に定義されているときには、
14476 \begin_inset Flex Code
14479 \begin_layout Plain Layout
14488 \begin_layout Description
14489 \begin_inset Flex Code
14492 \begin_layout Plain Layout
14499 \begin_inset Flex Code
14502 \begin_layout Plain Layout
14509 \begin_inset Quotes erd
14513 \begin_inset Quotes erd
14516 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14519 \begin_inset Flex Code
14522 \begin_layout Plain Layout
14528 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14533 \begin_inset Flex Code
14536 \begin_layout Plain Layout
14542 が真の時は、標準的な方法が存在するので、これは無視されます。
14545 \begin_layout Description
14546 \begin_inset Flex Code
14549 \begin_layout Plain Layout
14556 \begin_inset Flex Code
14559 \begin_layout Plain Layout
14566 \begin_inset Quotes erd
14570 \begin_inset Quotes erd
14573 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14574 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14576 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14579 \begin_layout Description
14580 \begin_inset Flex Code
14583 \begin_layout Plain Layout
14590 \begin_inset Flex Code
14593 \begin_layout Plain Layout
14600 \begin_inset Quotes erd
14604 \begin_inset Quotes erd
14607 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14608 \begin_inset Flex Code
14611 \begin_layout Plain Layout
14618 \begin_inset Flex Code
14621 \begin_layout Plain Layout
14627 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14630 \begin_layout Description
14631 \begin_inset Flex Code
14634 \begin_layout Plain Layout
14641 \begin_inset Flex Code
14644 \begin_layout Plain Layout
14651 \begin_inset Quotes erd
14655 \begin_inset Quotes erd
14658 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14660 \begin_inset Flex Code
14663 \begin_layout Plain Layout
14670 \begin_inset Flex Code
14673 \begin_layout Plain Layout
14680 \begin_inset Flex Code
14683 \begin_layout Plain Layout
14690 \begin_inset Flex Code
14693 \begin_layout Plain Layout
14703 \begin_layout Plain Layout
14705 同様、文字列中でのこれらの文字の順序は関係ありません。
14711 \begin_inset Flex Code
14714 \begin_layout Plain Layout
14720 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14721 \begin_inset Flex Code
14724 \begin_layout Plain Layout
14730 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14732 \begin_inset Flex Code
14735 \begin_layout Plain Layout
14744 \begin_layout Description
14745 \begin_inset Flex Code
14748 \begin_layout Plain Layout
14755 \begin_inset Flex Code
14758 \begin_layout Plain Layout
14764 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14765 \begin_inset Flex Code
14768 \begin_layout Plain Layout
14774 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14777 \begin_layout Description
14778 \begin_inset Flex Code
14781 \begin_layout Plain Layout
14788 \begin_inset Flex Code
14791 \begin_layout Plain Layout
14798 \begin_inset Quotes erd
14802 \begin_inset Quotes erd
14806 \begin_inset Flex Code
14809 \begin_layout Plain Layout
14817 を使用してフロートを定義する際に使用される様式。
14820 \begin_layout Description
14821 \begin_inset Flex Code
14824 \begin_layout Plain Layout
14831 \begin_inset Flex Code
14834 \begin_layout Plain Layout
14841 \begin_inset Quotes erd
14845 \begin_inset Quotes erd
14848 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14849 \begin_inset Flex Code
14852 \begin_layout Plain Layout
14861 \begin_inset Flex Code
14864 \begin_layout Plain Layout
14873 \begin_inset Flex Code
14876 \begin_layout Plain Layout
14887 \begin_layout Description
14888 \begin_inset Flex Code
14891 \begin_layout Plain Layout
14898 \begin_inset Flex Code
14901 \begin_layout Plain Layout
14908 \begin_inset space \thinspace{}
14912 \begin_inset Flex Code
14915 \begin_layout Plain Layout
14923 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14925 \begin_inset Flex Code
14928 \begin_layout Plain Layout
14934 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14935 自身がオン・ザ・フライで定義しているのかを示します。
14938 \begin_layout Standard
14939 \begin_inset Flex Code
14942 \begin_layout Plain Layout
14955 \begin_inset Flex Code
14958 \begin_layout Plain Layout
14969 \begin_layout Subsection
14971 \begin_inset CommandInset label
14973 name "subsec:任意設定差込枠"
14980 \begin_layout Standard
14984 \begin_layout Itemize
14986 \begin_inset Flex Code
14989 \begin_layout Plain Layout
14996 \begin_inset Flex Code
14999 \begin_layout Plain Layout
15008 \begin_inset Flex Code
15011 \begin_layout Plain Layout
15019 などの\SpecialChar LaTeX
15020 コマンドに対応した意味論的マークアップを定義するものです。
15023 \begin_layout Itemize
15025 \begin_inset Flex Code
15028 \begin_layout Plain Layout
15034 )。これは、\SpecialChar TeX
15035 コードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
15036 \begin_inset Flex Code
15039 \begin_layout Plain Layout
15048 \begin_layout Itemize
15050 \begin_inset Flex Code
15053 \begin_layout Plain Layout
15059 )。DocBookクラスで使用するものです。
15062 \begin_layout Standard
15064 \begin_inset Flex Code
15067 \begin_layout Plain Layout
15076 \begin_layout Standard
15077 \begin_inset Flex Code
15080 \begin_layout Plain Layout
15086 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
15087 \begin_inset Flex Code
15090 \begin_layout Plain Layout
15096 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・\SpecialChar TeX
15097 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15101 \begin_layout Standard
15102 \begin_inset Flex Code
15105 \begin_layout Plain Layout
15111 定義は以下の形の行では始まらなくてはなりません。
15114 \begin_layout LyX-Code
15118 \begin_layout Standard
15120 \begin_inset Flex Code
15123 \begin_layout Plain Layout
15129 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
15132 \begin_layout Enumerate
15133 既存の差込枠のレイアウトを変更する場合。この場合、
15134 \begin_inset Flex Code
15137 \begin_layout Plain Layout
15144 \begin_inset Flex Code
15147 \begin_layout Plain Layout
15154 \begin_inset Flex Code
15157 \begin_layout Plain Layout
15164 \begin_inset Flex Code
15167 \begin_layout Plain Layout
15174 \begin_inset Flex Code
15177 \begin_layout Plain Layout
15184 \begin_inset Flex Code
15187 \begin_layout Plain Layout
15194 \begin_inset Flex Code
15197 \begin_layout Plain Layout
15204 \begin_inset Flex Code
15207 \begin_layout Plain Layout
15214 \begin_inset Flex Code
15217 \begin_layout Plain Layout
15224 \begin_inset Flex Code
15227 \begin_layout Plain Layout
15234 \begin_inset Flex Code
15237 \begin_layout Plain Layout
15244 \begin_inset Flex Code
15247 \begin_layout Plain Layout
15254 \begin_inset Flex Code
15257 \begin_layout Plain Layout
15264 \begin_inset Flex Code
15267 \begin_layout Plain Layout
15274 \begin_inset Flex Code
15277 \begin_layout Plain Layout
15284 \begin_inset Flex Code
15287 \begin_layout Plain Layout
15294 \begin_inset Flex Code
15297 \begin_layout Plain Layout
15304 \begin_inset Flex Code
15307 \begin_layout Plain Layout
15314 \begin_inset Flex Code
15317 \begin_layout Plain Layout
15324 \begin_inset Flex Code
15327 \begin_layout Plain Layout
15334 \begin_inset Flex Code
15337 \begin_layout Plain Layout
15346 \begin_layout Enumerate
15347 自由差込枠のレイアウトを定義する場合。この場合、
15348 \begin_inset Flex Code
15351 \begin_layout Plain Layout
15358 \begin_inset Flex Code
15361 \begin_layout Plain Layout
15368 \begin_inset Flex Code
15371 \begin_layout Plain Layout
15377 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15378 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15379 \begin_inset Flex Code
15382 \begin_layout Plain Layout
15389 項目が含まれていなくてはならないことに注意してください。
15392 \begin_layout Enumerate
15393 ユーザー定義派生枝を定義する場合。この場合、
15394 \begin_inset Flex Code
15397 \begin_layout Plain Layout
15404 \begin_inset Flex Code
15407 \begin_layout Plain Layout
15414 \begin_inset Flex Code
15417 \begin_layout Plain Layout
15423 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15424 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15425 がくるむことができるようにすることです。
15428 \begin_layout Enumerate
15429 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15430 \begin_inset Flex Code
15433 \begin_layout Plain Layout
15440 \begin_inset Flex Code
15443 \begin_layout Plain Layout
15450 \begin_inset Flex Code
15453 \begin_layout Plain Layout
15459 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15460 \begin_inset Flex Code
15463 \begin_layout Plain Layout
15469 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15470 \begin_inset Flex Code
15473 \begin_layout Plain Layout
15480 \begin_inset Flex Code
15483 \begin_layout Plain Layout
15494 \begin_inset Flex Code
15497 \begin_layout Plain Layout
15506 \begin_layout Standard
15507 \begin_inset Flex Code
15510 \begin_layout Plain Layout
15516 定義には以下の項目を入れることができます。
15519 \begin_layout Description
15520 \begin_inset Flex Code
15523 \begin_layout Plain Layout
15530 \begin_inset Flex Code
15533 \begin_layout Plain Layout
15539 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15540 \begin_inset Flex Code
15543 \begin_layout Plain Layout
15550 \begin_inset CommandInset ref
15552 reference "subsec:段落様式"
15559 \begin_layout Description
15560 \begin_inset Flex Code
15563 \begin_layout Plain Layout
15570 \begin_inset CommandInset ref
15572 reference "subsec:段落様式の国際化"
15579 \begin_layout Description
15580 \begin_inset Flex Code
15583 \begin_layout Plain Layout
15590 \begin_inset Flex Code
15593 \begin_layout Plain Layout
15599 ] 差込枠の背景色。使用できる色名一覧は
15600 \begin_inset CommandInset ref
15602 reference "chap:色名"
15609 \begin_layout Description
15610 \begin_inset Flex Code
15613 \begin_layout Plain Layout
15620 \begin_inset Flex Code
15623 \begin_layout Plain Layout
15632 \begin_inset space \thinspace{}
15636 \begin_inset Flex Code
15639 \begin_layout Plain Layout
15645 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15648 \begin_layout Description
15649 \begin_inset Flex Code
15652 \begin_layout Plain Layout
15659 \begin_inset CommandInset ref
15661 reference "subsec:段落様式"
15665 参照のこと。完全な型を指定する必要があることに注意してください。例:
15666 \begin_inset Flex Code
15669 \begin_layout Plain Layout
15670 CopyStyle Flex:<名称>
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 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15717 \begin_layout Description
15718 \begin_inset Flex Code
15721 \begin_layout Plain Layout
15727 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15728 \begin_inset Flex Code
15731 \begin_layout Plain Layout
15738 \begin_inset Flex Code
15741 \begin_layout Plain Layout
15748 \begin_inset Flex Code
15751 \begin_layout Plain Layout
15757 のいずれかを指定することができます。脚注は通常
15758 \begin_inset Flex Code
15761 \begin_layout Plain Layout
15767 を使用し、\SpecialChar TeX
15769 \begin_inset Flex Code
15772 \begin_layout Plain Layout
15779 \begin_inset Flex Code
15782 \begin_layout Plain Layout
15791 \begin_layout Description
15792 \begin_inset Flex Code
15795 \begin_layout Plain Layout
15802 \begin_inset Flex Code
15805 \begin_layout Plain Layout
15812 \begin_inset space \thinspace{}
15816 \begin_inset Flex Code
15819 \begin_layout Plain Layout
15828 \begin_inset Flex Code
15831 \begin_layout Plain Layout
15838 \begin_inset Flex Code
15841 \begin_layout Plain Layout
15847 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15849 \begin_inset Flex Code
15852 \begin_layout Plain Layout
15861 \begin_inset Flex Code
15864 \begin_layout Plain Layout
15872 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15875 \begin_layout Description
15876 \begin_inset Flex Code
15879 \begin_layout Plain Layout
15886 \begin_inset Flex Code
15889 \begin_layout Plain Layout
15898 \begin_layout Description
15899 \begin_inset Flex Code
15902 \begin_layout Plain Layout
15913 \begin_inset CommandInset ref
15915 reference "subsec:フォント指定"
15919 を参照。このフォントを定義すると自動的に
15920 \begin_inset Flex Code
15923 \begin_layout Plain Layout
15929 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15930 \begin_inset Flex Code
15933 \begin_layout Plain Layout
15939 を定義しなくてはならないことに注意してください。
15942 \begin_layout Description
15943 \begin_inset Flex Code
15946 \begin_layout Plain Layout
15947 FixedWidthPreambleEncoding
15953 \begin_inset Flex Code
15956 \begin_layout Plain Layout
15965 \begin_inset space \thinspace{}
15969 \begin_inset Flex Code
15972 \begin_layout Plain Layout
15980 Force a fixed width encoding for the translated contents of
15981 \begin_inset Flex Code
15984 \begin_layout Plain Layout
15993 \begin_inset Flex Code
15996 \begin_layout Plain Layout
16004 code generated by this layout.
16005 This is needed for special \SpecialChar LaTeX
16010 that do not work with variable width encodings such as
16015 This setting is ignored if fully Unicode aware \SpecialChar LaTeX
16019 or Lua\SpecialChar TeX
16025 \begin_layout Description
16026 \begin_inset Flex Code
16029 \begin_layout Plain Layout
16030 ForceLocalFontSwitch
16036 \begin_inset Flex Code
16039 \begin_layout Plain Layout
16048 \begin_inset space \thinspace{}
16052 \begin_inset Flex Code
16055 \begin_layout Plain Layout
16061 ] babel使用時に、常にローカルフォント切替(
16062 \begin_inset Flex Code
16065 \begin_layout Plain Layout
16074 \begin_inset Flex Code
16077 \begin_layout Plain Layout
16088 \begin_layout Description
16089 \begin_inset Flex Code
16092 \begin_layout Plain Layout
16099 \begin_inset Flex Code
16102 \begin_layout Plain Layout
16111 \begin_inset space \thinspace{}
16115 \begin_inset Flex Code
16118 \begin_layout Plain Layout
16124 ] たとえば\SpecialChar TeX
16125 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
16128 \begin_layout Description
16129 \begin_inset Flex Code
16132 \begin_layout Plain Layout
16139 \begin_inset Flex Code
16142 \begin_layout Plain Layout
16151 \begin_inset space \thinspace{}
16155 \begin_inset Flex Code
16158 \begin_layout Plain Layout
16166 Force a a line break in the \SpecialChar LaTeX
16167 output before the inset starts and after the
16169 This assures the inset itself is output on its own lines, for parsing purposes.
16172 \begin_layout Description
16173 \begin_inset Flex Code
16176 \begin_layout Plain Layout
16183 \begin_inset Flex Code
16186 \begin_layout Plain Layout
16195 \begin_inset space \thinspace{}
16199 \begin_inset Flex Code
16202 \begin_layout Plain Layout
16208 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
16211 \begin_layout Description
16212 \begin_inset Flex Code
16215 \begin_layout Plain Layout
16224 \begin_inset Flex Code
16227 \begin_layout Plain Layout
16236 \begin_inset space \thinspace{}
16240 \begin_inset Flex Code
16243 \begin_layout Plain Layout
16250 \begin_inset CommandInset ref
16252 reference "subsec:段落様式"
16259 \begin_layout Description
16260 \begin_inset Flex Code
16263 \begin_layout Plain Layout
16269 これらは、XHTML出力で使用されます。
16270 \begin_inset CommandInset ref
16272 reference "sec:XHTML出力のタグ"
16279 \begin_layout Description
16280 \begin_inset Flex Code
16283 \begin_layout Plain Layout
16290 \begin_inset Flex Code
16293 \begin_layout Plain Layout
16302 \begin_inset space \thinspace{}
16306 \begin_inset Flex Code
16309 \begin_layout Plain Layout
16315 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
16316 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
16319 \begin_layout Description
16320 \begin_inset Flex Code
16323 \begin_layout Plain Layout
16332 \begin_inset Flex Code
16335 \begin_layout Plain Layout
16344 \begin_inset space \thinspace{}
16348 \begin_inset Flex Code
16351 \begin_layout Plain Layout
16358 \begin_inset CommandInset ref
16360 reference "subsec:段落様式"
16367 \begin_layout Description
16368 \begin_inset Flex Code
16371 \begin_layout Plain Layout
16378 \begin_inset CommandInset ref
16380 reference "subsec:フォント指定"
16384 節を参照。非効率を回避するため、この定義は
16385 \begin_inset Flex Code
16388 \begin_layout Plain Layout
16397 \begin_layout Description
16398 \begin_inset Flex Code
16401 \begin_layout Plain Layout
16408 \begin_inset Flex Code
16411 \begin_layout Plain Layout
16418 \begin_inset Quotes erd
16422 \begin_inset Quotes erd
16429 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16430 コードや派生枝)、ラベルが動的に変更されます。
16433 \begin_layout Description
16434 \begin_inset Flex Code
16437 \begin_layout Plain Layout
16444 \begin_inset CommandInset ref
16446 reference "subsec:段落様式の国際化"
16453 \begin_layout Description
16454 \begin_inset Flex Code
16457 \begin_layout Plain Layout
16464 \begin_inset Flex Code
16467 \begin_layout Plain Layout
16473 ] 対応する\SpecialChar LaTeX
16474 関連物の名称。環境名ないしはコマンド名。
16477 \begin_layout Description
16478 \begin_inset Flex Code
16481 \begin_layout Plain Layout
16488 \begin_inset Flex Code
16491 \begin_layout Plain Layout
16502 \begin_inset Flex Code
16505 \begin_layout Plain Layout
16512 \begin_inset Flex Code
16515 \begin_layout Plain Layout
16521 のような括弧対を含む。このパラメータは\SpecialChar LyX
16522 内部から変更することはできません(変更可能なパラメータには
16523 \begin_inset Flex Code
16526 \begin_layout Plain Layout
16532 を使用してください)。これは、全ての\SpecialChar LaTeX
16534 \begin_inset Flex Code
16537 \begin_layout Plain Layout
16546 \begin_layout Description
16547 \begin_inset Flex Code
16550 \begin_layout Plain Layout
16557 \begin_inset Flex Code
16560 \begin_layout Plain Layout
16561 Command, Environment, None
16566 ] 様式がどのように\SpecialChar LaTeX
16571 \begin_layout Plain Layout
16572 これらのルールはSGMLクラスにも適用されるので、
16573 \begin_inset Flex Code
16576 \begin_layout Plain Layout
16582 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16588 \begin_inset Separator parbreak
16595 \begin_layout Description
16596 \begin_inset Flex Code
16599 \begin_layout Plain Layout
16608 \begin_layout Description
16609 \begin_inset Flex Code
16612 \begin_layout Plain Layout
16619 \begin_inset Flex Code
16622 \begin_layout Plain Layout
16629 {\SpecialChar ldots
16638 \begin_layout Description
16639 \begin_inset Flex Code
16642 \begin_layout Plain Layout
16649 \begin_inset Flex Code
16652 \begin_layout Plain Layout
16659 }\SpecialChar ldots
16674 \begin_layout Standard
16675 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16676 出力は、\SpecialChar LaTeX
16680 \begin_layout LyX-Code
16683 LatexName[LatexParam]{\SpecialChar ldots
16687 \begin_layout Standard
16691 \begin_layout LyX-Code
16694 begin{LatexName}[LatexParam] \SpecialChar ldots
16700 \begin_layout Standard
16705 \begin_layout Description
16706 \begin_inset Flex Code
16709 \begin_layout Plain Layout
16716 \begin_inset Flex Code
16719 \begin_layout Plain Layout
16725 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16726 \begin_inset Flex Code
16729 \begin_layout Plain Layout
16738 \begin_layout Description
16739 \begin_inset Flex Code
16742 \begin_layout Plain Layout
16749 \begin_inset Flex Code
16752 \begin_layout Plain Layout
16759 \begin_inset Flex Code
16762 \begin_layout Plain Layout
16769 \begin_inset Flex Code
16772 \begin_layout Plain Layout
16779 \begin_inset Flex Code
16782 \begin_layout Plain Layout
16788 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16789 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16790 \begin_inset Flex Code
16793 \begin_layout Plain Layout
16800 \begin_inset Flex Code
16803 \begin_layout Plain Layout
16810 \begin_inset Flex Code
16813 \begin_layout Plain Layout
16820 \begin_inset Flex Code
16823 \begin_layout Plain Layout
16830 \begin_inset Flex Code
16833 \begin_layout Plain Layout
16843 設定すれば、真に設定することができます。
16846 \begin_layout Description
16847 \begin_inset Flex Code
16850 \begin_layout Plain Layout
16857 \begin_inset Flex Code
16860 \begin_layout Plain Layout
16869 \begin_inset space \thinspace{}
16873 \begin_inset Flex Code
16876 \begin_layout Plain Layout
16882 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16883 \begin_inset Flex Code
16886 \begin_layout Plain Layout
16893 \begin_inset Flex Code
16896 \begin_layout Plain Layout
16903 \begin_inset Flex Code
16906 \begin_layout Plain Layout
16916 指定されれば、他の値に指定し直すことができます。既定値は真です。
16919 \begin_layout Description
16920 \begin_inset Flex Code
16923 \begin_layout Plain Layout
16930 \begin_inset Flex Code
16933 \begin_layout Plain Layout
16942 \begin_inset space \thinspace{}
16946 \begin_inset Flex Code
16949 \begin_layout Plain Layout
16956 \begin_inset Flex Code
16959 \begin_layout Plain Layout
16967 するか否か(註:当該コマンド自身をprotectするかどうかでは
16974 \begin_layout Description
16975 \begin_inset Flex Code
16978 \begin_layout Plain Layout
16985 \begin_inset Flex Code
16988 \begin_layout Plain Layout
16995 \begin_inset Flex Code
16998 \begin_layout Plain Layout
17007 \begin_layout Description
17008 \begin_inset Flex Code
17011 \begin_layout Plain Layout
17018 \begin_inset Flex Code
17021 \begin_layout Plain Layout
17030 \begin_inset Flex Code
17033 \begin_layout Plain Layout
17041 that has replaced this
17042 \begin_inset Flex Code
17045 \begin_layout Plain Layout
17054 This is used to rename an
17055 \begin_inset Flex Code
17058 \begin_layout Plain Layout
17066 , while keeping backward compatibility.
17069 \begin_layout Description
17070 \begin_inset Flex Code
17073 \begin_layout Plain Layout
17080 \begin_inset Flex Code
17083 \begin_layout Plain Layout
17092 \begin_inset space \thinspace{}
17096 \begin_inset Flex Code
17099 \begin_layout Plain Layout
17106 \begin_inset CommandInset ref
17108 reference "subsec:段落様式"
17115 \begin_layout Description
17116 \begin_inset Flex Code
17119 \begin_layout Plain Layout
17128 \begin_inset Flex Code
17131 \begin_layout Plain Layout
17140 \begin_inset space \thinspace{}
17144 \begin_inset Flex Code
17147 \begin_layout Plain Layout
17154 \begin_inset CommandInset ref
17156 reference "subsec:段落様式"
17163 \begin_layout Description
17164 \begin_inset Flex Code
17167 \begin_layout Plain Layout
17174 \begin_inset CommandInset ref
17176 reference "subsec:段落様式"
17183 \begin_layout Description
17184 \begin_inset Flex Code
17187 \begin_layout Plain Layout
17194 \begin_inset Flex Code
17197 \begin_layout Plain Layout
17203 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
17206 \begin_layout Description
17207 \begin_inset Flex Code
17210 \begin_layout Plain Layout
17217 \begin_inset Flex Code
17220 \begin_layout Plain Layout
17227 \begin_inset CommandInset ref
17229 reference "subsec:段落様式"
17236 \begin_layout Description
17237 \begin_inset Flex Code
17240 \begin_layout Plain Layout
17247 \begin_inset Flex Code
17250 \begin_layout Plain Layout
17259 \begin_inset space \thinspace{}
17263 \begin_inset Flex Code
17266 \begin_layout Plain Layout
17273 \begin_inset Flex Code
17276 \begin_layout Plain Layout
17282 タグで定義された)この様式の\SpecialChar LaTeX
17284 \begin_inset Flex Code
17287 \begin_layout Plain Layout
17293 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
17296 \begin_layout Description
17297 \begin_inset Flex Code
17300 \begin_layout Plain Layout
17307 \begin_inset Flex Code
17310 \begin_layout Plain Layout
17317 \begin_inset space \thinspace{}
17321 \begin_inset Flex Code
17324 \begin_layout Plain Layout
17332 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
17333 \begin_inset Note Note
17336 \begin_layout Plain Layout
17337 This is outdated: The default changed from 1 to 0
17345 \begin_layout Description
17346 \begin_inset Flex Code
17349 \begin_layout Plain Layout
17356 \begin_inset Flex Code
17359 \begin_layout Plain Layout
17365 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17366 \begin_inset Flex Code
17369 \begin_layout Plain Layout
17378 \begin_layout Description
17379 \begin_inset Flex Code
17382 \begin_layout Plain Layout
17389 \begin_inset Flex Code
17392 \begin_layout Plain Layout
17399 \begin_inset space \thinspace{}
17403 \begin_inset Flex Code
17406 \begin_layout Plain Layout
17414 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17417 \begin_layout Subsection
17419 \begin_inset CommandInset label
17428 \begin_layout Standard
17430 \begin_inset Flex MenuItem
17433 \begin_layout Plain Layout
17440 \begin_inset Flex MenuItem
17443 \begin_layout Plain Layout
17449 ・\SpecialChar ldots
17450 )を定義することが必要です。標準的なカウンタは
17451 \begin_inset Flex Code
17454 \begin_layout Plain Layout
17460 ファイルに含まれているので、作業中のレイアウトファイルに
17463 \begin_layout LyX-Code
17464 Input stdcounters.inc
17467 \begin_layout Standard
17468 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17471 \begin_layout LyX-Code
17475 \begin_layout Standard
17477 \begin_inset Flex Code
17480 \begin_layout Plain Layout
17486 」は、実際のカウンタ名で置き換えます。また、宣言は「
17487 \begin_inset Flex Code
17490 \begin_layout Plain Layout
17499 \begin_layout Standard
17500 以下のパラメータを使用することができます。
17503 \begin_layout Description
17504 \begin_inset Flex Code
17507 \begin_layout Plain Layout
17514 \begin_inset Flex Code
17517 \begin_layout Plain Layout
17523 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17526 \begin_layout Description
17527 \begin_inset Flex Code
17530 \begin_layout Plain Layout
17531 LabelString [文字列=""]
17536 定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17537 \begin_inset Flex Code
17540 \begin_layout Plain Layout
17541 LabelStringAppendix
17546 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17547 \begin_inset Separator parbreak
17554 \begin_layout Itemize
17555 \begin_inset Flex Code
17558 \begin_layout Plain Layout
17567 \begin_inset Flex Code
17570 \begin_layout Plain Layout
17577 \begin_inset Flex Code
17580 \begin_layout Plain Layout
17587 \begin_inset Newline linebreak
17591 \begin_inset Flex Code
17594 \begin_layout Plain Layout
17595 LabelStringAppendix
17603 \begin_layout Itemize
17604 カウンタ値は、\SpecialChar LaTeX
17606 \begin_inset Flex Code
17609 \begin_layout Plain Layout
17625 を用いて表現することができます。ここで
17626 \begin_inset Flex Code
17629 \begin_layout Plain Layout
17638 \begin_inset Flex Code
17641 \begin_layout Plain Layout
17647 :1, 2, 3,\SpecialChar ldots
17649 \begin_inset Flex Code
17652 \begin_layout Plain Layout
17658 :a, b, c, \SpecialChar ldots
17660 \begin_inset Flex Code
17663 \begin_layout Plain Layout
17669 :A, B, C, \SpecialChar ldots
17671 \begin_inset Flex Code
17674 \begin_layout Plain Layout
17680 :i, ii, iii, \SpecialChar ldots
17682 \begin_inset Flex Code
17685 \begin_layout Plain Layout
17691 :I, II, III\SpecialChar ldots
17696 \begin_layout Standard
17697 \begin_inset Flex Code
17700 \begin_layout Plain Layout
17706 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17707 \begin_inset Flex Code
17710 \begin_layout Plain Layout
17717 \begin_inset Flex Code
17720 \begin_layout Plain Layout
17727 \begin_inset Newline linebreak
17731 \begin_inset Flex Code
17734 \begin_layout Plain Layout
17745 \begin_inset Flex Code
17748 \begin_layout Plain Layout
17759 \begin_layout Description
17760 \begin_inset Flex Code
17763 \begin_layout Plain Layout
17764 LabelStringAppendix
17770 \begin_inset Flex Code
17773 \begin_layout Plain Layout
17780 \begin_inset Flex Code
17783 \begin_layout Plain Layout
17789 と同様ですが、付録で使用するためのものです。
17792 \begin_layout Description
17793 \begin_inset Flex Code
17796 \begin_layout Plain Layout
17803 \begin_inset Flex Code
17806 \begin_layout Plain Layout
17813 \begin_inset Quotes erd
17817 \begin_inset Quotes erd
17820 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17821 \begin_inset space ~
17824 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17828 \begin_layout Description
17829 \begin_inset Flex Code
17832 \begin_layout Plain Layout
17839 \begin_inset Flex Code
17842 \begin_layout Plain Layout
17849 \begin_inset Quotes erd
17853 \begin_inset Quotes erd
17856 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17857 \begin_inset Flex Code
17860 \begin_layout Plain Layout
17867 \begin_inset Flex Code
17870 \begin_layout Plain Layout
17879 \begin_layout Subsection
17881 \begin_inset CommandInset label
17883 name "subsec:フォント指定"
17890 \begin_layout Standard
17891 フォント指定は、以下のような形を取ります。
17894 \begin_layout LyX-Code
17910 \begin_layout LyX-Code
17914 \begin_layout LyX-Code
17918 \begin_layout Standard
17919 以下のコマンドを使用することができます。
17922 \begin_layout Description
17923 \begin_inset Flex Code
17926 \begin_layout Plain Layout
17933 \begin_inset Flex Code
17936 \begin_layout Plain Layout
17945 \begin_inset Flex Code
17948 \begin_layout Plain Layout
17955 \begin_inset Flex Code
17958 \begin_layout Plain Layout
17965 \begin_inset Flex Code
17968 \begin_layout Plain Layout
17975 \begin_inset Flex Code
17978 \begin_layout Plain Layout
17985 \begin_inset Flex Code
17988 \begin_layout Plain Layout
17995 \begin_inset Flex Code
17998 \begin_layout Plain Layout
18005 \begin_inset Flex Code
18008 \begin_layout Plain Layout
18015 \begin_inset Flex Code
18018 \begin_layout Plain Layout
18027 \begin_layout Description
18028 \begin_inset Flex Code
18031 \begin_layout Plain Layout
18040 \begin_inset Flex Code
18043 \begin_layout Plain Layout
18052 \begin_inset Flex Code
18055 \begin_layout Plain Layout
18062 \begin_inset Flex Code
18065 \begin_layout Plain Layout
18074 \begin_layout Description
18075 \begin_inset Flex Code
18078 \begin_layout Plain Layout
18085 \begin_inset Flex Code
18088 \begin_layout Plain Layout
18095 \begin_inset Flex Code
18098 \begin_layout Plain Layout
18105 \begin_inset Flex Code
18108 \begin_layout Plain Layout
18115 \begin_inset Flex Code
18118 \begin_layout Plain Layout
18125 \begin_inset Flex Code
18128 \begin_layout Plain Layout
18135 \begin_inset Flex Code
18138 \begin_layout Plain Layout
18145 \begin_inset Flex Code
18148 \begin_layout Plain Layout
18155 \begin_inset Flex Code
18158 \begin_layout Plain Layout
18165 \begin_inset Flex Code
18168 \begin_layout Plain Layout
18175 \begin_inset Flex Code
18178 \begin_layout Plain Layout
18185 \begin_inset Flex Code
18188 \begin_layout Plain Layout
18195 \begin_inset Flex Code
18198 \begin_layout Plain Layout
18205 \begin_inset Flex Code
18208 \begin_layout Plain Layout
18214 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
18215 \begin_inset Newline newline
18219 \begin_inset Flex Code
18222 \begin_layout Plain Layout
18229 \begin_inset Flex Code
18232 \begin_layout Plain Layout
18238 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
18240 \begin_inset Flex Code
18243 \begin_layout Plain Layout
18249 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
18252 \begin_layout Description
18253 \begin_inset Flex Code
18256 \begin_layout Plain Layout
18265 \begin_inset Flex Code
18268 \begin_layout Plain Layout
18277 \begin_inset Flex Code
18280 \begin_layout Plain Layout
18289 \begin_layout Description
18290 \begin_inset Flex Code
18293 \begin_layout Plain Layout
18302 \begin_inset Flex Code
18305 \begin_layout Plain Layout
18314 \begin_inset Flex Code
18317 \begin_layout Plain Layout
18324 \begin_inset Flex Code
18327 \begin_layout Plain Layout
18334 \begin_inset Flex Code
18337 \begin_layout Plain Layout
18346 \begin_layout Description
18347 \begin_inset Flex Code
18350 \begin_layout Plain Layout
18357 \begin_inset Flex Code
18360 \begin_layout Plain Layout
18367 \begin_inset Flex Code
18370 \begin_layout Plain Layout
18377 \begin_inset Flex Code
18380 \begin_layout Plain Layout
18389 \begin_inset Flex Code
18392 \begin_layout Plain Layout
18399 \begin_inset Flex Code
18402 \begin_layout Plain Layout
18409 \begin_inset Flex Code
18412 \begin_layout Plain Layout
18419 \begin_inset Flex Code
18422 \begin_layout Plain Layout
18429 \begin_inset Flex Code
18432 \begin_layout Plain Layout
18441 \begin_layout Subsection
18442 \begin_inset CommandInset label
18444 name "subsec:引用書式指定"
18451 \begin_layout Standard
18452 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18453 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18454 \begin_inset Flex Code
18457 \begin_layout Plain Layout
18463 ブロックが使用されています。このブロックは、以下のような形をしています。
18466 \begin_layout LyX-Code
18470 \begin_layout LyX-Code
18474 \begin_layout LyX-Code
18478 \begin_layout LyX-Code
18482 \begin_layout Standard
18483 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18485 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18486 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18488 \begin_inset Flex Code
18491 \begin_layout Plain Layout
18497 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18498 文書クラスにインクルードされています。
18501 \begin_layout Standard
18502 この定義は、Bib\SpecialChar TeX
18503 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18504 \begin_inset Flex Code
18507 \begin_layout Plain Layout
18514 \begin_inset Flex Code
18517 \begin_layout Plain Layout
18523 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18526 \begin_layout LyX-Code
18528 \begin_inset Quotes eld
18532 \begin_inset Quotes erd
18538 \begin_layout Standard
18539 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18542 \begin_layout Standard
18543 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18544 \begin_inset Flex Code
18547 \begin_layout Plain Layout
18549 \begin_inset space ~
18557 のように、条件付きの構成を使用することができます。これは、
18558 \begin_inset Flex Code
18561 \begin_layout Plain Layout
18568 \begin_inset space ~
18571 」とvolumeキーを出力するという意味です。また、
18572 \begin_inset Newline newline
18576 \begin_inset Flex Code
18579 \begin_layout Plain Layout
18580 {%author%[[%author%]][[%editor%, ed.]]}
18586 \begin_inset Newline newline
18589 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18590 \begin_inset Flex Code
18593 \begin_layout Plain Layout
18599 キーが存在するならば出力され、そうでなければeditorキーと「,
18600 \begin_inset space ~
18603 ed.」が出力されます。ここでもキーは、
18604 \begin_inset Flex Code
18607 \begin_layout Plain Layout
18613 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18614 \begin_inset Flex Code
18617 \begin_layout Plain Layout
18624 \begin_inset Flex Code
18627 \begin_layout Plain Layout
18633 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18636 \begin_layout Standard
18637 もう一つ、定義中で使用することのできる文法として、
18638 \begin_inset Flex Code
18641 \begin_layout Plain Layout
18647 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18648 グを出力させたくはありませんから、HTMLタグは「
18649 \begin_inset Flex Code
18652 \begin_layout Plain Layout
18659 \begin_inset Flex Code
18662 \begin_layout Plain Layout
18668 」でくるんでやらなくてはならないのです。
18671 \begin_layout Standard
18672 \begin_inset Flex Code
18675 \begin_layout Plain Layout
18681 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18684 \begin_layout LyX-Code
18686 \begin_inset Quotes eld
18690 \begin_inset Quotes erd
18696 \begin_layout Standard
18697 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18698 \begin_inset Flex Code
18701 \begin_layout Plain Layout
18707 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18709 \begin_inset Flex Code
18712 \begin_layout Plain Layout
18718 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18721 \begin_layout LyX-Code
18725 \begin_layout Standard
18726 のようなことはしないでください。\SpecialChar LyX
18727 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18730 \begin_layout Standard
18734 \begin_layout LyX-Code
18738 \begin_layout Standard
18739 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18740 \begin_inset Flex Code
18743 \begin_layout Plain Layout
18749 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18750 \begin_inset Flex Code
18753 \begin_layout Plain Layout
18759 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18762 \begin_layout Standard
18763 以下は、これらの機能を全て使った例です。
18764 \begin_inset VSpace defskip
18770 \begin_layout Standard
18774 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18777 \begin_layout Standard
18778 \begin_inset VSpace defskip
18782 \begin_inset Flex Code
18785 \begin_layout Plain Layout
18791 キーが定義されているならば、著者とコンマを出力し、
18792 \begin_inset Flex Code
18795 \begin_layout Plain Layout
18802 \begin_inset Flex Code
18805 \begin_layout Plain Layout
18811 キーが定義されているならば、編集者名の後に
18812 \begin_inset Flex Code
18815 \begin_layout Plain Layout
18821 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18822 \begin_inset Flex Code
18825 \begin_layout Plain Layout
18831 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18834 \begin_layout Section
18835 \begin_inset CommandInset label
18837 name "sec:XHTML出力のタグ"
18844 \begin_layout Standard
18846 やDocBookと同様、\SpecialChar LyX
18847 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18848 は適切な既定値を提供し、前述したように、他のレイアウト
18849 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18851 \begin_inset Flex Code
18854 \begin_layout Plain Layout
18860 宣言で提供されている情報を利用しようと試みます。
18863 \begin_layout Standard
18864 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18865 、これが必要になる場合もあるので、\SpecialChar LyX
18866 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18869 \begin_layout Standard
18870 様式宣言や差込枠宣言の外で使用することができるタグに、
18871 \begin_inset Flex Code
18874 \begin_layout Plain Layout
18881 \begin_inset Flex Code
18884 \begin_layout Plain Layout
18890 の2つがあることに注意してください。これらの詳細については、
18891 \begin_inset CommandInset ref
18893 reference "subsec:汎用テキストクラスパラメータ"
18900 \begin_layout Subsection
18901 \begin_inset CommandInset label
18903 name "subsec:段落様式-XHTML"
18910 \begin_layout Standard
18912 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18913 \begin_inset Flex Code
18916 \begin_layout Plain Layout
18926 \begin_layout Standard
18927 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18930 \begin_layout LyX-Code
18932 \begin_inset Quotes erd
18936 \begin_inset Quotes erd
18942 \begin_layout LyX-Code
18944 \begin_inset Quotes erd
18948 \begin_inset Quotes erd
18954 \begin_layout LyX-Code
18958 \begin_layout LyX-Code
18962 \begin_layout Standard
18963 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18966 \begin_layout Standard
18967 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18970 \begin_layout LyX-Code
18972 \begin_inset Quotes erd
18976 \begin_inset Quotes erd
18982 \begin_layout LyX-Code
18984 \begin_inset Quotes erd
18988 \begin_inset Quotes erd
18992 \begin_inset Quotes erd
18996 \begin_inset Quotes erd
18999 >環境ラベル</labeltag>最初の段落。
19002 \begin_layout LyX-Code
19006 \begin_layout LyX-Code
19007 <itemtag>二つめの段落。</itemtag>
19010 \begin_layout LyX-Code
19014 \begin_layout Standard
19015 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
19018 \begin_layout Standard
19019 リストに関しては、次のような形になります。
19022 \begin_layout LyX-Code
19024 \begin_inset Quotes erd
19028 \begin_inset Quotes erd
19034 \begin_layout LyX-Code
19036 \begin_inset Quotes erd
19040 \begin_inset Quotes erd
19044 \begin_inset Quotes erd
19048 \begin_inset Quotes erd
19051 >リストのラベル</labeltag>最初の項目。</itemtag>
19054 \begin_layout LyX-Code
19056 \begin_inset Quotes erd
19060 \begin_inset Quotes erd
19064 \begin_inset Quotes erd
19068 \begin_inset Quotes erd
19071 >リストのラベル</labeltag>二つめの項目。</itemtag>
19074 \begin_layout LyX-Code
19078 \begin_layout LyX-Code
19082 \begin_layout LyX-Code
19084 \begin_inset Quotes erd
19088 \begin_inset Quotes erd
19094 \begin_layout LyX-Code
19096 \begin_inset Quotes erd
19100 \begin_inset Quotes erd
19103 >リストのラベル</labeltag><itemtag attr=
19104 \begin_inset Quotes erd
19108 \begin_inset Quotes erd
19114 \begin_layout LyX-Code
19116 \begin_inset Quotes erd
19120 \begin_inset Quotes erd
19123 >リストのラベル</labeltag><itemtag attr=
19124 \begin_inset Quotes erd
19128 \begin_inset Quotes erd
19134 \begin_layout LyX-Code
19138 \begin_layout Standard
19140 \begin_inset Flex Code
19143 \begin_layout Plain Layout
19150 \begin_inset Flex Code
19153 \begin_layout Plain Layout
19159 の順序が違っていることに注意してください。どちらの順序になるかは、
19160 \begin_inset Flex Code
19163 \begin_layout Plain Layout
19170 \begin_inset Flex Code
19173 \begin_layout Plain Layout
19179 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
19182 \begin_layout Standard
19183 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
19185 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
19189 \begin_layout Description
19190 \begin_inset Flex Code
19193 \begin_layout Plain Layout
19200 \begin_inset Flex Code
19203 \begin_layout Plain Layout
19209 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19210 \begin_inset Flex Code
19213 \begin_layout Plain Layout
19219 」のようなものです。既定においては、\SpecialChar LyX
19221 \begin_inset Flex Code
19224 \begin_layout Plain Layout
19231 \begin_inset Flex Code
19234 \begin_layout Plain Layout
19240 は、レイアウトの\SpecialChar LyX
19241 名であり、chapterのように小文字で記述します。
19244 \begin_layout Description
19245 \begin_inset Flex Code
19248 \begin_layout Plain Layout
19255 \begin_inset Flex Code
19258 \begin_layout Plain Layout
19269 \begin_inset Flex Code
19272 \begin_layout Plain Layout
19278 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19279 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19280 \begin_inset Flex Code
19283 \begin_layout Plain Layout
19289 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19290 \begin_inset Flex Code
19293 \begin_layout Plain Layout
19302 \begin_layout Description
19303 \begin_inset Flex Code
19306 \begin_layout Plain Layout
19313 \begin_inset Flex Code
19316 \begin_layout Plain Layout
19322 ] 環境の段落に使用されるタグ。上記各例の
19323 \begin_inset Flex Code
19326 \begin_layout Plain Layout
19333 \begin_inset Flex Code
19336 \begin_layout Plain Layout
19345 \begin_layout Description
19346 \begin_inset Flex Code
19349 \begin_layout Plain Layout
19356 \begin_inset Flex Code
19359 \begin_layout Plain Layout
19366 \begin_inset Flex Code
19369 \begin_layout Plain Layout
19370 class=`レイアウト名_item'
19380 \begin_inset Flex Code
19383 \begin_layout Plain Layout
19392 \begin_layout Description
19393 \begin_inset Flex Code
19396 \begin_layout Plain Layout
19403 \begin_inset Flex Code
19406 \begin_layout Plain Layout
19412 ] 段落と項目ラベルに使用されるタグ。上記各例の
19413 \begin_inset Flex Code
19416 \begin_layout Plain Layout
19423 \begin_inset Flex Code
19426 \begin_layout Plain Layout
19433 \begin_inset Flex Code
19436 \begin_layout Plain Layout
19443 \begin_inset Flex Code
19446 \begin_layout Plain Layout
19447 Centered_Top_Environment
19453 \begin_inset Flex Code
19456 \begin_layout Plain Layout
19463 \begin_inset Flex Code
19466 \begin_layout Plain Layout
19475 \begin_layout Description
19476 \begin_inset Flex Code
19479 \begin_layout Plain Layout
19486 \begin_inset Flex Code
19489 \begin_layout Plain Layout
19496 \begin_inset Flex Code
19499 \begin_layout Plain Layout
19500 class=`レイアウト名_label'
19510 \begin_inset Flex Code
19513 \begin_layout Plain Layout
19522 \begin_layout Description
19523 \begin_inset Flex Code
19526 \begin_layout Plain Layout
19533 \begin_inset Flex Code
19536 \begin_layout Plain Layout
19546 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19548 \begin_inset Flex Code
19551 \begin_layout Plain Layout
19552 `<dt>\SpecialChar ldots
19553 </dt><dd>\SpecialChar ldots
19559 という形を得るために使用されます。既定値は
19560 \begin_inset Flex Code
19563 \begin_layout Plain Layout
19569 で、labelタグはitemタグの中に出力されます。
19572 \begin_layout Description
19573 \begin_inset Flex Code
19576 \begin_layout Plain Layout
19583 \begin_inset Flex Code
19586 \begin_layout Plain Layout
19592 セクションに出力される情報。これは、たとえば、
19593 \begin_inset Flex Code
19596 \begin_layout Plain Layout
19603 \begin_inset Flex Code
19606 \begin_layout Plain Layout
19612 ブロックをインクルードするのに使用することができます。
19615 \begin_layout Description
19616 \begin_inset Flex Code
19619 \begin_layout Plain Layout
19625 この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19626 \begin_inset Flex Code
19629 \begin_layout Plain Layout
19635 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19636 \begin_inset Flex Code
19639 \begin_layout Plain Layout
19648 \begin_layout Description
19649 \begin_inset Flex Code
19652 \begin_layout Plain Layout
19659 \begin_inset Flex Code
19662 \begin_layout Plain Layout
19668 ] 主幹ラベルに使用されるタグ。上記各例の
19669 \begin_inset Flex Code
19672 \begin_layout Plain Layout
19679 \begin_inset Flex Code
19682 \begin_layout Plain Layout
19691 \begin_layout Description
19692 \begin_inset Flex Code
19695 \begin_layout Plain Layout
19702 \begin_inset Flex Code
19705 \begin_layout Plain Layout
19716 \begin_inset Flex Code
19719 \begin_layout Plain Layout
19725 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19726 \begin_inset Flex Code
19729 \begin_layout Plain Layout
19736 \begin_inset Flex Code
19739 \begin_layout Plain Layout
19748 \begin_layout Subsection
19752 \begin_layout Standard
19753 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19757 \begin_layout Plain Layout
19758 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19764 。ここでも、\SpecialChar LyX
19765 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19768 \begin_layout Standard
19770 が差込枠用に出力するXHTMLは、以下の形を取ります。
19773 \begin_layout LyX-Code
19775 \begin_inset Quotes erd
19779 \begin_inset Quotes erd
19785 \begin_layout LyX-Code
19786 <labeltag>ラベル</labeltag>
19789 \begin_layout LyX-Code
19791 \begin_inset Quotes erd
19795 \begin_inset Quotes erd
19798 >差込枠の内容。</innertag>
19801 \begin_layout LyX-Code
19805 \begin_layout Standard
19807 \begin_inset Flex Code
19810 \begin_layout Plain Layout
19816 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19817 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19818 \begin_inset Flex Code
19821 \begin_layout Plain Layout
19827 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19831 \begin_layout Description
19832 \begin_inset Flex Code
19835 \begin_layout Plain Layout
19842 \begin_inset Flex Code
19845 \begin_layout Plain Layout
19851 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19852 \begin_inset Flex Code
19855 \begin_layout Plain Layout
19856 class=`myinset' onclick=`\SpecialChar ldots
19862 」のようなものです。既定においては、\SpecialChar LyX
19864 \begin_inset Flex Code
19867 \begin_layout Plain Layout
19874 \begin_inset Flex Code
19877 \begin_layout Plain Layout
19883 は、差込枠の\SpecialChar LyX
19884 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19887 \begin_layout Description
19888 \begin_inset Flex Code
19891 \begin_layout Plain Layout
19898 \begin_inset Flex Code
19901 \begin_layout Plain Layout
19912 \begin_inset Flex Code
19915 \begin_layout Plain Layout
19921 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19922 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19923 \begin_inset Flex Code
19926 \begin_layout Plain Layout
19932 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19933 \begin_inset Flex Code
19936 \begin_layout Plain Layout
19945 \begin_layout Description
19946 \begin_inset Flex Code
19949 \begin_layout Plain Layout
19956 \begin_inset Flex Code
19959 \begin_layout Plain Layout
19966 \begin_inset Flex Code
19969 \begin_layout Plain Layout
19978 \begin_layout Description
19979 \begin_inset Flex Code
19982 \begin_layout Plain Layout
19989 \begin_inset Flex Code
19992 \begin_layout Plain Layout
19999 \begin_inset Flex Code
20002 \begin_layout Plain Layout
20011 \begin_layout Description
20012 \begin_inset Flex Code
20015 \begin_layout Plain Layout
20022 \begin_inset Flex Code
20025 \begin_layout Plain Layout
20033 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
20036 \begin_layout Description
20037 \begin_inset Flex Code
20040 \begin_layout Plain Layout
20047 \begin_inset Flex Code
20050 \begin_layout Plain Layout
20056 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
20057 \begin_inset Flex Code
20060 \begin_layout Plain Layout
20068 など。これは非必須であり、既定値はありません。
20071 \begin_layout Description
20072 \begin_inset Flex Code
20075 \begin_layout Plain Layout
20082 \begin_inset Flex Code
20085 \begin_layout Plain Layout
20091 セクションに出力される情報。これは、たとえば、
20092 \begin_inset Flex Code
20095 \begin_layout Plain Layout
20102 \begin_inset Flex Code
20105 \begin_layout Plain Layout
20111 ブロックをインクルードするのに使用することができます。
20114 \begin_layout Description
20115 \begin_inset Flex Code
20118 \begin_layout Plain Layout
20124 この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20125 \begin_inset Flex Code
20128 \begin_layout Plain Layout
20134 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20137 \begin_layout Description
20138 \begin_inset Flex Code
20141 \begin_layout Plain Layout
20148 \begin_inset Flex Code
20151 \begin_layout Plain Layout
20157 ] 主幹ラベルに使用されるタグ。上記各例の
20158 \begin_inset Flex Code
20161 \begin_layout Plain Layout
20168 \begin_inset Flex Code
20171 \begin_layout Plain Layout
20178 \begin_inset Flex Code
20181 \begin_layout Plain Layout
20188 \begin_inset Flex Code
20191 \begin_layout Plain Layout
20198 \begin_inset Flex Code
20201 \begin_layout Plain Layout
20210 \begin_layout Subsection
20214 \begin_layout Standard
20215 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
20218 \begin_layout LyX-Code
20220 \begin_inset Quotes erd
20224 \begin_inset Quotes erd
20230 \begin_layout LyX-Code
20234 \begin_layout LyX-Code
20238 \begin_layout Standard
20239 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
20243 \begin_layout Description
20244 \begin_inset Flex Code
20247 \begin_layout Plain Layout
20254 \begin_inset Flex Code
20257 \begin_layout Plain Layout
20263 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
20264 \begin_inset Flex Code
20267 \begin_layout Plain Layout
20268 class=`myfloat' onclick=`\SpecialChar ldots
20274 」のようなものです。既定においては、\SpecialChar LyX
20276 \begin_inset Flex Code
20279 \begin_layout Plain Layout
20280 class=`float フロート-フロート型'
20286 \begin_inset Flex Code
20289 \begin_layout Plain Layout
20296 \begin_inset CommandInset ref
20298 reference "subsec:フロート"
20302 参照)、この型のフロートの\SpecialChar LyX
20303 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
20306 \begin_layout Description
20307 \begin_inset Flex Code
20310 \begin_layout Plain Layout
20316 このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20317 \begin_inset Flex Code
20320 \begin_layout Plain Layout
20326 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20329 \begin_layout Description
20330 \begin_inset Flex Code
20333 \begin_layout Plain Layout
20340 \begin_inset Flex Code
20343 \begin_layout Plain Layout
20349 ] このフロートに使用されるタグ。上記各例の
20350 \begin_inset Flex Code
20353 \begin_layout Plain Layout
20360 \begin_inset Flex Code
20363 \begin_layout Plain Layout
20369 であり、ほとんどの場合変更する必要はありません。
20372 \begin_layout Subsection
20376 \begin_layout Standard
20378 \begin_inset Flex Code
20381 \begin_layout Plain Layout
20387 ブロックを使用して整形することができます。詳細については、
20388 \begin_inset CommandInset ref
20390 reference "subsec:引用書式指定"
20397 \begin_layout Subsection
20402 \begin_layout Standard
20404 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20406 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20409 \begin_layout Standard
20412 \begin_inset Flex Code
20415 \begin_layout Plain Layout
20422 \begin_inset Flex Code
20425 \begin_layout Plain Layout
20432 \begin_inset Flex Code
20435 \begin_layout Plain Layout
20442 \begin_inset Flex Code
20445 \begin_layout Plain Layout
20452 \begin_inset Flex Code
20455 \begin_layout Plain Layout
20461 を利用して、フォント情報についてのみCSSを自動生成します(
20462 \begin_inset CommandInset ref
20464 reference "subsec:フォント指定"
20468 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20469 \begin_inset Flex Code
20472 \begin_layout Plain Layout
20479 \begin_inset Flex Code
20482 \begin_layout Plain Layout
20483 font-family: sans-serif
20488 」になります。\SpecialChar LyX
20489 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20490 \begin_inset Flex URL
20493 \begin_layout Plain Layout
20501 \begin_inset Flex Code
20504 \begin_layout Plain Layout
20513 \begin_layout Chapter
20515 \begin_inset CommandInset label
20517 name "chap:外部素材を取り込む"
20524 \begin_layout Standard
20525 \begin_inset Box Shadowbox
20535 height_special "totalheight"
20540 backgroundcolor "none"
20543 \begin_layout Plain Layout
20544 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20552 \begin_layout Standard
20554 外部のソースから素材を使用する方法は、取扱説明書『
20558 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20561 \begin_layout Section
20565 \begin_layout Standard
20566 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20567 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20569 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20570 \begin_inset Flex MenuItem
20573 \begin_layout Plain Layout
20574 挿入\SpecialChar menuseparator
20575 ファイル\SpecialChar menuseparator
20581 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20582 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20583 の後の版に取り込むことができるようにしてくださることを希望します。
20586 \begin_layout Standard
20587 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20589 \begin_inset Flex Code
20592 \begin_layout Plain Layout
20598 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20599 \begin_inset Flex Code
20602 \begin_layout Plain Layout
20608 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20609 \begin_inset Flex Code
20612 \begin_layout Plain Layout
20618 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20619 ファイルにそのままインクルードできるように、
20620 \begin_inset Flex Code
20623 \begin_layout Plain Layout
20629 を呼び出してPostScriptファイルを生成します。この場合には、
20630 \begin_inset Flex Code
20633 \begin_layout Plain Layout
20639 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20642 \begin_layout Standard
20643 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20644 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20645 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20648 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20651 \begin_layout Standard
20653 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20654 の場合には、\SpecialChar LyX
20655 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20656 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20657 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20661 \begin_layout Section
20665 \begin_layout Standard
20667 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20668 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20669 \begin_inset CommandInset ref
20671 reference "sec:セキュリティに関する論点"
20675 のセキュリティに関する議論を読んでおいてください。
20678 \begin_layout Standard
20679 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20682 \begin_layout Standard
20684 \begin_inset Flex Code
20687 \begin_layout Plain Layout
20689 Dir/lib/external_templates
20694 ファイルで定義されています。自分用の版を
20695 \begin_inset Flex Code
20698 \begin_layout Plain Layout
20699 UserDir/external_templates
20707 \begin_layout Standard
20708 典型的なひな型は以下のようになります。
20711 \begin_layout LyX-Code
20715 \begin_layout LyX-Code
20716 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20719 \begin_layout LyX-Code
20723 \begin_layout LyX-Code
20727 \begin_layout LyX-Code
20731 \begin_layout LyX-Code
20735 \begin_layout LyX-Code
20739 \begin_layout LyX-Code
20740 AutomaticProduction true
20743 \begin_layout LyX-Code
20747 \begin_layout LyX-Code
20751 \begin_layout LyX-Code
20756 \begin_layout Plain Layout
20766 \begin_layout LyX-Code
20767 TransformCommand Rotate RotationLatexCommand
20770 \begin_layout LyX-Code
20771 TransformCommand Resize ResizeLatexCommand
20774 \begin_layout LyX-Code
20775 Product "$$RotateFront$$ResizeFront
20778 \begin_layout LyX-Code
20783 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20786 \begin_layout LyX-Code
20787 $$ResizeBack$$RotateBack"
20790 \begin_layout LyX-Code
20794 \begin_layout LyX-Code
20795 UpdateResult "$$AbsPath$$Basename.pstex_t"
20798 \begin_layout LyX-Code
20799 Requirement "graphicx"
20802 \begin_layout LyX-Code
20803 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20806 \begin_layout LyX-Code
20807 ReferencedFile latex "$$AbsPath$$Basename.eps"
20810 \begin_layout LyX-Code
20811 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20814 \begin_layout LyX-Code
20818 \begin_layout LyX-Code
20823 \begin_layout Plain Layout
20833 \begin_layout LyX-Code
20834 TransformCommand Rotate RotationLatexCommand
20837 \begin_layout LyX-Code
20838 TransformCommand Resize ResizeLatexCommand
20841 \begin_layout LyX-Code
20842 Product "$$RotateFront$$ResizeFront
20845 \begin_layout LyX-Code
20850 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20853 \begin_layout LyX-Code
20854 $$ResizeBack$$RotateBack"
20857 \begin_layout LyX-Code
20858 UpdateFormat pdftex
20861 \begin_layout LyX-Code
20862 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20865 \begin_layout LyX-Code
20866 Requirement "graphicx"
20869 \begin_layout LyX-Code
20870 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20873 \begin_layout LyX-Code
20874 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20877 \begin_layout LyX-Code
20881 \begin_layout LyX-Code
20885 \begin_layout LyX-Code
20886 Product "$$Contents(
20888 "$$AbsPath$$Basename.asc
20893 \begin_layout LyX-Code
20894 UpdateFormat asciixfig
20897 \begin_layout LyX-Code
20898 UpdateResult "$$AbsPath$$Basename.asc"
20901 \begin_layout LyX-Code
20905 \begin_layout LyX-Code
20909 \begin_layout LyX-Code
20910 Product "<graphic fileref=
20912 "$$AbsOrRelPathMaster$$Basename.eps
20917 \begin_layout LyX-Code
20921 \begin_layout LyX-Code
20925 \begin_layout LyX-Code
20926 UpdateResult "$$AbsPath$$Basename.eps"
20929 \begin_layout LyX-Code
20930 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20933 \begin_layout LyX-Code
20934 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20937 \begin_layout LyX-Code
20941 \begin_layout LyX-Code
20942 Product "[XFig: $$FName]"
20945 \begin_layout LyX-Code
20949 \begin_layout LyX-Code
20953 \begin_layout Standard
20955 \begin_inset Flex Code
20958 \begin_layout Plain Layout
20966 \begin_inset Flex Code
20969 \begin_layout Plain Layout
20975 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20976 \begin_inset Flex Code
20979 \begin_layout Plain Layout
20987 \begin_inset Flex Code
20990 \begin_layout Plain Layout
20999 \begin_layout Subsection
21003 \begin_layout Description
21004 \begin_inset Flex Code
21007 \begin_layout Plain Layout
21008 AutomaticProduction
21009 \begin_inset space ~
21017 このひな型で扱うファイルを\SpecialChar LyX
21018 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
21021 \begin_layout Description
21022 \begin_inset Flex Code
21025 \begin_layout Plain Layout
21027 \begin_inset space ~
21035 望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
21036 \begin_inset Flex Code
21039 \begin_layout Plain Layout
21046 \begin_inset Flex Code
21049 \begin_layout Plain Layout
21056 \begin_inset Flex Code
21059 \begin_layout Plain Layout
21065 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
21068 \begin_layout Description
21069 \begin_inset Flex Code
21072 \begin_layout Plain Layout
21074 \begin_inset space ~
21082 この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
21085 \begin_layout Description
21086 \begin_inset Flex Code
21089 \begin_layout Plain Layout
21091 \begin_inset space ~
21095 \begin_inset space ~
21103 外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
21107 \begin_layout Description
21108 \begin_inset Flex Code
21111 \begin_layout Plain Layout
21113 \begin_inset space ~
21121 オリジナルファイルのファイル形式。これは、\SpecialChar LyX
21122 が知っている書式名でなくてはなりません(
21123 \begin_inset CommandInset ref
21125 reference "sec:ファイル形式"
21129 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
21130 \begin_inset Flex Code
21133 \begin_layout Plain Layout
21139 」を使用してください。この場合、\SpecialChar LyX
21140 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
21143 \begin_layout Description
21144 \begin_inset Flex Code
21147 \begin_layout Plain Layout
21149 \begin_inset space ~
21157 このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
21160 \begin_layout Description
21161 \begin_inset Flex Code
21164 \begin_layout Plain Layout
21166 \begin_inset space ~
21169 Rotate|Resize|Clip|Extra
21174 このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
21175 ログ中の対応するタブを使用可能にします。
21176 \begin_inset Flex Code
21179 \begin_layout Plain Layout
21186 \begin_inset Flex Code
21189 \begin_layout Plain Layout
21196 \begin_inset Flex Code
21199 \begin_layout Plain Layout
21206 \begin_inset Flex Code
21209 \begin_layout Plain Layout
21215 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
21218 \begin_layout Subsection
21219 \begin_inset Flex Code
21222 \begin_layout Plain Layout
21231 \begin_layout Description
21232 \begin_inset Flex Code
21235 \begin_layout Plain Layout
21237 \begin_inset space ~
21244 \begin_layout Plain Layout
21255 \begin_layout Plain Layout
21262 eX|PlainText|DocBook
21267 この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
21268 \begin_inset Flex Code
21271 \begin_layout Plain Layout
21277 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
21281 \begin_layout Description
21282 \begin_inset Flex Code
21285 \begin_layout Plain Layout
21287 \begin_inset space ~
21291 \begin_inset space ~
21300 \begin_inset Flex Code
21303 \begin_layout Plain Layout
21310 \begin_inset Flex Code
21313 \begin_layout Plain Layout
21320 \begin_inset Flex Code
21323 \begin_layout Plain Layout
21329 自体にも代入マクロを使うことができます。
21330 \begin_inset Flex Code
21333 \begin_layout Plain Layout
21340 \begin_inset Flex Code
21343 \begin_layout Plain Layout
21350 \begin_inset Flex Code
21353 \begin_layout Plain Layout
21359 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
21362 \begin_layout Description
21363 \begin_inset Flex Code
21366 \begin_layout Plain Layout
21368 \begin_inset space ~
21376 書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
21380 \begin_layout Description
21381 \begin_inset Flex Code
21384 \begin_layout Plain Layout
21386 \begin_inset space ~
21394 このコマンドは、\SpecialChar LaTeX
21395 プリアンブルに入れるプリアンブル片を指定します。これは
21396 \begin_inset Flex Code
21399 \begin_layout Plain Layout
21407 \begin_inset Flex Code
21410 \begin_layout Plain Layout
21416 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21419 \begin_layout Description
21420 \begin_inset Flex Code
21423 \begin_layout Plain Layout
21425 \begin_inset space ~
21429 \begin_inset space ~
21437 このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21438 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21441 \begin_layout Description
21442 \begin_inset Flex Code
21445 \begin_layout Plain Layout
21447 \begin_inset space ~
21455 必要とされる\SpecialChar LaTeX
21456 パッケージ名。パッケージは、\SpecialChar LaTeX
21458 \begin_inset Flex Code
21461 \begin_layout Plain Layout
21469 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21472 \begin_layout Description
21473 \begin_inset Flex Code
21476 \begin_layout Plain Layout
21478 \begin_inset space ~
21482 \begin_inset space ~
21485 RotationLatexCommand
21490 このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21491 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21494 \begin_layout Description
21495 \begin_inset Flex Code
21498 \begin_layout Plain Layout
21500 \begin_inset space ~
21504 \begin_inset space ~
21512 このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21513 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21516 \begin_layout Description
21517 \begin_inset Flex Code
21520 \begin_layout Plain Layout
21522 \begin_inset space ~
21526 \begin_inset space ~
21529 RotationLatexOption
21534 このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21537 \begin_layout Description
21538 \begin_inset Flex Code
21541 \begin_layout Plain Layout
21543 \begin_inset space ~
21547 \begin_inset space ~
21555 このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21558 \begin_layout Description
21559 \begin_inset Flex Code
21562 \begin_layout Plain Layout
21564 \begin_inset space ~
21568 \begin_inset space ~
21576 このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21579 \begin_layout Description
21580 \begin_inset Flex Code
21583 \begin_layout Plain Layout
21585 \begin_inset space ~
21589 \begin_inset space ~
21597 このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21600 \begin_layout Description
21601 \begin_inset Flex Code
21604 \begin_layout Plain Layout
21606 \begin_inset space ~
21614 変換されたファイルのファイル形式。これは、\SpecialChar LyX
21615 が知っている書式名でなくてはなりません(
21616 \begin_inset Flex MenuItem
21619 \begin_layout Plain Layout
21620 ツール\SpecialChar menuseparator
21621 設定\SpecialChar menuseparator
21622 ファイル処理\SpecialChar menuseparator
21628 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21629 \begin_inset Flex Code
21632 \begin_layout Plain Layout
21638 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21641 \begin_layout Description
21642 \begin_inset Flex Code
21645 \begin_layout Plain Layout
21647 \begin_inset space ~
21655 変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21658 \begin_layout Subsection
21662 \begin_layout Standard
21664 \begin_inset Flex Code
21667 \begin_layout Plain Layout
21675 \begin_inset Flex Code
21678 \begin_layout Plain Layout
21684 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21685 \begin_inset Flex Code
21688 \begin_layout Plain Layout
21697 \begin_layout Section
21701 \begin_layout Standard
21702 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21703 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21706 \begin_layout Standard
21707 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21710 \begin_layout Standard
21714 \begin_layout Description
21715 \begin_inset Flex Code
21718 \begin_layout Plain Layout
21719 $$AbsOrRelPathMaster
21725 親文書への絶対ファイルパスないしは相対ファイルパス
21728 \begin_layout Description
21729 \begin_inset Flex Code
21732 \begin_layout Plain Layout
21733 $$AbsOrRelPathParent
21739 文書への絶対ファイルパスないしは相対ファイルパス
21742 \begin_layout Description
21743 \begin_inset Flex Code
21746 \begin_layout Plain Layout
21755 \begin_layout Description
21756 \begin_inset Flex Code
21759 \begin_layout Plain Layout
21768 \begin_layout Description
21769 \begin_inset Flex Code
21772 \begin_layout Plain Layout
21774 \begin_inset Quotes eld
21778 \begin_inset Quotes erd
21787 \begin_inset Flex Code
21790 \begin_layout Plain Layout
21796 と云う名のファイルの中身を展開します。
21799 \begin_layout Description
21800 \begin_inset Flex Code
21803 \begin_layout Plain Layout
21812 \begin_layout Description
21813 \begin_inset Flex Code
21816 \begin_layout Plain Layout
21824 This will be the string
21825 \begin_inset Quotes eld
21829 \begin_inset Quotes erd
21832 if the file is in JPEG format, otherwise it will be the string
21833 \begin_inset Quotes eld
21837 \begin_inset Quotes erd
21841 This is useful to avoid uneeded conversions for output formats that support
21842 both PNG and JPEG fomats.
21843 The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
21848 \begin_layout Description
21849 \begin_inset Flex Code
21852 \begin_layout Plain Layout
21858 外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21859 文書への絶対パスでも良いですし、相対パスでも構いません。
21862 \begin_layout Description
21863 \begin_inset Flex Code
21866 \begin_layout Plain Layout
21873 \begin_inset Flex Code
21876 \begin_layout Plain Layout
21882 のパス部分(\SpecialChar LyX
21886 \begin_layout Description
21887 \begin_inset Flex Code
21890 \begin_layout Plain Layout
21900 \begin_layout Description
21901 \begin_inset Flex Code
21904 \begin_layout Plain Layout
21914 \begin_layout Description
21915 \begin_inset Flex Code
21918 \begin_layout Plain Layout
21924 このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21925 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21928 \begin_layout Description
21929 \begin_inset Flex Code
21932 \begin_layout Plain Layout
21938 元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21941 \begin_layout Standard
21942 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を
21943 \begin_inset Flex Code
21946 \begin_layout Plain Layout
21947 $$AbsPath$$Basename$$Extension
21955 \begin_layout Standard
21956 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21957 \begin_inset Flex Code
21960 \begin_layout Plain Layout
21967 \begin_inset Flex Code
21970 \begin_layout Plain Layout
21977 \begin_inset Flex Code
21980 \begin_layout Plain Layout
21986 コマンドは、これらに加えて以下の代入もサポートします。
21989 \begin_layout Description
21990 \begin_inset Flex Code
21993 \begin_layout Plain Layout
22002 \begin_layout Description
22003 \begin_inset Flex Code
22006 \begin_layout Plain Layout
22015 \begin_layout Description
22016 \begin_inset Flex Code
22019 \begin_layout Plain Layout
22028 \begin_layout Description
22029 \begin_inset Flex Code
22032 \begin_layout Plain Layout
22041 \begin_layout Standard
22042 \begin_inset Flex Code
22045 \begin_layout Plain Layout
22052 \begin_inset Flex Code
22055 \begin_layout Plain Layout
22062 \begin_inset Flex Code
22065 \begin_layout Plain Layout
22071 コマンドが有効にされていれば、以下の代入もサポートされます。
22074 \begin_layout Description
22075 \begin_inset Flex Code
22078 \begin_layout Plain Layout
22087 \begin_layout Description
22088 \begin_inset Flex Code
22091 \begin_layout Plain Layout
22100 \begin_layout Description
22101 \begin_inset Flex Code
22104 \begin_layout Plain Layout
22113 \begin_layout Description
22114 \begin_inset Flex Code
22117 \begin_layout Plain Layout
22126 \begin_layout Standard
22127 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
22130 \begin_layout Enumerate
22131 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
22132 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
22135 \begin_layout Enumerate
22137 は、相対ファイル名に関して、\SpecialChar LyX
22138 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
22139 にとって相対ファイル名とは、常にこのファイル名が書か
22140 れている文書に対して相対的なものになります。\SpecialChar LaTeX
22141 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
22142 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
22143 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
22144 を選びさえすれば、これは\SpecialChar LyX
22148 \begin_layout Standard
22149 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
22152 \begin_layout Itemize
22154 \begin_inset Flex Code
22157 \begin_layout Plain Layout
22166 \begin_layout Itemize
22167 代入された文字列が、\SpecialChar LaTeX
22169 \begin_inset Flex Code
22172 \begin_layout Plain Layout
22173 $$AbsOrRelPathMaster
22181 \begin_layout Itemize
22182 それ以外ならば、ユーザの選択を尊重するために
22183 \begin_inset Flex Code
22186 \begin_layout Plain Layout
22187 $$AbsOrRelPathParent
22195 \begin_layout Standard
22196 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
22197 \begin_inset Flex Code
22200 \begin_layout Plain Layout
22201 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22207 \begin_inset Flex Code
22210 \begin_layout Plain Layout
22216 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
22219 \begin_layout Section
22221 \begin_inset CommandInset label
22223 name "sec:セキュリティに関する論点"
22230 \begin_layout Standard
22231 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
22232 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
22233 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
22236 \begin_layout Standard
22237 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
22238 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
22240 \begin_inset Flex Code
22243 \begin_layout Plain Layout
22250 \begin_inset Flex Code
22253 \begin_layout Plain Layout
22259 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
22262 \begin_layout Standard
22263 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
22264 できません。これは、\SpecialChar LyX
22265 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
22266 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
22269 \begin_layout Standard
22270 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
22271 うになるため、一般的には、統御下に置いた状態で
22272 \begin_inset Flex Code
22275 \begin_layout Plain Layout
22281 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
22282 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
22286 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
22287 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
22288 には、安全でないひな型は決して入っていません
22292 \begin_layout Standard
22293 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
22294 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
22295 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
22296 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
22297 使用する前に、行うようにしてください。
22300 \begin_layout Chapter
22302 サポートされているレイアウト用\SpecialChar LyX
22304 \begin_inset CommandInset label
22313 \begin_layout Standard
22315 \begin_inset Tabular
22316 <lyxtabular version="3" rows="11" columns="8">
22317 <features tabularvalignment="middle">
22318 <column alignment="left" valignment="top">
22319 <column alignment="left" valignment="top">
22320 <column alignment="left" valignment="top">
22321 <column alignment="left" valignment="top">
22322 <column alignment="left" valignment="top">
22323 <column alignment="left" valignment="top">
22324 <column alignment="left" valignment="top">
22325 <column alignment="left" valignment="top">
22327 <cell alignment="left" valignment="top" usebox="none">
22330 \begin_layout Plain Layout
22336 <cell alignment="left" valignment="top" usebox="none">
22339 \begin_layout Plain Layout
22345 <cell alignment="left" valignment="top" usebox="none">
22348 \begin_layout Plain Layout
22354 <cell alignment="left" valignment="top" usebox="none">
22357 \begin_layout Plain Layout
22363 <cell alignment="center" valignment="top" usebox="none">
22366 \begin_layout Plain Layout
22372 <cell alignment="center" valignment="top" usebox="none">
22375 \begin_layout Plain Layout
22381 <cell alignment="center" valignment="top" usebox="none">
22384 \begin_layout Plain Layout
22390 <cell alignment="center" valignment="top" usebox="none">
22393 \begin_layout Plain Layout
22401 <cell alignment="left" valignment="top" usebox="none">
22404 \begin_layout Plain Layout
22410 <cell alignment="left" valignment="top" usebox="none">
22413 \begin_layout Plain Layout
22419 <cell alignment="left" valignment="top" usebox="none">
22422 \begin_layout Plain Layout
22428 <cell alignment="left" valignment="top" usebox="none">
22431 \begin_layout Plain Layout
22437 <cell alignment="center" valignment="top" usebox="none">
22440 \begin_layout Plain Layout
22446 <cell alignment="center" valignment="top" usebox="none">
22449 \begin_layout Plain Layout
22455 <cell alignment="center" valignment="top" usebox="none">
22458 \begin_layout Plain Layout
22464 <cell alignment="center" valignment="top" usebox="none">
22467 \begin_layout Plain Layout
22475 <cell alignment="left" valignment="top" usebox="none">
22478 \begin_layout Plain Layout
22484 <cell alignment="left" valignment="top" usebox="none">
22487 \begin_layout Plain Layout
22493 <cell alignment="left" valignment="top" usebox="none">
22496 \begin_layout Plain Layout
22502 <cell alignment="left" valignment="top" usebox="none">
22505 \begin_layout Plain Layout
22511 <cell alignment="center" valignment="top" usebox="none">
22514 \begin_layout Plain Layout
22520 <cell alignment="center" valignment="top" usebox="none">
22523 \begin_layout Plain Layout
22529 <cell alignment="center" valignment="top" usebox="none">
22532 \begin_layout Plain Layout
22538 <cell alignment="center" valignment="top" usebox="none">
22541 \begin_layout Plain Layout
22549 <cell alignment="left" valignment="top" usebox="none">
22552 \begin_layout Plain Layout
22558 <cell alignment="left" valignment="top" usebox="none">
22561 \begin_layout Plain Layout
22567 <cell alignment="left" valignment="top" usebox="none">
22570 \begin_layout Plain Layout
22576 <cell alignment="left" valignment="top" usebox="none">
22579 \begin_layout Plain Layout
22585 <cell alignment="center" valignment="top" usebox="none">
22588 \begin_layout Plain Layout
22594 <cell alignment="center" valignment="top" usebox="none">
22597 \begin_layout Plain Layout
22603 <cell alignment="center" valignment="top" usebox="none">
22606 \begin_layout Plain Layout
22612 <cell alignment="center" valignment="top" usebox="none">
22615 \begin_layout Plain Layout
22623 <cell alignment="left" valignment="top" usebox="none">
22626 \begin_layout Plain Layout
22632 <cell alignment="left" valignment="top" usebox="none">
22635 \begin_layout Plain Layout
22641 <cell alignment="left" valignment="top" usebox="none">
22644 \begin_layout Plain Layout
22650 <cell alignment="left" valignment="top" usebox="none">
22653 \begin_layout Plain Layout
22659 <cell alignment="center" valignment="top" usebox="none">
22662 \begin_layout Plain Layout
22668 <cell alignment="center" valignment="top" usebox="none">
22671 \begin_layout Plain Layout
22677 <cell alignment="center" valignment="top" usebox="none">
22680 \begin_layout Plain Layout
22686 <cell alignment="center" valignment="top" usebox="none">
22689 \begin_layout Plain Layout
22697 <cell alignment="left" valignment="top" usebox="none">
22700 \begin_layout Plain Layout
22706 <cell alignment="left" valignment="top" usebox="none">
22709 \begin_layout Plain Layout
22715 <cell alignment="left" valignment="top" usebox="none">
22718 \begin_layout Plain Layout
22724 <cell alignment="left" valignment="top" usebox="none">
22727 \begin_layout Plain Layout
22733 <cell alignment="center" valignment="top" usebox="none">
22736 \begin_layout Plain Layout
22742 <cell alignment="center" valignment="top" usebox="none">
22745 \begin_layout Plain Layout
22751 <cell alignment="center" valignment="top" usebox="none">
22754 \begin_layout Plain Layout
22760 <cell alignment="center" valignment="top" usebox="none">
22763 \begin_layout Plain Layout
22771 <cell alignment="left" valignment="top" usebox="none">
22774 \begin_layout Plain Layout
22780 <cell alignment="left" valignment="top" usebox="none">
22783 \begin_layout Plain Layout
22789 <cell alignment="left" valignment="top" usebox="none">
22792 \begin_layout Plain Layout
22798 <cell alignment="left" valignment="top" usebox="none">
22801 \begin_layout Plain Layout
22807 <cell alignment="center" valignment="top" usebox="none">
22810 \begin_layout Plain Layout
22816 <cell alignment="center" valignment="top" usebox="none">
22819 \begin_layout Plain Layout
22825 <cell alignment="center" valignment="top" usebox="none">
22828 \begin_layout Plain Layout
22834 <cell alignment="center" valignment="top" usebox="none">
22837 \begin_layout Plain Layout
22845 <cell alignment="left" valignment="top" usebox="none">
22848 \begin_layout Plain Layout
22854 <cell alignment="left" valignment="top" usebox="none">
22857 \begin_layout Plain Layout
22863 <cell alignment="left" valignment="top" usebox="none">
22866 \begin_layout Plain Layout
22872 <cell alignment="left" valignment="top" usebox="none">
22875 \begin_layout Plain Layout
22881 <cell alignment="center" valignment="top" usebox="none">
22884 \begin_layout Plain Layout
22890 <cell alignment="center" valignment="top" usebox="none">
22893 \begin_layout Plain Layout
22899 <cell alignment="center" valignment="top" usebox="none">
22902 \begin_layout Plain Layout
22908 <cell alignment="center" valignment="top" usebox="none">
22911 \begin_layout Plain Layout
22919 <cell alignment="left" valignment="top" usebox="none">
22922 \begin_layout Plain Layout
22928 <cell alignment="left" valignment="top" usebox="none">
22931 \begin_layout Plain Layout
22937 <cell alignment="left" valignment="top" usebox="none">
22940 \begin_layout Plain Layout
22946 <cell alignment="left" valignment="top" usebox="none">
22949 \begin_layout Plain Layout
22955 <cell alignment="center" valignment="top" usebox="none">
22958 \begin_layout Plain Layout
22964 <cell alignment="center" valignment="top" usebox="none">
22967 \begin_layout Plain Layout
22973 <cell alignment="center" valignment="top" usebox="none">
22976 \begin_layout Plain Layout
22982 <cell alignment="center" valignment="top" usebox="none">
22985 \begin_layout Plain Layout
22993 <cell alignment="left" valignment="top" usebox="none">
22996 \begin_layout Plain Layout
23002 <cell alignment="left" valignment="top" usebox="none">
23005 \begin_layout Plain Layout
23011 <cell alignment="left" valignment="top" usebox="none">
23014 \begin_layout Plain Layout
23020 <cell alignment="left" valignment="top" usebox="none">
23023 \begin_layout Plain Layout
23029 <cell alignment="center" valignment="top" usebox="none">
23032 \begin_layout Plain Layout
23038 <cell alignment="center" valignment="top" usebox="none">
23041 \begin_layout Plain Layout
23047 <cell alignment="center" valignment="top" usebox="none">
23050 \begin_layout Plain Layout
23056 <cell alignment="center" valignment="top" usebox="none">
23059 \begin_layout Plain Layout
23067 <cell alignment="center" valignment="top" usebox="none">
23070 \begin_layout Plain Layout
23076 <cell alignment="center" valignment="top" usebox="none">
23079 \begin_layout Plain Layout
23085 <cell alignment="center" valignment="top" usebox="none">
23088 \begin_layout Plain Layout
23094 <cell alignment="center" valignment="top" usebox="none">
23097 \begin_layout Plain Layout
23103 <cell alignment="center" valignment="top" usebox="none">
23106 \begin_layout Plain Layout
23112 <cell alignment="center" valignment="top" usebox="none">
23115 \begin_layout Plain Layout
23121 <cell alignment="center" valignment="top" usebox="none">
23124 \begin_layout Plain Layout
23130 <cell alignment="center" valignment="top" usebox="none">
23133 \begin_layout Plain Layout
23147 \begin_layout Chapter
23149 \begin_inset CommandInset label
23158 \begin_layout Standard
23159 ここに列挙されている色は標準色であり、\SpecialChar LyX
23163 \begin_layout Description
23168 特定の色ではありません – 透明か既定色です
23171 \begin_layout Description
23175 \begin_layout Description
23179 \begin_layout Description
23183 \begin_layout Description
23187 \begin_layout Description
23191 \begin_layout Description
23195 \begin_layout Description
23199 \begin_layout Description
23203 \begin_layout Description
23207 \begin_layout Description
23211 \begin_layout Description
23215 \begin_layout Description
23219 \begin_layout Description
23223 \begin_layout Description
23224 branchlabel 派生枝ラベル色
23227 \begin_layout Description
23231 \begin_layout Description
23232 buttonhoverbg フォーカスを得ているボタンの背景色
23235 \begin_layout Description
23239 \begin_layout Description
23243 \begin_layout Description
23244 changedtextauthor1 変更された文章:第1著者の色
23247 \begin_layout Description
23248 changedtextauthor2 変更された文章:第2著者の色
23251 \begin_layout Description
23252 changedtextauthor3 変更された文章:第3著者の色
23255 \begin_layout Description
23256 changedtextauthor4 変更された文章:第4著者の色
23259 \begin_layout Description
23260 changedtextauthor5 変更された文章:第5著者の色
23263 \begin_layout Description
23264 collapsable_inset_frame 畳み込み可能枠の縁色
23267 \begin_layout Description
23268 collapsable_inset_text 畳み込み可能枠の文字色
23271 \begin_layout Description
23272 command コマンド差込枠の文字色
23275 \begin_layout Description
23276 commandbg コマンド差込枠の背景色
23279 \begin_layout Description
23280 commandframe コマンド差込枠の縁色
23283 \begin_layout Description
23287 \begin_layout Description
23291 \begin_layout Description
23295 \begin_layout Description
23296 deletedtext 削除された文章の色
23299 \begin_layout Description
23300 deletedtextmodifier 削除された文章の修飾子の色
23303 \begin_layout Description
23304 depthbar 余白部の階層表示線の色
23307 \begin_layout Description
23311 \begin_layout Description
23312 error \SpecialChar LaTeX
23316 \begin_layout Description
23320 \begin_layout Description
23321 graphicsbg 画像差込枠の背景色
23324 \begin_layout Description
23325 greyedout 淡色表示差込枠のラベル色
23328 \begin_layout Description
23329 greyedoutbg 淡色表示差込枠の背景色
23332 \begin_layout Description
23333 greyedouttext 淡色表示差込枠の文字色
23336 \begin_layout Description
23337 indexlabel 索引差込枠のラベル色
23340 \begin_layout Description
23344 \begin_layout Description
23348 \begin_layout Description
23349 inlinecompletion 行内補完色
23352 \begin_layout Description
23356 \begin_layout Description
23360 \begin_layout Description
23361 language 外国語の単語を標識するための色
23364 \begin_layout Description
23365 latex \SpecialChar LaTeX
23369 \begin_layout Description
23370 listingsbg プログラムリスト差込枠の背景色
23373 \begin_layout Description
23374 marginlabel 傍注のラベル色
23377 \begin_layout Description
23381 \begin_layout Description
23385 \begin_layout Description
23386 mathcorners フォーカスを得ていない数式差込枠の縁色
23389 \begin_layout Description
23390 mathframe フォーカスを得ている数式差込枠の縁色
23393 \begin_layout Description
23397 \begin_layout Description
23398 mathmacrobg 数式マクロ差込枠の背景色
23401 \begin_layout Description
23402 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23405 \begin_layout Description
23406 mathmacroframe 数式マクロ差込枠の縁色
23409 \begin_layout Description
23410 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23413 \begin_layout Description
23414 mathmacrolabel 数式マクロ差込枠のラベル色
23417 \begin_layout Description
23418 mathmacronewarg 数式マクロ新パラメーターのひな型色
23421 \begin_layout Description
23422 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23425 \begin_layout Description
23429 \begin_layout Description
23430 nonunique_inlinecompletion 行内補完の一意でない部分の色
23433 \begin_layout Description
23437 \begin_layout Description
23441 \begin_layout Description
23445 \begin_layout Description
23446 paragraphmarker 段落末を標識するための段落標の色
23449 \begin_layout Description
23450 phantomtext 埋め草差込枠の文字色
23453 \begin_layout Description
23454 preview プレビューに用いられる色
23457 \begin_layout Description
23458 previewframe プレビュー縁色
23461 \begin_layout Description
23462 regexpframe 正規表現枠の色
23465 \begin_layout Description
23466 selection 文章選択部の背景色
23469 \begin_layout Description
23470 selectiontext 文章選択部の前景色
23473 \begin_layout Description
23474 shadedbg 影付きボックスの背景色
23477 \begin_layout Description
23481 \begin_layout Description
23485 \begin_layout Description
23486 tabularonoffline 罫線色
23489 \begin_layout Description
23490 urllabel URL差込枠のラベル色
23493 \begin_layout Description